arco 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/_config.yml +2 -0
  4. data/_includes/cover.html +9 -0
  5. data/_includes/footer.html +3 -0
  6. data/_includes/mathjax.html +22 -0
  7. data/_includes/sidebar.html +23 -0
  8. data/_layouts/default.html +16 -0
  9. data/_layouts/landing.html +11 -0
  10. data/_layouts/post-list.html +30 -0
  11. data/_layouts/post.html +23 -0
  12. data/_layouts/resume.html +5 -0
  13. data/_sass/arco.scss +149 -0
  14. data/_sass/constants.scss +19 -0
  15. data/_sass/cover.scss +113 -0
  16. data/_sass/fonts.scss +55 -0
  17. data/_sass/footer.scss +3 -0
  18. data/_sass/normalize.scss +349 -0
  19. data/_sass/post-list.scss +66 -0
  20. data/_sass/post.scss +37 -0
  21. data/_sass/sidebar.scss +190 -0
  22. data/_sass/syntax-highlighting.scss +129 -0
  23. data/assets/css/main.scss +11 -0
  24. data/assets/flexmasonry/flexmasonry.css +77 -0
  25. data/assets/flexmasonry/flexmasonry.js +7 -0
  26. data/assets/fonts/open-sans/LICENSE.txt +202 -0
  27. data/assets/fonts/open-sans/OpenSans-Bold.ttf +0 -0
  28. data/assets/fonts/open-sans/OpenSans-BoldItalic.ttf +0 -0
  29. data/assets/fonts/open-sans/OpenSans-Italic.ttf +0 -0
  30. data/assets/fonts/open-sans/OpenSans-Regular.ttf +0 -0
  31. data/assets/fonts/roboto-mono/LICENSE.txt +202 -0
  32. data/assets/fonts/roboto-mono/RobotoMono-Bold.ttf +0 -0
  33. data/assets/fonts/roboto-mono/RobotoMono-BoldItalic.ttf +0 -0
  34. data/assets/fonts/roboto-mono/RobotoMono-Italic.ttf +0 -0
  35. data/assets/fonts/roboto-mono/RobotoMono-Regular.ttf +0 -0
  36. data/assets/js/cover-transitions.js +16 -0
  37. data/assets/js/fade-transitions.js +49 -0
  38. data/assets/js/post-grid-init.js +4 -0
  39. data/assets/js/sidebar.js +11 -0
  40. metadata +96 -0
