beautiful-jekyll-theme 1.1.1 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +5 -5
  2. data/404.html +13 -0
  3. data/{LICENSE.txt → LICENSE} +6 -6
  4. data/README.md +185 -210
  5. data/_data/ui-text.yml +494 -0
  6. data/_includes/comments.html +6 -0
  7. data/_includes/disqus.html +18 -16
  8. data/_includes/ext-css.html +7 -0
  9. data/_includes/ext-js.html +7 -0
  10. data/_includes/fb-comment.html +16 -0
  11. data/_includes/footer-minimal.html +13 -14
  12. data/_includes/footer-scripts.html +16 -18
  13. data/_includes/footer.html +30 -170
  14. data/_includes/google_analytics.html +13 -11
  15. data/_includes/gtag.html +10 -0
  16. data/_includes/gtm_body.html +5 -0
  17. data/_includes/gtm_head.html +11 -0
  18. data/_includes/head.html +77 -45
  19. data/_includes/header.html +47 -39
  20. data/_includes/matomo.html +17 -0
  21. data/_includes/nav.html +38 -51
  22. data/_includes/readtime.html +16 -0
  23. data/_includes/social-networks-links.html +267 -0
  24. data/_includes/social-share.html +32 -24
  25. data/_includes/staticman-comment.html +22 -0
  26. data/_includes/staticman-comments.html +83 -0
  27. data/_includes/utterances-comment.html +13 -0
  28. data/_layouts/base.html +16 -9
  29. data/_layouts/default.html +2 -2
  30. data/_layouts/home.html +88 -0
  31. data/_layouts/minimal.html +14 -8
  32. data/_layouts/page.html +3 -7
  33. data/_layouts/post.html +40 -16
  34. data/assets/css/main-minimal.css +2 -2
  35. data/assets/css/main.css +531 -250
  36. data/assets/css/pygment_highlights.css +0 -5
  37. data/assets/css/staticman.css +180 -0
  38. data/assets/img/404-southpark.jpg +0 -0
  39. data/assets/img/avatar-icon.png +0 -0
  40. data/assets/img/bgimage.png +0 -0
  41. data/assets/img/hello_world.jpeg +0 -0
  42. data/assets/img/install-steps.gif +0 -0
  43. data/assets/img/path.jpg +0 -0
  44. data/assets/img/thumb.png +0 -0
  45. data/assets/js/main.js +64 -103
  46. data/assets/js/staticman.js +54 -0
  47. data/{assets/feed.xml → feed.xml} +8 -4
  48. data/tags.html +36 -0
  49. metadata +57 -28
  50. data/_includes/navbarlink.html +0 -16
  51. data/_layouts/tag_index.html +0 -41
  52. data/assets/css/bootstrap-theme.css +0 -476
  53. data/assets/css/bootstrap-theme.css.map +0 -1
  54. data/assets/css/bootstrap-theme.min.css +0 -5
  55. data/assets/css/bootstrap.css +0 -6566
  56. data/assets/css/bootstrap.css.map +0 -1
  57. data/assets/css/bootstrap.min.css +0 -5
  58. data/assets/css/normalize.css +0 -427
  59. data/assets/js/bootstrap.js +0 -2306
  60. data/assets/js/bootstrap.min.js +0 -7
  61. data/assets/js/jquery-1.11.2.min.js +0 -4
@@ -1,12 +1,12 @@
1
1
  .main-content {
2
- padding-bottom: 50px;
2
+ padding-bottom: 3.125rem;
3
3
  }
4
4
 
