jekyll-theme-simplex 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +50 -0
  4. data/_includes/footer.html +9 -0
  5. data/_includes/head.html +13 -0
  6. data/_includes/header.html +13 -0
  7. data/_includes/nav.html +32 -0
  8. data/_includes/scripts.html +2 -0
  9. data/_includes/snippet.html +30 -0
  10. data/_layouts/category.html +25 -0
  11. data/_layouts/default.html +20 -0
  12. data/_layouts/page.html +5 -0
  13. data/_layouts/post.html +7 -0
  14. data/_sass/_feed.scss +145 -0
  15. data/_sass/_footer.scss +49 -0
  16. data/_sass/_global.scss +67 -0
  17. data/_sass/_header.scss +283 -0
  18. data/_sass/_index.scss +8 -0
  19. data/_sass/_mixins.scss +67 -0
  20. data/_sass/_post.scss +11 -0
  21. data/_sass/_variables.scss +81 -0
  22. data/assets/fonts/Roboto-Bold.ttf +0 -0
  23. data/assets/fonts/Roboto-Bold.woff +0 -0
  24. data/assets/fonts/Roboto-Bold.woff2 +0 -0
  25. data/assets/fonts/Roboto-Regular.ttf +0 -0
  26. data/assets/fonts/Roboto-Regular.woff +0 -0
  27. data/assets/fonts/Roboto-Regular.woff2 +0 -0
  28. data/assets/fonts/RobotoMono-Bold.ttf +0 -0
  29. data/assets/fonts/RobotoMono-Bold.woff +0 -0
  30. data/assets/fonts/RobotoMono-Bold.woff2 +0 -0
  31. data/assets/fonts/RobotoMono-Regular.ttf +0 -0
  32. data/assets/fonts/RobotoMono-Regular.woff +0 -0
  33. data/assets/fonts/RobotoMono-Regular.woff2 +0 -0
  34. data/assets/fonts/RobotoSlab-Bold.ttf +0 -0
  35. data/assets/fonts/RobotoSlab-Bold.woff +0 -0
  36. data/assets/fonts/RobotoSlab-Bold.woff2 +0 -0
  37. data/assets/fonts/RobotoSlab-Regular.ttf +0 -0
  38. data/assets/fonts/RobotoSlab-Regular.woff +0 -0
  39. data/assets/fonts/RobotoSlab-Regular.woff2 +0 -0
  40. data/assets/fonts/fonts.css +54 -0
  41. data/assets/img/icons/golasblog_logo.svg +113 -0
  42. data/assets/img/icons/simplex_logo.svg +96 -0
  43. data/assets/img/icons/wrench.svg +54 -0
  44. data/assets/js/jquery.slim.min.js +2 -0
  45. data/assets/js/tools.js +14 -0
  46. data/assets/style.scss +29 -0
  47. metadata +130 -0
