jekyll-theme-yat 1.3.0 → 1.4.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,10 +3,6 @@
3
3
  */
4
4
  .common-list {
5
5
  @include relative-font-size(1.0);
6
-
7
- background: #eaeaea;
8
- box-shadow: 0px 0px 3px 0px #a9a9a9;
9
- border-radius: 3px;
10
6
  min-width: 200px;
11
7
 
12
8
  ul {
@@ -15,7 +11,7 @@
15
11
  }
16
12
 
17
13
  li {
18
- border-bottom: solid 1px #fff;
14
+ border-bottom: solid 1px #00000018;
19
15
 
20
16
  &:last-child {
21
17
  border-bottom: none;
@@ -26,8 +22,8 @@
26
22
  justify-content: space-between;
27
23
  padding: 8px 12px;
28
24
  text-decoration: none;
29
- font-weight: 600;
30
- color: mix($theme-color, #666);
25
+ font-weight: normal;
26
+ color: $text-color;
31
27
  transition: background 0.2s;
32
28
 
33
29
  &:hover {
@@ -40,7 +36,7 @@
40
36
  display: inline-block;
41
37
  border-radius: 10px;
42
38
  align-self: center;
43
- background: darken(invert($theme-color), 20%);
39
+ background: #000000bd;
44
40
  padding: 0px 8px;
45
41
  margin-left: 20px;
46
42
  color: $white-color;
@@ -113,7 +113,7 @@ body {
113
113
  // Main look
114
114
 
115
115
  .ct-language-selected {
116
- background: lighten($theme-color, 10%) !important;
116
+ background: darken($theme-color, 5%) !important;
117
117
  }
118
118
 
119
119
  .ct-language-dropdown {
@@ -130,13 +130,23 @@ body {
130
130
  margin-top: 0;
131
131
  z-index: 200;
132
132
  border-radius: 3px;
133
- padding-top: 8px;
134
- padding-bottom: 8px;
135
133
  visibility: hidden;
136
134
 
137
135
  li {
138
136
  padding: 5px;
139
137
 
138
+ &:first-child {
139
+ padding-top: 12px;
140
+ }
141
+
142
+ &:last-child {
143
+ padding-bottom: 12px;
144
+ }
145
+
146
+ &:not(:last-child) {
147
+ border-bottom: 1px solid rgba(0, 0, 0, .04);
148
+ }
149
+
140
150
  a {
141
151
  display: block;
142
152
  color: invert($theme-color);
@@ -174,6 +184,7 @@ body {
174
184
  margin-top: 8px;
175
185
  max-height: 10000px;
176
186
  visibility: visible;
187
+ box-shadow: 0 0 9px 3px rgba(0, 0, 0, .06);
177
188
  }
178
189
  }
179
190
 
@@ -2,18 +2,17 @@
2
2
 
3
3
  // Define defaults for each variable.
4
4
 
5
- $base-font-family: "Helvetica Neue", Helvetica, Arial, sans-serif, Oswald,
6
- "Apple Color Emoji", "Open Sans", "FontAwesome", !default;
7
- $base-font-size: 14px !default;
5
+ $base-font-family: "Noto Sans Light", AppleSDGothicNeo-Regular, "Malgun Gothic", "Apple Color Emoji", Helvetica, Arial, Oswald, sans-serif, !default;
6
+ $base-font-size: 14px !default;
8
7
  $base-font-weight: 400 !default;
9
8
  $small-font-size: $base-font-size * 0.875 !default;
10
- $base-line-height: 1.5 !default;
9
+ $base-line-height: 1.6 !default;
11
10
 
12
11
  $spacing-unit: 30px !default;
13
12
 
14
- $text-color: #333 !default;
15
- $background-color: #fefefe !default;
16
- $brand-color: #2a7ae2 !default;
13
+ $text-color: #313b3f !default;
14
+ $background-color: #fff !default;
15
+ $brand-color: #ff5100 !default;
17
16
 
18
17
  $grey-color: #828282 !default;
19
18
  $grey-color-light: lighten($grey-color, 40%) !default;
@@ -24,16 +23,16 @@ $white-color: #fdfdfd !default;
24
23
  $table-text-align: left !default;
25
24
 
26
25
  $header-height: $base-line-height * $base-font-size * 2.85 !default;
27
- $header-text-color: lighten($white-color, 10%) !default;
26
+ $header-text-color: invert($theme-color) !default;
28
27
  $header-background-color: $theme-color !default;
29
28
 
30
29
  $footer-height: $header-height * 1.05 !default;
31
- $footer-text-color: rgba(lighten(invert($theme-color), 30%), 50%) !default;
30
+ $footer-text-color: lighten(invert($theme-color), 25%) !default;
32
31
  $footer-background-color: darken($theme-color, 5%) !default;
33
32
 
34
- $banner-height: 420px !default;
33
+ $banner-height: 640px !default;
35
34
  $banner-text-color: lighten($white-color, 0%) !default;
36
- $banner-background: darken(#333, 5%) !default;
35
+ $banner-background: rgba(0,0,0,0.8) !default;
37
36
 
38
37
  // Width of the content area
39
38
  $content-width: 920px !default;
@@ -62,7 +61,7 @@ $on-laptop: 800px !default;
62
61
  @import
63
62
  "yat/base",
64
63
  "yat/layout",
65
- "yat/syntax-highlighting",
64
+ // "yat/syntax-highlighting",
66
65
  "misc/article-menu",
67
66
  "misc/common-list",
68
67
  "misc/google-translate"
@@ -14,7 +14,10 @@ dl, dd, ol, ul, figure {
14
14
  * Basic styling
15
15
  */
16
16
  body {
17
- font: $base-font-weight #{$base-font-size}/#{$base-line-height} $base-font-family;
17
+ font-family: $base-font-family;
18
+ font-weight: $base-font-weight;
19
+ font-size: #{$base-font-size};
20
+ line-height: #{$base-line-height};
18
21
  color: $text-color;
19
22
  background-color: $background-color;
20
23
  -webkit-text-size-adjust: 100%;
@@ -106,12 +109,7 @@ a {
106
109
  color: $brand-color;
107
110
  text-decoration: none;
108
111
 
109
- &:visited {
110
- color: darken($brand-color, 15%);
111
- }
112
-
113
112
  &:hover {
114
- color: $text-color;
115
113
  text-decoration: underline;
116
114
  }
117
115
 
@@ -149,22 +147,50 @@ blockquote {
149
147
  pre,
150
148
  code {
151
149
  @include relative-font-size(0.9375);
152
- border-radius: 3px;
153
- background-color: #3d3d3d;
150
+ color: $text-color;
154
151
  }
155
152
 
156
- code {
153
+ *:not(pre) > code {
157
154
  padding: 1px 5px;
155
+ border-radius: 3px;
156
+ color: #fff;
157
+ background-color: #545454;
158
158
  }
159
159
 
160
160
  pre {
161
- padding: 8px 12px;
162
161
  overflow-x: auto;
162
+ position: relative;
163
+ background-color: #f0f0f0;
164
+
165
+ // code language badge
166
+ &:before {
167
+ content: attr(data-lang);
168
+ color: #fff;
169
+ background-color: #ff4e00;
170
+ padding: 0 .5em;
171
+ border-radius: 0 2px;
172
+ text-transform: uppercase;
173
+ text-align: center;
174
+ min-width: 32px;
175
+ display: inline-block;
176
+ position: absolute;
177
+ right: 0;
178
+ }
163
179
 
164
180
  > code {
181
+ display: inline-block;
182
+ padding: 20px!important;
183
+ background-color: transparent;
165
184
  border: 0;
166
- padding-right: 0;
167
- padding-left: 0;
185
+ }
186
+
187
+ table, pre {
188
+ margin-bottom: 0;
189
+
190
+ .gutter, .code {
191
+ padding: 6px;
192
+ border: none;
193
+ }
168
194
  }
169
195
  }
170
196
 
@@ -179,11 +205,6 @@ pre {
179
205
  padding-right: $spacing-unit;
180
206
  padding-left: $spacing-unit;
181
207
  @extend %clearfix;
182
-
183
- @include media-query($on-laptop) {
184
- padding-right: $spacing-unit / 2;
185
- padding-left: $spacing-unit / 2;
186
- }
187
208
  }
188
209
 
189
210
 
@@ -205,7 +226,7 @@ table {
205
226
  margin-bottom: $spacing-unit;
206
227
  width: 100%;
207
228
  text-align: $table-text-align;
208
- color: lighten($text-color, 18%);
229
+ color: lighten($text-color, 5%);
209
230
  border-collapse: collapse;
210
231
 
211
232
  tr {
@@ -11,14 +11,31 @@ html {
11
11
  &[data-scroll-status='top'] {
12
12
  header.site-header-transparent {
13
13
  height: 0;
14
+ margin-top: 20px;
15
+ background-color: transparent;
16
+ transition: 0.1s height,background-color,box-shadow;
14
17
 
15
18
  &.site-header {
16
- text-shadow: 0 0 2px #505050a0;
19
+ .site-brand-inner, .page-link {
20
+ color: #fff;
21
+ transition: 0.1s color;
22
+ }
23
+
24
+ @include media-query($on-laptop) {
25
+ .page-link {
26
+ color: unset;
27
+ }
28
+
29
+ .menu-icon {
30
+ > svg {
31
+ fill: $white-color;
32
+ }
33
+ }
34
+ }
17
35
  }
18
36
  }
19
37
 
20
38
  footer.site-footer {
21
- color: #888;
22
39
  background-color: transparent;
23
40
 
24
41
  .site-footer-inner {
@@ -46,11 +63,24 @@ html {
46
63
  height: $header-height;
47
64
  width: 100%;
48
65
  transition: height 0.2s, text-shadow 0.2s, top 0.2s;
66
+ box-shadow: 0 1px 0 0 rgba(0, 0, 0, .06);
49
67
 
50
68
  // Positioning context for the mobile navigation icon
51
69
  @include flex-sticky(0);
52
70
  z-index: 1000;
53
71
 
72
+ & > .wrapper {
73
+ margin: 0 60px;
74
+ padding: 0;
75
+ max-width: 100%;
76
+ transition: 0.2s margin;
77
+
78
+ @include media-query(1024px) {
79
+ margin: 0 20px;
80
+ max-width: unset;
81
+ }
82
+ }
83
+
54
84
  a {
55
85
  text-decoration: none;
56
86
  }
@@ -68,16 +98,12 @@ html {
68
98
  @include relative-font-size(1.125);
69
99
  font-weight: $base-font-weight;
70
100
  letter-spacing: -1px;
71
- transition: filter 0.2s;
101
+ transition: 0.1s filter color;
72
102
 
73
103
  &, &:visited {
74
104
  color: $header-text-color;
75
105
  }
76
106
 
77
- &:hover {
78
- filter: drop-shadow(0 0 2px #08080880);
79
- }
80
-
81
107
  .site-favicon {
82
108
  display: inline-block;
83
109
  height: $header-height / 1.5;
@@ -87,7 +113,7 @@ html {
87
113
  }
88
114
 
89
115
  .site-nav {
90
- @include relative-font-size(1.025);
116
+ @include relative-font-size(1.125);
91
117
  line-height: $header-height;
92
118
  position: absolute;
93
119
  right: 0;
@@ -102,16 +128,20 @@ html {
102
128
  }
103
129
 
104
130
  .page-link {
105
- color: $header-text-color;
106
131
  line-height: $base-line-height;
132
+ color: $header-text-color;
133
+ transition: 0.1s ease-in-out;
107
134
 
108
135
  // Gaps between nav items, but not on the last one
109
136
  &:not(:last-child) {
110
- margin-right: 20px;
137
+ margin-right: 24px;
138
+ &:hover {
139
+ text-decoration: underline;
140
+ }
111
141
  }
112
142
  }
113
143
 
114
- @include media-query($on-palm) {
144
+ @include media-query($on-laptop) {
115
145
  position: absolute;
116
146
  top: 0;
117
147
  text-align: left;
@@ -128,13 +158,16 @@ html {
128
158
  text-align: center;
129
159
 
130
160
  > svg {
131
- fill: $white-color;
161
+ fill: rgba($header-text-color, 80%);
162
+ transition: 0.1s fill;
132
163
  }
133
164
  }
134
165
 
135
166
  input ~ .trigger {
136
167
  clear: both;
137
168
  display: none;
169
+ border-radius: 3px;
170
+ box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, .06);
138
171
  }
139
172
 
140
173
  input:checked ~ .trigger {
@@ -155,7 +188,7 @@ html {
155
188
  * Site footer
156
189
  */
157
190
  .site-footer {
158
- @include relative-font-size(0.9);
191
+ @include relative-font-size(1.0);
159
192
  color: $footer-text-color;
160
193
  background-color: $footer-background-color;
161
194
  text-align: left;
@@ -163,11 +196,11 @@ html {
163
196
 
164
197
  .site-footer-inner {
165
198
  transition: border-top 0.2s;
166
- padding: $spacing-unit * 0.8 0;
199
+ padding: $spacing-unit * 1.8 0;
167
200
  }
168
201
 
169
202
  a {
170
- $a-color: invert(mix(invert($theme-color), #0030ae));
203
+ $a-color: $brand-color;
171
204
  color: $a-color;
172
205
 
173
206
  &:hover {
@@ -193,6 +226,15 @@ html {
193
226
  @include relative-font-size(2.25);
194
227
  }
195
228
  }
229
+
230
+ .post-tags {
231
+ display: inline-block;
232
+ padding-right: 150px;
233
+
234
+ .post-tag {
235
+ margin: 0 12px 0 0;
236
+ }
237
+ }
196
238
  }
197
239
 
198
240
  /**
@@ -201,7 +243,7 @@ html {
201
243
  .page-content {
202
244
  @extend %flex-1; /* <-- Keep footer on the bottom */
203
245
  -ms-flex: none; /* <-- Fix IE footer issue */
204
- padding: $spacing-unit * 1.5 0;
246
+ padding: $spacing-unit * 2 0;
205
247
  }
206
248
 
207
249
  .page-heading {
@@ -221,20 +263,109 @@ html {
221
263
  list-style: none;
222
264
 
223
265
  > li {
224
- margin-bottom: $spacing-unit;
266
+ margin-bottom: $spacing-unit * 1.5;
267
+ padding-bottom: 30px;
268
+
269
+ &:not(:last-child) {
270
+ border-bottom: 1px solid #e3e3e3;
271
+ }
272
+ }
273
+ }
274
+
275
+ .post-title {
276
+ margin-bottom: 2px;
277
+ transition: 0.2s all;
278
+
279
+ a {
280
+ text-decoration: none;
281
+
282
+ &:after {
283
+ content: 'NEW';
284
+ position: absolute;
285
+ margin-left: 8px;
286
+ margin-top: 3px;
287
+ padding: 0px 3px;
288
+ background-color: $brand-color;
289
+ color: #fff;
290
+ font-size: 10px;
291
+ font-weight: 600;
292
+ border-radius: 2px;
293
+ }
294
+
295
+ &:visited:after {
296
+ background-color: #fff;
297
+ }
225
298
  }
226
299
  }
227
300
 
228
301
  .post-meta {
229
- font-size: $small-font-size;
302
+ font-size: $base-font-size;
230
303
  color: $grey-color;
304
+ margin-bottom: $spacing-unit * 0.5;
231
305
  }
232
306
 
233
307
  .post-link {
234
308
  @include relative-font-size(1.5);
235
-
236
- display: block;
237
309
  font-weight: $base-font-weight * 1.5;
310
+ color: #15171a;
311
+ }
312
+
313
+ .post-excerpt {
314
+ color: #777;
315
+ }
316
+
317
+ .post-tags .post-tag {
318
+ text-decoration: none;
319
+ border: 1px solid;
320
+ padding: 2px 4px;
321
+ border-radius: 2px;
322
+ transition: color 0.2s;
323
+
324
+ &:not(:first-child) {
325
+ margin-left: 8px;
326
+ }
327
+
328
+ &:hover {
329
+ color: #777;
330
+ }
331
+ }
332
+
333
+ .paginator {
334
+ text-align: center;
335
+
336
+ & > .previous:before {
337
+ content: ' ';
338
+ border: solid #787878;
339
+ border-width: 0 2px 2px 0;
340
+ display: inline-block;
341
+ padding: 4px;
342
+ margin-right: 8px;
343
+ transform: rotate(135deg);
344
+ -webkit-transform: rotate(135deg);
345
+ }
346
+
347
+ & > .next:after {
348
+ content: ' ';
349
+ border: solid #787878;
350
+ border-width: 0 2px 2px 0;
351
+ display: inline-block;
352
+ padding: 4px;
353
+ margin-left: 8px;
354
+ transform: rotate(-45deg);
355
+ -webkit-transform: rotate(-45deg);
356
+ }
357
+
358
+ .previous span, .next span {
359
+ color: #b3b3b3;
360
+ }
361
+
362
+ a:hover {
363
+ color: #000;
364
+ }
365
+
366
+ .indicator {
367
+ padding: 0 15px;
368
+ }
238
369
  }
239
370
  }
240
371
 
@@ -245,6 +376,20 @@ html {
245
376
  .post {
246
377
  @extend %post-header;
247
378
 
379
+ .post-header {
380
+ margin: 50px auto 60px;
381
+ padding: 0 0 20px;
382
+ border-bottom: 1px solid #ebebeb;
383
+
384
+ .post-title {
385
+ margin-bottom: 2px;
386
+ }
387
+
388
+ .post-meta {
389
+ color: #808080;
390
+ }
391
+ }
392
+
248
393
  .post-content {
249
394
  margin-bottom: $spacing-unit;
250
395
 
@@ -271,9 +416,73 @@ html {
271
416
  @include relative-font-size(1.125);
272
417
  }
273
418
  }
419
+
420
+ img, iframe {
421
+ margin-left: auto;
422
+ margin-right: auto;
423
+ display: block;
424
+ }
425
+
426
+ h2, h3, h4, h5, h6 {
427
+ margin: 60px 0 19px;
428
+ }
429
+
430
+ p, hr {
431
+ margin-bottom: 24px;
432
+ }
433
+
434
+ hr {
435
+ height: 1px;
436
+ background-color: #ebebeb;
437
+ border: none;
438
+ }
439
+ }
440
+
441
+ .post-related {
442
+ &>*:first-child {
443
+ @include relative-font-size(1.425);
444
+ color: #333;
445
+ margin-bottom: 14px;
446
+ }
447
+
448
+ ul {
449
+ margin-left: 15px;
450
+ .post-link {
451
+ @include relative-font-size(1.075);
452
+ }
453
+
454
+ a {
455
+ color: #666;
456
+
457
+ &:hover {
458
+ color: #333;
459
+ }
460
+
461
+ &:after {
462
+ content: 'NEW';
463
+ position: absolute;
464
+ margin-left: 8px;
465
+ margin-top: 3px;
466
+ padding: 0px 3px;
467
+ background-color: $brand-color;
468
+ color: #fff;
469
+ font-size: 10px;
470
+ font-weight: 600;
471
+ border-radius: 2px;
472
+ }
473
+
474
+ &:visited:after {
475
+ background-color: #fff;
476
+ }
477
+ }
478
+ }
274
479
  }
275
480
  }
276
481
 
482
+ .post-comments {
483
+ padding-top: 25px;
484
+ }
485
+
277
486
 
278
487
  /**
279
488
  * Posts misc
@@ -281,9 +490,35 @@ html {
281
490
  .post-nav {
282
491
  display: flex;
283
492
  justify-content: space-between;
493
+ margin: 72px 0 59px;
494
+ padding: 31px 0 0;
284
495
 
285
496
  a {
286
- display: flex;
497
+ @include relative-font-size(1.125);
498
+ line-height: 15px;
499
+ color: #666;
500
+ }
501
+
502
+ .previous:before {
503
+ content: ' ';
504
+ border: solid #787878;
505
+ border-width: 0 2px 2px 0;
506
+ display: inline-block;
507
+ padding: 4px;
508
+ margin-right: 8px;
509
+ transform: rotate(135deg);
510
+ -webkit-transform: rotate(135deg);
511
+ }
512
+
513
+ .next:after {
514
+ content: ' ';
515
+ border: solid #787878;
516
+ border-width: 0 2px 2px 0;
517
+ display: inline-block;
518
+ padding: 4px;
519
+ margin-left: 8px;
520
+ transform: rotate(-45deg);
521
+ -webkit-transform: rotate(-45deg);
287
522
  }
288
523
  }
289
524
 
@@ -322,6 +557,7 @@ html {
322
557
  height: $banner-height;
323
558
  background-color: $banner-background;
324
559
  transition: height 0.2s;
560
+ margin-bottom: 32px;
325
561
 
326
562
  .page-banner-img {
327
563
  position: absolute;
@@ -343,16 +579,18 @@ html {
343
579
 
344
580
  color: $banner-text-color;
345
581
  padding: 10px 5px;
346
- text-shadow: 1px 1px 2px #333;
582
+ text-shadow: 1px 1px 2px #33333355;
347
583
 
348
584
  & > *:first-child {
349
585
  margin: 0;
350
586
 
351
587
  > :nth-child(1) {
352
- @include relative-font-size(2.825);
588
+ @include relative-font-size(3.9);
353
589
  letter-spacing: -1px;
354
- line-height: 1;
355
- margin-bottom: 10px;
590
+ line-height: 0.95;
591
+ margin-bottom: 18px;
592
+ font-weight: normal;
593
+ transition: 0.2s all;
356
594
 
357
595
  @include media-query($on-palm) {
358
596
  @include relative-font-size(2.425);
@@ -360,13 +598,45 @@ html {
360
598
  }
361
599
 
362
600
  > :nth-child(2) {
363
- font-weight: $base-font-weight * 1.5;
601
+ font-weight: normal;
602
+ margin-bottom: 0;
364
603
  }
365
604
 
366
605
  > :last-child {
367
606
  margin-bottom: 0;
368
607
  }
369
608
  }
609
+
610
+ .post-subtitle {
611
+ @include relative-font-size(1.525);
612
+ color: #ffffffcc;
613
+ padding-right: 280px;
614
+ }
615
+
616
+ .post-meta {
617
+ color: #ffffffcc;
618
+ }
619
+
620
+ .left-vsplit:before {
621
+ background: #e3e3e388;
622
+ }
623
+
624
+ .post-tags {
625
+ color: #999;
626
+ padding-right: 280px;
627
+
628
+ .post-tag {
629
+ @include relative-font-size(1.125);
630
+ display: inline-block;
631
+ text-decoration: none;
632
+ margin: 9px 12px 0 0;
633
+ color: #fff;
634
+
635
+ &:hover {
636
+ text-decoration: underline;
637
+ }
638
+ }
639
+ }
370
640
  }
371
641
 
372
642
  @include media-query($on-palm) {
@@ -391,7 +661,7 @@ html {
391
661
 
392
662
  @include flex-sticky($header-height + 20px);
393
663
 
394
- @include media-query($on-palm) {
664
+ @include media-query($on-laptop) {
395
665
  display: none;
396
666
  }
397
667
 
@@ -419,7 +689,6 @@ html {
419
689
  margin-top: 28px;
420
690
  }
421
691
 
422
-
423
692
  &:hover:before {
424
693
  content: '#';
425
694
  left: -1em;
@@ -432,5 +701,42 @@ html {
432
701
  color: $grey-color;
433
702
  }
434
703
 
704
+ li a {
705
+ &.post-link {
706
+ margin-left: 5px;
707
+ }
708
+
709
+ color: #303030;
710
+
711
+ &:hover {
712
+ color: #000;
713
+ }
714
+
715
+ &:after {
716
+ content: 'NEW';
717
+ position: absolute;
718
+ margin-left: 8px;
719
+ margin-top: 3px;
720
+ padding: 0px 3px;
721
+ background-color: $brand-color;
722
+ color: #fff;
723
+ font-size: 10px;
724
+ font-weight: 600;
725
+ border-radius: 2px;
726
+ }
727
+
728
+ &:visited:after {
729
+ background-color: #fff;
730
+ }
731
+ }
435
732
  }
436
733
 
734
+ .left-vsplit:before {
735
+ content: "";
736
+ display: inline-block;
737
+ width: 1px;
738
+ height: 10px;
739
+ margin: 0 10px;
740
+ background-color: #e3e3e3e3;
741
+ vertical-align: baseline;
742
+ }