jekyll-theme-simplex-v2 0.9.8.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +240 -0
  4. data/_includes/footer.html +5 -0
  5. data/_includes/head.html +49 -0
  6. data/_includes/header.html +20 -0
  7. data/_includes/nav.html +30 -0
  8. data/_includes/scripts.html +3 -0
  9. data/_includes/snippet.html +38 -0
  10. data/_layouts/category.html +25 -0
  11. data/_layouts/default.html +20 -0
  12. data/_layouts/home.html +16 -0
  13. data/_layouts/page.html +7 -0
  14. data/_layouts/post.html +60 -0
  15. data/_sass/_feed.scss +173 -0
  16. data/_sass/_footer.scss +52 -0
  17. data/_sass/_global.scss +157 -0
  18. data/_sass/_header.scss +308 -0
  19. data/_sass/_index.scss +8 -0
  20. data/_sass/_mixins.scss +67 -0
  21. data/_sass/_page.scss +21 -0
  22. data/_sass/_post.scss +138 -0
  23. data/_sass/_variables.scss +290 -0
  24. data/assets/fonts/Roboto-Bold.ttf +0 -0
  25. data/assets/fonts/Roboto-Bold.woff +0 -0
  26. data/assets/fonts/Roboto-Bold.woff2 +0 -0
  27. data/assets/fonts/Roboto-Regular.ttf +0 -0
  28. data/assets/fonts/Roboto-Regular.woff +0 -0
  29. data/assets/fonts/Roboto-Regular.woff2 +0 -0
  30. data/assets/fonts/RobotoMono-Bold.ttf +0 -0
  31. data/assets/fonts/RobotoMono-Bold.woff +0 -0
  32. data/assets/fonts/RobotoMono-Bold.woff2 +0 -0
  33. data/assets/fonts/RobotoMono-Regular.ttf +0 -0
  34. data/assets/fonts/RobotoMono-Regular.woff +0 -0
  35. data/assets/fonts/RobotoMono-Regular.woff2 +0 -0
  36. data/assets/fonts/RobotoSlab-Bold.ttf +0 -0
  37. data/assets/fonts/RobotoSlab-Bold.woff +0 -0
  38. data/assets/fonts/RobotoSlab-Bold.woff2 +0 -0
  39. data/assets/fonts/RobotoSlab-Regular.ttf +0 -0
  40. data/assets/fonts/RobotoSlab-Regular.woff +0 -0
  41. data/assets/fonts/RobotoSlab-Regular.woff2 +0 -0
  42. data/assets/fonts/fonts.css +54 -0
  43. data/assets/img/icons/arrow_left.svg +1 -0
  44. data/assets/img/icons/arrow_right.svg +1 -0
  45. data/assets/img/icons/simplex_logo.svg +96 -0
  46. data/assets/js/jquery.slim.min.js +2 -0
  47. data/assets/js/lity.min.css +3 -0
  48. data/assets/js/lity.min.js +5 -0
  49. data/assets/js/tools.js +14 -0
  50. data/assets/style.scss +31 -0
  51. metadata +136 -0