@@ -0,0 +1,349 @@
1
+ /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
2
+
3
+ /* Document
4
+ ========================================================================== */
5
+
6
+ /**
7
+ * 1. Correct the line height in all browsers.
8
+ * 2. Prevent adjustments of font size after orientation changes in iOS.
9
+ */
10
+
11
+ html {
12
+ line-height: 1.15; /* 1 */
13
+ -webkit-text-size-adjust: 100%; /* 2 */
14
+ }
15
+
16
+ /* Sections
17
+ ========================================================================== */
18
+
19
+ /**
20
+ * Remove the margin in all browsers.
21
+ */
22
+
23
+ body {
24
+ margin: 0;
25
+ }
26
+
27
+ /**
28
+ * Render the `main` element consistently in IE.
29
+ */
30
+
31
+ main {
32
+ display: block;
33
+ }
34
+
35
+ /**
36
+ * Correct the font size and margin on `h1` elements within `section` and
37
+ * `article` contexts in Chrome, Firefox, and Safari.
38
+ */
39
+
40
+ h1 {
41
+ font-size: 2em;
42
+ margin: 0.67em 0;
43
+ }
44
+
45
+ /* Grouping content
46
+ ========================================================================== */
47
+
48
+ /**
49
+ * 1. Add the correct box sizing in Firefox.
50
+ * 2. Show the overflow in Edge and IE.
51
+ */
52
+
53
+ hr {
54
+ box-sizing: content-box; /* 1 */
55
+ height: 0; /* 1 */
56
+ overflow: visible; /* 2 */
57
+ }
58
+
59
+ /**
60
+ * 1. Correct the inheritance and scaling of font size in all browsers.
61
+ * 2. Correct the odd `em` font sizing in all browsers.
62
+ */
63
+
64
+ pre {
65
+ font-family: monospace, monospace; /* 1 */
66
+ font-size: 1em; /* 2 */
67
+ }
68
+
69
+ /* Text-level semantics
70
+ ========================================================================== */
71
+
72
+ /**
73
+ * Remove the gray background on active links in IE 10.
74
+ */
75
+
76
+ a {
77
+ background-color: transparent;
78
+ }
79
+
80
+ /**
81
+ * 1. Remove the bottom border in Chrome 57-
82
+ * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
83
+ */
84
+
85
+ abbr[title] {
86
+ border-bottom: none; /* 1 */
87
+ text-decoration: underline; /* 2 */
88
+ text-decoration: underline dotted; /* 2 */
89
+ }
90
+
91
+ /**
92
+ * Add the correct font weight in Chrome, Edge, and Safari.
93
+ */
94
+
95
+ b,
96
+ strong {
97
+ font-weight: bolder;
98
+ }
99
+
100
+ /**
101
+ * 1. Correct the inheritance and scaling of font size in all browsers.
102
+ * 2. Correct the odd `em` font sizing in all browsers.
103
+ */
104
+
105
+ code,
106
+ kbd,
107
+ samp {
108
+ font-family: monospace, monospace; /* 1 */
109
+ font-size: 1em; /* 2 */
110
+ }
111
+
112
+ /**
113
+ * Add the correct font size in all browsers.
114
+ */
115
+
116
+ small {
117
+ font-size: 80%;
118
+ }
119
+
120
+ /**
121
+ * Prevent `sub` and `sup` elements from affecting the line height in
122
+ * all browsers.
123
+ */
124
+
125
+ sub,
126
+ sup {
127
+ font-size: 75%;
128
+ line-height: 0;
129
+ position: relative;
130
+ vertical-align: baseline;
131
+ }
132
+
133
+ sub {
134
+ bottom: -0.25em;
135
+ }
136
+
137
+ sup {
138
+ top: -0.5em;
139
+ }
140
+
141
+ /* Embedded content
142
+ ========================================================================== */
143
+
144
+ /**
145
+ * Remove the border on images inside links in IE 10.
146
+ */
147
+
148
+ img {
149
+ border-style: none;
150
+ }
151
+
152
+ /* Forms
153
+ ========================================================================== */
154
+
155
+ /**
156
+ * 1. Change the font styles in all browsers.
157
+ * 2. Remove the margin in Firefox and Safari.
158
+ */
159
+
160
+ button,
161
+ input,
162
+ optgroup,
163
+ select,
164
+ textarea {
165
+ font-family: inherit; /* 1 */
166
+ font-size: 100%; /* 1 */
167
+ line-height: 1.15; /* 1 */
168
+ margin: 0; /* 2 */
169
+ }
170
+
171
+ /**
172
+ * Show the overflow in IE.
173
+ * 1. Show the overflow in Edge.
174
+ */
175
+
176
+ button,
177
+ input { /* 1 */
178
+ overflow: visible;
179
+ }
180
+
181
+ /**
182
+ * Remove the inheritance of text transform in Edge, Firefox, and IE.
183
+ * 1. Remove the inheritance of text transform in Firefox.
184
+ */
185
+
186
+ button,
187
+ select { /* 1 */
188
+ text-transform: none;
189
+ }
190
+
191
+ /**
192
+ * Correct the inability to style clickable types in iOS and Safari.
193
+ */
194
+
195
+ button,
196
+ [type="button"],
197
+ [type="reset"],
198
+ [type="submit"] {
199
+ -webkit-appearance: button;
200
+ }
201
+
202
+ /**
203
+ * Remove the inner border and padding in Firefox.
204
+ */
205
+
206
+ button::-moz-focus-inner,
207
+ [type="button"]::-moz-focus-inner,
208
+ [type="reset"]::-moz-focus-inner,
209
+ [type="submit"]::-moz-focus-inner {
210
+ border-style: none;
211
+ padding: 0;
212
+ }
213
+
214
+ /**
215
+ * Restore the focus styles unset by the previous rule.
216
+ */
217
+
218
+ button:-moz-focusring,
219
+ [type="button"]:-moz-focusring,
220
+ [type="reset"]:-moz-focusring,
221
+ [type="submit"]:-moz-focusring {
222
+ outline: 1px dotted ButtonText;
223
+ }
224
+
225
+ /**
226
+ * Correct the padding in Firefox.
227
+ */
228
+
229
+ fieldset {
230
+ padding: 0.35em 0.75em 0.625em;
231
+ }
232
+
233
+ /**
234
+ * 1. Correct the text wrapping in Edge and IE.
235
+ * 2. Correct the color inheritance from `fieldset` elements in IE.
236
+ * 3. Remove the padding so developers are not caught out when they zero out
237
+ * `fieldset` elements in all browsers.
238
+ */
239
+
240
+ legend {
241
+ box-sizing: border-box; /* 1 */
242
+ color: inherit; /* 2 */
243
+ display: table; /* 1 */
244
+ max-width: 100%; /* 1 */
245
+ padding: 0; /* 3 */
246
+ white-space: normal; /* 1 */
247
+ }
248
+
249
+ /**
250
+ * Add the correct vertical alignment in Chrome, Firefox, and Opera.
251
+ */
252
+
253
+ progress {
254
+ vertical-align: baseline;
255
+ }
256
+
257
+ /**
258
+ * Remove the default vertical scrollbar in IE 10+.
259
+ */
260
+
261
+ textarea {
262
+ overflow: auto;
263
+ }
264
+
265
+ /**
266
+ * 1. Add the correct box sizing in IE 10.
267
+ * 2. Remove the padding in IE 10.
268
+ */
269
+
270
+ [type="checkbox"],
271
+ [type="radio"] {
272
+ box-sizing: border-box; /* 1 */
273
+ padding: 0; /* 2 */
274
+ }
275
+
276
+ /**
277
+ * Correct the cursor style of increment and decrement buttons in Chrome.
278
+ */
279
+
280
+ [type="number"]::-webkit-inner-spin-button,
281
+ [type="number"]::-webkit-outer-spin-button {
282
+ height: auto;
283
+ }
284
+
285
+ /**
286
+ * 1. Correct the odd appearance in Chrome and Safari.
287
+ * 2. Correct the outline style in Safari.
288
+ */
289
+
290
+ [type="search"] {
291
+ -webkit-appearance: textfield; /* 1 */
292
+ outline-offset: -2px; /* 2 */
293
+ }
294
+
295
+ /**
296
+ * Remove the inner padding in Chrome and Safari on macOS.
297
+ */
298
+
299
+ [type="search"]::-webkit-search-decoration {
300
+ -webkit-appearance: none;
301
+ }
302
+
303
+ /**
304
+ * 1. Correct the inability to style clickable types in iOS and Safari.
305
+ * 2. Change font properties to `inherit` in Safari.
306
+ */
307
+
308
+ ::-webkit-file-upload-button {
309
+ -webkit-appearance: button; /* 1 */
310
+ font: inherit; /* 2 */
311
+ }
312
+
313
+ /* Interactive
314
+ ========================================================================== */
315
+
316
+ /*
317
+ * Add the correct display in Edge, IE 10+, and Firefox.
318
+ */
319
+
320
+ details {
321
+ display: block;
322
+ }
323
+
324
+ /*
325
+ * Add the correct display in all browsers.
326
+ */
327
+
328
+ summary {
329
+ display: list-item;
330
+ }
331
+
332
+ /* Misc
333
+ ========================================================================== */
334
+
335
+ /**
336
+ * Add the correct display in IE 10+.
337
+ */
338
+
339
+ template {
340
+ display: none;
341
+ }
342
+
343
+ /**
344
+ * Add the correct display in IE 10.
345
+ */
346
+
347
+ [hidden] {
348
+ display: none;
349
+ }
@@ -0,0 +1,66 @@
1
+ .list-posts {
2
+ margin-bottom: 2em;
3
+ }
4
+
5
+ .list-post-link {
6
+ margin: 2em 1em 0 1em;
7
+ display: block;
8
+ width: auto;
9
+ height: auto;
10
+ }
11
+
12
+ .list-post-link:hover {
13
+ background-color: $hover-colour;
14
+ opacity: 0.8;
15
+ border-radius: 5px;
16
+ transition: .2s ease-in-out;
17
+ -webkit-transition: .2s ease-in-out;
18
+ }
19
+
20
+ .list-post-image {
21
+ width: 100%;
22
+ margin-bottom: 0.4em;
23
+ border-radius: 5px;
24
+ }
25
+
26
+ .list-post-info {
27
+ margin: 0 0.4em;
28
+ }
29
+
30
+ .list-post-title {
31
+ color: $text-colour-dark;
32
+ width: 100%;
33
+ font-size: 18px;
34
+ font-weight: bold;
35
+ a {
36
+ color: white;
37
+ &:hover {
38
+ color: white;
39
+ }
40
+ }
41
+ }
42
+
43
+ .list-post-summary {
44
+ color: $summary-colour;
45
+ margin: 0.4em 0;
46
+ font-size: 16px;
47
+ }
48
+
49
+ .list-post-footer {
50
+ margin-left: 1.4em;
51
+ }
52
+
53
+ .list-post-date {
54
+ color: $secondary-highlight;
55
+ font-weight: bold;
56
+ font-size: 14px;
57
+ }
58
+
59
+ .list-post-category {
60
+ font-weight: bold;
61
+ font-size: 14px;
62
+ color: $primary-highlight;
63
+ &:hover, &:focus {
64
+ color: lighten($primary-highlight, 14%);
65
+ }
66
+ }
data/_sass/post.scss ADDED
@@ -0,0 +1,37 @@
1
+ .post {
2
+ margin-top: 4em;
3
+ width: 100%;
4
+ }
5
+
6
+ .post-title h1{
7
+ margin-bottom: 0;
8
+ }
9
+
10
+ .post-date {
11
+ color: $secondary-highlight;
12
+ font-weight: bold;
13
+ font-size: 14px;
14
+ }
15
+
16
+ .post-image {
17
+ display: block;
18
+ width: 70%;
19
+ margin: 2em auto 0 auto;
20
+ border-radius: 5px;
21
+ }
22
+
23
+ .post-category {
24
+ font-weight: bold;
25
+ font-size: 14px;
26
+ color: $primary-highlight;
27
+ &:hover, &:focus {
28
+ color: lighten($primary-highlight, 14%);
29
+ }
30
+ }
31
+
32
+ .post-content img {
33
+ max-width: 90%;
34
+ max-height: 600px;
35
+ display: block;
36
+ margin: 0 auto;
37
+ }
@@ -0,0 +1,190 @@
1
+ @import "constants";
2
+ @import "fonts";
3
+
4
+ .sidebar-text, .sidebar-links {
5
+ h1 {
6
+ margin: 0;
7
+ :hover {
8
+ color: lighten($primary-highlight, 14%);
9
+ }
10
+ }
11
+ h6 {
12
+ text-transform: uppercase;
13
+ font-size: .9rem;
14
+ color: $text-colour-light;
15
+ }
16
+ a {
17
+ text-decoration: none;
18
+ color: $primary-highlight;
19
+ &:hover, &:focus {
20
+ color: lighten($primary-highlight, 14%);
21
+ }
22
+ }
23
+ }
24
+
25
+ #sidebar {
26
+ display: flex;
27
+ top: 0;
28
+ position: fixed;
29
+ z-index: 9999;
30
+ background: $sidebar-colour;
31
+ color: $text-colour-light;
32
+ transition: all .35s ease;
33
+ }
34
+
35
+ /* vertical layout */
36
+ @media only screen and (max-width: calc(2 * #{$sidebar-width - 1})), (orientation: portrait) {
37
+ #sidebar {
38
+ flex-direction: row;
39
+ justify-content: space-evenly;
40
+ align-items: center;
41
+ text-align: center;
42
+ }
43
+
44
+ .sidebar {
45
+ width: 100%;
46
+ height: $sidebar-height;
47
+ }
48
+
49
+ .sidebar-minimised {
50
+ width: 100%;
51
+ height: $sidebar-height-min;
52
+ }
53
+
54
+ .sidebar-text {
55
+ display: flex;
56
+ flex-direction: column;
57
+ }
58
+
59
+ .content {
60
+ flex: 1;
61
+ max-width: 100%;
62
+ margin: 190px 1em 1em 1em;
63
+ display: flex;
64
+ flex-direction: column;
65
+ align-items: center;
66
+ }
67
+
68
+ #content-fader {
69
+ position: fixed;
70
+ bottom: 0;
71
+ right: 0;
72
+ height: calc(100% - #{$sidebar-height});
73
+ width: 100%;
74
+ z-index: 9999;
75
+ pointer-events: none;
76
+ background: white;
77
+ opacity: 1;
78
+ animation-duration: .35s;
79
+ animation-timing-function: ease;
80
+ }
81
+
82
+ #sidebar-fader {
83
+ position: fixed;
84
+ top: 0;
85
+ left: 0;
86
+ height: $sidebar-height;
87
+ width: 100%;
88
+ z-index: 9999;
89
+ pointer-events: none;
90
+ background: $sidebar-colour;
91
+ opacity: 1;
92
+ animation-duration: .35s;
93
+ animation-timing-function: ease;
94
+ }
95
+ }
96
+
97
+ /* horizontal layout */
98
+ @media only screen and (min-width: calc(2 * #{$sidebar-width})) and (orientation: landscape) {
99
+ #sidebar {
100
+ flex-direction: column;
101
+ text-align: center;
102
+ justify-content: center;
103
+ }
104
+
105
+ .sidebar, .sidebar-minimised {
106
+ width: $sidebar-width;
107
+ height: 100%;
108
+ }
109
+
110
+ .content {
111
+ flex: 1;
112
+ display: flex;
113
+ flex-direction: column;
114
+ align-items: center;
115
+ justify-content: space-between;
116
+ margin: 1em 1em 1em calc(1em + #{$sidebar-width});
117
+ }
118
+
119
+ .sidebar-links {
120
+ margin-top: 1.67em;
121
+ }
122
+
123
+ #content-fader {
124
+ position: fixed;
125
+ top: 0;
126
+ right: 0;
127
+ width: calc(100% - #{$sidebar-width});
128
+ height: 100%;
129
+ z-index: 9999;
130
+ pointer-events: none;
131
+ background: white;
132
+ opacity: 1;
133
+ animation-duration: .35s;
134
+ animation-timing-function: ease;
135
+ }
136
+
137
+ #sidebar-fader {
138
+ position: fixed;
139
+ bottom: 0;
140
+ left: 0;
141
+ height: 100%;
142
+ width: $sidebar-width;
143
+ z-index: 9999;
144
+ pointer-events: none;
145
+ background: $sidebar-colour;
146
+ opacity: 1;
147
+ animation-duration: .35s;
148
+ animation-timing-function: ease;
149
+ }
150
+ }
151
+
152
+ @keyframes fade-out {
153
+ from {
154
+ opacity: 1
155
+ }
156
+
157
+ to {
158
+ opacity: 0
159
+ }
160
+ }
161
+
162
+ @keyframes fade-in {
163
+ from {
164
+ opacity: 0
165
+ }
166
+
167
+ to {
168
+ opacity: 1
169
+ }
170
+ }
171
+
172
+ #content-fader.fade-out {
173
+ opacity: 0;
174
+ animation-name: fade-out;
175
+ }
176
+
177
+ #content-fader.fade-in {
178
+ opacity: 1;
179
+ animation-name: fade-in;
180
+ }
181
+
182
+ #sidebar-fader.fade-out {
183
+ opacity: 0;
184
+ animation-name: fade-out;
185
+ }
186
+
187
+ #sidebar-fader.fade-in {
188
+ opacity: 1;
189
+ animation-name: fade-in;
190
+ }