lifenode 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +57 -0
- data/_includes/disqus_comments.html +16 -0
- data/_includes/google_analytics.html +10 -0
- data/_includes/head.html +8 -0
- data/_layouts/default.html +11 -0
- data/_layouts/home.html +31 -0
- data/_layouts/page.html +5 -0
- data/_layouts/post.html +11 -0
- data/_sass/lifenode.scss +40 -0
- data/_sass/lifenode/_base.scss +32 -0
- data/_sass/lifenode/_grid.scss +15 -0
- data/_sass/lifenode/_header.scss +38 -0
- data/_sass/lifenode/_mixins.scss +15 -0
- data/_sass/lifenode/_syntax-highlight.scss +86 -0
- data/_sass/lifenode/_timeline.scss +81 -0
- data/_sass/lifenode/neat/_neat.scss +26 -0
- data/_sass/lifenode/neat/neat/functions/_neat-append-grid-visual.scss +21 -0
- data/_sass/lifenode/neat/neat/functions/_neat-column-default.scss +23 -0
- data/_sass/lifenode/neat/neat/functions/_neat-column-ratio.scss +24 -0
- data/_sass/lifenode/neat/neat/functions/_neat-column-width.scss +25 -0
- data/_sass/lifenode/neat/neat/functions/_neat-float-direction.scss +22 -0
- data/_sass/lifenode/neat/neat/functions/_neat-merge-defaults.scss +23 -0
- data/_sass/lifenode/neat/neat/functions/_neat-opposite-direction.scss +22 -0
- data/_sass/lifenode/neat/neat/functions/_neat-parse-columns.scss +22 -0
- data/_sass/lifenode/neat/neat/functions/_neat-parse-media.scss +20 -0
- data/_sass/lifenode/neat/neat/functions/_retrieve-neat-settings.scss +19 -0
- data/_sass/lifenode/neat/neat/mixins/_grid-collapse.scss +35 -0
- data/_sass/lifenode/neat/neat/mixins/_grid-column.scss +39 -0
- data/_sass/lifenode/neat/neat/mixins/_grid-container.scss +31 -0
- data/_sass/lifenode/neat/neat/mixins/_grid-media.scss +67 -0
- data/_sass/lifenode/neat/neat/mixins/_grid-push.scss +37 -0
- data/_sass/lifenode/neat/neat/mixins/_grid-shift.scss +36 -0
- data/_sass/lifenode/neat/neat/mixins/_grid-visual.scss +41 -0
- data/_sass/lifenode/neat/neat/settings/_settings.scss +74 -0
- data/assets/css/style.scss +5 -0
- metadata +123 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 803d397e5778f6825a97921b7e394421f9fe3b99
|
4
|
+
data.tar.gz: 7c3706137d8f09542f5f8f1894b4a874f5b20921
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 54096685b173a8e61a379187a4d7919232b4d647dadcae2c48a1ffcf601d9d3cd6451a801806e05177b8e5daddc34ed7550e3f4cbe32381347d8af9c4417e20b
|
7
|
+
data.tar.gz: 32e1a5e00ca9610902996d3023bcda9b8170e921ecb12c4b04e62c0378a1212192b1231cdb4ab26d9939bc854d8eb5d8315693a8336f7a3abcdaf31a11d83b7f
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2018 nukosuke
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
# lifenode
|
2
|
+
|
3
|
+
Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes`, your sass files in `_sass` and any other assets in `assets`.
|
4
|
+
|
5
|
+
To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
|
6
|
+
|
7
|
+
TODO: Delete this and the text above, and describe your gem
|
8
|
+
|
9
|
+
|
10
|
+
## Installation
|
11
|
+
|
12
|
+
Add this line to your Jekyll site's `Gemfile`:
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
gem "lifenode"
|
16
|
+
```
|
17
|
+
|
18
|
+
And add this line to your Jekyll site's `_config.yml`:
|
19
|
+
|
20
|
+
```yaml
|
21
|
+
theme: lifenode
|
22
|
+
```
|
23
|
+
|
24
|
+
And then execute:
|
25
|
+
|
26
|
+
$ bundle
|
27
|
+
|
28
|
+
Or install it yourself as:
|
29
|
+
|
30
|
+
$ gem install lifenode
|
31
|
+
|
32
|
+
## Usage
|
33
|
+
|
34
|
+
configure these variables.
|
35
|
+
|
36
|
+
- title
|
37
|
+
- description
|
38
|
+
- disqus.shortname (option)
|
39
|
+
- google_analytics (option)
|
40
|
+
|
41
|
+
## Contributing
|
42
|
+
|
43
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/nukosuke/lifenode. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
44
|
+
|
45
|
+
## Development
|
46
|
+
|
47
|
+
To set up your environment to develop this theme, run `bundle install`.
|
48
|
+
|
49
|
+
Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
|
50
|
+
|
51
|
+
When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
|
52
|
+
To add a custom directory to your theme-gem, please edit the regexp in `lifenode.gemspec` accordingly.
|
53
|
+
|
54
|
+
## License
|
55
|
+
|
56
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
57
|
+
|
@@ -0,0 +1,16 @@
|
|
1
|
+
{% if page.comments != false and jekyll.environment == 'production' %}
|
2
|
+
<div id="disqus_thread"></div>
|
3
|
+
<script>
|
4
|
+
var disqus_config = function () {
|
5
|
+
this.page.url = '{{ page.url | absolute_url }}';
|
6
|
+
this.page.identifier = '{{ page.url | absolute_url }}';
|
7
|
+
};
|
8
|
+
(function() {
|
9
|
+
var d = document, s = d.createElement('script');
|
10
|
+
s.src = 'https://{{ site.disqus_shortname }}.disqus.com/embed.js';
|
11
|
+
s.setAttribute('data-timestamp', +new Date());
|
12
|
+
(d.head || d.body).appendChild(s);
|
13
|
+
})();
|
14
|
+
</script>
|
15
|
+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
|
16
|
+
{% endif %}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
{% if jekyll.environment == 'production' and site.google_analytics %}
|
2
|
+
<!-- Global site tag (gtag.js) - Google Analytics -->
|
3
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
|
4
|
+
<script>
|
5
|
+
window.dataLayer = window.dataLayer || [];
|
6
|
+
function gtag(){dataLayer.push(arguments);}
|
7
|
+
gtag('js', new Date());
|
8
|
+
gtag('config', '{{ site.google_analytics }}');
|
9
|
+
</script>
|
10
|
+
{% endif %}
|
data/_includes/head.html
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
<head>
|
2
|
+
<meta charset="utf-8">
|
3
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
5
|
+
<link rel="stylesheet" href="{{ '/assets/css/style.css' | relative_url }}">
|
6
|
+
<link rel="stylesheet" href="https://fonts.googleapis.com/earlyaccess/sawarabigothic.css" />
|
7
|
+
{% include google_analytics.html %}
|
8
|
+
</head>
|
data/_layouts/home.html
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<div class="home">
|
6
|
+
{% if site.title %}
|
7
|
+
<div class="ln-header">
|
8
|
+
{% if site.description %}
|
9
|
+
<p class="ln-header-description">{{ site.description }}</p>
|
10
|
+
{% endif %}
|
11
|
+
<h1 class="ln-header-title">{{ site.title }}</h1>
|
12
|
+
</div>
|
13
|
+
{% endif %}
|
14
|
+
|
15
|
+
<ul class="ln-timeline">
|
16
|
+
{% if site.posts.size > 0 %}
|
17
|
+
{% for post in site.posts %}
|
18
|
+
<li class="ln-timeline-item">
|
19
|
+
<div class="ln-timeline-item-tail"></div>
|
20
|
+
<div class="ln-timeline-item-head ln-timeline-item-head-red"></div>
|
21
|
+
<!--TODO: switch ln-timeline-item-head-* by post.type using case-when -->
|
22
|
+
<div class="ln-timeline-item-content">
|
23
|
+
<a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
|
24
|
+
<br/>
|
25
|
+
<div class="ln-timeline-item-content-date">{{ post.date | date_to_string }}</div>
|
26
|
+
</div>
|
27
|
+
</li>
|
28
|
+
{% endfor %}
|
29
|
+
{% endif %}
|
30
|
+
</ul>
|
31
|
+
</div>
|
data/_layouts/page.html
ADDED
data/_layouts/post.html
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<div class="post">
|
6
|
+
<a href="{{ '/' | relative_url }}" title="Home">« Home</a>
|
7
|
+
<h1 class="ln-post-title">{{ page.title }}</h1>
|
8
|
+
<div class="ln-slash-stripe"></div>
|
9
|
+
{{ content }}
|
10
|
+
{% include disqus_comments.html %}
|
11
|
+
</div>
|
data/_sass/lifenode.scss
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
@charset "utf-8";
|
2
|
+
@import
|
3
|
+
"lifenode/_grid",
|
4
|
+
"lifenode/_header",
|
5
|
+
"lifenode/_syntax-highlight",
|
6
|
+
"lifenode/_timeline";
|
7
|
+
|
8
|
+
html { font-family: $font-family; }
|
9
|
+
|
10
|
+
a {
|
11
|
+
color: $link-color;
|
12
|
+
text-decoration: $link-decoration;
|
13
|
+
|
14
|
+
&:hover {
|
15
|
+
color: $link-hover-color;
|
16
|
+
text-decoration: $link-hover-decoration;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
*, *::before, *::after { box-sizing: border-box; }
|
21
|
+
|
22
|
+
$grid-media: (
|
23
|
+
columns: 12,
|
24
|
+
gutter: 50px,
|
25
|
+
media: 960px,
|
26
|
+
);
|
27
|
+
|
28
|
+
.home {
|
29
|
+
@include grid-media($grid-media) {
|
30
|
+
@include grid-column(4);
|
31
|
+
@include grid-shift(4);
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
.post {
|
36
|
+
@include grid-media($grid-media) {
|
37
|
+
@include grid-column(8);
|
38
|
+
@include grid-shift(2);
|
39
|
+
}
|
40
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
// _base.scss
|
2
|
+
// entire style settings
|
3
|
+
|
4
|
+
$lifenode-prefix: "ln";
|
5
|
+
|
6
|
+
// color
|
7
|
+
$primary-color: #00BFFF;
|
8
|
+
$error-color: #ea222d;
|
9
|
+
$success-color: #9AC846;
|
10
|
+
|
11
|
+
$primary-6: $primary-color;
|
12
|
+
$primary-7: lighten($primary-color, 15%);
|
13
|
+
|
14
|
+
|
15
|
+
$text-color: #333;
|
16
|
+
$text-disabled-color: lighten($text-color, 40%);
|
17
|
+
|
18
|
+
// link
|
19
|
+
$link-color: $primary-6;
|
20
|
+
$link-hover-color: $primary-7;
|
21
|
+
$link-decoration: none;
|
22
|
+
$link-hover-decoration: none;
|
23
|
+
|
24
|
+
$border-color-split: lighten(black, 91%);
|
25
|
+
$component-background: white;
|
26
|
+
|
27
|
+
// font & line
|
28
|
+
$font-family: "Sawarabi Gothic";
|
29
|
+
$font-size-base: 14px;
|
30
|
+
$font-size-lg: $font-size-base + 2px;
|
31
|
+
$font-size-sm: $font-size-base - 2px;
|
32
|
+
$line-height-base: 1.5;
|
@@ -0,0 +1,38 @@
|
|
1
|
+
// _header.scss
|
2
|
+
// style for header
|
3
|
+
|
4
|
+
@import "neat/_neat";
|
5
|
+
@import "_base";
|
6
|
+
|
7
|
+
$header-line-width: 8px;
|
8
|
+
$header-vertical-margin: $header-line-width * 2;
|
9
|
+
|
10
|
+
.#{$lifenode-prefix}-header {
|
11
|
+
border-top: solid $header-line-width $text-color;
|
12
|
+
border-bottom: solid $header-line-width $text-color;
|
13
|
+
margin: $header-vertical-margin 0;
|
14
|
+
|
15
|
+
&-title {
|
16
|
+
}
|
17
|
+
|
18
|
+
&-description {
|
19
|
+
font-size: $font-size-sm;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
.#{$lifenode-prefix}-post-title {
|
24
|
+
color: $error-color;
|
25
|
+
}
|
26
|
+
|
27
|
+
.#{$lifenode-prefix}-slash-stripe {
|
28
|
+
width: 150px;
|
29
|
+
height: 16px;
|
30
|
+
background-image: linear-gradient(
|
31
|
+
-45deg,
|
32
|
+
#fff 25%,
|
33
|
+
#000 25%, #000 50%,
|
34
|
+
#fff 50%, #fff 75%,
|
35
|
+
#000 75%, #000
|
36
|
+
);
|
37
|
+
background-size: 30px 30px;
|
38
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
// _mixins.scss
|
2
|
+
// mixin definitions
|
3
|
+
|
4
|
+
@import "_base";
|
5
|
+
|
6
|
+
@mixin reset-component() {
|
7
|
+
font-family: $font-family;
|
8
|
+
font-size: $font-size-base;
|
9
|
+
line-height: $line-height-base;
|
10
|
+
color: $text-color;
|
11
|
+
box-sizing: border-box;
|
12
|
+
margin: 0;
|
13
|
+
padding: 0;
|
14
|
+
list-style: none;
|
15
|
+
}
|
@@ -0,0 +1,86 @@
|
|
1
|
+
// _syntax-highlight.scss
|
2
|
+
// style for code syntax highlight
|
3
|
+
|
4
|
+
@import "_base";
|
5
|
+
|
6
|
+
pre, code, var, samp, kbd, .highlight {
|
7
|
+
font-family: Consolas, 'Courier New', Courier, Monaco, monospace;
|
8
|
+
font-size: $font-size-base;
|
9
|
+
line-height: 1.2;
|
10
|
+
}
|
11
|
+
|
12
|
+
.highlight {
|
13
|
+
pre {
|
14
|
+
background-color: #333;
|
15
|
+
padding: 8px;
|
16
|
+
}
|
17
|
+
.hll { background-color: #333333 }
|
18
|
+
.c { color: #008800; font-style: italic; background-color: #0f140f } /* Comment */
|
19
|
+
.err { color: #ffffff } /* Error */
|
20
|
+
.g { color: #ffffff } /* Generic */
|
21
|
+
.k { color: #fb660a; font-weight: bold } /* Keyword */
|
22
|
+
.l { color: #ffffff } /* Literal */
|
23
|
+
.n { color: #ffffff } /* Name */
|
24
|
+
.o { color: #ffffff } /* Operator */
|
25
|
+
.x { color: #ffffff } /* Other */
|
26
|
+
.p { color: #ffffff } /* Punctuation */
|
27
|
+
.cm { color: #008800; font-style: italic; background-color: #0f140f } /* Comment.Multiline */
|
28
|
+
.cp { color: #ff0007; font-weight: bold; font-style: italic; background-color: #0f140f } /* Comment.Preproc */
|
29
|
+
.c1 { color: #008800; font-style: italic; background-color: #0f140f } /* Comment.Single */
|
30
|
+
.cs { color: #008800; font-style: italic; background-color: #0f140f } /* Comment.Special */
|
31
|
+
.gd { color: #ffffff } /* Generic.Deleted */
|
32
|
+
.ge { color: #ffffff } /* Generic.Emph */
|
33
|
+
.gr { color: #ffffff } /* Generic.Error */
|
34
|
+
.gh { color: #ffffff; font-weight: bold } /* Generic.Heading */
|
35
|
+
.gi { color: #ffffff } /* Generic.Inserted */
|
36
|
+
.go { color: #444444; background-color: #222222 } /* Generic.Output */
|
37
|
+
.gp { color: #ffffff } /* Generic.Prompt */
|
38
|
+
.gs { color: #ffffff } /* Generic.Strong */
|
39
|
+
.gu { color: #ffffff; font-weight: bold } /* Generic.Subheading */
|
40
|
+
.gt { color: #ffffff } /* Generic.Traceback */
|
41
|
+
.kc { color: #fb660a; font-weight: bold } /* Keyword.Constant */
|
42
|
+
.kd { color: #fb660a; font-weight: bold } /* Keyword.Declaration */
|
43
|
+
.kn { color: #fb660a; font-weight: bold } /* Keyword.Namespace */
|
44
|
+
.kp { color: #fb660a } /* Keyword.Pseudo */
|
45
|
+
.kr { color: #fb660a; font-weight: bold } /* Keyword.Reserved */
|
46
|
+
.kt { color: #cdcaa9; font-weight: bold } /* Keyword.Type */
|
47
|
+
.ld { color: #ffffff } /* Literal.Date */
|
48
|
+
.m { color: #0086f7; font-weight: bold } /* Literal.Number */
|
49
|
+
.s { color: #0086d2 } /* Literal.String */
|
50
|
+
.na { color: #ff0086; font-weight: bold } /* Name.Attribute */
|
51
|
+
.nb { color: #ffffff } /* Name.Builtin */
|
52
|
+
.nc { color: #ffffff } /* Name.Class */
|
53
|
+
.no { color: #0086d2 } /* Name.Constant */
|
54
|
+
.nd { color: #ffffff } /* Name.Decorator */
|
55
|
+
.ni { color: #ffffff } /* Name.Entity */
|
56
|
+
.ne { color: #ffffff } /* Name.Exception */
|
57
|
+
.nf { color: #ff0086; font-weight: bold } /* Name.Function */
|
58
|
+
.nl { color: #ffffff } /* Name.Label */
|
59
|
+
.nn { color: #ffffff } /* Name.Namespace */
|
60
|
+
.nx { color: #ffffff } /* Name.Other */
|
61
|
+
.py { color: #ffffff } /* Name.Property */
|
62
|
+
.nt { color: #fb660a; font-weight: bold } /* Name.Tag */
|
63
|
+
.nv { color: #fb660a } /* Name.Variable */
|
64
|
+
.ow { color: #ffffff } /* Operator.Word */
|
65
|
+
.w { color: #888888 } /* Text.Whitespace */
|
66
|
+
.mf { color: #0086f7; font-weight: bold } /* Literal.Number.Float */
|
67
|
+
.mh { color: #0086f7; font-weight: bold } /* Literal.Number.Hex */
|
68
|
+
.mi { color: #0086f7; font-weight: bold } /* Literal.Number.Integer */
|
69
|
+
.mo { color: #0086f7; font-weight: bold } /* Literal.Number.Oct */
|
70
|
+
.sb { color: #0086d2 } /* Literal.String.Backtick */
|
71
|
+
.sc { color: #0086d2 } /* Literal.String.Char */
|
72
|
+
.sd { color: #0086d2 } /* Literal.String.Doc */
|
73
|
+
.s2 { color: #0086d2 } /* Literal.String.Double */
|
74
|
+
.se { color: #0086d2 } /* Literal.String.Escape */
|
75
|
+
.sh { color: #0086d2 } /* Literal.String.Heredoc */
|
76
|
+
.si { color: #0086d2 } /* Literal.String.Interpol */
|
77
|
+
.sx { color: #0086d2 } /* Literal.String.Other */
|
78
|
+
.sr { color: #0086d2 } /* Literal.String.Regex */
|
79
|
+
.s1 { color: #0086d2 } /* Literal.String.Single */
|
80
|
+
.ss { color: #0086d2 } /* Literal.String.Symbol */
|
81
|
+
.bp { color: #ffffff } /* Name.Builtin.Pseudo */
|
82
|
+
.vc { color: #fb660a } /* Name.Variable.Class */
|
83
|
+
.vg { color: #fb660a } /* Name.Variable.Global */
|
84
|
+
.vi { color: #fb660a } /* Name.Variable.Instance */
|
85
|
+
.il { color: #0086f7; font-weight: bold } /* Literal.Number.Integer.Long */
|
86
|
+
}
|
@@ -0,0 +1,81 @@
|
|
1
|
+
// _timeline.scss
|
2
|
+
// style for timeline component
|
3
|
+
|
4
|
+
@import "_base";
|
5
|
+
@import "_mixins";
|
6
|
+
|
7
|
+
$timeline-color: $border-color-split;
|
8
|
+
|
9
|
+
.#{$lifenode-prefix}-timeline {
|
10
|
+
@include reset-component();
|
11
|
+
|
12
|
+
&-item {
|
13
|
+
position: relative;
|
14
|
+
padding: 0 0 20px;
|
15
|
+
list-style: none;
|
16
|
+
margin: 0;
|
17
|
+
font-size: $font-size-base;
|
18
|
+
|
19
|
+
&-tail {
|
20
|
+
position: absolute;
|
21
|
+
left: 4px;
|
22
|
+
top: 0.75em;
|
23
|
+
height: 100%;
|
24
|
+
border-left: 2px solid $timeline-color;
|
25
|
+
}
|
26
|
+
|
27
|
+
&-pending &-head {
|
28
|
+
font-size: $font-size-sm;
|
29
|
+
}
|
30
|
+
|
31
|
+
&-pending &-tail {
|
32
|
+
display: none;
|
33
|
+
}
|
34
|
+
|
35
|
+
&-head {
|
36
|
+
position: absolute;
|
37
|
+
width: 10px;
|
38
|
+
height: 10px;
|
39
|
+
background-color: $component-background;
|
40
|
+
border-radius: 100px;
|
41
|
+
border: 2px solid transparent;
|
42
|
+
|
43
|
+
&-blue {
|
44
|
+
border-color: $primary-color;
|
45
|
+
color: $primary-color;
|
46
|
+
}
|
47
|
+
&-red {
|
48
|
+
border-color: $error-color;
|
49
|
+
color: $error-color;
|
50
|
+
}
|
51
|
+
&-green {
|
52
|
+
border-color: $success-color;
|
53
|
+
color: $success-color;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
&-content {
|
58
|
+
padding: 0 0 0 18px;
|
59
|
+
position: relative;
|
60
|
+
top: -($font-size-base * $line-height-base - $font-size-base) + 1px;
|
61
|
+
&-date {
|
62
|
+
font-size: $font-size-sm;
|
63
|
+
color: $text-disabled-color;
|
64
|
+
}
|
65
|
+
}
|
66
|
+
|
67
|
+
&:last-child {
|
68
|
+
.#{$lifenode-prefix}-timeline-item-tail {
|
69
|
+
border-left: 2px dotted $timeline-color;
|
70
|
+
display: none;
|
71
|
+
}
|
72
|
+
.#{$lifenode-prefix}-timeline-item-content {
|
73
|
+
min-height: 48px;
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
&-item:last-child &-item-tail {
|
79
|
+
display: block;
|
80
|
+
}
|
81
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
// Neat 2.1.0
|
3
|
+
// http://neat.bourbon.io
|
4
|
+
// Copyright 2012 thoughtbot, inc.
|
5
|
+
// MIT License
|
6
|
+
|
7
|
+
@import "neat/settings/settings";
|
8
|
+
|
9
|
+
@import "neat/functions/retrieve-neat-settings";
|
10
|
+
@import "neat/functions/neat-column-default";
|
11
|
+
@import "neat/functions/neat-column-width";
|
12
|
+
@import "neat/functions/neat-column-ratio";
|
13
|
+
@import "neat/functions/neat-float-direction";
|
14
|
+
@import "neat/functions/neat-merge-defaults";
|
15
|
+
@import "neat/functions/neat-opposite-direction";
|
16
|
+
@import "neat/functions/neat-parse-columns";
|
17
|
+
@import "neat/functions/neat-parse-media";
|
18
|
+
@import "neat/functions/neat-append-grid-visual";
|
19
|
+
|
20
|
+
@import "neat/mixins/grid-collapse";
|
21
|
+
@import "neat/mixins/grid-column";
|
22
|
+
@import "neat/mixins/grid-container";
|
23
|
+
@import "neat/mixins/grid-media";
|
24
|
+
@import "neat/mixins/grid-push";
|
25
|
+
@import "neat/mixins/grid-shift";
|
26
|
+
@import "neat/mixins/grid-visual";
|
@@ -0,0 +1,21 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
/// Append attributes to a the `$_grid-visual` variable in `grid-visual` mixin
|
3
|
+
///
|
4
|
+
/// @argument {map} $grid
|
5
|
+
///
|
6
|
+
/// @argument {number (unitless) | null} $columns
|
7
|
+
///
|
8
|
+
/// @return {number}
|
9
|
+
///
|
10
|
+
/// @example scss
|
11
|
+
/// _neat-column-default($neat-grid, 4)
|
12
|
+
///
|
13
|
+
/// @access private
|
14
|
+
|
15
|
+
@function _neat-append-grid-visual($grid-visual-list, $attributes) {
|
16
|
+
@each $attribute in $attributes {
|
17
|
+
$grid-visual-list: append($grid-visual-list, $attribute, comma);
|
18
|
+
}
|
19
|
+
|
20
|
+
@return $grid-visual-list;
|
21
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
/// Determine if a column count has been given.
|
3
|
+
/// If no columns have been given return the grid's total column count.
|
4
|
+
///
|
5
|
+
/// @argument {map} $grid
|
6
|
+
///
|
7
|
+
/// @argument {number (unitless) | null} $columns
|
8
|
+
///
|
9
|
+
/// @return {number}
|
10
|
+
///
|
11
|
+
/// @example scss
|
12
|
+
/// _neat-column-default($neat-grid, 4)
|
13
|
+
///
|
14
|
+
/// @access private
|
15
|
+
|
16
|
+
@function _neat-column-default($grid, $columns) {
|
17
|
+
@if $columns == null {
|
18
|
+
$_grid-columns: _retrieve-neat-setting($grid, columns);
|
19
|
+
@return $_grid-columns;
|
20
|
+
} @else {
|
21
|
+
@return $columns;
|
22
|
+
}
|
23
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
/// Determine the ratio of `$columns` to the total column count.
|
3
|
+
/// If `$columns` is more than one value, they are handed to
|
4
|
+
/// `_neat-parse-columns()` which will determine the total columns and use this
|
5
|
+
/// value instead of `total-columns`.
|
6
|
+
///
|
7
|
+
/// @argument {map} $grid
|
8
|
+
///
|
9
|
+
/// @argument {number | list} $columns
|
10
|
+
///
|
11
|
+
/// @return {number}
|
12
|
+
///
|
13
|
+
/// @example scss
|
14
|
+
/// _neat-column-ratio($grid, 3)
|
15
|
+
///
|
16
|
+
/// @access private
|
17
|
+
|
18
|
+
@function _neat-column-ratio($grid, $columns) {
|
19
|
+
@if length($columns) > 1 {
|
20
|
+
@return nth($columns, 1) / _neat-parse-columns($columns);
|
21
|
+
} @else if $columns {
|
22
|
+
@return $columns / _retrieve-neat-setting($grid, columns);
|
23
|
+
}
|
24
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
/// Return a calulated column width that can then be passed in to a `calc()`.
|
3
|
+
///
|
4
|
+
/// @argument {map} $grid
|
5
|
+
///
|
6
|
+
/// @argument {number} $columns
|
7
|
+
///
|
8
|
+
/// @return {string}
|
9
|
+
///
|
10
|
+
/// @example scss
|
11
|
+
/// _neat-column-width($neat-grid, 4)
|
12
|
+
///
|
13
|
+
/// @access private
|
14
|
+
|
15
|
+
@function _neat-column-width($grid, $columns) {
|
16
|
+
$_column-ratio: _neat-column-ratio($grid, $columns);
|
17
|
+
$_gutter: _retrieve-neat-setting($grid, gutter);
|
18
|
+
|
19
|
+
@if $_gutter == 0 {
|
20
|
+
@return unquote("#{percentage($_column-ratio)}");
|
21
|
+
} @else {
|
22
|
+
$_gutter-affordance: $_gutter + ($_gutter * $_column-ratio);
|
23
|
+
@return unquote("#{percentage($_column-ratio)} - #{$_gutter-affordance}");
|
24
|
+
}
|
25
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
/// Return the float direction of the grid.
|
3
|
+
///
|
4
|
+
/// @argument {map} $grid
|
5
|
+
///
|
6
|
+
/// @return {string}
|
7
|
+
///
|
8
|
+
/// @example scss
|
9
|
+
/// _neat-float-direction($neat-grid)
|
10
|
+
///
|
11
|
+
/// @access private
|
12
|
+
|
13
|
+
@function _neat-float-direction($grid) {
|
14
|
+
$_direction: _retrieve-neat-setting($grid, direction);
|
15
|
+
$_float-direction: null;
|
16
|
+
@if $_direction == "ltr" {
|
17
|
+
$_float-direction: left;
|
18
|
+
} @else if $_direction == "rtl" {
|
19
|
+
$_float-direction: right;
|
20
|
+
}
|
21
|
+
@return $_float-direction;
|
22
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
/// Apply Neat's default properties to undefined values within a map.
|
3
|
+
///
|
4
|
+
/// @argument {map} $grid
|
5
|
+
///
|
6
|
+
/// @return {map}
|
7
|
+
///
|
8
|
+
/// @example scss
|
9
|
+
/// _retrieve-neat-setting($neat-grid)
|
10
|
+
///
|
11
|
+
/// @access private
|
12
|
+
|
13
|
+
@function _neat-merge-defaults($grid) {
|
14
|
+
$_merged-grid: map-merge((
|
15
|
+
columns: 12,
|
16
|
+
gutter: 20px,
|
17
|
+
media: null,
|
18
|
+
color: rgba(#00d4ff, 0.25),
|
19
|
+
direction: ltr,
|
20
|
+
), $grid);
|
21
|
+
|
22
|
+
@return $_merged-grid;
|
23
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
/// Return the oppoite of the float direction of the grid.
|
3
|
+
///
|
4
|
+
/// @argument {map} $grid
|
5
|
+
///
|
6
|
+
/// @return {string}
|
7
|
+
///
|
8
|
+
/// @example scss
|
9
|
+
/// _neat-opposite-direction($neat-grid)
|
10
|
+
///
|
11
|
+
/// @access private
|
12
|
+
|
13
|
+
@function _neat-opposite-direction($grid) {
|
14
|
+
$_direction: _retrieve-neat-setting($grid, direction);
|
15
|
+
$_float-direction: null;
|
16
|
+
@if $_direction == "ltr" {
|
17
|
+
$_float-direction: right;
|
18
|
+
} @else if $_direction == "rtl" {
|
19
|
+
$_float-direction: left;
|
20
|
+
}
|
21
|
+
@return $_float-direction;
|
22
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
/// Parse a column count like `3 of 5` and retur the total coloumn count.
|
3
|
+
/// This is to allow a shorthand for custom grids without using a settings map.
|
4
|
+
///
|
5
|
+
///
|
6
|
+
/// @argument {list} $span
|
7
|
+
///
|
8
|
+
/// @return {number}
|
9
|
+
///
|
10
|
+
/// @example scss
|
11
|
+
/// _neat-parse-columns(3 of 5)
|
12
|
+
///
|
13
|
+
/// @access private
|
14
|
+
|
15
|
+
@function _neat-parse-columns($span) {
|
16
|
+
@if length($span) == 3 {
|
17
|
+
$_total-columns: nth($span, 3);
|
18
|
+
@return $_total-columns;
|
19
|
+
} @else if length($span) == 2 or if length($span) >= 3 {
|
20
|
+
@error "`$column` should contain 2 values, seperated by an `of`";
|
21
|
+
}
|
22
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
/// Parse media types. If the property is a string then return it, otherwise
|
3
|
+
/// assume screen and min-width.
|
4
|
+
///
|
5
|
+
/// @argument {string | number (with unit)} $media
|
6
|
+
///
|
7
|
+
/// @return {number}
|
8
|
+
///
|
9
|
+
/// @example scss
|
10
|
+
/// _neat-parse-media($grid, 1000px)
|
11
|
+
///
|
12
|
+
/// @access private
|
13
|
+
|
14
|
+
@function _neat-parse-media($media) {
|
15
|
+
@if type-of($media) == number {
|
16
|
+
@return "only screen and (min-width: #{$media})";
|
17
|
+
} @else if type-of($media) == string {
|
18
|
+
@return "#{$media}";
|
19
|
+
}
|
20
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
/// This function recives a grid map and merges it with Neat's defauls.
|
3
|
+
/// It then returns the value of the property that has been passed to it.
|
4
|
+
///
|
5
|
+
/// @argument {map} $grid
|
6
|
+
///
|
7
|
+
/// @argument {string} $setting
|
8
|
+
///
|
9
|
+
/// @return {boolean | color | list | number | string}
|
10
|
+
///
|
11
|
+
/// @example scss
|
12
|
+
/// _retrieve-neat-setting($neat-grid, columns)
|
13
|
+
///
|
14
|
+
/// @access private
|
15
|
+
|
16
|
+
@function _retrieve-neat-setting($grid, $setting) {
|
17
|
+
$_grid-settings: map-merge(_neat-merge-defaults($neat-grid), $grid);
|
18
|
+
@return map-get($_grid-settings, $setting);
|
19
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
/// Creates collapsed grid object that consumes the gutters of its container,
|
3
|
+
/// for use in nested layouts.
|
4
|
+
///
|
5
|
+
/// @group features
|
6
|
+
///
|
7
|
+
/// @name Grid collapse
|
8
|
+
///
|
9
|
+
/// @argument {map} $grid [$neat-grid]
|
10
|
+
/// The grid to be used to generate the collapsed container.
|
11
|
+
/// By default, the global `$neat-grid` will be used.
|
12
|
+
///
|
13
|
+
/// @example scss
|
14
|
+
/// .element {
|
15
|
+
/// @include grid-collapse;
|
16
|
+
/// }
|
17
|
+
///
|
18
|
+
/// @example css
|
19
|
+
/// .element {
|
20
|
+
/// margin-left: -20px;
|
21
|
+
/// margin-right: -20px;
|
22
|
+
/// width: calc(100% + 40px);
|
23
|
+
/// }
|
24
|
+
|
25
|
+
@mixin grid-collapse($grid: $neat-grid) {
|
26
|
+
$_grid-gutter: _retrieve-neat-setting($grid, gutter);
|
27
|
+
|
28
|
+
@if unit($_grid-gutter) == "%" {
|
29
|
+
@warn "`grid-collapse` is not compatible with percentage based gutters.";
|
30
|
+
}
|
31
|
+
|
32
|
+
margin-#{_neat-float-direction($grid)}: -($_grid-gutter);
|
33
|
+
margin-#{_neat-opposite-direction($grid)}: -($_grid-gutter);
|
34
|
+
width: calc(100% + #{($_grid-gutter * 2)});
|
35
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
/// Creates a grid column of requested size.
|
3
|
+
///
|
4
|
+
/// @group features
|
5
|
+
///
|
6
|
+
/// @name Grid column
|
7
|
+
///
|
8
|
+
/// @argument {number (unitless)} $columns [null]
|
9
|
+
/// Specifies the number of columns an element should span based on the total
|
10
|
+
/// columns of the grid.
|
11
|
+
///
|
12
|
+
/// This can also be defined in a shorthand syntaxt which also contains the
|
13
|
+
/// total column count such as `3 of 5`.
|
14
|
+
///
|
15
|
+
/// @argument {map} $grid [$neat-grid]
|
16
|
+
/// The grid to be used to generate the column.
|
17
|
+
/// By default, the global `$neat-grid` will be used.
|
18
|
+
///
|
19
|
+
/// @example scss
|
20
|
+
/// .element {
|
21
|
+
/// @include grid-column(3);
|
22
|
+
/// }
|
23
|
+
///
|
24
|
+
/// @example css
|
25
|
+
/// .element {
|
26
|
+
/// width: calc(25% - 25px);
|
27
|
+
/// float: left;
|
28
|
+
/// margin-left: 20px;
|
29
|
+
/// }
|
30
|
+
|
31
|
+
@mixin grid-column($columns: null, $grid: $neat-grid) {
|
32
|
+
$columns: _neat-column-default($grid, $columns);
|
33
|
+
$_grid-columns: _retrieve-neat-setting($grid, columns);
|
34
|
+
$_grid-gutter: _retrieve-neat-setting($grid, gutter);
|
35
|
+
|
36
|
+
width: calc(#{_neat-column-width($grid, $columns)});
|
37
|
+
float: _neat-float-direction($grid);
|
38
|
+
margin-#{_neat-float-direction($grid)}: $_grid-gutter;
|
39
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
/// Creates a grid container with clearfix.
|
3
|
+
///
|
4
|
+
/// @group features
|
5
|
+
///
|
6
|
+
/// @name Grid container
|
7
|
+
///
|
8
|
+
/// @example scss
|
9
|
+
/// .element {
|
10
|
+
/// @include grid-container;
|
11
|
+
/// }
|
12
|
+
///
|
13
|
+
/// @example css
|
14
|
+
/// .element::after {
|
15
|
+
/// clear: both;
|
16
|
+
/// content: "";
|
17
|
+
/// display: block;
|
18
|
+
/// }
|
19
|
+
|
20
|
+
@mixin grid-container($grid: $neat-grid) {
|
21
|
+
@if $grid != $neat-grid {
|
22
|
+
@warn "`grid-container` does not use grid propertes.
|
23
|
+
Custom grids do not need to be passed in to this mixin.";
|
24
|
+
}
|
25
|
+
|
26
|
+
&::after {
|
27
|
+
clear: both;
|
28
|
+
content: "";
|
29
|
+
display: block;
|
30
|
+
}
|
31
|
+
}
|
@@ -0,0 +1,67 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
/// `grid-media` allows you to change your layout based on a media query.
|
3
|
+
/// For example, an object can span 3 columns on small screens and 6 columns
|
4
|
+
/// on large screens.
|
5
|
+
///
|
6
|
+
/// You can take this a step further and set different grid attributes like
|
7
|
+
/// gutter size and total column count for each media query. So, for example,
|
8
|
+
/// you can have a `1rem` gutter on small screens, and a `2rem` gutter on large
|
9
|
+
/// screens.
|
10
|
+
///
|
11
|
+
/// @group features
|
12
|
+
///
|
13
|
+
/// @name Grid media
|
14
|
+
///
|
15
|
+
/// @argument {map} $grid
|
16
|
+
/// The grid to be used within the scope of the block.
|
17
|
+
/// This grid should include the `media` property to determine the expression
|
18
|
+
/// for the media query.
|
19
|
+
///
|
20
|
+
/// @content
|
21
|
+
/// Grid media will temporarily the override the default grid with the
|
22
|
+
/// attributes of the custom grid. This change is scoped to within the mixin
|
23
|
+
/// block, and once the mixin has ended the default grid will revert to its
|
24
|
+
/// original state as defined by `$neat-grid`. This allows for different
|
25
|
+
/// gutter width and column count based on screen size or other properties.
|
26
|
+
///
|
27
|
+
/// @example scss
|
28
|
+
/// $custom-neat-grid: (
|
29
|
+
/// columns: 12,
|
30
|
+
/// gutter: 50px,
|
31
|
+
/// media: 1000px,
|
32
|
+
/// );
|
33
|
+
///
|
34
|
+
/// .element {
|
35
|
+
/// @include grid-column(3);
|
36
|
+
///
|
37
|
+
/// @include grid-media($custom-neat-grid){
|
38
|
+
/// @include grid-column(6);
|
39
|
+
/// }
|
40
|
+
/// }
|
41
|
+
///
|
42
|
+
/// @example css
|
43
|
+
/// .element {
|
44
|
+
/// width: calc(25% - 25px);
|
45
|
+
/// float: left;
|
46
|
+
/// margin-left: 20px;
|
47
|
+
/// }
|
48
|
+
///
|
49
|
+
/// @media only screen and (min-width: 1000px) {
|
50
|
+
/// .element {
|
51
|
+
/// width: calc(50% - 75px);
|
52
|
+
/// float: left;
|
53
|
+
/// margin-left: 50px;
|
54
|
+
/// }
|
55
|
+
/// }
|
56
|
+
|
57
|
+
@mixin grid-media($grid) {
|
58
|
+
$_media: _retrieve-neat-setting($grid, media);
|
59
|
+
$_query: _neat-parse-media($_media);
|
60
|
+
|
61
|
+
@media #{$_query} {
|
62
|
+
$_default-neat-grid: $neat-grid;
|
63
|
+
$neat-grid: map-merge($neat-grid, $grid) !global;
|
64
|
+
@content;
|
65
|
+
$neat-grid: $_default-neat-grid !global;
|
66
|
+
}
|
67
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
/// Push or pull a grid column by manipulating its left margin.
|
3
|
+
///
|
4
|
+
/// @group features
|
5
|
+
///
|
6
|
+
/// @name Grid push
|
7
|
+
///
|
8
|
+
/// @argument {number (unitless)} $push [false]
|
9
|
+
/// The number of columns to push the column.
|
10
|
+
///
|
11
|
+
/// @argument {map} $grid [$neat-grid]
|
12
|
+
/// The grid to be used to determine how far to push the column.
|
13
|
+
/// By default, the global `$neat-grid` will be used.
|
14
|
+
///
|
15
|
+
/// @example scss
|
16
|
+
/// .element {
|
17
|
+
/// @include grid-push(3);
|
18
|
+
/// }
|
19
|
+
///
|
20
|
+
/// @example css
|
21
|
+
/// .element {
|
22
|
+
/// margin-left: calc(25% - 25px + 40px);
|
23
|
+
/// }
|
24
|
+
|
25
|
+
@mixin grid-push($push: false, $grid: $neat-grid) {
|
26
|
+
$_grid-columns: _retrieve-neat-setting($grid, columns);
|
27
|
+
$_grid-gutter: _retrieve-neat-setting($grid, gutter);
|
28
|
+
|
29
|
+
@if $push {
|
30
|
+
$_gutter-affordance: $_grid-gutter * 2;
|
31
|
+
$_margin-value: calc(#{_neat-column-width($grid, $push)} + #{$_gutter-affordance});
|
32
|
+
margin-#{_neat-float-direction($grid)}: $_margin-value;
|
33
|
+
} @else {
|
34
|
+
$_margin-value: _retrieve-neat-setting($grid, gutter);
|
35
|
+
margin-#{_neat-float-direction($grid)}: $_margin-value;
|
36
|
+
}
|
37
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
/// Shift columns and reorder them within their container using relative
|
3
|
+
/// positioning.
|
4
|
+
///
|
5
|
+
/// @group features
|
6
|
+
///
|
7
|
+
/// @name Grid shift
|
8
|
+
///
|
9
|
+
/// @argument {number (unitless)} $shift [false]
|
10
|
+
/// The number of columns to shift the column.
|
11
|
+
///
|
12
|
+
/// @argument {map} $grid [$neat-grid]
|
13
|
+
/// The grid to be used to determine how far to shift the column.
|
14
|
+
/// By default, the global `$neat-grid` will be used.
|
15
|
+
///
|
16
|
+
/// @example scss
|
17
|
+
/// .element {
|
18
|
+
/// @include grid-shift(3);
|
19
|
+
/// }
|
20
|
+
///
|
21
|
+
/// @example css
|
22
|
+
/// .element {
|
23
|
+
/// left: calc(25% - 25px + 20px);
|
24
|
+
/// position: relative;
|
25
|
+
/// }
|
26
|
+
|
27
|
+
@mixin grid-shift($shift: false, $grid: $neat-grid) {
|
28
|
+
@if $shift {
|
29
|
+
$_shift-value: calc(#{_neat-column-width($grid, $shift)} + #{_retrieve-neat-setting($grid, gutter)});
|
30
|
+
#{_neat-float-direction($grid)}: $_shift-value;
|
31
|
+
} @else {
|
32
|
+
#{_neat-float-direction($grid)}: auto;
|
33
|
+
}
|
34
|
+
|
35
|
+
position: relative;
|
36
|
+
}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
/// Creates a series of guide lines using the `background-image` property on a
|
3
|
+
/// grid container to visualise the columns and gutters of the grid.
|
4
|
+
///
|
5
|
+
/// @group features
|
6
|
+
///
|
7
|
+
/// @name Grid visual
|
8
|
+
///
|
9
|
+
/// @argument {color} $color
|
10
|
+
/// The color of the guide lines created.
|
11
|
+
///
|
12
|
+
/// @argument {map} $grid [$neat-grid]
|
13
|
+
/// The grid used to determine the guides
|
14
|
+
///
|
15
|
+
/// @example scss
|
16
|
+
/// .element {
|
17
|
+
/// @include grid-visual;
|
18
|
+
/// }
|
19
|
+
///
|
20
|
+
/// @example css
|
21
|
+
/// .element {
|
22
|
+
/// background-image: repeating-linear-gradient( … ) ;
|
23
|
+
/// }
|
24
|
+
|
25
|
+
@mixin grid-visual($color: null, $grid: $neat-grid) {
|
26
|
+
@if not $color {
|
27
|
+
$color: _retrieve-neat-setting($grid, color);
|
28
|
+
}
|
29
|
+
|
30
|
+
$_grid-columns: _retrieve-neat-setting($grid, columns);
|
31
|
+
$_grid-gutter: _retrieve-neat-setting($grid, gutter);
|
32
|
+
$_grid-visual-column: "#{_neat-column-width($grid, 1)} + #{$_grid-gutter}";
|
33
|
+
$_grid-visual:
|
34
|
+
transparent,
|
35
|
+
transparent $_grid-gutter,
|
36
|
+
$color $_grid-gutter,
|
37
|
+
$color calc(#{$_grid-visual-column}),
|
38
|
+
;
|
39
|
+
|
40
|
+
background-image: repeating-linear-gradient(to right, $_grid-visual);
|
41
|
+
}
|
@@ -0,0 +1,74 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
/// This variable is a sass map that overrides Neat's default grid settings.
|
3
|
+
/// Use this to define your project's grid properties including gutters and
|
4
|
+
/// total column count.
|
5
|
+
///
|
6
|
+
/// @type map
|
7
|
+
///
|
8
|
+
/// @group settings
|
9
|
+
///
|
10
|
+
/// @name Neat grid
|
11
|
+
///
|
12
|
+
/// @property {number (unitless)} columns [12]
|
13
|
+
/// Default number of the total grid columns.
|
14
|
+
///
|
15
|
+
/// @property {number (with unit)} gutter [20px]
|
16
|
+
/// Default grid gutter width between columns.
|
17
|
+
///
|
18
|
+
/// @example scss
|
19
|
+
/// $neat-grid: (
|
20
|
+
/// columns: 12,
|
21
|
+
/// gutter: 20px,
|
22
|
+
/// );
|
23
|
+
|
24
|
+
$neat-grid: () !default;
|
25
|
+
|
26
|
+
/// If you need multiple grids in a single project, you can do
|
27
|
+
/// this by defining a new map stored within a variable of your choosing. This
|
28
|
+
/// variable can then be passed directly in to any of Neat's mixins like
|
29
|
+
/// [`grid-column(12, $my-custom-grid)`](#grid-column).
|
30
|
+
///
|
31
|
+
/// Custom grids are especially useful with [`grid-media`](#grid-media). By
|
32
|
+
/// defining a `media` attribute within your custom grid, you are able to easily
|
33
|
+
/// define gutter width and total column count as well the breakpoint at which
|
34
|
+
/// they should activate.
|
35
|
+
///
|
36
|
+
/// @type map
|
37
|
+
///
|
38
|
+
/// @group settings
|
39
|
+
///
|
40
|
+
/// @name Custom grids
|
41
|
+
///
|
42
|
+
/// @property {number (unitless)} columns [12]
|
43
|
+
/// Number of the total grid columns.
|
44
|
+
///
|
45
|
+
/// @property {number (with unit)} gutter [20px]
|
46
|
+
/// Grid gutter width between columns.
|
47
|
+
///
|
48
|
+
/// @property {number (with unit) | string | null} media [null]
|
49
|
+
/// The `@media` definition that is used by the [`grid-media`](#grid-media)
|
50
|
+
/// mixin to determine the media properties.
|
51
|
+
///
|
52
|
+
/// @property {color} color [null]
|
53
|
+
/// The color used by [`grid-visual`](#grid-visual) to create the guides.
|
54
|
+
///
|
55
|
+
/// @property {string} direction [ltr]
|
56
|
+
/// The float direction used throughout the grid.
|
57
|
+
///
|
58
|
+
/// @example scss
|
59
|
+
/// $my-custom-grid: (
|
60
|
+
/// columns: 12,
|
61
|
+
/// gutter: 20px,
|
62
|
+
/// media: 1200px,
|
63
|
+
/// color: rgba(#00d4ff, 0.25),
|
64
|
+
/// direction: ltr,
|
65
|
+
/// );
|
66
|
+
///
|
67
|
+
/// $other-custom-grid-for-print: (
|
68
|
+
/// columns: 14,
|
69
|
+
/// gutter: 1.5rem,
|
70
|
+
/// media: print,
|
71
|
+
/// );
|
72
|
+
///
|
73
|
+
|
74
|
+
$neat-custom-grid: () !default;
|
metadata
ADDED
@@ -0,0 +1,123 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: lifenode
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- nukosuke
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-03-09 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: jekyll
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.7'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.7'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.16'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.16'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '12.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '12.0'
|
55
|
+
description:
|
56
|
+
email:
|
57
|
+
- nukosuke@lavabit.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- LICENSE.txt
|
63
|
+
- README.md
|
64
|
+
- _includes/disqus_comments.html
|
65
|
+
- _includes/google_analytics.html
|
66
|
+
- _includes/head.html
|
67
|
+
- _layouts/default.html
|
68
|
+
- _layouts/home.html
|
69
|
+
- _layouts/page.html
|
70
|
+
- _layouts/post.html
|
71
|
+
- _sass/lifenode.scss
|
72
|
+
- _sass/lifenode/_base.scss
|
73
|
+
- _sass/lifenode/_grid.scss
|
74
|
+
- _sass/lifenode/_header.scss
|
75
|
+
- _sass/lifenode/_mixins.scss
|
76
|
+
- _sass/lifenode/_syntax-highlight.scss
|
77
|
+
- _sass/lifenode/_timeline.scss
|
78
|
+
- _sass/lifenode/neat/_neat.scss
|
79
|
+
- _sass/lifenode/neat/neat/functions/_neat-append-grid-visual.scss
|
80
|
+
- _sass/lifenode/neat/neat/functions/_neat-column-default.scss
|
81
|
+
- _sass/lifenode/neat/neat/functions/_neat-column-ratio.scss
|
82
|
+
- _sass/lifenode/neat/neat/functions/_neat-column-width.scss
|
83
|
+
- _sass/lifenode/neat/neat/functions/_neat-float-direction.scss
|
84
|
+
- _sass/lifenode/neat/neat/functions/_neat-merge-defaults.scss
|
85
|
+
- _sass/lifenode/neat/neat/functions/_neat-opposite-direction.scss
|
86
|
+
- _sass/lifenode/neat/neat/functions/_neat-parse-columns.scss
|
87
|
+
- _sass/lifenode/neat/neat/functions/_neat-parse-media.scss
|
88
|
+
- _sass/lifenode/neat/neat/functions/_retrieve-neat-settings.scss
|
89
|
+
- _sass/lifenode/neat/neat/mixins/_grid-collapse.scss
|
90
|
+
- _sass/lifenode/neat/neat/mixins/_grid-column.scss
|
91
|
+
- _sass/lifenode/neat/neat/mixins/_grid-container.scss
|
92
|
+
- _sass/lifenode/neat/neat/mixins/_grid-media.scss
|
93
|
+
- _sass/lifenode/neat/neat/mixins/_grid-push.scss
|
94
|
+
- _sass/lifenode/neat/neat/mixins/_grid-shift.scss
|
95
|
+
- _sass/lifenode/neat/neat/mixins/_grid-visual.scss
|
96
|
+
- _sass/lifenode/neat/neat/settings/_settings.scss
|
97
|
+
- assets/css/style.scss
|
98
|
+
homepage: https://github.com/nukosuke/lifenode
|
99
|
+
licenses:
|
100
|
+
- MIT
|
101
|
+
metadata:
|
102
|
+
plugin_type: theme
|
103
|
+
post_install_message:
|
104
|
+
rdoc_options: []
|
105
|
+
require_paths:
|
106
|
+
- lib
|
107
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - ">="
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '0'
|
112
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '0'
|
117
|
+
requirements: []
|
118
|
+
rubyforge_project:
|
119
|
+
rubygems_version: 2.5.1
|
120
|
+
signing_key:
|
121
|
+
specification_version: 4
|
122
|
+
summary: Simple theme for Jekyll.
|
123
|
+
test_files: []
|