another-theme 0.0.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/algolia.html +80 -0
  3. data/_includes/dark-mode.html +8 -6
  4. data/_includes/footer.html +29 -0
  5. data/_includes/head.html +5 -0
  6. data/_includes/icons.html +53 -0
  7. data/_includes/last-posts.html +5 -4
  8. data/_includes/menu.html +4 -3
  9. data/_includes/projects.html +5 -4
  10. data/_includes/social.html +11 -0
  11. data/_layouts/algolia-feed.html +41 -0
  12. data/_layouts/default.html +15 -4
  13. data/_layouts/page.html +12 -8
  14. data/_layouts/post.html +13 -8
  15. data/_sass/another.scss +4 -4
  16. data/_sass/another/_base.scss +9 -2
  17. data/_sass/another/_bootstrap-variables.scss +67 -0
  18. data/_sass/another/_buttons.scss +51 -0
  19. data/_sass/another/_feed.scss +156 -30
  20. data/_sass/another/_font-face.scss +0 -114
  21. data/_sass/another/_footer.scss +29 -0
  22. data/_sass/another/_functions.scss +105 -0
  23. data/_sass/another/_grid.scss +51 -0
  24. data/_sass/another/_header.scss +99 -0
  25. data/_sass/another/_type.scss +10 -4
  26. data/_sass/another/_utilities.scss +261 -14
  27. data/_sass/another/_variables.scss +10 -9
  28. data/_sass/another/bootstrap-grid.scss +29 -0
  29. data/_sass/another/mixins/_breakpoints.scss +126 -0
  30. data/_sass/another/mixins/_grid-framework.scss +58 -0
  31. data/_sass/another/mixins/_grid.scss +39 -0
  32. data/_sass/another/mixins/_utilities.scss +33 -0
  33. data/_sass/another/utilities/_api.scss +29 -0
  34. data/assets/img/cover_posts/2012-11-26-down-the-rabbit-hole.jpg +0 -0
  35. data/assets/img/cover_posts/2014-08-12-the-businessman-and-fisherman.jpg +0 -0
  36. data/assets/img/cover_posts/2016-11-19-gettysburg-address.jpg +0 -0
  37. data/assets/img/cover_posts/2018-03-08-i-have-a-dream.jpg +0 -0
  38. data/assets/img/cover_posts/2019-05-23-mardown-demo.jpg +0 -0
  39. data/assets/js/main.js +41 -0
  40. metadata +38 -41
  41. data/_layouts/home.html +0 -9
  42. data/_sass/another/_layout.scss +0 -66
  43. data/_sass/another/_menu.scss +0 -30
  44. data/_sass/another/_posts.scss +0 -60
  45. data/assets/font-files/IBM-Plex/IBMPlexMono-Bold.woff +0 -0
  46. data/assets/font-files/IBM-Plex/IBMPlexMono-Bold.woff2 +0 -0
  47. data/assets/font-files/IBM-Plex/IBMPlexMono-BoldItalic.woff +0 -0
  48. data/assets/font-files/IBM-Plex/IBMPlexMono-BoldItalic.woff2 +0 -0
  49. data/assets/font-files/IBM-Plex/IBMPlexMono-ExtraLight.woff +0 -0
  50. data/assets/font-files/IBM-Plex/IBMPlexMono-ExtraLight.woff2 +0 -0
  51. data/assets/font-files/IBM-Plex/IBMPlexMono-ExtraLightItalic.woff +0 -0
  52. data/assets/font-files/IBM-Plex/IBMPlexMono-ExtraLightItalic.woff2 +0 -0
  53. data/assets/font-files/IBM-Plex/IBMPlexMono-Italic.woff +0 -0
  54. data/assets/font-files/IBM-Plex/IBMPlexMono-Italic.woff2 +0 -0
  55. data/assets/font-files/IBM-Plex/IBMPlexMono-Light.woff +0 -0
  56. data/assets/font-files/IBM-Plex/IBMPlexMono-Light.woff2 +0 -0
  57. data/assets/font-files/IBM-Plex/IBMPlexMono-LightItalic.woff +0 -0
  58. data/assets/font-files/IBM-Plex/IBMPlexMono-LightItalic.woff2 +0 -0
  59. data/assets/font-files/IBM-Plex/IBMPlexMono-Medium.woff +0 -0
  60. data/assets/font-files/IBM-Plex/IBMPlexMono-Medium.woff2 +0 -0
  61. data/assets/font-files/IBM-Plex/IBMPlexMono-MediumItalic.woff +0 -0
  62. data/assets/font-files/IBM-Plex/IBMPlexMono-MediumItalic.woff2 +0 -0
  63. data/assets/font-files/IBM-Plex/IBMPlexMono-Regular.woff +0 -0
  64. data/assets/font-files/IBM-Plex/IBMPlexMono-Regular.woff2 +0 -0
  65. data/assets/font-files/IBM-Plex/IBMPlexMono-SemiBold.woff +0 -0
  66. data/assets/font-files/IBM-Plex/IBMPlexMono-SemiBold.woff2 +0 -0
  67. data/assets/font-files/IBM-Plex/IBMPlexMono-SemiBoldItalic.woff +0 -0
  68. data/assets/font-files/IBM-Plex/IBMPlexMono-SemiBoldItalic.woff2 +0 -0
  69. data/assets/font-files/IBM-Plex/IBMPlexMono-Text.woff +0 -0
  70. data/assets/font-files/IBM-Plex/IBMPlexMono-Text.woff2 +0 -0
  71. data/assets/font-files/IBM-Plex/IBMPlexMono-TextItalic.woff +0 -0
  72. data/assets/font-files/IBM-Plex/IBMPlexMono-TextItalic.woff2 +0 -0
  73. data/assets/font-files/IBM-Plex/IBMPlexMono-Thin.woff +0 -0
  74. data/assets/font-files/IBM-Plex/IBMPlexMono-Thin.woff2 +0 -0
  75. data/assets/font-files/IBM-Plex/IBMPlexMono-ThinItalic.woff +0 -0
  76. data/assets/font-files/IBM-Plex/IBMPlexMono-ThinItalic.woff2 +0 -0
  77. data/assets/font-files/IBM-Plex/license.txt +0 -92
  78. data/assets/img/icons/dark.svg +0 -1
  79. data/assets/img/icons/light.svg +0 -1