5
5
  footer.footer-min {
6
6
  position: fixed;
7
7
  bottom: 0;
8
8
  width: 100%;
9
- padding: 3px;
9
+ padding: 0.1875rem;
10
10
  background-color: #f5f5f5;
11
11
  border-top: 1px solid #eeeeee;
12
12
  text-align: center;
@@ -1,32 +1,53 @@
1
+ ---
2
+ layout: null
3
+ ---
4
+
1
5
  @import url("pygment_highlights.css");
2
6
 
3
7
  /* --- General --- */
4
8
 
9
+ html {
10
+ font-size: 100%
11
+ }
12
+
5
13
  body {
6
14
  font-family: 'Lora', 'Times New Roman', serif;
7
- font-size: 18px;
15
+ font-size: 1.125rem;
8
16
  color: #404040;
9
17
  position: relative;
10
- background: #FFF;
18
+ background-color: {{ site.page-col | default: "#FFFFFF" }};
19
+ {% if site.page-img %}
20
+ background-image: url({{ site.page-img | relative_url }});
21
+ background-attachment: fixed;
22
+ {% endif %}
11
23
  }
12
24
  p {
13
25
  line-height: 1.5;
14
- margin: 30px 0;
15
- }
16
- p a {
17
- /* text-decoration: underline */
18
- color: #008AFF;
26
+ margin: 1.875rem 0;
19
27
  }
20
28
  h1,h2,h3,h4,h5,h6 {
21
29
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
22
30
  font-weight: 800;
31
+ line-height: 1.1;
32
+ }
33
+ h1 {
34
+ font-size: 2.25rem;
35
+ }
36
+ h2 {
37
+ font-size: 1.875rem;
38
+ }
39
+ h3 {
40
+ font-size: 1.5rem;
41
+ }
42
+ h4 {
43
+ font-size: 1.125rem;
23
44
  }
24
45
  a {
25
- color: #008AFF;
46
+ color: {{ site.link-col | default: "#008AFF" }};
26
47
  }
27
48
  a:hover,
28
49
  a:focus {
29
- color: #0085a1;
50
+ color: {{ site.hover-col | default: "#0085A1" }};
30
51
  }
31
52
  blockquote {
32
53
  color: #808080;
@@ -36,27 +57,30 @@ blockquote p:first-child {
36
57
  margin-top: 0;
37
58
  }
38
59
  hr.small {
39
- max-width: 100px;
40
- margin: 15px auto;
41
- border-width: 4px;
60
+ max-width: 6.25rem;
61
+ margin: 1rem auto;
62
+ border-width: 0.25rem;
42
63
  border-color: inherit;
43
- border-radius: 3px;
64
+ border-radius: 0.1875rem;
65
+ }
66
+
67
+ /* fix in-page anchors to not be behind fixed header */
68
+ :target:before {
69
+ content: "";
70
+ display: block;
71
+ height: 3.125rem; /* navbar height */
72
+ margin: -3.125rem 0 0;
44
73
  }
45
74
 
46
75
  .main-content {
47
- padding-top: 80px;
76
+ padding-top: 5rem;
48
77
  }
49
- @media only screen and (min-width: 768px) {
78
+ @media (min-width: 768px) {
50
79
  .main-content {
51
- padding-top: 130px;
80
+ padding-top: 8.125rem;
52
81
  }
53
82
  }
54
83
 
55
- .main-explain-area {
56
- font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
57
- padding: 15px inherit;
58
- }
59
-
60
84
  .hideme {
61
85
  display: none;
62
86
  }
@@ -64,12 +88,12 @@ hr.small {
64
88
  ::-moz-selection {
65
89
  color: white;
66
90
  text-shadow: none;
67
- background: #0085a1;
91
+ background-color: {{ site.hover-col | default: "#0085A1" }};
68
92
  }
69
93
  ::selection {
70
94
  color: white;
71
95
  text-shadow: none;
72
- background: #0085a1;
96
+ background-color: {{ site.hover-col | default: "#0085A1" }};
73
97
  }
74
98
  img::selection {
75
99
  color: white;
@@ -85,224 +109,335 @@ img {
85
109
  }
86
110
 
87
111
  .disqus-comments {
88
- margin-top: 30px;
112
+ margin-top: 1.875rem;
89
113
  }
90
114
 
91
- @media only screen and (min-width: 768px) {
115
+ @media (min-width: 768px) {
92
116
  .disqus-comments {
93
- margin-top: 40px;
117
+ margin-top: 2.5rem;
94
118
  }
95
119
  }
96
120
 
121
+ .linked-section {
122
+ padding-top: 3.75rem;
123
+ margin-top: -1.5625rem;
124
+ }
125
+
97
126
  /* --- Navbar --- */
98
127
 
99
128
  .navbar-custom {
100
- background: #F5F5F5;
101
- border-bottom: 1px solid #EAEAEA;
129
+ background-color: {{ site.navbar-col | default: "#F5F5F5" }};
130
+ border-bottom: 1px solid {{ site.navbar-border-col | default: "#EAEAEA" }};
102
131
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
132
+ {% if site.navbar-img %}
133
+ background-image: url({{ site.navbar-img | relative_url }});
134
+ background-attachment: fixed;
135
+ {% endif %}
136
+ -webkit-transition: background .5s ease-in-out,padding .5s ease-in-out;
137
+ -moz-transition: background .5s ease-in-out,padding .5s ease-in-out;
138
+ transition: background .5s ease-in-out,padding .5s ease-in-out;
139
+ }
140
+
141
+ .navbar-custom,
142
+ .navbar-custom.top-nav-short,
143
+ .navbar-custom.top-nav-short-permanent {
144
+ padding-top: 0;
145
+ padding-bottom: 0;
103
146
  }
104
147
 
105
- .navbar-custom .nav li a {
106
- text-transform: uppercase;
107
- font-size: 12px;
108
- letter-spacing: 1px;
109
- }
110
-
111
- .navbar-custom .navbar-brand,
112
- .navbar-custom .nav li a {
113
- font-weight: 800;
114
- color: #404040;
115
- }
116
-
117
- .navbar-custom .navbar-brand:hover,
118
- .navbar-custom .navbar-brand:focus ,
119
- .navbar-custom .nav li a:hover,
120
- .navbar-custom .nav li a:focus {
121
- color: #0085a1;
148
+ .navbar-custom .navbar-brand {
149
+ line-height: 1.5;
150
+ padding-top: 0.625rem;
151
+ padding-bottom: 0.625rem;
152
+ font-size: 1.125rem;
122
153
  }
123
154
 
124
155
  .navbar-custom .navbar-brand-logo {
125
- padding-top: 0;
126
156
  -webkit-transition: padding .5s ease-in-out;
127
157
  -moz-transition: padding .5s ease-in-out;
128
- transition: padding .5s ease-in-out;
158
+ transition: padding .5s ease-in-out;
159
+ }
160
+
161
+ .navbar-custom .navbar-brand-logo,
162
+ .navbar-custom.top-nav-short .navbar-brand-logo,
163
+ .navbar-custom.top-nav-short-permanent .navbar-brand-logo {
164
+ padding-top: 0.3125rem;
165
+ padding-bottom: 0.3125rem;
129
166
  }
167
+
130
168
  .navbar-custom .navbar-brand-logo img {
131
- height: 50px;
132
169
  -webkit-transition: height .5s ease-in-out;
133
170
  -moz-transition: height .5s ease-in-out;
134
171
  transition: height .5s ease-in-out;
135
172
  }
136
- .navbar-custom.top-nav-short .navbar-brand-logo {
137
- padding-top: 5px;
173
+
174
+ .navbar-custom .navbar-brand-logo img,
175
+ .navbar-custom.top-nav-short .navbar-brand-logo img,
176
+ .navbar-custom.top-nav-short-permanent .navbar-brand-logo img {
177
+ height: 2.5rem;
138
178
  }
139
- .navbar-custom.top-nav-short .navbar-brand-logo img {
140
- height: 40px;
179
+
180
+ .navbar-custom .navbar-brand:hover,
181
+ .navbar-custom .navbar-brand:focus ,
182
+ .navbar-custom .navbar-nav .nav-link:hover,
183
+ .navbar-custom .navbar-nav .nav-link:focus,
184
+ .navbar-custom .navbar-nav .dropdown-item:hover,
185
+ .navbar-custom .navbar-nav .dropdown-item:focus {
186
+ color: {{ site.hover-col | default: "#0085A1" }};
141
187
  }
142
188
 
143
- @media only screen and (min-width: 768px) {
144
- .navbar-custom {
145
- padding: 20px 0;
146
- -webkit-transition: background .5s ease-in-out,padding .5s ease-in-out;
147
- -moz-transition: background .5s ease-in-out,padding .5s ease-in-out;
148
- transition: background .5s ease-in-out,padding .5s ease-in-out;
149
- }
189
+ .navbar-custom .navbar-nav .nav-item {
190
+ text-transform: uppercase;
191
+ font-size: 0.75rem;
192
+ letter-spacing: 0.0625rem;
193
+ }
150
194
 
151
- .navbar-custom.top-nav-short {
152
- padding: 0;
153
- }
195
+ .navbar-custom .navbar-nav .nav-link {
196
+ padding-top: 0;
197
+ padding-bottom: 0;
198
+ line-height: 1.5;
199
+ padding-top: 1rem;
200
+ padding-bottom: 1rem;
154
201
  }
155
202
 
156
- .navbar-custom .avatar-container {
157
- opacity: 1;
158
- position: absolute;
159
- -webkit-transition: opacity 0.5s ease-in-out;
160
- -moz-transition: opacity 0.5s ease-in-out;
161
- transition: opacity 0.5s ease-in-out;
162
- left: 50%;
163
- width: 50px;
164
- margin-top: -25px;
203
+ .navbar-custom .navbar-brand,
204
+ .navbar-custom .navbar-nav .nav-link {
205
+ font-weight: 800;
206
+ color: {{ site.navbar-text-col | default: "#404040" }};
165
207
  }
166
- .navbar-custom .avatar-container .avatar-img-border {
167
- width: 100%;
168
- border-radius: 50%;
169
- margin-left: -50%;
170
- display: inline-block;
171
- box-shadow: 0 0 8px rgba(0, 0, 0, .8);
172
- -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, .8);
173
- -moz-box-shadow: 0 0 8px rgba(0, 0, 0, .8);
208
+
209
+ .navbar-toggler {
210
+ font-size: 1rem;
211
+ margin: 0.5rem 0;
174
212
  }
175
- .navbar-custom .avatar-container .avatar-img {
176
- width: 100%;
177
- border-radius: 50%;
178
- display: block;
213
+ .navbar-custom .navbar-toggler:focus,
214
+ .navbar-custom .navbar-toggler:hover {
215
+ background-color: initial;
179
216
  }
180
217
 
181
- .navbar-custom.top-nav-short .avatar-container{
182
- opacity: 0;
218
+ .navbar-custom .navbar-toggler[aria-expanded="true"] {
219
+ background-color: rgba(0, 0, 0, 0.2);
183
220
  }
184
221
 
185
- .navbar-custom.top-nav-expanded .avatar-container {
186
- display: none;
222
+ .dropdown-toggle::after {
223
+ border-width: 0.4em;
187
224
  }
188
225
 
189
- @media only screen and (min-width: 768px) {
190
- .navbar-custom .avatar-container {
191
- width: 100px;
192
- margin-top: -50px;
226
+ @media (min-width: 768px) {
227
+ .navbar-custom {
228
+ padding-top: 1.25rem;
229
+ padding-bottom: 1.25rem;
193
230
  }
194
-
195
- .navbar-custom .avatar-container .avatar-img-border {
196
- width: 100%;
197
- box-shadow: 1px 1px 2px rgba(0, 0, 0, .8);
198
- -webkit-box-shadow: 1px 1px 2px rgba(0, 0, 0, .8);
199
- -moz-box-shadow: 1px 1px 2px rgba(0, 0, 0, .8);
231
+
232
+ .navbar-custom .navbar-brand-logo {
233
+ padding-top: 0;
234
+ padding-bottom: 0;
200
235
  }
201
-
202
- .navbar-custom .avatar-container .avatar-img {
203
- width: 100%;
236
+
237
+ .navbar-custom .navbar-brand-logo img {
238
+ height: 3.125rem;
239
+ }
240
+
241
+ .navbar-expand-md .navbar-nav .nav-link {
242
+ padding-left: 0.9375rem;
243
+ padding-right: 0.9375rem;
244
+ }
245
+
246
+ .navbar-expand-md .navbar-nav .nav-item:not(.dropdown):last-child .nav-link {
247
+ padding-right: 0;
204
248
  }
205
249
  }
206
250
 
207
- /* Multi-level navigation links */
208
- .navbar-custom .nav .navlinks-container {
209
- position: relative;
251
+ @media (min-width: 768px) {
252
+ .navbar-custom .nav-item.dropdown:hover {
253
+ background: rgba(0, 0, 0, 0.1);
254
+ }
210
255
  }
211
- .navbar-custom .nav .navlinks-parent:after {
212
- content: " \25BC";
256
+
257
+ .navbar-custom .nav-item.dropdown.show {
258
+ background: rgba(0, 0, 0, 0.2);
213
259
  }
214
- .navbar-custom .nav .navlinks-children {
260
+
261
+ .navbar-custom .nav-item.dropdown .dropdown-menu {
262
+ min-width: 0;
263
+ margin-top: 0;
264
+ font-size: 1em;
265
+ border: 0;
266
+ padding: 0;
215
267
  width: 100%;
216
- display: none;
217
268
  word-break: break-word;
218
269
  }
219
- .navbar-custom .nav .navlinks-container .navlinks-children a {
220
- display: block;
221
- padding: 10px;
222
- padding-left: 30px;
223
- background: #f5f5f5;
270
+ .navbar-custom .nav-item.dropdown .dropdown-menu .dropdown-item {
271
+ white-space: normal;
272
+ padding: 0.625rem;
273
+ background-color: {{ site.navbar-col | default: "#F5F5F5" }};
224
274
  text-decoration: none !important;
225
275
  border-width: 0 1px 1px 1px;
226
276
  font-weight: normal;
227
277
  }
228
- @media only screen and (max-width: 767px) {
229
- .navbar-custom .nav .navlinks-container.show-children {
230
- background: #eee;
278
+
279
+ @media (min-width: 768px) {
280
+ .navbar-custom .nav-item.dropdown .dropdown-menu {
281
+ text-align: center;
231
282
  }
232
- .navbar-custom .nav .navlinks-container.show-children .navlinks-children {
233
- display: block;
283
+
284
+ .navbar-custom .nav-item.dropdown .dropdown-menu .dropdown-item {
285
+ padding-left: 0.625rem;
286
+ border: 1px solid {{ site.navbar-border-col | default: "#EAEAEA" }};
287
+ border-width: 0 1px 1px;
234
288
  }
235
289
  }
236
- @media only screen and (min-width: 768px) {
237
- .navbar-custom .nav .navlinks-container {
238
- text-align: center;
239
- }
240
- .navbar-custom .nav .navlinks-container:hover {
241
- background: #eee;
290
+
291
+ @media (max-width: 767px) {
292
+ .navbar-custom .navbar-collapse {
293
+ border-top: 1px solid {{ site.navbar-border-col | default: "#EAEAEA" }};
294
+ margin: 0 -1rem;
242
295
  }
243
- .navbar-custom .nav .navlinks-container:hover .navlinks-children {
244
- display: block;
296
+
297
+ .navbar-custom .navbar-nav {
298
+ padding: 0.5rem 0;
245
299
  }
246
- .navbar-custom .nav .navlinks-children {
247
- position: absolute;
300
+
301
+ .navbar-custom .navbar-nav .nav-link {
302
+ padding: 0.675rem 0 0.675rem 1rem;
248
303
  }
249
- .navbar-custom .nav .navlinks-container .navlinks-children a {
250
- padding-left: 10px;
251
- border: 1px solid #eaeaea;
252
- border-width: 0 1px 1px;
304
+
305
+ .navbar-custom .nav-item.dropdown.show {
306
+ background: rgba(0, 0, 0, 0.2);
307
+ }
308
+
309
+ .navbar-custom .nav-item.dropdown .dropdown-menu .dropdown-item {
310
+ padding-left: 2rem;
311
+ }
312
+ }
313
+
314
+ .navbar-custom .avatar-container {
315
+ position: absolute;
316
+ left: 50%;
317
+ width: 3.125rem;
318
+ margin-top: 1.75rem;
319
+ transition: opacity 0.5s ease-in-out;
320
+ -webkit-transition: opacity 0.5s ease-in-out;
321
+ -moz-transition: opacity 0.5s ease-in-out;
322
+ }
323
+ .navbar-custom.top-nav-short .avatar-container {
324
+ opacity: 0;
325
+ visibility: hidden;
326
+ transition: visibility linear 0.5s, opacity 0.5s ease-in-out;
327
+ -webkit-transition: visibility linear 0.5s, opacity 0.5s ease-in-out;
328
+ -moz-transition: visibility linear 0.5s, opacity 0.5s ease-in-out;
329
+ }
330
+
331
+ .navbar-custom .avatar-container .avatar-img-border {
332
+ width: 100%;
333
+ display: inline-block;
334
+ margin-left: -50%;
335
+ {% unless site.round-avatar == false %}
336
+ border-radius: 50%;
337
+ box-shadow: 0 0 0.5rem rgba(0, 0, 0, .8);
338
+ -webkit-box-shadow: 0 0 0.3125rem rgba(0, 0, 0, .8);
339
+ -moz-box-shadow: 0 0 0.5rem rgba(0, 0, 0, .8);
340
+ {% endunless %}
341
+ }
342
+ .navbar-custom .avatar-container .avatar-img {
343
+ width: 100%;
344
+ {% unless site.round-avatar == false %}
345
+ border-radius: 50%;
346
+ {% endunless %}
347
+ display: block;
348
+ }
349
+
350
+ .navbar-custom.top-nav-expanded .avatar-container {
351
+ display: none;
352
+ }
353
+
354
+ @media (min-width: 768px) {
355
+ .navbar-custom .avatar-container {
356
+ width: 6.25rem;
357
+ }
358
+
359
+ .navbar-custom .avatar-container .avatar-img-border {
360
+ width: 100%;
361
+ {% unless site.round-avatar == false %}
362
+ box-shadow: 1px 1px 2px rgba(0, 0, 0, .8);
363
+ -webkit-box-shadow: 1px 1px 2px rgba(0, 0, 0, .8);
364
+ -moz-box-shadow: 1px 1px 2px rgba(0, 0, 0, .8);
365
+ {% endunless %}
366
+ }
367
+
368
+ .navbar-custom .avatar-container .avatar-img {
369
+ width: 100%;
253
370
  }
254
371
  }
255
372
 
256
373
  /* --- Footer --- */
257
374
 
258
375
  footer {
259
- padding: 30px 0;
260
- background: #F5F5F5;
376
+ padding: 1.875rem 0;
261
377
  border-top: 1px #EAEAEA solid;
262
- margin-top: 50px;
263
- font-size: 14px;
378
+ margin-top: 3.125rem;
379
+ font-size: 0.875rem;
380
+ background-color: {{ site.footer-col | default: "#F5F5F5" }};
381
+ {% if site.footer-img %}
382
+ background-image: url({{ site.footer-img | relative_url }});
383
+ background-attachment: fixed;
384
+ {% endif %}
385
+ }
386
+
387
+ footer p.text-muted {
388
+ color: {{ site.footer-text-col | default: "#777777" }} !important;
264
389
  }
265
390
 
266
391
  footer a {
267
- color: #404040;
392
+ color: {{ site.footer-link-col | default: "#404040" }};
268
393
  }
269
394
 
270
395
  footer .list-inline {
271
396
  margin: 0;
272
397
  padding: 0;
398
+ margin-bottom: 1.875rem;
273
399
  }
274
400
  footer .copyright {
275
- font-family: Open Sans;
401
+ font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
276
402
  text-align: center;
277
403
  margin-bottom: 0;
404
+ margin-top: 0;
278
405
  }
279
406
  footer .theme-by {
280
407
  text-align: center;
281
- margin: 10px 0 0;
408
+ margin: 0.625rem 0 0;
409
+ }
410
+ footer .footer-custom-content {
411
+ text-align: center;
412
+ margin-bottom: 0.9375rem;
413
+ font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
282
414
  }
283
415
 
284
- @media only screen and (min-width: 768px) {
416
+ @media (min-width: 768px) {
285
417
  footer {
286
- padding: 50px 0;
418
+ padding: 3.125rem 0;
287
419
  }
288
420
  footer .footer-links {
289
- font-size: 18px;
421
+ font-size: 1.125rem;
290
422
  }
291
423
  footer .copyright {
292
- font-size: 16px;
424
+ font-size: 1rem;
425
+ }
426
+ footer .footer-custom-content {
427
+ font-size: 1rem;
293
428
  }
294
429
  }
295
-
430
+
296
431
  /* --- Post preview --- */
297
432
 
298
433
  .post-preview {
299
- padding: 20px 0;
434
+ padding: 1.25rem 0;
300
435
  border-bottom: 1px solid #eee;
301
436
  }
302
437
 
303
- @media only screen and (min-width: 768px) {
438
+ @media (min-width: 768px) {
304
439
  .post-preview {
305
- padding: 35px 0;
440
+ padding: 2.1875rem 0;
306
441
  }
307
442
  }
308
443
 
@@ -318,35 +453,58 @@ footer .theme-by {
318
453
  .post-preview a:focus,
319
454
  .post-preview a:hover {
320
455
  text-decoration: none;
321
- color: #0085a1;
456
+ color: {{ site.hover-col | default: "#0085A1" }};
322
457
  }
323
458
 
324
459
  .post-preview .post-title {
325
- font-size: 30px;
460
+ font-size: 1.875rem;
326
461
  margin-top: 0;
327
462
  }
328
463
  .post-preview .post-subtitle {
329
464
  margin: 0;
330
465
  font-weight: 300;
331
- margin-bottom: 10px;
466
+ margin-bottom: 0.625rem;
332
467
  }
333
468
  .post-preview .post-meta,
334
469
  .post-heading .post-meta {
335
470
  color: #808080;
336
- font-size: 18px;
471
+ font-size: 1.125rem;
337
472
  font-style: italic;
338
- margin: 0 0 10px;
473
+ margin: 0 0 0.625rem;
339
474
  }
340
475
  .post-preview .post-entry {
341
476
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
342
477
  }
478
+ .post-entry-container {
479
+ display: inline-block;
480
+ width: 100%;
481
+ }
482
+ .post-entry {
483
+ width: 100%;
484
+ }
485
+ .post-image {
486
+ float: right;
487
+ margin-left: 0.625rem;
488
+ height: 12rem;
489
+ width: 12rem;
490
+ margin-top: -2.1875rem;
491
+ filter: grayscale(90%);
492
+ }
493
+ .post-image:hover {
494
+ filter: grayscale(0%);
495
+ }
496
+ .post-image img {
497
+ border-radius: 6.25rem;
498
+ height: 12rem;
499
+ width: 12rem;
500
+ }
343
501
  .post-preview .post-read-more {
344
502
  font-weight: 800;
345
503
  }
346
504
 
347
- @media only screen and (min-width: 768px) {
505
+ @media (min-width: 768px) {
348
506
  .post-preview .post-title {
349
- font-size: 36px;
507
+ font-size: 2.25rem;
350
508
  }
351
509
  }
352
510
 
@@ -355,37 +513,59 @@ footer .theme-by {
355
513
  .blog-tags {
356
514
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
357
515
  color: #999;
358
- font-size: 15px;
359
- margin-bottom: 30px;
516
+ font-size: 0.9375rem;
517
+ margin-bottom: 1.875rem;
360
518
  }
361
519
 
362
520
  .blog-tags a {
363
- color: #008AFF;
521
+ color: {{ site.link-col | default: "#008AFF" }};
364
522
  text-decoration: none;
365
- padding: 0px 5px;
523
+ padding: 0 0.3125rem;
366
524
  }
367
525
 
368
526
  .blog-tags a:hover {
369
527
  border-radius: 2px;
370
- color: #008AFF;
371
- background-color: #CCC;
528
+ color: {{ site.hover-col | default: "#0085A1" }};
529
+ background-color: #EEE;
372
530
  }
373
531
 
374
532
  .post-preview .blog-tags {
375
- margin-top: 5px;
533
+ margin-top: 0.3125rem;
376
534
  margin-bottom: 0;
377
535
  }
378
536
 
379
- @media only screen and (min-width: 768px) {
537
+ @media (min-width: 768px) {
380
538
  .post-preview .blog-tags {
381
- margin-top: 10px;
539
+ margin-top: 0.625rem;
540
+ }
541
+ }
542
+
543
+ @media (max-width: 767px) {
544
+ .post-image, .post-image img {
545
+ margin-top: 0;
546
+ height: 9rem;
547
+ width: 9rem;
382
548
  }
383
549
  }
384
550
 
551
+ @media (max-width: 500px) {
552
+ .post-image, .post-image img {
553
+ height: 6.25rem;
554
+ width: 6.25rem;
555
+ }
556
+
557
+ .post-image {
558
+ width: 100%;
559
+ text-align: center;
560
+ margin-top: 0;
561
+ margin-left: 0;
562
+ float: none;
563
+ }
564
+ }
385
565
  /* --- Post and page headers --- */
386
566
 
387
567
  .intro-header {
388
- margin: 80px 0 20px;
568
+ margin: 5rem 0 1.25rem;
389
569
  position: relative;
390
570
  }
391
571
  .intro-header.big-img {
@@ -394,10 +574,10 @@ footer .theme-by {
394
574
  -moz-background-size: cover;
395
575
  background-size: cover;
396
576
  -o-background-size: cover;
397
- margin-top: 51px; /* The small navbar is 50px tall + 1px border */
398
- margin-bottom: 35px;
577
+ margin-top: 3.1875rem; /* The small navbar is 50px tall + 1px border */
578
+ margin-bottom: 2.1875rem;
399
579
  }
400
- .intro-header.big-img .big-img-transition {
580
+ .intro-header.big-img .big-img-transition {
401
581
  position: absolute;
402
582
  width: 100%;
403
583
  height: 100%;
@@ -416,29 +596,29 @@ footer .theme-by {
416
596
  }
417
597
  .intro-header.big-img .page-heading,
418
598
  .intro-header.big-img .post-heading {
419
- padding: 100px 0;
599
+ padding: 6.25rem 0;
420
600
  color: #FFF;
421
601
  text-shadow: 1px 1px 3px #000;
422
602
  }
423
603
  .intro-header .page-heading h1 {
424
604
  margin-top: 0;
425
- font-size: 50px;
605
+ font-size: 3.125rem;
426
606
  }
427
607
  .intro-header .post-heading h1 {
428
608
  margin-top: 0;
429
- font-size: 35px;
609
+ font-size: 2.1875rem;
430
610
  }
431
611
  .intro-header .page-heading .page-subheading,
432
612
  .intro-header .post-heading .post-subheading {
433
- font-size: 27px;
613
+ font-size: 1.6875rem;
434
614
  line-height: 1.1;
435
615
  display: block;
436
616
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
437
617
  font-weight: 300;
438
- margin: 10px 0 0;
618
+ margin: 0.625rem 0 0;
439
619
  }
440
620
  .intro-header .post-heading .post-subheading {
441
- margin-bottom: 20px;
621
+ margin-bottom: 1.25rem;
442
622
  }
443
623
  .intro-header.big-img .page-heading .page-subheading,
444
624
  .intro-header.big-img .post-heading .post-subheading {
@@ -455,54 +635,54 @@ footer .theme-by {
455
635
  .intro-header.big-img .img-desc {
456
636
  background: rgba(30, 30, 30, 0.6);
457
637
  position: absolute;
458
- padding: 5px 10px;
459
- font-size: 11px;
638
+ padding: 0.3125rem 0.625rem;
639
+ font-size: 0.6875rem;
460
640
  color: #EEE;
461
641
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
462
642
  right: 0;
463
643
  bottom: 0;
464
644
  display: none;
465
645
  }
466
- @media only screen and (min-width: 768px) {
646
+ @media (min-width: 768px) {
467
647
  .intro-header {
468
- margin-top: 130px;
648
+ margin-top: 8.125rem;
469
649
  }
470
650
  .intro-header.big-img {
471
- margin-top: 91px; /* Full navbar is small navbar + 20px padding on each side when expanded */
472
- }
651
+ margin-top: 5.6875rem; /* Full navbar is small navbar + 20px padding on each side when expanded */
652
+ }
473
653
  .intro-header.big-img .page-heading,
474
- .intro-header.big-img .post-heading {
475
- padding: 150px 0;
476
- }
654
+ .intro-header.big-img .post-heading {
655
+ padding: 9.375rem 0;
656
+ }
477
657
  .intro-header .page-heading h1 {
478
- font-size: 80px;
658
+ font-size: 5rem;
479
659
  }
480
660
  .intro-header .post-heading h1 {
481
- font-size: 50px;
661
+ font-size: 3.125rem;
482
662
  }
483
663
  .intro-header.big-img .img-desc {
484
- font-size: 14px;
664
+ font-size: 0.875rem;
485
665
  }
486
666
  }
487
667
 
488
668
  .header-section.has-img .no-img {
489
669
  margin-top: 0;
490
- background: #FCFCFC;
491
- margin: 0 0 40px;
492
- padding: 20px 0;
493
- box-shadow: 0 0 5px #AAA;
670
+ background-color: #FCFCFC;
671
+ margin: 0 0 2.5rem;
672
+ padding: 1.25rem 0;
673
+ box-shadow: 0 0 0.3125rem #AAA;
494
674
  }
495
675
  /* Many phones are 320 or 360px, so make sure images are a proper aspect ratio in those cases */
496
676
  .header-section.has-img .intro-header.no-img {
497
677
  display: none;
498
678
  }
499
- @media only screen and (max-width: 365px) {
679
+ @media (max-width: 365px) {
500
680
  .header-section.has-img .intro-header.no-img {
501
681
  display: block;
502
682
  }
503
683
  .intro-header.big-img {
504
684
  width: 100%;
505
- height: 220px;
685
+ height: 13.75rem;
506
686
  }
507
687
  .intro-header.big-img .page-heading,
508
688
  .intro-header.big-img .post-heading {
@@ -510,64 +690,91 @@ footer .theme-by {
510
690
  }
511
691
  .header-section.has-img .big-img {
512
692
  margin-bottom: 0;
513
- }
514
- }
515
- @media only screen and (max-width: 325px) {
693
+ }
694
+ }
695
+ @media (max-width: 325px) {
516
696
  .intro-header.big-img {
517
- height: 200px;
697
+ height: 12.5rem;
518
698
  }
519
699
  }
520
700
 
521
701
  .caption {
522
702
  text-align: center;
523
- font-size: 14px;
524
- padding: 10px;
703
+ font-size: 0.875rem;
704
+ padding: 0.625rem;
525
705
  font-style: italic;
526
706
  margin: 0;
527
707
  display: block;
528
- border-bottom-right-radius: 5px;
529
- border-bottom-left-radius: 5px;
708
+ border-bottom-right-radius: 0.3125rem;
709
+ border-bottom-left-radius: 0.3125rem;
530
710
  }
531
711
 
532
- /* --- Pager --- */
712
+ #header-gh-btns {
713
+ margin-bottom: 0.9375rem;
714
+ }
715
+ @media (max-width: 500px) {
716
+ #header-gh-btns > iframe {
717
+ display: block;
718
+ margin-bottom: 0.3125rem;
719
+ }
720
+ }
533
721
 
534
- .pager li a {
535
- font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
536
- text-transform: uppercase;
537
- font-size: 14px;
538
- font-weight: 800;
539
- letter-spacing: 1px;
540
- padding: 10px 5px;
541
- background: #FFF;
542
- border-radius: 0;
543
- color: #404040;
722
+ .reader-time {
723
+ display: inline-block;
544
724
  }
545
- @media only screen and (min-width: 768px) {
546
- .pager li a {
547
- padding: 15px 25px;
725
+ @media (max-width: 767px) {
726
+ .reader-time {
727
+ display: block;
548
728
  }
549
729
  }
550
- .pager li a:hover,
551
- .pager li a:focus {
552
- color: #FFF;
553
- background: #0085a1;
554
- border: 1px solid #0085a1;
730
+ .reader-time .middot {
731
+ margin: 0 0.625rem;
555
732
  }
556
733
 
557
- .pager {
558
- margin: 10px 0 0;
734
+ /* --- Pagination --- */
735
+
736
+ .pagination {
737
+ margin: 0.625rem 0 0;
738
+ justify-content: space-between;
559
739
  }
560
740
 
561
- .pager.blog-pager {
741
+ .pagination.blog-pager {
562
742
  margin-top: 0;
563
743
  }
564
744
 
565
- @media only screen and (min-width: 768px) {
566
- .pager.blog-pager {
567
- margin-top: 10px;
745
+ .pagination .page-item.next {
746
+ margin-left: auto;
747
+ }
748
+
749
+ @media (min-width: 768px) {
750
+ .pagination.blog-pager {
751
+ margin-top: 0.625rem;
568
752
  }
569
753
  }
570
754
 
755
+ .pagination .page-item .page-link {
756
+ font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
757
+ text-transform: uppercase;
758
+ font-size: 0.875rem;
759
+ font-weight: 800;
760
+ letter-spacing: 1px;
761
+ padding: 0.625rem 0.3125rem;
762
+ background-color: #FFF;
763
+ border-radius: 0;
764
+ color: #404040;
765
+ }
766
+ @media (min-width: 768px) {
767
+ .pagination .page-item .page-link {
768
+ padding: 0.9375rem 1.5625rem;
769
+ }
770
+ }
771
+ .pagination .page-item .page-link:hover,
772
+ .pagination .page-item .page-link:focus {
773
+ color: #FFF;
774
+ border: 1px solid {{ site.hover-col | default: "#0085A1" }};
775
+ background-color: {{ site.hover-col | default: "#0085A1" }};
776
+ }
777
+
571
778
  /* --- Tables --- */
572
779
 
573
780
  table {
@@ -587,13 +794,13 @@ table tr th {
587
794
  border: 1px solid #cccccc;
588
795
  text-align: left;
589
796
  margin: 0;
590
- padding: 6px 13px;
797
+ padding: 0.375rem 0.8125rem;
591
798
  }
592
799
  table tr td {
593
800
  border: 1px solid #cccccc;
594
801
  text-align: left;
595
802
  margin: 0;
596
- padding: 6px 13px;
803
+ padding: 0.375rem 0.8125rem;
597
804
  }
598
805
  table tr th :first-child,
599
806
  table tr td :first-child {
@@ -607,41 +814,115 @@ table tr td :last-child {
607
814
  /* --- Code blocks --- */
608
815
 
609
816
  pre {
610
- font-size: 16px;
611
- line-height: 1.5em;
612
- }
613
- pre code {
614
- white-space: pre;
615
- }
616
- pre.highlight, .highlight > pre, td.code pre {
617
- background: #FAFAFA;
618
- background-image: linear-gradient(#F9F9F9 50%, #FDFDFD 50%);
619
- background-repeat: repeat;
620
- background-size: 3em 3em;
621
- background-position: 0px 10px;
622
- border-left: 7px solid #444;
623
- }
624
- code table, code table td, code table th, code table tbody, code table tr,
625
- td.gutter pre {
626
- padding: 0;
817
+ font-size: 1rem;
818
+ line-height: 1.5;
819
+ border-radius: 0.25rem;
820
+ padding: 0.59375rem;
821
+ }
822
+ .highlight pre {
627
823
  border: none;
628
- background-color: #fff;
824
+ background: none;
825
+ margin: 0;
629
826
  }
630
827
  .highlight > pre {
828
+ background-image: linear-gradient(
829
+ rgba(0,0,0,0.06), rgba(0,0,0,0.06) 1.5em, rgba(0,0,0,0.03) 1.5em, rgba(0,0,0,0.03) 3em);
830
+ background-size: auto 3em;
831
+ background-position-y: 0.625rem;
832
+ border: 1px solid rgba(0,0,0,0.1);
833
+ border-left: 0.4375rem solid #444;
834
+ }
835
+ .highlight > pre:not([class~="highlight"]) { /* code block with line number */
631
836
  padding: 0;
632
837
  }
633
- td.code pre {
634
- border-width: 0 0 0 2px;
635
- border-style: solid;
636
- border-color: #444;
838
+ .highlight table, .highlight tr, .highlight td { /* to be removed after fixing table styles */
839
+ border: none;
840
+ background: none;
841
+ padding: 0;
842
+ margin: 0;
843
+ }
844
+ .highlight pre.lineno {
845
+ color: rgba(0,0,0,0.3);
637
846
  border-radius: 0;
847
+ border-right: 2px solid #444;
638
848
  }
639
- td.gutter {
640
- padding-top: 3px;
849
+
850
+ /* Make line numbers unselectable: excludes line numbers from copy-paste user ops */
851
+ .lineno {
852
+ -webkit-user-select: none;
853
+ -moz-user-select: none;
854
+ -ms-user-select: none;
855
+ user-select: none;
856
+ }
857
+ .lineno::selection, .lineno::-moz-selection {
858
+ background: none;
641
859
  }
642
860
 
643
861
  /* --- Social media sharing section --- */
644
862
 
645
863
  #social-share-section {
646
- margin-bottom: 30px;
864
+ margin-bottom: 1.875rem;
865
+ }
866
+
867
+ /* --- Notification boxes --- */
868
+ .box-note, .box-warning, .box-error, .box-success {
869
+ padding: 0.9375rem 0.9375rem 0.9375rem 0.625rem;
870
+ margin: 1.25rem 1.25rem 1.25rem 0.3125rem;
871
+ border: 1px solid #eee;
872
+ border-left-width: 0.3125rem;
873
+ border-radius: 0.3125rem 0.1875rem 0.1875rem 0.3125rem;
874
+ }
875
+
876
+ .box-note {
877
+ background-color: #eee;
878
+ border-left-color: #2980b9;
879
+ }
880
+
881
+ .box-warning {
882
+ background-color: #fdf5d4;
883
+ border-left-color: #f1c40f;
884
+ }
885
+
886
+ .box-error {
887
+ background-color: #f4dddb;
888
+ border-left-color: #c0392b;
889
+ }
890
+
891
+ .box-success {
892
+ background-color: #98FB98;
893
+ border-left-color: #3CB371;
894
+ }
895
+
896
+ /* Fix table border github gist snippets */
897
+
898
+ .gist, .gist-file table tr {
899
+ border: unset;
900
+ }
901
+
902
+ .gist, .gist-file table tr td {
903
+ border: unset;
904
+ }
905
+
906
+ /* Tags page */
907
+
908
+ .tag-btn {
909
+ margin: 0.3125rem;
910
+ }
911
+
912
+ #full-tags-list {
913
+ font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
914
+ }
915
+
916
+ #full-tags-list .tag-entry {
917
+ margin: 0 0 0.9375rem 1.5625rem;
918
+ }
919
+
920
+ #full-tags-list .tag-entry a {
921
+ font-size: 1.25rem;
922
+ }
923
+
924
+ #full-tags-list .tag-entry .entry-date {
925
+ color: #808080;
926
+ font-style: italic;
927
+ font-size: 1rem;
647
928
  }