klise 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,371 @@
1
+ // Navbar
2
+ .navbar {
3
+ height: auto;
4
+ max-width: calc(#{$wide-size} - (#{$spacing-full} * 2));
5
+ max-width: -webkit-calc(#{$wide-size} - (#{$spacing-full} * 2));
6
+ position: relative;
7
+ margin-right: auto;
8
+ margin-left: auto;
9
+ border-bottom: 1px solid $light;
10
+ padding: $spacing-full - 15px $spacing-full;
11
+ @extend %clearfix;
12
+ }
13
+
14
+ // Navigation
15
+ .menu {
16
+ user-select: none;
17
+ -ms-user-select: none;
18
+ -webkit-user-select: none;
19
+
20
+ a#mode {
21
+ float: left;
22
+ left: 8px;
23
+ top: 6px;
24
+ position: relative;
25
+ clear: both;
26
+ -webkit-transform: scale(1, 1);
27
+ transform: scale(1, 1);
28
+ opacity: 0.7;
29
+ z-index: 1;
30
+ &:hover {
31
+ cursor: pointer;
32
+ opacity: 1;
33
+ }
34
+ &:active {
35
+ -webkit-transform: scale(0.9, 0.9);
36
+ transform: scale(0.9, 0.9);
37
+ }
38
+ .mode-moon {
39
+ display: block;
40
+ line {
41
+ stroke: $black;
42
+ fill: none;
43
+ }
44
+
45
+ circle {
46
+ fill: $black;
47
+ stroke: $black;
48
+ }
49
+ }
50
+ .mode-sunny {
51
+ display: none;
52
+ line {
53
+ stroke: $dark-white;
54
+ fill: none;
55
+ }
56
+ circle {
57
+ fill: none;
58
+ stroke: $dark-white;
59
+ }
60
+ }
61
+ }
62
+
63
+ .trigger {
64
+ float: right;
65
+ }
66
+
67
+ .menu-trigger {
68
+ display: none;
69
+ }
70
+
71
+ .menu-icon {
72
+ display: none;
73
+ }
74
+
75
+ .menu-link {
76
+ color: $black;
77
+ line-height: $base-line-height + 0.4;
78
+ text-decoration: none;
79
+ padding: 5px 8px;
80
+ opacity: 0.7;
81
+ letter-spacing: 0.3px;
82
+
83
+ &:hover {
84
+ opacity: 1;
85
+ }
86
+
87
+ &:not(:last-child) {
88
+ margin-right: 5px;
89
+ }
90
+
91
+ &.rss {
92
+ position: relative;
93
+ bottom: -3px;
94
+ outline: none;
95
+ }
96
+
97
+ @include media-query($on-mobile) {
98
+ opacity: 0.8;
99
+ }
100
+ }
101
+
102
+ .menu-link.active {
103
+ opacity: 1;
104
+ font-weight: 600;
105
+ }
106
+
107
+ @include media-query($on-mobile) {
108
+ position: fixed;
109
+ top: 0;
110
+ left: 0;
111
+ right: 0;
112
+ z-index: 2;
113
+ text-align: center;
114
+ height: 50px;
115
+ background-color: $white;
116
+ border-bottom: 1px solid $light;
117
+
118
+ a#mode {
119
+ left: 10px;
120
+ top: 12px;
121
+ }
122
+
123
+ .menu-icon {
124
+ display: block;
125
+ position: absolute;
126
+ right: 0;
127
+ width: 50px;
128
+ height: 23px;
129
+ line-height: 0;
130
+ padding-top: 13px;
131
+ padding-bottom: 15px;
132
+ cursor: pointer;
133
+ text-align: center;
134
+ z-index: 1;
135
+ > svg {
136
+ fill: $black;
137
+ opacity: 0.7;
138
+ }
139
+ &:hover {
140
+ > svg {
141
+ opacity: 1;
142
+ }
143
+ }
144
+ &:active {
145
+ -webkit-transform: scale(0.9, 0.9);
146
+ transform: scale(0.9, 0.9);
147
+ }
148
+ }
149
+
150
+ input[type="checkbox"]:not(:checked) ~ .trigger {
151
+ clear: both;
152
+ visibility: hidden;
153
+ }
154
+
155
+ input[type="checkbox"]:checked ~ .trigger {
156
+ position: fixed;
157
+ animation: 0.2s ease-in forwards fadein;
158
+ -webkit-animation: 0.2s ease-in forwards fadein;
159
+ display: flex;
160
+ flex-direction: row;
161
+ justify-content: center;
162
+ align-items: center;
163
+ background-color: $white;
164
+ height: 100vh;
165
+ width: 100%;
166
+ top: 0;
167
+ }
168
+
169
+ .menu-link {
170
+ display: block;
171
+ box-sizing: border-box;
172
+ font-size: 1.1em;
173
+
174
+ &:not(:last-child) {
175
+ margin: 0;
176
+ padding: 2px 0;
177
+ }
178
+ }
179
+ }
180
+ }
181
+
182
+ // Author
183
+ .author {
184
+ margin-top: 6.3rem;
185
+ margin-bottom: 7.2rem;
186
+ text-align: center;
187
+
188
+ @include media-query($on-mobile) {
189
+ margin-bottom: 3em;
190
+ }
191
+
192
+ .author-avatar {
193
+ width: 70px;
194
+ height: 70px;
195
+ border-radius: 100%;
196
+ user-select: none;
197
+ background-color: $black;
198
+ -ms-user-select: none;
199
+ -webkit-user-select: none;
200
+ -webkit-animation: 0.5s ease-in forwards fadein;
201
+ animation: 0.5s ease-in forwards fadein;
202
+ opacity: 1;
203
+ }
204
+
205
+ .author-name {
206
+ font-size: 1.7em;
207
+ margin-bottom: 2px;
208
+ }
209
+
210
+ .author-bio {
211
+ margin: 0 auto;
212
+ opacity: 0.9;
213
+ max-width: 393px;
214
+ line-height: 1.688;
215
+ }
216
+ }
217
+
218
+ // Content
219
+ .posts-item-note {
220
+ font-size: $base-font-size;
221
+ font-weight: 700;
222
+ margin-bottom: 5px;
223
+ color: $black;
224
+ }
225
+
226
+ // List of posts
227
+ .post-item {
228
+ display: flex;
229
+ padding-top: 5px;
230
+ padding-bottom: 6px;
231
+ @extend %clearfix;
232
+
233
+ &:not(:first-child) {
234
+ border-top: 1px solid $light;
235
+ }
236
+
237
+ .post-item-date {
238
+ min-width: 96px;
239
+ color: $black;
240
+ font-weight: 700;
241
+ padding-right: 10px;
242
+
243
+ @include media-query($on-mobile) {
244
+ font-size: 16px;
245
+ }
246
+ }
247
+
248
+ .post-item-title {
249
+ margin: 0;
250
+ border: 0;
251
+ padding: 0;
252
+ font-size: $base-font-size;
253
+ font-weight: normal;
254
+ letter-spacing: 0.1px;
255
+
256
+ a {
257
+ color: $text-base-color;
258
+
259
+ &:hover,
260
+ &focus {
261
+ color: $black;
262
+ }
263
+ }
264
+ }
265
+ }
266
+
267
+ // Footer
268
+ .footer {
269
+ margin-top: 8em;
270
+ margin-bottom: 2em;
271
+ text-align: center;
272
+
273
+ @include media-query($on-mobile) {
274
+ margin-top: 3em;
275
+ }
276
+ span.footer_item {
277
+ color: $black;
278
+ opacity: 0.8;
279
+ font-weight: $bold-weight;
280
+ font-size: $small-font-size;
281
+ }
282
+ a.footer_item {
283
+ color: $black;
284
+ opacity: 0.8;
285
+ text-decoration: none;
286
+
287
+ &:not(:last-child) {
288
+ margin-right: 10px;
289
+ &:hover {
290
+ opacity: 1;
291
+ }
292
+ }
293
+ }
294
+
295
+ .footer_copyright {
296
+ font-size: $small-font-size - 1;
297
+ margin-top: 3px;
298
+ display: block;
299
+ color: $gray;
300
+ opacity: 0.8;
301
+ }
302
+ }
303
+
304
+ .not-found {
305
+ text-align: center;
306
+ display: flex;
307
+ justify-content: center;
308
+ flex-direction: column;
309
+ height: 75vh;
310
+ .title {
311
+ font-size: 5em;
312
+ font-weight: $bold-weight;
313
+ line-height: 1.1;
314
+ color: $black;
315
+ text-shadow: 1px 0px 0px $text-link-blue;
316
+ }
317
+ .phrase {
318
+ color: $text-base-color;
319
+ }
320
+ .solution {
321
+ color: $text-link-blue;
322
+ letter-spacing: 0.5px;
323
+ }
324
+ .solution:hover {
325
+ color: $text-link-blue-active;
326
+ }
327
+ }
328
+
329
+
330
+ .search-article {
331
+ position: relative;
332
+ margin-bottom: 50px;
333
+
334
+ label[for="search-input"] {
335
+ position: relative;
336
+ top: 10px;
337
+ left: 11px;
338
+ }
339
+
340
+ input[type="search"] {
341
+ border: 0;
342
+ top: 0;
343
+ left: 0;
344
+ position: absolute;
345
+ width: 100%;
346
+ border-radius: 5px;
347
+ padding: 10px 10px 10px 35px;
348
+ font-size: $base-font-size;
349
+ color: $text-base-color;
350
+ background-color: rgba(128, 128, 128, 0.1);
351
+ border: 1px solid rgba(128, 128, 128, 0.1);
352
+ outline: none;
353
+ }
354
+ }
355
+
356
+ #search-results {
357
+ text-align: center;
358
+ li {
359
+ text-align: left;
360
+ }
361
+ }
362
+
363
+ .archive-tags {
364
+ height: auto;
365
+ .tag-item {
366
+ padding: 1px 3px;
367
+ border-radius: 2px;
368
+ border: 1px solid rgba(128, 128, 128, 0.1);
369
+ background-color: rgba(128, 128, 128, 0.1);
370
+ }
371
+ }
@@ -0,0 +1,41 @@
1
+ // Animation fade-in
2
+ @keyframes fadein {
3
+ 0% {
4
+ opacity: 0.2;
5
+ }
6
+
7
+ 100% {
8
+ opacity: 0.8;
9
+ }
10
+ }
11
+
12
+ // Animation blur
13
+ @keyframes blur {
14
+ 0% {
15
+ filter: blur(0px);
16
+ }
17
+
18
+ 100% {
19
+ filter: blur(4px);
20
+ }
21
+ }
22
+
23
+ // Responsive embed video
24
+ .embed-responsive {
25
+ height: 0;
26
+ max-width: 100%;
27
+ overflow: hidden;
28
+ position: relative;
29
+ padding-bottom: 56.25%;
30
+ margin-top: 20px;
31
+
32
+ iframe,
33
+ object,
34
+ embed {
35
+ top: 0;
36
+ left: 0;
37
+ width: 100%;
38
+ height: 100%;
39
+ position: absolute;
40
+ }
41
+ }
@@ -0,0 +1,261 @@
1
+ // Post wrapper
2
+ .wrapper.post {
3
+ @include media-query($on-mobile) {
4
+ padding-left: $spacing-half;
5
+ padding-right: $spacing-half;
6
+ }
7
+ }
8
+
9
+ // Post title
10
+ .header {
11
+ margin-top: 7.8em;
12
+ margin-bottom: 3em;
13
+
14
+ .tags {
15
+ margin-left: 3px;
16
+ letter-spacing: 0.5px;
17
+
18
+ .tag {
19
+ font-weight: $bold-weight;
20
+ font-size: $small-font-size - 2;
21
+
22
+ &:hover {
23
+ text-decoration: none;
24
+ }
25
+ }
26
+ }
27
+
28
+ .header-title {
29
+ font-size: 2em;
30
+ line-height: 1.2;
31
+ margin-top: 10px;
32
+ margin-bottom: 20px;
33
+
34
+ &.center {
35
+ text-align: center;
36
+ }
37
+
38
+ @include media-query($on-mobile) {
39
+ font-size: 1.9em;
40
+ }
41
+ }
42
+ }
43
+
44
+ // Post meta
45
+ .post-meta {
46
+ padding-top: 3px;
47
+ line-height: 1.3;
48
+ color: $gray;
49
+
50
+ time {
51
+ position: relative;
52
+ margin-right: 1.5em;
53
+
54
+ &::after {
55
+ background: $light;
56
+ bottom: 1px;
57
+ content: " ";
58
+ height: 2px;
59
+ position: absolute;
60
+ right: -20px;
61
+ width: 12px;
62
+ }
63
+ }
64
+
65
+ span[itemprop="author"] {
66
+ border-bottom: 1px dotted $light;
67
+ }
68
+ }
69
+
70
+ // Post content
71
+ .page-content {
72
+ padding-top: 8px;
73
+
74
+ iframe {
75
+ text-align: center;
76
+ }
77
+
78
+ figure {
79
+ img {
80
+ border-radius: 2px;
81
+ }
82
+
83
+ figcaption {
84
+ margin-top: 5px;
85
+ font-style: italic;
86
+ font-size: $small-font-size;
87
+ }
88
+ }
89
+
90
+ a {
91
+ color: $text-link-blue;
92
+ text-decoration: none;
93
+ &[target="_blank"]::after {
94
+ content: " \2197";
95
+ font-size: $small-font-size;
96
+ line-height: 0;
97
+ position: relative;
98
+ bottom: 5px;
99
+ vertical-align: baseline;
100
+ }
101
+
102
+ &:hover {
103
+ color: $text-link-blue-active;
104
+ }
105
+
106
+ &:focus {
107
+ color: $text-link-blue;
108
+ }
109
+ }
110
+
111
+ > p {
112
+ margin: 0;
113
+ padding-top: $spacing-full - 15;
114
+ padding-bottom: $spacing-full - 15;
115
+ }
116
+
117
+ ul.task-list {
118
+ list-style: none;
119
+ margin: 0;
120
+
121
+ li::before {
122
+ content: "";
123
+ }
124
+
125
+ li input[type="checkbox"] {
126
+ margin-right: 10px;
127
+ }
128
+ }
129
+
130
+ dl dt {
131
+ font-weight: $bold-weight;
132
+ }
133
+
134
+ h1,
135
+ h2,
136
+ h3,
137
+ h4,
138
+ h5,
139
+ h6 {
140
+ color: $black;
141
+ font-weight: $bold-weight;
142
+ margin-top: $spacing-full;
143
+ margin-bottom: 0;
144
+
145
+ &:hover {
146
+ .anchor-head {
147
+ color: $text-link-blue;
148
+ opacity: 1;
149
+ }
150
+ }
151
+
152
+ .anchor-head {
153
+ position: relative;
154
+ opacity: 0;
155
+ outline: none;
156
+
157
+ &::before {
158
+ content: "#";
159
+ position: absolute;
160
+ right: -3px;
161
+ width: 1em;
162
+ font-weight: $bold-weight;
163
+ }
164
+ }
165
+ }
166
+
167
+ h1 {
168
+ @include relative-font-size(1.5);
169
+ }
170
+
171
+ h2 {
172
+ @include relative-font-size(1.375);
173
+ }
174
+
175
+ h3 {
176
+ @include relative-font-size(1.25);
177
+ border-bottom: 1px solid $light;
178
+ padding-bottom: 4px;
179
+ }
180
+
181
+ h4 {
182
+ @include relative-font-size(1.25);
183
+ }
184
+
185
+ h5 {
186
+ @include relative-font-size(1);
187
+ }
188
+
189
+ h6 {
190
+ @include relative-font-size(0.875);
191
+ }
192
+ }
193
+
194
+ .post-nav {
195
+ display: flex;
196
+ position: relative;
197
+ margin-top: 5em;
198
+ border-top: 1px solid $light;
199
+ line-height: 1.4;
200
+
201
+ .post-nav-item {
202
+ border-bottom: 0;
203
+ font-weight: $bold-weight;
204
+ padding-bottom: 10px;
205
+
206
+ .post-title {
207
+ color: $black;
208
+ }
209
+
210
+ &:hover,
211
+ &:focus {
212
+ .post-title {
213
+ color: $text-link-blue-active;
214
+ opacity: 0.9;
215
+ }
216
+ }
217
+
218
+ .nav-arrow {
219
+ font-weight: $normal-weight;
220
+ font-size: $small-font-size;
221
+ color: $gray;
222
+ margin-bottom: 3px;
223
+ }
224
+
225
+ width: 50%;
226
+ padding-top: 10px;
227
+ text-decoration: none;
228
+ box-sizing: border-box;
229
+
230
+ &:nth-child(odd) {
231
+ padding-left: 0;
232
+ padding-right: 20px;
233
+ }
234
+
235
+ &:nth-child(even) {
236
+ text-align: right;
237
+ padding-right: 0;
238
+ padding-left: 20px;
239
+ }
240
+ }
241
+
242
+ @include media-query($on-mobile) {
243
+ display: block;
244
+ font-size: $small-font-size;
245
+
246
+ .post-nav-item {
247
+ display: block;
248
+ width: 100%;
249
+ }
250
+
251
+ .post-nav-item:nth-child(even) {
252
+ border-left: 0;
253
+ padding-left: 0;
254
+ border-top: 1px solid $light;
255
+ }
256
+ }
257
+ }
258
+
259
+ .post-updated-at {
260
+ font-family: "Ubuntu mono", "monospace";
261
+ }