@@ -0,0 +1,105 @@
1
+ // Bootstrap functions
2
+ //
3
+ // Utility mixins and functions for evaluating source code across our variables, maps, and mixins.
4
+
5
+ // Ascending
6
+ // Used to evaluate Sass maps like our grid breakpoints.
7
+ @mixin _assert-ascending($map, $map-name) {
8
+ $prev-key: null;
9
+ $prev-num: null;
10
+ @each $key, $num in $map {
11
+ @if $prev-num == null or unit($num) == "%" or unit($prev-num) == "%" {
12
+ // Do nothing
13
+ } @else if not comparable($prev-num, $num) {
14
+ @warn "Potentially invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} whose unit makes it incomparable to #{$prev-num}, the value of the previous key '#{$prev-key}' !";
15
+ } @else if $prev-num >= $num {
16
+ @warn "Invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} which isn't greater than #{$prev-num}, the value of the previous key '#{$prev-key}' !";
17
+ }
18
+ $prev-key: $key;
19
+ $prev-num: $num;
20
+ }
21
+ }
22
+
23
+ // Starts at zero
24
+ // Used to ensure the min-width of the lowest breakpoint starts at 0.
25
+ @mixin _assert-starts-at-zero($map, $map-name: "$grid-breakpoints") {
26
+ $values: map-values($map);
27
+ $first-value: nth($values, 1);
28
+ @if $first-value != 0 {
29
+ @warn "First breakpoint in #{$map-name} must start at 0, but starts at #{$first-value}.";
30
+ }
31
+ }
32
+
33
+ // Internal Bootstrap function to turn maps into its negative variant.
34
+ // It prefixes the keys with `n` and makes the value negative.
35
+ @function negativify-map($map) {
36
+ $result: ();
37
+ @each $key, $value in $map {
38
+ @if $key != 0 {
39
+ $result: map-merge($result, ("n" + $key: (-$value)));
40
+ }
41
+ }
42
+ @return $result;
43
+ }
44
+
45
+ // Get multiple keys from a sass map
46
+ @function map-get-multiple($map, $values) {
47
+ $result: ();
48
+ @each $key, $value in $map {
49
+ @if (index($values, $key) != null) {
50
+ $result: map-merge($result, ($key: $value));
51
+ }
52
+ }
53
+ @return $map;
54
+ }
55
+
56
+ // Replace `$search` with `$replace` in `$string`
57
+ // Used on our SVG icon backgrounds for custom forms.
58
+ //
59
+ // @author Hugo Giraudel
60
+ // @param {String} $string - Initial string
61
+ // @param {String} $search - Substring to replace
62
+ // @param {String} $replace ('') - New value
63
+ // @return {String} - Updated string
64
+ @function str-replace($string, $search, $replace: "") {
65
+ $index: str-index($string, $search);
66
+
67
+ @if $index {
68
+ @return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
69
+ }
70
+
71
+ @return $string;
72
+ }
73
+
74
+ // Color contrast
75
+ @function color-yiq($color, $dark: $yiq-text-dark, $light: $yiq-text-light) {
76
+ $r: red($color);
77
+ $g: green($color);
78
+ $b: blue($color);
79
+
80
+ $yiq: (($r * 299) + ($g * 587) + ($b * 114)) / 1000;
81
+
82
+ @return if($yiq >= $yiq-contrasted-threshold, $dark, $light);
83
+ }
84
+
85
+ // Retrieve color Sass maps
86
+ @function color($key: "blue") {
87
+ @return map-get($colors, $key);
88
+ }
89
+
90
+ @function theme-color($key: "primary") {
91
+ @return map-get($theme-colors, $key);
92
+ }
93
+
94
+ @function gray($key: "100") {
95
+ @return map-get($grays, $key);
96
+ }
97
+
98
+ // Request a theme color level
99
+ @function theme-color-level($color-name: "primary", $level: 0) {
100
+ $color: theme-color($color-name);
101
+ $color-base: if($level > 0, $black, $white);
102
+ $level: abs($level);
103
+
104
+ @return mix($color-base, $color, $level * $theme-color-interval);
105
+ }
@@ -0,0 +1,51 @@
1
+ // Container widths
2
+ //
3
+ // Set the container width, and override it for fixed navbars in media queries.
4
+
5
+ @if $enable-grid-classes {
6
+ .container {
7
+ @include make-container();
8
+ }
9
+ }
10
+
11
+ // Fluid container
12
+ //
13
+ // Utilizes the mixin meant for fixed width containers, but with 100% width for
14
+ // fluid, full width layouts.
15
+
16
+ @if $enable-grid-classes {
17
+ .container-fluid {
18
+ @include make-container();
19
+ }
20
+ }
21
+
22
+ // Row
23
+ //
24
+ // Rows contain and clear the floats of your columns.
25
+
26
+ @if $enable-grid-classes {
27
+ .row {
28
+ @include make-row();
29
+ }
30
+
31
+ // Remove the negative margin from default .row, then the horizontal padding
32
+ // from all immediate children columns (to prevent runaway style inheritance).
33
+ .no-gutters {
34
+ margin-right: 0;
35
+ margin-left: 0;
36
+
37
+ > .col,
38
+ > [class*="col-"] {
39
+ padding-right: 0;
40
+ padding-left: 0;
41
+ }
42
+ }
43
+ }
44
+
45
+ // Columns
46
+ //
47
+ // Common styles for small and large grid columns
48
+
49
+ @if $enable-grid-classes {
50
+ @include make-grid-columns();
51
+ }
@@ -0,0 +1,99 @@
1
+ #menu {
2
+ height: 100vh;
3
+ }
4
+
5
+ @include media-breakpoint-down(lg) {
6
+ #menu {
7
+ width: 200px;
8
+ left: -200px;
9
+ position: fixed;
10
+ -webkit-box-sizing: border-box;
11
+ -moz-box-sizing: border-box;
12
+ box-sizing: border-box;
13
+
14
+ -webkit-transition: all .3s ease-in;
15
+ -moz-transition: all .3s ease-in;
16
+ -o-transition: all .3s ease-in;
17
+ transition: all .3s ease-in;
18
+ }
19
+ body.open #menu {
20
+ left: 0;
21
+ }
22
+ /* MAIN PAGE */
23
+ .page-wrap {
24
+ -webkit-box-sizing: border-box;
25
+ -moz-box-sizing: border-box;
26
+ box-sizing: border-box;
27
+
28
+ -webkit-transition: all .3s ease-in;
29
+ -moz-transition: all .3s ease-in;
30
+ -o-transition: all .3s ease-in;
31
+ transition: all .3s ease-in;
32
+ }
33
+
34
+ body.open .page-wrap {
35
+ margin-left: 200px;
36
+ }
37
+ }
38
+
39
+ .menu-toggle--btn-container {
40
+ position: absolute;
41
+ left: 3.3333333335%;
42
+ z-index: 1;
43
+ background: transparent;
44
+ margin: 0;
45
+ padding: 0;
46
+
47
+ .open {
48
+ display: none;
49
+
50
+ @include media-breakpoint-down(lg) {
51
+ display: block;
52
+ }
53
+ }
54
+
55
+ .close {
56
+ display: none;
57
+ }
58
+ }
59
+
60
+ .open .menu-toggle {
61
+ position: fixed !important;
62
+
63
+ &.open {
64
+ display: none;
65
+ }
66
+
67
+ &.close {
68
+ display: block;
69
+ }
70
+ }
71
+
72
+ .menu-separator {
73
+ width: 60%;
74
+ opacity: 0.1;
75
+ }
76
+
77
+ #light,
78
+ #dark {
79
+ display: block;
80
+ cursor: pointer;
81
+
82
+ &:hover {
83
+ color: inherit;
84
+ }
85
+ }
86
+
87
+ #light {
88
+ display: none;
89
+ }
90
+
91
+ [data-theme="dark"] {
92
+ #light {
93
+ display: block;
94
+ }
95
+
96
+ #dark {
97
+ display: none;
98
+ }
99
+ }
@@ -27,6 +27,11 @@ h5,
27
27
  h6,
