jekyll-theme-switch 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,389 @@
1
+ /**
2
+ * Site header
3
+ */
4
+ .site-header {
5
+ border-top: 5px solid $grey-color-dark;
6
+ min-height: 56px;
7
+
8
+ // Positioning context for the mobile navigation icon
9
+ position: relative;
10
+ @include BoxShadow(8);
11
+ }
12
+
13
+ .site-title {
14
+ font-size: 26px;
15
+ line-height: 56px;
16
+ letter-spacing: -1px;
17
+ margin-bottom: 0;
18
+ float: left;
19
+ }
20
+
21
+ .site-nav {
22
+ float: right;
23
+ line-height: 56px;
24
+
25
+ .menu-icon {
26
+ display: none;
27
+ }
28
+
29
+ .page-link {
30
+ line-height: $base-line-height;
31
+
32
+ // Gaps between nav items, but not on the first one
33
+ &:not(:first-child) {
34
+ margin-left: 20px;
35
+ }
36
+ }
37
+
38
+ @include media-query($on-palm) {
39
+ position: absolute;
40
+ top: 9px;
41
+ right: 30px;
42
+ background-color: $background-color;
43
+ border: 1px solid $grey-color-light;
44
+ border-radius: 5px;
45
+ text-align: right;
46
+
47
+ .menu-icon {
48
+ display: block;
49
+ float: right;
50
+ width: 36px;
51
+ height: 26px;
52
+ line-height: 0;
53
+ padding-top: 10px;
54
+ text-align: center;
55
+
56
+ > svg {
57
+ width: 18px;
58
+ height: 15px;
59
+
60
+ path {
61
+ fill: $grey-color-dark;
62
+ }
63
+ }
64
+ }
65
+
66
+ .trigger {
67
+ clear: both;
68
+ display: none;
69
+ }
70
+
71
+ &:hover .trigger {
72
+ display: block;
73
+ padding-bottom: 5px;
74
+ }
75
+
76
+ .page-link {
77
+ display: block;
78
+ padding: 5px 10px;
79
+ }
80
+ }
81
+ }
82
+
83
+
84
+
85
+ /**
86
+ * Site footer
87
+ */
88
+ .site-footer {
89
+ padding: $spacing-unit 0;
90
+ @include BoxShadow(8);
91
+ }
92
+
93
+ .footer-heading {
94
+ font-size: 18px;
95
+ margin-bottom: $spacing-unit / 2;
96
+ }
97
+
98
+ .contact-list,
99
+ .social-media-list {
100
+ list-style: none;
101
+ margin-left: 0;
102
+ }
103
+
104
+ .footer-col-wrapper {
105
+ font-size: 15px;
106
+ color: $grey-color;
107
+ margin-left: -$spacing-unit / 2;
108
+ @extend %clearfix;
109
+ }
110
+
111
+ .footer-col {
112
+ float: left;
113
+ margin-bottom: $spacing-unit / 2;
114
+ padding-left: $spacing-unit / 2;
115
+ }
116
+
117
+ .footer-col-1 {
118
+ width: -webkit-calc(30% - (#{$spacing-unit} / 2));
119
+ width: calc(30% - (#{$spacing-unit} / 2));
120
+ }
121
+
122
+ .footer-col-2 {
123
+ width: -webkit-calc(25% - (#{$spacing-unit} / 2));
124
+ width: calc(25% - (#{$spacing-unit} / 2));
125
+ }
126
+
127
+ .footer-col-3 {
128
+ width: -webkit-calc(45% - (#{$spacing-unit} / 2));
129
+ width: calc(45% - (#{$spacing-unit} / 2));
130
+ }
131
+
132
+ @include media-query($on-laptop) {
133
+ .footer-col-1,
134
+ .footer-col-2 {
135
+ width: -webkit-calc(50% - (#{$spacing-unit} / 2));
136
+ width: calc(50% - (#{$spacing-unit} / 2));
137
+ }
138
+
139
+ .footer-col-3 {
140
+ width: -webkit-calc(100% - (#{$spacing-unit} / 2));
141
+ width: calc(100% - (#{$spacing-unit} / 2));
142
+ }
143
+ }
144
+
145
+ @include media-query($on-palm) {
146
+ .footer-col {
147
+ float: none;
148
+ width: -webkit-calc(100% - (#{$spacing-unit} / 2));
149
+ width: calc(100% - (#{$spacing-unit} / 2));
150
+ }
151
+ }
152
+
153
+
154
+
155
+ /**
156
+ * Page content
157
+ */
158
+ .page-content {
159
+ padding: $spacing-unit 0;
160
+ background-color: #f6f6f6;
161
+ }
162
+
163
+ .page-heading {
164
+ font-size: 20px;
165
+ }
166
+
167
+ .post-list {
168
+ margin-left: 0;
169
+ list-style: none;
170
+
171
+ > li {
172
+ background-color: white;
173
+ padding: $spacing-unit;
174
+ margin: $spacing-unit 0;
175
+ border-radius: 4px;
176
+ @include BoxShadow(1);
177
+
178
+ article >:last-child {
179
+ clear: both;
180
+ }
181
+
182
+ a.read-more {
183
+ text-transform: uppercase;
184
+ font-weight: 500;
185
+ }
186
+ }
187
+ }
188
+
189
+ .post-meta {
190
+ font-size: $small-font-size;
191
+ color: $grey-color;
192
+ }
193
+
194
+ .post-link {
195
+ display: block;
196
+ font-size: 24px;
197
+ }
198
+
199
+
200
+
201
+ /**
202
+ * Posts
203
+ */
204
+ .post-header {
205
+ margin-bottom: $spacing-unit;
206
+ }
207
+
208
+ .post-title {
209
+ font-size: 42px;
210
+ letter-spacing: -1px;
211
+ line-height: 1;
212
+
213
+ @include media-query($on-laptop) {
214
+ font-size: 36px;
215
+ }
216
+ }
217
+
218
+ .post-content {
219
+ h2 {
220
+ font-size: 32px;
221
+
222
+ @include media-query($on-laptop) {
223
+ font-size: 28px;
224
+ }
225
+ }
226
+
227
+ h3 {
228
+ font-size: 26px;
229
+
230
+ @include media-query($on-laptop) {
231
+ font-size: 22px;
232
+ }
233
+ }
234
+
235
+ h4 {
236
+ font-size: 20px;
237
+
238
+ @include media-query($on-laptop) {
239
+ font-size: 18px;
240
+ }
241
+ }
242
+
243
+ table {
244
+ width: 100%;
245
+ border-collapse: collapse;
246
+ margin-bottom: $spacing-unit;
247
+ }
248
+
249
+ th, td {
250
+ text-align: left;
251
+ padding: $spacing-unit / 2;
252
+ border-bottom: thin solid $brand-color;
253
+ }
254
+
255
+ tbody tr:nth-child(odd) {background-color: #f2f2f2;}
256
+ }
257
+
258
+ .pagination,
259
+ .post-nav,
260
+ .section-nav {
261
+ text-align: center;
262
+ background-color: white;
263
+ padding: $spacing-unit;
264
+ margin: $spacing-unit 0;
265
+ border-radius: 4px;
266
+ @include BoxShadow(1);
267
+ }
268
+
269
+ .post-nav + h3 {
270
+ clear: both;
271
+ }
272
+
273
+ .post-nav>div,
274
+ .section-nav>div {
275
+ width: 33.3%;
276
+ display: inline-block;
277
+ }
278
+
279
+ a.button,
280
+ span.button,
281
+ .post-nav>div>span,
282
+ .post-nav>div>a,
283
+ .section-nav>div>span,
284
+ .section-nav>div>a {
285
+ border-radius: 5pt;
286
+ border: thin solid $grey-color-light;
287
+ padding: 5pt 15pt;
288
+ }
289
+
290
+ div.post-nav .button,
291
+ div.pagination span.button,
292
+ div.pagination a.button {
293
+ margin: 0 5%;
294
+ }
295
+
296
+ a.button:hover,
297
+ .post-nav a:hover,
298
+ .section-nav a:hover {
299
+ background: lightgray;
300
+ text-decoration: none;
301
+ }
302
+
303
+ .align-right { text-align: right; }
304
+ .align-left { text-align: left; }
305
+
306
+ .left { float: left; }
307
+ .right { float: right; }
308
+
309
+ div.post.candid-strategies-md
310
+ article
311
+ ul
312
+ {
313
+ margin: 0;
314
+ }
315
+
316
+ div.post.candid-strategies-md
317
+ article
318
+ ul
319
+ li
320
+ {
321
+ display: block;
322
+ border: thin solid $grey-color-light;
323
+ border-radius: 1em;
324
+ padding: 6em;
325
+ width: 15em;
326
+ margin: 2em auto;
327
+ text-align: center;
328
+ }
329
+
330
+ article iframe,
331
+ ul.post-list iframe
332
+ {
333
+ max-width: 100%;
334
+ }
335
+
336
+ article div.comment
337
+ {
338
+ border: thin dotted grey;
339
+ padding: 1em;
340
+ margin: 1em 0;
341
+ }
342
+
343
+ article div.series-header,
344
+ article div.series-footer
345
+ {
346
+ border: thin dotted lightgrey;
347
+ padding: 1em;
348
+ margin: 1em 0;
349
+ clear: both;
350
+
351
+ :last-child {
352
+ margin-bottom: 0;
353
+ }
354
+ }
355
+
356
+ .yearly-archive dl h2 {
357
+ margin-top: 0.75em;
358
+ }
359
+
360
+ .archives ul
361
+ {
362
+ display: grid;
363
+ margin: 0;
364
+ list-style: none;
365
+ grid-template-columns: repeat(4, 1fr);
366
+ grid-column-gap: 2em;
367
+
368
+ li
369
+ {
370
+ margin-bottom: 1em;
371
+ border-bottom: thin solid $grey-color-light;
372
+
373
+ a
374
+ {
375
+ display: flex;
376
+ justify-content: space-between;
377
+ }
378
+ }
379
+ }
380
+
381
+ .yearly-archive dl,
382
+ .monthly-archive dl
383
+ {
384
+ display: grid;
385
+ margin: 0;
386
+ list-style: none;
387
+ grid-template-columns: 12em 1fr;
388
+ margin-bottom: 1em;
389
+ }
@@ -0,0 +1,67 @@
1
+ /**
2
+ * Syntax highlighting styles
3
+ */
4
+ .highlight {
5
+ background: #fff;
6
+ @extend %vertical-rhythm;
7
+
8
+ .c { color: #998; font-style: italic } // Comment
9
+ .err { color: #a61717; background-color: #e3d2d2 } // Error
10
+ .k { font-weight: bold } // Keyword
11
+ .o { font-weight: bold } // Operator
12
+ .cm { color: #998; font-style: italic } // Comment.Multiline
13
+ .cp { color: #999; font-weight: bold } // Comment.Preproc
14
+ .c1 { color: #998; font-style: italic } // Comment.Single
15
+ .cs { color: #999; font-weight: bold; font-style: italic } // Comment.Special
16
+ .gd { color: #000; background-color: #fdd } // Generic.Deleted
17
+ .gd .x { color: #000; background-color: #faa } // Generic.Deleted.Specific
18
+ .ge { font-style: italic } // Generic.Emph
19
+ .gr { color: #a00 } // Generic.Error
20
+ .gh { color: #999 } // Generic.Heading
21
+ .gi { color: #000; background-color: #dfd } // Generic.Inserted
22
+ .gi .x { color: #000; background-color: #afa } // Generic.Inserted.Specific
23
+ .go { color: #888 } // Generic.Output
24
+ .gp { color: #555 } // Generic.Prompt
25
+ .gs { font-weight: bold } // Generic.Strong
26
+ .gu { color: #aaa } // Generic.Subheading
27
+ .gt { color: #a00 } // Generic.Traceback
28
+ .kc { font-weight: bold } // Keyword.Constant
29
+ .kd { font-weight: bold } // Keyword.Declaration
30
+ .kp { font-weight: bold } // Keyword.Pseudo
31
+ .kr { font-weight: bold } // Keyword.Reserved
32
+ .kt { color: #458; font-weight: bold } // Keyword.Type
33
+ .m { color: #099 } // Literal.Number
34
+ .s { color: #d14 } // Literal.String
35
+ .na { color: #008080 } // Name.Attribute
36
+ .nb { color: #0086B3 } // Name.Builtin
37
+ .nc { color: #458; font-weight: bold } // Name.Class
38
+ .no { color: #008080 } // Name.Constant
39
+ .ni { color: #800080 } // Name.Entity
40
+ .ne { color: #900; font-weight: bold } // Name.Exception
41
+ .nf { color: #900; font-weight: bold } // Name.Function
42
+ .nn { color: #555 } // Name.Namespace
43
+ .nt { color: #000080 } // Name.Tag
44
+ .nv { color: #008080 } // Name.Variable
45
+ .ow { font-weight: bold } // Operator.Word
46
+ .w { color: #bbb } // Text.Whitespace
47
+ .mf { color: #099 } // Literal.Number.Float
48
+ .mh { color: #099 } // Literal.Number.Hex
49
+ .mi { color: #099 } // Literal.Number.Integer
50
+ .mo { color: #099 } // Literal.Number.Oct
51
+ .sb { color: #d14 } // Literal.String.Backtick
52
+ .sc { color: #d14 } // Literal.String.Char
53
+ .sd { color: #d14 } // Literal.String.Doc
54
+ .s2 { color: #d14 } // Literal.String.Double
55
+ .se { color: #d14 } // Literal.String.Escape
56
+ .sh { color: #d14 } // Literal.String.Heredoc
57
+ .si { color: #d14 } // Literal.String.Interpol
58
+ .sx { color: #d14 } // Literal.String.Other
59
+ .sr { color: #009926 } // Literal.String.Regex
60
+ .s1 { color: #d14 } // Literal.String.Single
61
+ .ss { color: #990073 } // Literal.String.Symbol
62
+ .bp { color: #999 } // Name.Builtin.Pseudo
63
+ .vc { color: #008080 } // Name.Variable.Class
64
+ .vg { color: #008080 } // Name.Variable.Global
65
+ .vi { color: #008080 } // Name.Variable.Instance
66
+ .il { color: #099 } // Literal.Number.Integer.Long
67
+ }