minima-rock 0.3.0 → 0.3.1

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.
data/_layouts/home.html CHANGED
@@ -1,34 +1,34 @@
1
- ---
2
- layout: default
3
- ---
4
-
5
- <div class="home">
6
- {%- if page.title -%}
7
- <h1 class="page-heading">{{ page.title }}</h1>
8
- {%- endif -%}
9
-
10
- {{ content }}
11
-
12
- {%- if site.posts.size > 0 -%}
13
- <h2 class="post-list-heading">{{ page.list_title | default: "Posts" }}</h2>
14
- <ul class="post-list">
15
- {%- for post in site.posts -%}
16
- <li>
17
- {%- assign date_format = site.date_format | default: "%b %-d, %Y" -%}
18
- <span class="post-meta">{{ post.date | date: date_format }}</span>
19
- <h3>
20
- <a class="post-link" href="{{ post.url | relative_url }}">
21
- {{ post.title | escape }}
22
- </a>
23
- </h3>
24
- {%- if site.show_excerpts -%}
25
- {{ post.excerpt }}
26
- {%- endif -%}
27
- </li>
28
- {%- endfor -%}
29
- </ul>
30
-
31
- <p class="feed-subscribe"><svg class="svg-icon orange"><use xlink:href="{{ '/assets/minima-social-icons.svg#rss' | relative_url }}"></use></svg><a href="{{ "/feed.xml" | relative_url }}">Subscribe</a></p>
32
- {%- endif -%}
33
-
34
- </div>
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="home">
6
+ {%- if page.title -%}
7
+ <h1 class="page-heading">{{ page.title }}</h1>
8
+ {%- endif -%}
9
+
10
+ {{ content }}
11
+
12
+ {%- if site.posts.size > 0 -%}
13
+ <h2 class="post-list-heading">{{ page.list_title | default: "Posts" }}</h2>
14
+ <ul class="post-list">
15
+ {%- for post in site.posts -%}
16
+ <li>
17
+ {%- assign date_format = site.date_format | default: "%b %-d, %Y" -%}
18
+ <span class="post-meta">{{ post.date | date: date_format }}</span>
19
+ <h3>
20
+ <a class="post-link" href="{{ post.url | relative_url }}">
21
+ {{ post.title | escape }}
22
+ </a>
23
+ </h3>
24
+ {%- if site.show_excerpts -%}
25
+ {{ post.excerpt }}
26
+ {%- endif -%}
27
+ </li>
28
+ {%- endfor -%}
29
+ </ul>
30
+
31
+ <p class="feed-subscribe"><svg class="svg-icon orange"><use xlink:href="{{ '/assets/minima-social-icons.svg#rss' | relative_url }}"></use></svg><a href="{{ "/feed.xml" | relative_url }}">Subscribe</a></p>
32
+ {%- endif -%}
33
+
34
+ </div>
data/_layouts/page.html CHANGED
@@ -1,14 +1,14 @@
1
- ---
2
- layout: default
3
- ---
4
- <article class="post">
5
-
6
- <header class="post-header">
7
- <h1 class="post-title">{{ page.title | escape }}</h1>
8
- </header>
9
-
10
- <div class="post-content">
11
- {{ content }}
12
- </div>
13
-
14
- </article>
1
+ ---
2
+ layout: default
3
+ ---
4
+ <article class="post">
5
+
6
+ <header class="post-header">
7
+ <h1 class="post-title">{{ page.title | escape }}</h1>
8
+ </header>
9
+
10
+ <div class="post-content">
11
+ {{ content }}
12
+ </div>
13
+
14
+ </article>
data/_layouts/post.html CHANGED
@@ -1,35 +1,35 @@
1
- ---
2
- layout: default
3
- ---
4
- <article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
5
-
6
- <header class="post-header">
7
- <h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
8
- <p class="post-meta">
9
- {%- assign date_format = site.date_format | default: "%b %-d, %Y" -%}
10
- <time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
11
- {{ page.date | date: date_format }}
12
- </time>
13
- {%- if page.modified_date -%}
14
- / Last modified at:
15
- <time class="dt-published" datetime="{{ page.modified_date | date_to_xmlschema }}" itemprop="dateModified">
16
- {{ page.modified_date | date: date_format }}
17
- </time>
18
- {%- endif -%}
19
- {%- if page.author -%}
20
- • <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span class="p-author h-card" itemprop="name">{{ page.author | escape }}</span></span>
21
- {%- endif -%}
22
- {% include tags_bar.html %}
23
- </p>
24
- </header>
25
-
26
- <div class="post-content e-content" itemprop="articleBody">
27
- {{ content }}
28
- </div>
29
-
30
- {%- include share_bar.html -%}
31
-
32
- {%- include disqus_comments.html -%}
33
-
34
- <a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
35
- </article>
1
+ ---
2
+ layout: default
3
+ ---
4
+ <article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
5
+
6
+ <header class="post-header">
7
+ <h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
8
+ <p class="post-meta">
9
+ {%- assign date_format = site.date_format | default: "%b %-d, %Y" -%}
10
+ <time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
11
+ {{ page.date | date: date_format }}
12
+ </time>
13
+ {%- if page.modified_date -%}
14
+ / Last modified at:
15
+ <time class="dt-published" datetime="{{ page.modified_date | date_to_xmlschema }}" itemprop="dateModified">
16
+ {{ page.modified_date | date: date_format }}
17
+ </time>
18
+ {%- endif -%}
19
+ {%- if page.author -%}
20
+ • <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span class="p-author h-card" itemprop="name">{{ page.author | escape }}</span></span>
21
+ {%- endif -%}
22
+ {% include tags_bar.html %}
23
+ </p>
24
+ </header>
25
+
26
+ <div class="post-content e-content" itemprop="articleBody">
27
+ {{ content }}
28
+ </div>
29
+
30
+ {%- include share_bar.html -%}
31
+
32
+ {%- include disqus_comments.html -%}
33
+
34
+ <a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
35
+ </article>
@@ -1,256 +1,256 @@
1
- /**
2
- * Reset some basic elements
3
- */
4
- body, h1, h2, h3, h4, h5, h6,
5
- p, blockquote, pre, hr,
6
- dl, dd, ol, ul, figure {
7
- margin: 0;
8
- padding: 0;
9
-
10
- }
11
-
12
-
13
-
14
- /**
15
- * Basic styling
16
- */
17
- body {
18
- font: $base-font-weight #{$base-font-size}/#{$base-line-height} $base-font-family;
19
- color: $text-color;
20
- background-color: $background-color;
21
- -webkit-text-size-adjust: 100%;
22
- -webkit-font-feature-settings: "kern" 1;
23
- -moz-font-feature-settings: "kern" 1;
24
- -o-font-feature-settings: "kern" 1;
25
- font-feature-settings: "kern" 1;
26
- font-kerning: normal;
27
- display: flex;
28
- min-height: 100vh;
29
- flex-direction: column;
30
- }
31
-
32
-
33
-
34
- /**
35
- * Set `margin-bottom` to maintain vertical rhythm
36
- */
37
- h1, h2, h3, h4, h5, h6,
38
- p, blockquote, pre,
39
- ul, ol, dl, figure,
40
- %vertical-rhythm {
41
- margin-bottom: $spacing-unit / 2;
42
- }
43
-
44
-
45
-
46
- /**
47
- * `main` element
48
- */
49
- main {
50
- display: block; /* Default value of `display` of `main` element is 'inline' in IE 11. */
51
- }
52
-
53
-
54
-
55
- /**
56
- * Images
57
- */
58
- img {
59
- max-width: 100%;
60
- vertical-align: middle;
61
- }
62
-
63
-
64
-
65
- /**
66
- * Figures
67
- */
68
- figure > img {
69
- display: block;
70
- }
71
-
72
- figcaption {
73
- font-size: $small-font-size;
74
- }
75
-
76
-
77
-
78
- /**
79
- * Lists
80
- */
81
- ul, ol {
82
- margin-left: $spacing-unit;
83
- }
84
-
85
- li {
86
- > ul,
87
- > ol {
88
- margin-bottom: 0;
89
- }
90
- }
91
-
92
-
93
-
94
- /**
95
- * Headings
96
- */
97
- h1, h2, h3, h4, h5, h6 {
98
- font-weight: $base-font-weight;
99
- }
100
-
101
-
102
-
103
- /**
104
- * Links
105
- */
106
- a {
107
- color: $brand-color;
108
- text-decoration: none;
109
-
110
- &:visited {
111
- color: darken($brand-color, 15%);
112
- }
113
-
114
- &:hover {
115
- color: $text-color;
116
- text-decoration: underline;
117
- }
118
-
119
- .social-media-list &:hover {
120
- text-decoration: none;
121
-
122
- .username {
123
- text-decoration: underline;
124
- }
125
- }
126
- }
127
-
128
-
129
- /**
130
- * Blockquotes
131
- */
132
- blockquote {
133
- color: $grey-color;
134
- border-left: 4px solid $grey-color-light;
135
- padding-left: $spacing-unit / 2;
136
- @include relative-font-size(1.125);
137
- letter-spacing: -1px;
138
- font-style: italic;
139
-
140
- > :last-child {
141
- margin-bottom: 0;
142
- }
143
- }
144
-
145
-
146
-
147
- /**
148
- * Code formatting
149
- */
150
- pre,
151
- code {
152
- @include relative-font-size(0.9375);
153
- border: 1px solid $grey-color-light;
154
- border-radius: 3px;
155
- background-color: #eef;
156
- }
157
-
158
- code {
159
- padding: 1px 5px;
160
- }
161
-
162
- pre {
163
- padding: 8px 12px;
164
- overflow-x: auto;
165
-
166
- > code {
167
- border: 0;
168
- padding-right: 0;
169
- padding-left: 0;
170
- }
171
- }
172
-
173
-
174
-
175
- /**
176
- * Wrapper
177
- */
178
- .wrapper {
179
- max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit}));
180
- max-width: calc(#{$content-width} - (#{$spacing-unit}));
181
- margin-right: auto;
182
- margin-left: auto;
183
- padding-right: $spacing-unit / 2;
184
- padding-left: $spacing-unit / 2;
185
- @extend %clearfix;
186
-
187
- @media screen and (min-width: $on-large) {
188
- max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit} * 2));
189
- max-width: calc(#{$content-width} - (#{$spacing-unit} * 2));
190
- padding-right: $spacing-unit;
191
- padding-left: $spacing-unit;
192
- }
193
- }
194
-
195
-
196
-
197
- /**
198
- * Clearfix
199
- */
200
- %clearfix:after {
201
- content: "";
202
- display: table;
203
- clear: both;
204
- }
205
-
206
-
207
-
208
- /**
209
- * Icons
210
- */
211
-
212
- .orange {
213
- color: $orange-color;
214
- }
215
-
216
- .grey {
217
- color: $grey-color;
218
- }
219
-
220
- .svg-icon {
221
- width: 16px;
222
- height: 16px;
223
- display: inline-block;
224
- fill: currentColor;
225
- padding: 5px 3px 2px 5px;
226
- vertical-align: text-bottom;
227
- }
228
-
229
-
230
- /**
231
- * Tables
232
- */
233
- table {
234
- margin-bottom: $spacing-unit;
235
- width: 100%;
236
- text-align: $table-text-align;
237
- color: lighten($text-color, 18%);
238
- border-collapse: collapse;
239
- border: 1px solid $grey-color-light;
240
- tr {
241
- &:nth-child(even) {
242
- background-color: lighten($grey-color-light, 6%);
243
- }
244
- }
245
- th, td {
246
- padding: ($spacing-unit / 3) ($spacing-unit / 2);
247
- }
248
- th {
249
- background-color: lighten($grey-color-light, 3%);
250
- border: 1px solid darken($grey-color-light, 4%);
251
- border-bottom-color: darken($grey-color-light, 12%);
252
- }
253
- td {
254
- border: 1px solid $grey-color-light;
255
- }
256
- }
1
+ /**
2
+ * Reset some basic elements
3
+ */
4
+ body, h1, h2, h3, h4, h5, h6,
5
+ p, blockquote, pre, hr,
6
+ dl, dd, ol, ul, figure {
7
+ margin: 0;
8
+ padding: 0;
9
+
10
+ }
11
+
12
+
13
+
14
+ /**
15
+ * Basic styling
16
+ */
17
+ body {
18
+ font: $base-font-weight #{$base-font-size}/#{$base-line-height} $base-font-family;
19
+ color: $text-color;
20
+ background-color: $background-color;
21
+ -webkit-text-size-adjust: 100%;
22
+ -webkit-font-feature-settings: "kern" 1;
23
+ -moz-font-feature-settings: "kern" 1;
24
+ -o-font-feature-settings: "kern" 1;
25
+ font-feature-settings: "kern" 1;
26
+ font-kerning: normal;
27
+ display: flex;
28
+ min-height: 100vh;
29
+ flex-direction: column;
30
+ }
31
+
32
+
33
+
34
+ /**
35
+ * Set `margin-bottom` to maintain vertical rhythm
36
+ */
37
+ h1, h2, h3, h4, h5, h6,
38
+ p, blockquote, pre,
39
+ ul, ol, dl, figure,
40
+ %vertical-rhythm {
41
+ margin-bottom: $spacing-unit / 2;
42
+ }
43
+
44
+
45
+
46
+ /**
47
+ * `main` element
48
+ */
49
+ main {
50
+ display: block; /* Default value of `display` of `main` element is 'inline' in IE 11. */
51
+ }
52
+
53
+
54
+
55
+ /**
56
+ * Images
57
+ */
58
+ img {
59
+ max-width: 100%;
60
+ vertical-align: middle;
61
+ }
62
+
63
+
64
+
65
+ /**
66
+ * Figures
67
+ */
68
+ figure > img {
69
+ display: block;
70
+ }
71
+
72
+ figcaption {
73
+ font-size: $small-font-size;
74
+ }
75
+
76
+
77
+
78
+ /**
79
+ * Lists
80
+ */
81
+ ul, ol {
82
+ margin-left: $spacing-unit;
83
+ }
84
+
85
+ li {
86
+ > ul,
87
+ > ol {
88
+ margin-bottom: 0;
89
+ }
90
+ }
91
+
92
+
93
+
94
+ /**
95
+ * Headings
96
+ */
97
+ h1, h2, h3, h4, h5, h6 {
98
+ font-weight: $base-font-weight;
99
+ }
100
+
101
+
102
+
103
+ /**
104
+ * Links
105
+ */
106
+ a {
107
+ color: $brand-color;
108
+ text-decoration: none;
109
+
110
+ &:visited {
111
+ color: darken($brand-color, 15%);
112
+ }
113
+
114
+ &:hover {
115
+ color: $text-color;
116
+ text-decoration: underline;
117
+ }
118
+
119
+ .social-media-list &:hover {
120
+ text-decoration: none;
121
+
122
+ .username {
123
+ text-decoration: underline;
124
+ }
125
+ }
126
+ }
127
+
128
+
129
+ /**
130
+ * Blockquotes
131
+ */
132
+ blockquote {
133
+ color: $grey-color;
134
+ border-left: 4px solid $grey-color-light;
135
+ padding-left: $spacing-unit / 2;
136
+ @include relative-font-size(1.125);
137
+ letter-spacing: -1px;
138
+ font-style: italic;
139
+
140
+ > :last-child {
141
+ margin-bottom: 0;
142
+ }
143
+ }
144
+
145
+
146
+
147
+ /**
148
+ * Code formatting
149
+ */
150
+ pre,
151
+ code {
152
+ @include relative-font-size(0.9375);
153
+ border: 1px solid $grey-color-light;
154
+ border-radius: 3px;
155
+ background-color: #eef;
156
+ }
157
+
158
+ code {
159
+ padding: 1px 5px;
160
+ }
161
+
162
+ pre {
163
+ padding: 8px 12px;
164
+ overflow-x: auto;
165
+
166
+ > code {
167
+ border: 0;
168
+ padding-right: 0;
169
+ padding-left: 0;
170
+ }
171
+ }
172
+
173
+
174
+
175
+ /**
176
+ * Wrapper
177
+ */
178
+ .wrapper {
179
+ max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit}));
180
+ max-width: calc(#{$content-width} - (#{$spacing-unit}));
181
+ margin-right: auto;
182
+ margin-left: auto;
183
+ padding-right: $spacing-unit / 2;
184
+ padding-left: $spacing-unit / 2;
185
+ @extend %clearfix;
186
+
187
+ @media screen and (min-width: $on-large) {
188
+ max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit} * 2));
189
+ max-width: calc(#{$content-width} - (#{$spacing-unit} * 2));
190
+ padding-right: $spacing-unit;
191
+ padding-left: $spacing-unit;
192
+ }
193
+ }
194
+
195
+
196
+
197
+ /**
198
+ * Clearfix
199
+ */
200
+ %clearfix:after {
201
+ content: "";
202
+ display: table;
203
+ clear: both;
204
+ }
205
+
206
+
207
+
208
+ /**
209
+ * Icons
210
+ */
211
+
212
+ .orange {
213
+ color: $orange-color;
214
+ }
215
+
216
+ .grey {
217
+ color: $grey-color;
218
+ }
219
+
220
+ .svg-icon {
221
+ width: 16px;
222
+ height: 16px;
223
+ display: inline-block;
224
+ fill: currentColor;
225
+ padding: 5px 3px 2px 5px;
226
+ vertical-align: text-bottom;
227
+ }
228
+
229
+
230
+ /**
231
+ * Tables
232
+ */
233
+ table {
234
+ margin-bottom: $spacing-unit;
235
+ width: 100%;
236
+ text-align: $table-text-align;
237
+ color: lighten($text-color, 18%);
238
+ border-collapse: collapse;
239
+ border: 1px solid $grey-color-light;
240
+ tr {
241
+ &:nth-child(even) {
242
+ background-color: lighten($grey-color-light, 6%);
243
+ }
244
+ }
245
+ th, td {
246
+ padding: ($spacing-unit / 3) ($spacing-unit / 2);
247
+ }
248
+ th {
249
+ background-color: lighten($grey-color-light, 3%);
250
+ border: 1px solid darken($grey-color-light, 4%);
251
+ border-bottom-color: darken($grey-color-light, 12%);
252
+ }
253
+ td {
254
+ border: 1px solid $grey-color-light;
255
+ }
256
+ }