28
28
  .heading-sm { @include properties($heading-sm); }
29
29
 
30
+ .body-lg { @include properties($body-lg); }
31
+ .body-md { @include properties($body-md); }
32
+ .body-sm { @include properties($body-sm); }
33
+ .body-xs { @include properties($body-xs); }
34
+
30
35
  .end {
31
36
  text-align: end;
32
37
  }
@@ -93,11 +98,12 @@ dd {
93
98
  }
94
99
 
95
100
  hr {
96
- position: relative;
97
- margin: 1.5rem 0;
101
+ opacity: 0.085;
98
102
  border: 0;
99
- border-top: 1px solid #eee;
100
- border-bottom: 1px solid #fff;
103
+ margin: 0;
104
+ width: 100%;
105
+ height: 1px;
106
+ background-color: currentColor;
101
107
  }
102
108
 
103
109
  abbr {
@@ -1,15 +1,262 @@
1
- .mt-lg{
2
- margin-top: 3.25rem !important;
3
- }
1
+ // Utilities
4
2
 
5
- .mb-lg{
6
- margin-bottom: 2rem;
7
- }
8
-
9
- .mt-sm{
10
- margin-top: 2.25rem;
11
- }
12
-
13
- .mb-sm{
14
- margin-bottom: 1rem;
15
- }
3
+ $utilities: () !default;
4
+ // stylelint-disable-next-line scss/dollar-variable-default
5
+ $utilities: map-merge(
6
+ (
7
+ "overflow": (
8
+ property: overflow,
9
+ values: auto hidden,
10
+ ),
11
+ "display": (
12
+ responsive: true,
13
+ print: true,
14
+ property: display,
15
+ class: d,
16
+ values: none block flex
17
+ ),
18
+ // Flex utilities
19
+ "flex": (
20
+ responsive: true,
21
+ property: flex,
22
+ values: (fill: 1 1 auto)
23
+ ),
24
+ "flex-direction": (
25
+ responsive: true,
26
+ property: flex-direction,
27
+ class: flex,
28
+ values: row column row-reverse column-reverse
29
+ ),
30
+ "flex-grow": (
31
+ responsive: true,
32
+ property: flex-grow,
33
+ class: flex,
34
+ values: (
35
+ grow-0: 0,
36
+ grow-1: 1,
37
+ )
38
+ ),
39
+ "flex-shrink": (
40
+ responsive: true,
41
+ property: flex-shrink,
42
+ class: flex,
43
+ values: (
44
+ shrink-0: 0,
45
+ shrink-1: 1,
46
+ )
47
+ ),
48
+ "flex-wrap": (
49
+ responsive: true,
50
+ property: flex-wrap,
51
+ class: flex,
52
+ values: wrap nowrap wrap-reverse
53
+ ),
54
+ "justify-content": (
55
+ responsive: true,
56
+ property: justify-content,
57
+ values: (
58
+ start: flex-start,
59
+ end: flex-end,
60
+ center: center,
61
+ between: space-between,
62
+ around: space-around,
63
+ )
64
+ ),
65
+ "align-items": (
66
+ responsive: true,
67
+ property: align-items,
68
+ values: (
69
+ start: flex-start,
70
+ end: flex-end,
71
+ center: center,
72
+ baseline: baseline,
73
+ stretch: stretch,
74
+ )
75
+ ),
76
+ "align-content": (
77
+ responsive: true,
78
+ property: align-content,
79
+ values: (
80
+ start: flex-start,
81
+ end: flex-end,
82
+ center: center,
83
+ between: space-between,
84
+ around: space-around,
85
+ stretch: stretch,
86
+ )
87
+ ),
88
+ "align-self": (
89
+ responsive: true,
90
+ property: align-self,
91
+ values: (
92
+ auto: auto,
93
+ start: flex-start,
94
+ end: flex-end,
95
+ center: center,
96
+ baseline: baseline,
97
+ stretch: stretch,
98
+ )
99
+ ),
100
+ "order": (
101
+ responsive: true,
102
+ property: order,
103
+ values: (
104
+ first: -1,
105
+ 0: 0,
106
+ 1: 1,
107
+ 2: 2,
108
+ 3: 3,
109
+ 4: 4,
110
+ 5: 5,
111
+ last: 6,
112
+ ),
113
+ ),
114
+ // Margin utilities
115
+ "margin": (
116
+ responsive: true,
117
+ property: margin,
118
+ class: m,
119
+ values: map-merge($spacers, (auto: auto))
120
+ ),
121
+ "margin-x": (
122
+ responsive: true,
123
+ property: margin-right margin-left,
124
+ class: mx,
125
+ values: map-merge($spacers, (auto: auto))
126
+ ),
127
+ "margin-y": (
128
+ responsive: true,
129
+ property: margin-top margin-bottom,
130
+ class: my,
131
+ values: map-merge($spacers, (auto: auto))
132
+ ),
133
+ "margin-top": (
134
+ responsive: true,
135
+ property: margin-top,
136
+ class: mt,
137
+ values: map-merge($spacers, (auto: auto))
138
+ ),
139
+ "margin-right": (
140
+ responsive: true,
141
+ property: margin-right,
142
+ class: mr,
143
+ values: map-merge($spacers, (auto: auto))
144
+ ),
145
+ "margin-bottom": (
146
+ responsive: true,
147
+ property: margin-bottom,
148
+ class: mb,
149
+ values: map-merge($spacers, (auto: auto))
150
+ ),
151
+ "margin-left": (
152
+ responsive: true,
153
+ property: margin-left,
154
+ class: ml,
155
+ values: map-merge($spacers, (auto: auto))
156
+ ),
157
+ // Negative margin utilities
158
+ "negative-margin": (
159
+ responsive: true,
160
+ property: margin,
161
+ class: m,
162
+ values: $negative-spacers
163
+ ),
164
+ "negative-margin-x": (
165
+ responsive: true,
166
+ property: margin-right margin-left,
167
+ class: mx,
168
+ values: $negative-spacers
169
+ ),
170
+ "negative-margin-y": (
171
+ responsive: true,
172
+ property: margin-top margin-bottom,
173
+ class: my,
174
+ values: $negative-spacers
175
+ ),
176
+ "negative-margin-top": (
177
+ responsive: true,
178
+ property: margin-top,
179
+ class: mt,
180
+ values: $negative-spacers
181
+ ),
182
+ "negative-margin-right": (
183
+ responsive: true,
184
+ property: margin-right,
185
+ class: mr,
186
+ values: $negative-spacers
187
+ ),
188
+ "negative-margin-bottom": (
189
+ responsive: true,
190
+ property: margin-bottom,
191
+ class: mb,
192
+ values: $negative-spacers
193
+ ),
194
+ "negative-margin-left": (
195
+ responsive: true,
196
+ property: margin-left,
197
+ class: ml,
198
+ values: $negative-spacers
199
+ ),
200
+ // Padding utilities
201
+ "padding": (
202
+ responsive: true,
203
+ property: padding,
204
+ class: p,
205
+ values: $spacers
206
+ ),
207
+ "padding-x": (
208
+ responsive: true,
209
+ property: padding-right padding-left,
210
+ class: px,
211
+ values: $spacers
212
+ ),
213
+ "padding-y": (
214
+ responsive: true,
215
+ property: padding-top padding-bottom,
216
+ class: py,
217
+ values: $spacers
218
+ ),
219
+ "padding-top": (
220
+ responsive: true,
221
+ property: padding-top,
222
+ class: pt,
223
+ values: $spacers
224
+ ),
225
+ "padding-right": (
226
+ responsive: true,
227
+ property: padding-right,
228
+ class: pr,
229
+ values: $spacers
230
+ ),
231
+ "padding-bottom": (
232
+ responsive: true,
233
+ property: padding-bottom,
234
+ class: pb,
235
+ values: $spacers
236
+ ),
237
+ "padding-left": (
238
+ responsive: true,
239
+ property: padding-left,
240
+ class: pl,
241
+ values: $spacers
242
+ ),
243
+ "text-align": (
244
+ responsive: true,
245
+ property: text-align,
246
+ class: text,
247
+ values: left right center justify
248
+ ),
249
+ "font-weight": (
250
+ property: font-weight,
251
+ class: fw,
252
+ values: 600 400 300
253
+ ),
254
+ "border-bottom": (
255
+ property: border-bottom,
256
+ values: (
257
+ 0: 0,
258
+ )
259
+ )
260
+ ),
261
+ $utilities
262
+ );