data/_sass/_feed.scss ADDED
@@ -0,0 +1,173 @@
1
+ // =============================
2
+ // feed.scss
3
+ // =============================
4
+ // Used for page feed - used in index and categories.
5
+
6
+ .feed{
7
+
8
+ padding: 2rem;
9
+ margin: 2rem;
10
+ max-width: 1000px;
11
+ width: 100%;
12
+ justify-self: center;
13
+
14
+ @include flexbox{
15
+ flex-direction: column;
16
+ };
17
+
18
+ &__description{
19
+ @include flexbox{
20
+ flex-direction: column;
21
+ };
22
+
23
+ color: var(--c-feed-title);
24
+
25
+ text-align: center;
26
+ padding: 0 2rem;
27
+ margin-bottom: 2rem;
28
+ min-width: 80%;
29
+
30
+ h1{
31
+ margin: 1rem 0 0 0;
32
+
33
+ @include for-size('tablet'){
34
+ margin: 0;
35
+ }
36
+ }
37
+ }
38
+
39
+ .snippet{
40
+
41
+ @include flexbox;
42
+ position: relative;
43
+ width: 100%;
44
+
45
+ &__link{
46
+ text-decoration: none;
47
+ color: initial;
48
+ width: 100%;
49
+ height: 100%;
50
+ margin: 1rem 0;
51
+ padding: 1rem 2rem;
52
+ box-shadow: inset 0px 0px 14px -4px var(--c-snippetShadow);
53
+ transition: $t-smooth;
54
+
55
+ &:hover{
56
+ transform: scale(.99);
57
+ box-shadow: inset 0px 0px 14px -4px var(--c-snippetShadowHover);
58
+ }
59
+ }
60
+
61
+ @include for-size('tablet'){
62
+ width: 100%;
63
+ padding: 0;
64
+ }
65
+
66
+ &__data{
67
+
68
+ @include flexbox{
69
+ flex-direction: column;
70
+ align-items: flex-start;
71
+ };
72
+
73
+ &__metadata{
74
+ font-family: var(--f-header);
75
+
76
+ @include flexbox;
77
+
78
+ &__category{
79
+ text-transform: uppercase;
80
+ margin: 0;
81
+ @include flexbox;
82
+
83
+ &__title{
84
+ color: var(--c-noCategoryText);
85
+ background: var(--c-noCategoryBackground);
86
+ padding: .2rem .5rem;
87
+ }
88
+
89
+
90
+ @include for-size('tablet'){
91
+ flex-direction: column;
92
+
93
+ p{
94
+ text-align: center;
95
+ width: 100%;
96
+ margin: 0;
97
+ }
98
+ }
99
+ }
100
+
101
+ &__date{
102
+ margin: 0 0 0 1rem;
103
+ color: var(--c-snippetDate);
104
+
105
+ @include for-size('tablet'){
106
+ margin: 1rem 0 0 0;
107
+ }
108
+ }
109
+
110
+ @include for-size('tablet'){
111
+ flex-direction: column;
112
+ }
113
+ }
114
+
115
+ &__header{
116
+ margin: 1rem 0 0 0;
117
+ color: var(--c-articleHeading);
118
+
119
+ @include for-size('tablet'){
120
+ margin: 1rem 0 0 0;
121
+ text-align: center;
122
+ }
123
+ }
124
+
125
+ &__text{
126
+
127
+ color: var(--c-snippetHeading);
128
+ margin: 1rem 0 0 0;
129
+ }
130
+
131
+ &__author{
132
+
133
+ margin: 1.5rem 0 0 0;
134
+ color: var(--c-snippetAuthor);
135
+
136
+ @include flexbox{
137
+ flex-direction: row;
138
+ };
139
+
140
+ img{
141
+ height: 2rem;
142
+ border-radius: 100%;
143
+ }
144
+
145
+ p{
146
+ margin: 0 0 0 1rem;
147
+ }
148
+ }
149
+
150
+ @include for-size('tablet'){
151
+ align-items: center;
152
+ }
153
+ }
154
+
155
+ &::after{
156
+ content: "";
157
+ position: absolute; top: 0; left: 0; width: 100%; height: 100%;
158
+ z-index: -1;
159
+ background-size: cover;
160
+ background-repeat: no-repeat;
161
+ background-position: center;
162
+ opacity: .2;
163
+
164
+ @include for-size('tablet'){
165
+ opacity: .3;
166
+ }
167
+ }
168
+ }
169
+
170
+ @include for-size('tablet'){
171
+ padding: 0;
172
+ }
173
+ }
@@ -0,0 +1,52 @@
1
+ // =============================
2
+ // index.scss
3
+ // =============================
4
+ // Used for page footer.
5
+
6
+ .footer{
7
+
8
+ @include flexbox;
9
+ padding: 1rem 0 0 0;
10
+ margin-top: auto;
11
+ color: var(--c-footerText);
12
+
13
+ &__about{
14
+
15
+ @include flexbox;
16
+
17
+ &__copyright{
18
+ margin: 0;
19
+ }
20
+
21
+ .divider{
22
+ margin: 0 1rem;
23
+
24
+ @include for-size('tablet'){
25
+ display: none;
26
+ }
27
+ }
28
+
29
+ &__theme{
30
+ @include flexbox;
31
+ }
32
+
33
+ #simplex-logo{
34
+
35
+ img{
36
+ vertical-align: middle;
37
+ height: 1.25rem;
38
+ margin: 0 .5rem;
39
+ transition: $t-smooth;
40
+ filter: var(--c-footerImageFilter);
41
+
42
+ &:hover{
43
+ transform: scale(1.05) rotate(-5deg);
44
+ }
45
+ }
46
+ }
47
+
48
+ @include for-size('tablet'){
49
+ flex-direction: column;
50
+ }
51
+ }
52
+ }
@@ -0,0 +1,157 @@
1
+ // =============================
2
+ // global.scss
3
+ // =============================
4
+ // Used for global styles.
5
+
6
+ *, *:before, *:after{
7
+ box-sizing: border-box;
8
+ }
9
+
10
+ html{
11
+
12
+ font-family: var(--f-text);
13
+
14
+ // Root font size. Other sizes are derived from this accroding to variable values.
15
+ font-size: 16px;
16
+
17
+ @include for-size('tablet'){
18
+ font-size: 18px;
19
+ }
20
+ }
21
+
22
+ body{
23
+ background: var(--c-pageBackground);
24
+
25
+ margin: 0;
26
+ min-height: 100vh;
27
+
28
+ display: flex;
29
+ flex-direction: column;
30
+ align-items: center;
31
+ justify-content: center;
32
+ }
33
+
34
+ h1,h2,h3,h4,h5,h5,h6{
35
+
36
+ font-family: var(--f-header);
37
+ }
38
+
39
+ h1{
40
+
41
+ font-size: 2rem;
42
+ }
43
+
44
+ p{
45
+ font-size: var(--s-p);
46
+ }
47
+
48
+ a{
49
+
50
+ &:link{
51
+ color: var(--c-link);
52
+ }
53
+
54
+ &:visited{
55
+ color: var(--c-linkVisited);
56
+ }
57
+
58
+ &:hover{
59
+ color: var(--c-linkHover);
60
+ }
61
+
62
+ &:active{
63
+ color: var(--c-linkActive);
64
+ }
65
+ }
66
+
67
+ table:not([class]){
68
+ border-collapse: collapse;
69
+ border-spacing: 0;
70
+ border: 1px solid var(--c-tableBorder);
71
+
72
+ th,td{
73
+ padding: .25rem;
74
+ border: 1px solid var(--c-tableBorder);
75
+ }
76
+ }
77
+
78
+ .highlight{
79
+
80
+ margin: 2rem 0;
81
+ transition: $t-smooth;
82
+ box-shadow: inset 0px 0px 14px -4px var(--c-codeShadow);
83
+
84
+ &:hover{
85
+ box-shadow: inset 0px 0px 14px -4px var(--c-codeShadowHover);
86
+ }
87
+
88
+ max-width: calc(100vw - 2rem);
89
+ overflow-x: auto;
90
+
91
+ pre{
92
+ margin: 0;
93
+ padding: 1rem;
94
+ }
95
+ }
96
+
97
+ .sx-center{
98
+
99
+ display: flex;
100
+ align-items: center;
101
+ justify-content: center;
102
+ }
103
+
104
+ .sx-button{
105
+
106
+ width: 100%;
107
+ margin: 1rem 0;
108
+ display: flex;
109
+ align-items: center;
110
+ justify-content: center;
111
+
112
+ &__content{
113
+
114
+ &:link, &:visited, &:hover, &:active{
115
+ color: var(--c-themePrimaryLight);
116
+ }
117
+ text-decoration: none;
118
+ width: fit-content;
119
+ padding: .5rem 1rem;
120
+ display: flex;
121
+ align-items: center;
122
+ justify-content: center;
123
+ transition: $t-smooth;
124
+
125
+ &.red{background-color: var(--c-themeHueRed);}
126
+ &.orange{background-color: var(--c-themeHueOrange);}
127
+ &.green{background-color: var(--c-themeHueGreen);}
128
+ &.blue{background-color: var(--c-themeHueBlue);}
129
+ &.purple{background-color: var(--c-themeHuePurple);}
130
+ &.brown{background-color: var(--c-themeHueBrown);}
131
+
132
+ img{
133
+ margin-right: 1rem;
134
+ height: 1rem;
135
+ filter: brightness(0) invert(1);
136
+ }
137
+
138
+ &:hover{
139
+ letter-spacing: .05rem;
140
+ }
141
+ }
142
+ }
143
+
144
+ .sx-subtitle{
145
+ font-style: italic;
146
+ color: var(--c-subtitle);
147
+ }
148
+
149
+ .sx-picture{
150
+
151
+ display: flex;
152
+ flex-direction: column;
153
+ align-items: center;
154
+ justify-content: center;
155
+ width: fit-content;
156
+ margin: 1.5rem 0;
157
+ }
@@ -0,0 +1,308 @@
1
+ // =============================
2
+ // header.scss
3
+ // =============================
4
+ // Used for page header.
5
+
6
+ .header{
7
+
8
+ @include flexbox{
9
+ flex-direction: column;
10
+ };
11
+
12
+ padding-top: 2rem;
13
+
14
+ .logo{
15
+
16
+ &__link{
17
+
18
+ text-decoration: none;
19
+ color: var(--c-themePrimaryDark);
20
+ transition: $t-smooth;
21
+
22
+ &:hover{
23
+ letter-spacing: .5rem;
24
+ }
25
+ h1{
26
+ margin: 0;
27
+ }
28
+ &__img{
29
+ filter: var(--c-headerImageFilter);
30
+ height: 2rem;
31
+ }
32
+ }
33
+ }
34
+
35
+ #menuToggle{
36
+ display: none;
37
+ border: none;
38
+ outline: none;
39
+ cursor: pointer;
40
+
41
+ margin: 2rem 0 1rem 0;
42
+ padding: 0;
43
+ font-size: 1rem;
44
+ width: 3em;
45
+
46
+ @include for-size('tablet'){
47
+ display: block;
48
+ }
49
+
50
+ div{
51
+ pointer-events:none;
52
+ width: 100%;
53
+ height: 0.25em;
54
+ margin: 0.5em 0;
55
+ background: black;
56
+ transition: $t-smooth;
57
+ }
58
+
59
+ &.open{
60
+
61
+ div:nth-child(1){
62
+ transform: translateY(.75em) rotateZ(45deg);
63
+ }
64
+
65
+ div:nth-child(2){
66
+ opacity: 0;
67
+ }
68
+
69
+ div:nth-child(3){
70
+ transform: translateY(-.75em) rotateZ(-45deg);
71
+ }
72
+ }
73
+ }
74
+
75
+ .menu{
76
+
77
+ max-width: 100vw;
78
+ width: 100%;
79
+ margin-top: 2rem;
80
+
81
+ .list{
82
+
83
+ @include flexbox;
84
+
85
+ padding: 0;
86
+ margin: 0;
87
+ list-style: none;
88
+
89
+ @include for-size('tablet'){
90
+ flex-direction: column;
91
+ }
92
+
93
+ .item{
94
+
95
+ position: relative;
96
+
97
+ @include flexbox;
98
+ cursor: pointer;
99
+
100
+ .item-controls{
101
+
102
+ @include flexbox;
103
+ width: 100%;
104
+
105
+ img,p{
106
+ transition: $t-smooth;
107
+ filter: var(--c-menuItemsFilter);
108
+ }
109
+
110
+ img{
111
+ @include for-size('tablet'){
112
+ margin: 0 .5rem 0 0;
113
+ }
114
+ }
115
+
116
+ p{
117
+ @include for-size('tablet'){
118
+ margin: 0 0 0 0;
119
+ }
120
+ }
121
+
122
+ a{
123
+ text-decoration: none;
124
+ color: var(--c-menuLinks);
125
+ @include flexbox;
126
+ @include for-size('tablet'){
127
+ padding: 1rem;
128
+ }
129
+ }
130
+
131
+ .button-submenu{
132
+ display: none;
133
+ }
134
+
135
+ @include for-size('tablet'){
136
+ .button-submenu{
137
+ @include flexbox;
138
+ }
139
+ }
140
+
141
+ }
142
+
143
+ >.list{
144
+
145
+ max-height: 0;
146
+ width: 250px;
147
+ overflow: hidden;
148
+ box-shadow: inset 0px 0px 14px -4px var(--c-menuShadow);
149
+ transition: $t-smooth;
150
+ flex-direction: column;
151
+
152
+ .item{
153
+ width: 100%;
154
+ }
155
+
156
+ @include for-size('tablet-up'){
157
+ a{
158
+ padding: 0 4rem;
159
+ }
160
+ }
161
+
162
+ @include for-size('tablet'){
163
+
164
+ position: static;
165
+ width: 100%;
166
+ }
167
+ }
168
+
169
+ a:hover{
170
+
171
+ img{
172
+ transform: scale(1.1);
173
+ filter: var(--c-menuItemsFilterHover);
174
+
175
+ @include for-size('tablet'){
176
+ transform: scale(1);
177
+ }
178
+ }
179
+
180
+ p{
181
+ letter-spacing: .1rem;
182
+ filter: var(--c-menuItemsFilterHover);
183
+
184
+ @include for-size('tablet'){
185
+ letter-spacing: .2rem;
186
+ }
187
+ }
188
+ }
189
+
190
+ &.open{
191
+ >.list{
192
+ max-height: $s-m-menuMaxHeight;
193
+ }
194
+ }
195
+
196
+ @include for-size('tablet'){
197
+ flex-direction: column;
198
+ width: 100%;
199
+ padding: 0;
200
+ }
201
+
202
+ @include for-size('tablet-up'){
203
+
204
+ display: block;
205
+ &:hover{
206
+ >.list{
207
+ max-height: $s-m-menuMaxHeight;
208
+ }
209
+ }
210
+ }
211
+ }
212
+
213
+ &.primary{
214
+
215
+ >.item{
216
+
217
+ margin: 0 1rem;
218
+
219
+ >.item-controls>a{
220
+
221
+ @include flexbox{
222
+ flex-direction: column;
223
+ };
224
+
225
+ &.button-submenu{
226
+ display: none;
227
+ }
228
+
229
+ img{
230
+
231
+ height: 5rem;
232
+ }
233
+
234
+ p{
235
+ margin: 1rem 0 0 0;
236
+
237
+ @include for-size('tablet'){
238
+ margin: 0 0 0 .5rem;
239
+ }
240
+ }
241
+
242
+ &:hover p{
243
+ letter-spacing: normal;
244
+ transform: scale(1.1);
245
+ }
246
+
247
+ @include for-size('tablet'){
248
+ flex-direction: row;
249
+ width: unset;
250
+
251
+ img{
252
+ max-height: 1.5rem;
253
+ }
254
+
255
+ &.button-submenu{
256
+ @include flexbox;
257
+ }
258
+ }
259
+ }
260
+
261
+ >.list{
262
+ position: absolute;
263
+ top: calc(100% + 1rem);
264
+ left: 0;
265
+ z-index: 1000;
266
+ background: var(--c-pageBackground);
267
+
268
+ @include for-size('tablet'){
269
+ position: static;
270
+ }
271
+ }
272
+ }
273
+ }
274
+ }
275
+
276
+ @include for-size('tablet'){
277
+ box-shadow: inset 0px 0px 14px -4px var(--c-menuShadow);
278
+
279
+ transition: $t-smooth;
280
+ max-height: 0;
281
+ overflow: hidden;
282
+ margin: 0;
283
+ &.open{
284
+ max-height: $s-m-menuMaxHeight;
285
+ }
286
+ }
287
+ }
288
+
289
+ .button-submenu{
290
+
291
+ .arrow{
292
+ pointer-events:none;
293
+ border: solid black;
294
+ border-width: 0 .25rem .25rem 0;
295
+ display: inline-block;
296
+ padding: .25rem;
297
+
298
+ transform: translateY(-.125rem) rotate(45deg);
299
+ transition: $t-smooth;
300
+ }
301
+
302
+ &.open{
303
+ .arrow{
304
+ transform: translateY(.125rem) rotate(-135deg);
305
+ }
306
+ }
307
+ }
308
+ }
data/_sass/_index.scss ADDED
@@ -0,0 +1,8 @@
1
+ // =============================
2
+ // index.scss
3
+ // =============================
4
+ // Used for page index.
5
+
6
+ .index{
7
+
8
+ }