red-star 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +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.minima.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>
@@ -0,0 +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>
@@ -0,0 +1,27 @@
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
+ <time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
10
+ {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
11
+ {{ page.date | date: date_format }}
12
+ </time>
13
+ {%- if page.author -%}
14
+ • <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span class="p-author h-card" itemprop="name">{{ page.author | escape }}</span></span>
15
+ {%- endif -%}</p>
16
+ </header>
17
+
18
+ <div class="post-content e-content" itemprop="articleBody">
19
+ {{ content }}
20
+ </div>
21
+
22
+ {%- if site.disqus.shortname -%}
23
+ {%- include disqus_comments.html -%}
24
+ {%- endif -%}
25
+
26
+ <a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
27
+ </article>
@@ -0,0 +1,59 @@
1
+ @charset "utf-8";
2
+
3
+ // Define defaults for each variable.
4
+
5
+ $base-font-family: "SF Pro SC","SF Pro Text","SF Pro Icons","PingFang SC","Helvetica Neue","Helvetica","Arial",sans-serif!default;
6
+ $base-font-size: 16px !default;
7
+ $base-font-weight: 400 !default;
8
+ $small-font-size: $base-font-size * 0.875 !default;
9
+ $base-line-height: 1.5 !default;
10
+
11
+ $spacing-unit: 30px !default;
12
+
13
+ $text-color: #111 !default;
14
+ $background-color: #fdfdfd !default;
15
+ $brand-color: #2a7ae2 !default;
16
+
17
+ $grey-color: #828282 !default;
18
+ $grey-color-light: lighten($grey-color, 40%) !default;
19
+ $grey-color-dark: darken($grey-color, 25%) !default;
20
+ $orange-color: #f66a0a !default;
21
+ $table-text-align: left !default;
22
+
23
+ // Width of the content area
24
+ $content-width: 800px !default;
25
+
26
+ $on-palm: 600px !default;
27
+ $on-laptop: 800px !default;
28
+
29
+ $on-medium: $on-palm !default;
30
+ $on-large: $on-laptop !default;
31
+
32
+ $china-red: rgb(159,53,39);
33
+ $china-yellow: rgb(228,178,88);
34
+
35
+ // Use media queries like this:
36
+ // @include media-query($on-palm) {
37
+ // .wrapper {
38
+ // padding-right: $spacing-unit / 2;
39
+ // padding-left: $spacing-unit / 2;
40
+ // }
41
+ // }
42
+ // Notice the following mixin uses max-width, in a deprecated, desktop-first
43
+ // approach, whereas media queries used elsewhere now use min-width.
44
+ @mixin media-query($device) {
45
+ @media screen and (max-width: $device) {
46
+ @content;
47
+ }
48
+ }
49
+
50
+ @mixin relative-font-size($ratio) {
51
+ font-size: $base-font-size * $ratio;
52
+ }
53
+
54
+ // Import partials.
55
+ @import
56
+ "minima/base",
57
+ "minima/layout",
58
+ "minima/syntax-highlighting"
59
+ ;
@@ -0,0 +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
+ }
@@ -0,0 +1,299 @@
1
+ /**
2
+ * Site header
3
+ */
4
+ .site-header {
5
+ border-top: 5px solid $china-yellow;
6
+ border-bottom: 1px solid $grey-color-light;
7
+ min-height: $spacing-unit * 1.865;
8
+ line-height: $base-line-height * $base-font-size * 2.25;
9
+
10
+ // Positioning context for the mobile navigation icon
11
+ position: relative;
12
+ background: $china-red;
13
+ }
14
+
15
+ .site-title {
16
+ @include relative-font-size(1.625);
17
+ font-weight: 300;
18
+ letter-spacing: -1px;
19
+ margin-bottom: 0;
20
+ float: left;
21
+
22
+ @include media-query($on-palm) {
23
+ padding-right: 45px;
24
+ }
25
+
26
+ &,
27
+ &:visited {
28
+ color: $china-yellow;
29
+ }
30
+ }
31
+
32
+ .site-nav {
33
+ position: absolute;
34
+ top: 9px;
35
+ right: $spacing-unit / 2;
36
+ background-color: $background-color;
37
+ border: 1px solid $grey-color-light;
38
+ border-radius: 5px;
39
+ text-align: right;
40
+
41
+ .nav-trigger {
42
+ display: none;
43
+ }
44
+
45
+ .menu-icon {
46
+ float: right;
47
+ width: 36px;
48
+ height: 26px;
49
+ line-height: 0;
50
+ padding-top: 10px;
51
+ text-align: center;
52
+
53
+ > svg path {
54
+ fill: $grey-color-dark;
55
+ }
56
+ }
57
+
58
+ label[for="nav-trigger"] {
59
+ display: block;
60
+ float: right;
61
+ width: 36px;
62
+ height: 36px;
63
+ z-index: 2;
64
+ cursor: pointer;
65
+ }
66
+
67
+ input ~ .trigger {
68
+ clear: both;
69
+ display: none;
70
+ }
71
+
72
+ input:checked ~ .trigger {
73
+ display: block;
74
+ padding-bottom: 5px;
75
+ }
76
+
77
+ .page-link {
78
+ color: $china-yellow;
79
+ line-height: $base-line-height;
80
+ display: block;
81
+ padding: 5px 10px;
82
+
83
+ // Gaps between nav items, but not on the last one
84
+ &:not(:last-child) {
85
+ margin-right: 0;
86
+ }
87
+ margin-left: 20px;
88
+ }
89
+
90
+ @media screen and (min-width: $on-medium) {
91
+ position: static;
92
+ float: right;
93
+ border: none;
94
+ background-color: inherit;
95
+
96
+ label[for="nav-trigger"] {
97
+ display: none;
98
+ }
99
+
100
+ .menu-icon {
101
+ display: none;
102
+ }
103
+
104
+ input ~ .trigger {
105
+ display: block;
106
+ }
107
+
108
+ .page-link {
109
+ display: inline;
110
+ padding: 0;
111
+
112
+ &:not(:last-child) {
113
+ margin-right: 20px;
114
+ }
115
+ margin-left: auto;
116
+ }
117
+ }
118
+ }
119
+
120
+
121
+
122
+ /**
123
+ * Site footer
124
+ */
125
+ .site-footer {
126
+ border-top: 1px solid $grey-color-light;
127
+ padding: $spacing-unit 0;
128
+ }
129
+
130
+ .footer-heading {
131
+ @include relative-font-size(1.125);
132
+ margin-bottom: $spacing-unit / 2;
133
+ }
134
+
135
+ .contact-list,
136
+ .social-media-list {
137
+ list-style: none;
138
+ margin-left: 0;
139
+ }
140
+
141
+ .footer-col-wrapper {
142
+ @include relative-font-size(0.9375);
143
+ color: $grey-color;
144
+ margin-left: -$spacing-unit / 2;
145
+ @extend %clearfix;
146
+ }
147
+
148
+ .footer-col {
149
+ width: -webkit-calc(100% - (#{$spacing-unit} / 2));
150
+ width: calc(100% - (#{$spacing-unit} / 2));
151
+ margin-bottom: $spacing-unit / 2;
152
+ padding-left: $spacing-unit / 2;
153
+ }
154
+
155
+ .footer-col-1,
156
+ .footer-col-2 {
157
+ width: -webkit-calc(50% - (#{$spacing-unit} / 2));
158
+ width: calc(50% - (#{$spacing-unit} / 2));
159
+ }
160
+
161
+ .footer-col-3 {
162
+ width: -webkit-calc(100% - (#{$spacing-unit} / 2));
163
+ width: calc(100% - (#{$spacing-unit} / 2));
164
+ }
165
+
166
+ @media screen and (min-width: $on-large) {
167
+ .footer-col-1 {
168
+ width: -webkit-calc(35% - (#{$spacing-unit} / 2));
169
+ width: calc(35% - (#{$spacing-unit} / 2));
170
+ }
171
+
172
+ .footer-col-2 {
173
+ width: -webkit-calc(20% - (#{$spacing-unit} / 2));
174
+ width: calc(20% - (#{$spacing-unit} / 2));
175
+ }
176
+
177
+ .footer-col-3 {
178
+ width: -webkit-calc(45% - (#{$spacing-unit} / 2));
179
+ width: calc(45% - (#{$spacing-unit} / 2));
180
+ }
181
+ }
182
+
183
+ @media screen and (min-width: $on-medium) {
184
+ .footer-col {
185
+ float: left;
186
+ }
187
+ }
188
+
189
+
190
+
191
+ /**
192
+ * Page content
193
+ */
194
+ .page-content {
195
+ padding: $spacing-unit 0;
196
+ flex: 1 0 auto;
197
+ }
198
+
199
+ .page-heading {
200
+ @include relative-font-size(2);
201
+ }
202
+
203
+ .post-list-heading {
204
+ @include relative-font-size(1.75);
205
+ }
206
+
207
+ .post-list {
208
+ margin-left: 0;
209
+ list-style: none;
210
+
211
+ > li {
212
+ margin-bottom: $spacing-unit;
213
+ }
214
+ }
215
+
216
+ .post-meta {
217
+ font-size: $small-font-size;
218
+ color: $grey-color;
219
+ }
220
+
221
+ .post-link {
222
+ display: block;
223
+ @include relative-font-size(1.5);
224
+ }
225
+
226
+
227
+
228
+ /**
229
+ * Posts
230
+ */
231
+ .post-header {
232
+ margin-bottom: $spacing-unit;
233
+ }
234
+
235
+ .post-title,
236
+ .post-content h1 {
237
+ @include relative-font-size(2.625);
238
+ letter-spacing: -1px;
239
+ line-height: 1;
240
+
241
+ @media screen and (min-width: $on-large) {
242
+ @include relative-font-size(2.625);
243
+ }
244
+ }
245
+
246
+ .post-content {
247
+ margin-bottom: $spacing-unit;
248
+
249
+ h2 {
250
+ @include relative-font-size(1.75);
251
+
252
+ @media screen and (min-width: $on-large) {
253
+ @include relative-font-size(2);
254
+ }
255
+ }
256
+
257
+ h3 {
258
+ @include relative-font-size(1.375);
259
+
260
+ @media screen and (min-width: $on-large) {
261
+ @include relative-font-size(1.625);
262
+ }
263
+ }
264
+
265
+ h4 {
266
+ @include relative-font-size(1.125);
267
+
268
+ @media screen and (min-width: $on-large) {
269
+ @include relative-font-size(1.25);
270
+ }
271
+ }
272
+ }
273
+
274
+
275
+ .social-media-list {
276
+ display: table;
277
+ margin: 0 auto;
278
+ li {
279
+ float: left;
280
+ margin: 0 5px;
281
+ &:first-of-type { margin-left: 0 }
282
+ &:last-of-type { margin-right: 0 }
283
+ a {
284
+ display: block;
285
+ padding: $spacing-unit / 4;
286
+ border: 1px solid $grey-color-light
287
+ }
288
+ &:hover .svg-icon { fill: currentColor; }
289
+ }
290
+ }
291
+
292
+
293
+ /**
294
+ * Grid helpers
295
+ */
296
+ .one-half {
297
+ width: -webkit-calc(50% - (#{$spacing-unit} / 2));
298
+ width: calc(50% - (#{$spacing-unit} / 2));
299
+ }