@@ -0,0 +1,67 @@
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: grid;
29
+ gap: 0 100px;
30
+ grid-template-areas:
31
+ "header"
32
+ "main"
33
+ "footer";
34
+ }
35
+
36
+ h1,h2,h3,h4,h5,h5,h6{
37
+
38
+ font-family: var(--f-header);
39
+ }
40
+
41
+ h1{
42
+
43
+ font-size: 2rem;
44
+ }
45
+
46
+ p{
47
+ font-size: var(--s-p);
48
+ }
49
+
50
+ a{
51
+
52
+ &:link{
53
+ color: var(--c-link);
54
+ }
55
+
56
+ &:visited{
57
+ color: var(--c-linkVisited);
58
+ }
59
+
60
+ &:hover{
61
+ color: var(--c-linkHover);
62
+ }
63
+
64
+ &:active{
65
+ color: var(--c-linkActive);
66
+ }
67
+ }
@@ -0,0 +1,283 @@
1
+ // =============================
2
+ // header.scss
3
+ // =============================
4
+ // Used for page header.
5
+
6
+ .header{
7
+
8
+ @include flexbox{
9
+ flex-direction: column;
10
+ };
11
+
12
+ #menuToggle{
13
+ display: none;
14
+ border: none;
15
+ outline: none;
16
+ cursor: pointer;
17
+
18
+ margin: 2rem 0;
19
+ padding: 0;
20
+ font-size: 1rem;
21
+ width: 3em;
22
+
23
+ @include for-size('tablet'){
24
+ display: block;
25
+ }
26
+
27
+ div{
28
+ pointer-events:none;
29
+ width: 100%;
30
+ height: 0.25em;
31
+ margin: 0.5em 0;
32
+ background: black;
33
+ transition: $t-smooth;
34
+ }
35
+
36
+ &.open{
37
+
38
+ div:nth-child(1){
39
+ transform: translateY(.75em) rotateZ(45deg);
40
+ }
41
+
42
+ div:nth-child(2){
43
+ opacity: 0;
44
+ }
45
+
46
+ div:nth-child(3){
47
+ transform: translateY(-.75em) rotateZ(-45deg);
48
+ }
49
+ }
50
+ }
51
+
52
+ .menu{
53
+
54
+ max-width: 100vw;
55
+ width: 100%;
56
+
57
+ .list{
58
+
59
+ @include flexbox;
60
+
61
+ padding: 0;
62
+ margin: 0;
63
+ list-style: none;
64
+
65
+ @include for-size('tablet'){
66
+ flex-direction: column;
67
+ }
68
+
69
+ .item{
70
+
71
+ position: relative;
72
+
73
+ @include flexbox;
74
+ cursor: pointer;
75
+
76
+ .item-controls{
77
+
78
+ @include flexbox;
79
+ width: 100%;
80
+
81
+ img,p{
82
+ transition: $t-smooth;
83
+ filter: brightness(0);
84
+ }
85
+
86
+ img{
87
+ @include for-size('tablet'){
88
+ margin: 0 .5rem 0 0;
89
+ }
90
+ }
91
+
92
+ p{
93
+ @include for-size('tablet'){
94
+ margin: 0 0 0 0;
95
+ }
96
+ }
97
+
98
+ a{
99
+ text-decoration: none;
100
+ color: var(--c-menuLinks);
101
+ @include flexbox;
102
+ @include for-size('tablet'){
103
+ padding: 1rem;
104
+ }
105
+ }
106
+
107
+ .button-submenu{
108
+ display: none;
109
+ }
110
+
111
+ @include for-size('tablet'){
112
+ .button-submenu{
113
+ @include flexbox;
114
+ }
115
+ }
116
+
117
+ }
118
+
119
+ >.list{
120
+
121
+ max-height: 0;
122
+ width: 250px;
123
+ overflow: hidden;
124
+ box-shadow: inset 0px 0px 14px -4px rgba(0,0,0,0.5);
125
+ transition: $t-smooth;
126
+ flex-direction: column;
127
+
128
+ .item{
129
+ width: 100%;
130
+ }
131
+
132
+ @include for-size('tablet-up'){
133
+ a{
134
+ padding: 0 4rem;
135
+ }
136
+ }
137
+
138
+ @include for-size('tablet'){
139
+
140
+ position: static;
141
+ width: 100%;
142
+ }
143
+ }
144
+
145
+ a:hover{
146
+
147
+ img{
148
+ transform: scale(1.1);
149
+ filter: none;
150
+
151
+ @include for-size('tablet'){
152
+ transform: scale(1);
153
+ }
154
+ }
155
+
156
+ p{
157
+ letter-spacing: .1rem;
158
+ filter: none;
159
+
160
+ @include for-size('tablet'){
161
+ letter-spacing: .2rem;
162
+ }
163
+ }
164
+ }
165
+
166
+ &.open{
167
+ >.list{
168
+ max-height: $s-m-menuMaxHeight;
169
+ }
170
+ }
171
+
172
+ @include for-size('tablet'){
173
+ flex-direction: column;
174
+ width: 100%;
175
+ padding: 0;
176
+ }
177
+
178
+ @include for-size('tablet-up'){
179
+
180
+ display: block;
181
+ &:hover{
182
+ >.list{
183
+ max-height: $s-m-menuMaxHeight;
184
+ }
185
+ }
186
+ }
187
+ }
188
+
189
+ &.primary{
190
+
191
+ >.item{
192
+
193
+ margin: 0 1rem;
194
+
195
+ >.item-controls>a{
196
+
197
+ @include flexbox{
198
+ flex-direction: column;
199
+ };
200
+
201
+ &.button-submenu{
202
+ display: none;
203
+ }
204
+
205
+ img{
206
+
207
+ max-width: 5rem;
208
+ }
209
+
210
+ p{
211
+ margin: 1rem 0 0 0;
212
+
213
+ @include for-size('tablet'){
214
+ margin: 0 0 0 .5rem;
215
+ }
216
+ }
217
+
218
+ &:hover p{
219
+ letter-spacing: normal;
220
+ transform: scale(1.1);
221
+ }
222
+
223
+ @include for-size('tablet'){
224
+ flex-direction: row;
225
+ width: unset;
226
+
227
+ img{
228
+ max-height: 1.5rem;
229
+ }
230
+
231
+ &.button-submenu{
232
+ @include flexbox;
233
+ }
234
+ }
235
+ }
236
+
237
+ >.list{
238
+ position: absolute;
239
+ top: calc(100% + 1rem);
240
+ left: 0;
241
+ z-index: 1000;
242
+ background: var(--c-pageBackground);
243
+
244
+ @include for-size('tablet'){
245
+ position: static;
246
+ }
247
+ }
248
+ }
249
+ }
250
+ }
251
+
252
+ @include for-size('tablet'){
253
+ box-shadow: inset 0px 0px 14px -4px rgba(0,0,0,0.5);
254
+
255
+ transition: $t-smooth;
256
+ max-height: 0;
257
+ overflow: hidden;
258
+ &.open{
259
+ max-height: $s-m-menuMaxHeight;
260
+ }
261
+ }
262
+ }
263
+
264
+ .button-submenu{
265
+
266
+ .arrow{
267
+ pointer-events:none;
268
+ border: solid black;
269
+ border-width: 0 .25rem .25rem 0;
270
+ display: inline-block;
271
+ padding: .25rem;
272
+
273
+ transform: translateY(-.125rem) rotate(45deg);
274
+ transition: $t-smooth;
275
+ }
276
+
277
+ &.open{
278
+ .arrow{
279
+ transform: translateY(.125rem) rotate(-135deg);
280
+ }
281
+ }
282
+ }
283
+ }
@@ -0,0 +1,8 @@
1
+ // =============================
2
+ // index.scss
3
+ // =============================
4
+ // Used for page index.
5
+
6
+ .index{
7
+
8
+ }
@@ -0,0 +1,67 @@
1
+ // =============================
2
+ // mixins.scss
3
+ // =============================
4
+ // Useful functions.
5
+
6
+
7
+ // responsivity
8
+ // ===============================================
9
+ @mixin for-size($size, $width: 1000px) {
10
+
11
+ // ▼▼▼▼ DO NOT EDIT ▼▼▼▼
12
+ // by resolution
13
+ @if $size == 'hd-up' {
14
+ @media (min-width: 720px) { @content; }
15
+ } @else if $size == 'fhd-up' {
16
+ @media (min-width: 1080px) { @content; }
17
+ } @else if $size == 'qhd-up' {
18
+ @media (min-width: 1440px) { @content; }
19
+ } @else if $size == 'uhd-up' {
20
+ @media (min-width: 2160px) { @content; }
21
+ }
22
+
23
+ // by devices
24
+ @else if $size == 'tablet' {
25
+ @media (max-width: 768px) { @content; }
26
+ }
27
+ @else if $size == 'tablet-up' {
28
+ @media (min-width: 768px) { @content; }
29
+ }
30
+ @else if $size == 'desktop' {
31
+ @media (min-width: 769px) { @content; }
32
+ }
33
+
34
+ // custom natural breakpoints (project+element-specific)
35
+ @else if $size == 'bp-up'{
36
+ @media (min-width: $width) { @content; }
37
+ }
38
+
39
+ // custom natural breakpoints down (project+element-specific)
40
+ @else if $size == 'bp-down'{
41
+ @media (max-width: $width) { @content; }
42
+ }
43
+
44
+ // ▲▲▲▲ DO NOT EDIT ▲▲▲▲
45
+
46
+ // natural breakpoints (project-specific)
47
+ @else if $size == 'menu-width'{
48
+
49
+ @media (max-width: $s-menuWidth) { @content; }
50
+ }
51
+
52
+ @else if $size == 'menu-width-up'{
53
+
54
+ @media (min-width: $s-menuWidth) { @content; }
55
+ }
56
+ }
57
+
58
+ // flexbox
59
+ // ===============================================
60
+ @mixin flexbox($align: center, $justify: center, $direction: row){
61
+
62
+ display: flex;
63
+ align-items: $align;
64
+ justify-content: $justify;
65
+ flex-direction: $direction;
66
+ @content;
67
+ }
@@ -0,0 +1,11 @@
1
+ // =============================
2
+ // post.scss
3
+ // =============================
4
+ // Used for single post view.
5
+
6
+ .post{
7
+
8
+ justify-self: center;
9
+ padding: 0 1rem;
10
+ max-width: 1000px;
11
+ }
@@ -0,0 +1,81 @@
1
+ // =============================
2
+ // variables.scss
3
+ // =============================
4
+ // Contains all the useful variables for colors, sizes...
5
+
6
+ // THEME COLORS
7
+ :root{
8
+
9
+ --c-themePrimaryLight: #EFEFEF;
10
+ --c-themePrimaryDark: #101010;
11
+ --c-themeSecondaryLight: #DADADA;
12
+ --c-themeSecondaryDark: #252525;
13
+ --c-themeTerniaryLight: #AEAEAE;
14
+ --c-themeTerniaryDark: #515151;
15
+ --c-themeQuaternaryLight: #919191;
16
+ --c-themeQuaternaryDark: #888888;
17
+
18
+ --c-themeHueRed: #C02717;
19
+ --c-themeHueGreen: #8EA604;
20
+ --c-themeHueBlue: #2E86AB;
21
+ --c-themeHueOrange: #E59500;
22
+ --c-themeHuePurple: #9F00CE;
23
+ --c-themeHueBrown: #230007;
24
+ }
25
+
26
+ // ELEMENT COLORS
27
+ :root{
28
+
29
+ @media (prefers-color-scheme: light){
30
+
31
+ --c-articleHeading: var(--c-themePrimaryDark);
32
+ --c-articleParagraph: var(--c-themeSecondaryDark);
33
+ --c-articleBackground: var(--c-themePrimaryLight);
34
+
35
+ --c-pageBackground: var(--c-themePrimaryLight);
36
+
37
+ --c-menuLinks: var(--c-themePrimaryDark);
38
+ --c-menuDepth0: var(--c-themeSecondaryLight);
39
+
40
+ --c-snippetBackgroundExternal: rgba(239, 239, 239, 0.425);
41
+ --c-snippetBackgroundInternal: var(--c-pageBackground);
42
+
43
+ --c-snippetDate: var(--c-themeTerniaryLight);
44
+
45
+ --c-link: var(--c-themeTerniaryDark);
46
+ --c-linkVisited: var(--c-themeQuaternaryDark);
47
+ --c-linkHover: var(--c-themePrimaryDark);
48
+ --c-linkActive: var(--c-themePrimaryDark);
49
+ }
50
+
51
+ @media (prefers-color-scheme: dark){
52
+
53
+ --c-articleHeading: var(--c-themePrimaryLight);
54
+ --c-articleParagraph: var(--c-themeSecondaryLight);
55
+ --c-articleBackground: var(--c-themePrimaryDark);
56
+
57
+ --c-pageBackground: var(--c-themePrimaryDark);
58
+ }
59
+
60
+ }
61
+
62
+ // SIZES
63
+ :root{
64
+
65
+ --s-p: 1rem;
66
+ }
67
+
68
+ // FONTS
69
+ :root{
70
+
71
+ --f-header: Roboto;
72
+ --f-text: Roboto Slab;
73
+ }
74
+
75
+ // FIXED SIZES
76
+ $s-menuItemWidth: 8rem;
77
+ $s-menuItemPadding: 1rem;
78
+ $s-m-menuMaxHeight: 1000px;
79
+
80
+ // TRANSITIONS
81
+ $t-smooth: ease .5s;