jekyll-theme-flow 0.1.0
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.
- checksums.yaml +7 -0
- data/CHANGELOG.md +18 -0
- data/LICENSE.txt +22 -0
- data/README.md +313 -0
- data/_includes/archive_versions.html +36 -0
- data/_includes/footer.html +5 -0
- data/_includes/head.html +9 -0
- data/_includes/icon.html +10 -0
- data/_includes/nav_tree.html +38 -0
- data/_includes/navbar.html +55 -0
- data/_includes/search_slot.html +19 -0
- data/_includes/shells/bare.html +5 -0
- data/_includes/shells/sidebar-left.html +18 -0
- data/_includes/shells/sidebar-right.html +18 -0
- data/_includes/shells/topnav.html +8 -0
- data/_includes/sidebar.html +10 -0
- data/_layouts/archive-index.html +26 -0
- data/_layouts/archive.html +14 -0
- data/_layouts/bare.html +5 -0
- data/_layouts/default.html +14 -0
- data/_layouts/search.html +15 -0
- data/_layouts/sidebar-left.html +5 -0
- data/_layouts/sidebar-right.html +5 -0
- data/_layouts/topnav.html +5 -0
- data/_sass/bulma/_index.scss +10 -0
- data/_sass/bulma/base/_index.scss +6 -0
- data/_sass/bulma/base/animations.scss +15 -0
- data/_sass/bulma/base/generic.scss +240 -0
- data/_sass/bulma/base/minireset.scss +92 -0
- data/_sass/bulma/base/skeleton.scss +114 -0
- data/_sass/bulma/components/_index.scss +13 -0
- data/_sass/bulma/components/breadcrumb.scss +139 -0
- data/_sass/bulma/components/card.scss +162 -0
- data/_sass/bulma/components/dropdown.scss +188 -0
- data/_sass/bulma/components/menu.scss +165 -0
- data/_sass/bulma/components/message.scss +183 -0
- data/_sass/bulma/components/modal.scss +164 -0
- data/_sass/bulma/components/navbar.scss +799 -0
- data/_sass/bulma/components/pagination.scss +379 -0
- data/_sass/bulma/components/panel.scss +218 -0
- data/_sass/bulma/components/tabs.scss +273 -0
- data/_sass/bulma/elements/_index.scss +16 -0
- data/_sass/bulma/elements/block.scss +6 -0
- data/_sass/bulma/elements/box.scss +59 -0
- data/_sass/bulma/elements/button.scss +659 -0
- data/_sass/bulma/elements/content.scss +289 -0
- data/_sass/bulma/elements/delete.scss +6 -0
- data/_sass/bulma/elements/icon.scss +67 -0
- data/_sass/bulma/elements/image.scss +64 -0
- data/_sass/bulma/elements/loader.scss +15 -0
- data/_sass/bulma/elements/notification.scss +105 -0
- data/_sass/bulma/elements/progress.scss +115 -0
- data/_sass/bulma/elements/table.scss +261 -0
- data/_sass/bulma/elements/tag.scss +219 -0
- data/_sass/bulma/elements/title.scss +130 -0
- data/_sass/bulma/form/_index.scss +9 -0
- data/_sass/bulma/form/checkbox-radio.scss +36 -0
- data/_sass/bulma/form/file.scss +330 -0
- data/_sass/bulma/form/input-textarea.scss +115 -0
- data/_sass/bulma/form/select.scss +144 -0
- data/_sass/bulma/form/shared.scss +178 -0
- data/_sass/bulma/form/tools.scss +352 -0
- data/_sass/bulma/grid/_index.scss +5 -0
- data/_sass/bulma/grid/columns.scss +961 -0
- data/_sass/bulma/grid/grid.scss +209 -0
- data/_sass/bulma/helpers/_index.scss +15 -0
- data/_sass/bulma/helpers/aspect-ratio.scss +12 -0
- data/_sass/bulma/helpers/border.scss +15 -0
- data/_sass/bulma/helpers/color.scss +344 -0
- data/_sass/bulma/helpers/flexbox.scss +62 -0
- data/_sass/bulma/helpers/float.scss +28 -0
- data/_sass/bulma/helpers/gap.scss +24 -0
- data/_sass/bulma/helpers/other.scss +19 -0
- data/_sass/bulma/helpers/overflow.scss +21 -0
- data/_sass/bulma/helpers/position.scss +19 -0
- data/_sass/bulma/helpers/spacing.scss +64 -0
- data/_sass/bulma/helpers/typography.scss +174 -0
- data/_sass/bulma/helpers/visibility.scss +221 -0
- data/_sass/bulma/layout/_index.scss +9 -0
- data/_sass/bulma/layout/container.scss +59 -0
- data/_sass/bulma/layout/footer.scss +23 -0
- data/_sass/bulma/layout/hero.scss +273 -0
- data/_sass/bulma/layout/level.scss +107 -0
- data/_sass/bulma/layout/media.scss +106 -0
- data/_sass/bulma/layout/section.scss +38 -0
- data/_sass/bulma/themes/_index.scss +36 -0
- data/_sass/bulma/themes/dark.scss +57 -0
- data/_sass/bulma/themes/light.scss +147 -0
- data/_sass/bulma/themes/setup.scss +174 -0
- data/_sass/bulma/utilities/_index.scss +7 -0
- data/_sass/bulma/utilities/controls.scss +85 -0
- data/_sass/bulma/utilities/css-variables.scss +502 -0
- data/_sass/bulma/utilities/derived-variables.scss +112 -0
- data/_sass/bulma/utilities/extends.scss +34 -0
- data/_sass/bulma/utilities/functions.scss +310 -0
- data/_sass/bulma/utilities/initial-variables.scss +157 -0
- data/_sass/bulma/utilities/mixins.scss +462 -0
- data/_sass/flow.scss +131 -0
- data/assets/css/theme.scss +3 -0
- data/assets/js/alpine.min.js +21 -0
- data/lib/jekyll-theme-flow.rb +38 -0
- metadata +209 -0
|
@@ -0,0 +1,462 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
|
|
3
|
+
@use "initial-variables" as iv;
|
|
4
|
+
@use "css-variables" as cv;
|
|
5
|
+
|
|
6
|
+
@mixin arrow($color: #{cv.getVar("arrow-color")}) {
|
|
7
|
+
border: 0.125em solid $color;
|
|
8
|
+
border-right: 0;
|
|
9
|
+
border-top: 0;
|
|
10
|
+
content: " ";
|
|
11
|
+
display: block;
|
|
12
|
+
height: 0.625em;
|
|
13
|
+
margin-top: -0.4375em;
|
|
14
|
+
pointer-events: none;
|
|
15
|
+
position: absolute;
|
|
16
|
+
top: 50%;
|
|
17
|
+
transform: rotate(-45deg);
|
|
18
|
+
transform-origin: center;
|
|
19
|
+
transition-duration: cv.getVar("duration");
|
|
20
|
+
transition-property: border-color;
|
|
21
|
+
width: 0.625em;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@mixin block($spacing: cv.getVar("block-spacing")) {
|
|
25
|
+
&:not(:last-child) {
|
|
26
|
+
margin-bottom: $spacing;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@mixin center($width, $height: 0) {
|
|
31
|
+
position: absolute;
|
|
32
|
+
@if $height != 0 {
|
|
33
|
+
left: calc(50% - (#{$width} * 0.5));
|
|
34
|
+
top: calc(50% - (#{$height} * 0.5));
|
|
35
|
+
} @else {
|
|
36
|
+
left: calc(50% - (#{$width} * 0.5));
|
|
37
|
+
top: calc(50% - (#{$width} * 0.5));
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@mixin clearfix {
|
|
42
|
+
&::after {
|
|
43
|
+
clear: both;
|
|
44
|
+
content: " ";
|
|
45
|
+
display: table;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@mixin delete {
|
|
50
|
+
@include cv.register-vars(
|
|
51
|
+
(
|
|
52
|
+
"delete-dimensions": 1.25rem,
|
|
53
|
+
"delete-background-l": 0%,
|
|
54
|
+
"delete-background-alpha": 0.5,
|
|
55
|
+
"delete-color": #{cv.getVar("white")},
|
|
56
|
+
)
|
|
57
|
+
);
|
|
58
|
+
|
|
59
|
+
appearance: none;
|
|
60
|
+
background-color: hsla(
|
|
61
|
+
#{cv.getVar("scheme-h")},
|
|
62
|
+
#{cv.getVar("scheme-s")},
|
|
63
|
+
#{cv.getVar("delete-background-l")},
|
|
64
|
+
#{cv.getVar("delete-background-alpha")}
|
|
65
|
+
);
|
|
66
|
+
border: none;
|
|
67
|
+
border-radius: cv.getVar("radius-rounded");
|
|
68
|
+
cursor: pointer;
|
|
69
|
+
pointer-events: auto;
|
|
70
|
+
display: inline-flex;
|
|
71
|
+
flex-grow: 0;
|
|
72
|
+
flex-shrink: 0;
|
|
73
|
+
font-size: 1em;
|
|
74
|
+
height: cv.getVar("delete-dimensions");
|
|
75
|
+
max-height: cv.getVar("delete-dimensions");
|
|
76
|
+
max-width: cv.getVar("delete-dimensions");
|
|
77
|
+
min-height: cv.getVar("delete-dimensions");
|
|
78
|
+
min-width: cv.getVar("delete-dimensions");
|
|
79
|
+
outline: none;
|
|
80
|
+
position: relative;
|
|
81
|
+
vertical-align: top;
|
|
82
|
+
width: cv.getVar("delete-dimensions");
|
|
83
|
+
|
|
84
|
+
&::before,
|
|
85
|
+
&::after {
|
|
86
|
+
background-color: cv.getVar("delete-color");
|
|
87
|
+
content: "";
|
|
88
|
+
display: block;
|
|
89
|
+
left: 50%;
|
|
90
|
+
position: absolute;
|
|
91
|
+
top: 50%;
|
|
92
|
+
transform: translateX(-50%) translateY(-50%) rotate(45deg);
|
|
93
|
+
transform-origin: center center;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&::before {
|
|
97
|
+
height: 2px;
|
|
98
|
+
width: 50%;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&::after {
|
|
102
|
+
height: 50%;
|
|
103
|
+
width: 2px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&:hover,
|
|
107
|
+
&:focus {
|
|
108
|
+
@include cv.register-var("delete-background-alpha", 0.4);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&:active {
|
|
112
|
+
@include cv.register-var("delete-background-alpha", 0.5);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// Sizes
|
|
116
|
+
&.#{iv.$class-prefix}is-small {
|
|
117
|
+
@include cv.register-var("delete-dimensions", 1rem);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&.#{iv.$class-prefix}is-medium {
|
|
121
|
+
@include cv.register-var("delete-dimensions", 1.5rem);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&.#{iv.$class-prefix}is-large {
|
|
125
|
+
@include cv.register-var("delete-dimensions", 2rem);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
@mixin fa($size, $dimensions) {
|
|
130
|
+
display: inline-block;
|
|
131
|
+
font-size: $size;
|
|
132
|
+
height: $dimensions;
|
|
133
|
+
line-height: $dimensions;
|
|
134
|
+
text-align: center;
|
|
135
|
+
vertical-align: top;
|
|
136
|
+
width: $dimensions;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
@mixin burger($dimensions) {
|
|
140
|
+
align-items: center;
|
|
141
|
+
appearance: none;
|
|
142
|
+
background: none;
|
|
143
|
+
border: none;
|
|
144
|
+
border-radius: cv.getVar("burger-border-radius");
|
|
145
|
+
color: hsl(
|
|
146
|
+
cv.getVar("burger-h"),
|
|
147
|
+
cv.getVar("burger-s"),
|
|
148
|
+
cv.getVar("burger-l")
|
|
149
|
+
);
|
|
150
|
+
cursor: pointer;
|
|
151
|
+
display: inline-flex;
|
|
152
|
+
flex-direction: column;
|
|
153
|
+
flex-shrink: 0;
|
|
154
|
+
height: $dimensions;
|
|
155
|
+
justify-content: center;
|
|
156
|
+
position: relative;
|
|
157
|
+
vertical-align: top;
|
|
158
|
+
width: $dimensions;
|
|
159
|
+
|
|
160
|
+
span {
|
|
161
|
+
background-color: currentColor;
|
|
162
|
+
display: block;
|
|
163
|
+
height: cv.getVar("burger-item-height");
|
|
164
|
+
left: calc(50% - calc(#{cv.getVar("burger-item-width")}) / 2);
|
|
165
|
+
position: absolute;
|
|
166
|
+
transform-origin: center;
|
|
167
|
+
transition-duration: cv.getVar("duration");
|
|
168
|
+
transition-property: background-color, color, opacity, transform;
|
|
169
|
+
transition-timing-function: cv.getVar("easing");
|
|
170
|
+
width: cv.getVar("burger-item-width");
|
|
171
|
+
|
|
172
|
+
&:nth-child(1),
|
|
173
|
+
&:nth-child(2) {
|
|
174
|
+
top: calc(50% - calc(#{cv.getVar("burger-item-height")}) / 2);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
&:nth-child(3) {
|
|
178
|
+
bottom: calc(50% + #{cv.getVar("burger-gap")});
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
&:nth-child(4) {
|
|
182
|
+
top: calc(50% + #{cv.getVar("burger-gap")});
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
&:hover {
|
|
187
|
+
background-color: hsla(
|
|
188
|
+
cv.getVar("burger-h"),
|
|
189
|
+
cv.getVar("burger-s"),
|
|
190
|
+
cv.getVar("burger-l"),
|
|
191
|
+
0.1
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
&:active {
|
|
196
|
+
background-color: hsla(
|
|
197
|
+
cv.getVar("burger-h"),
|
|
198
|
+
cv.getVar("burger-s"),
|
|
199
|
+
cv.getVar("burger-l"),
|
|
200
|
+
0.2
|
|
201
|
+
);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
// Modifers
|
|
205
|
+
&.#{iv.$class-prefix}is-active {
|
|
206
|
+
span {
|
|
207
|
+
&:nth-child(1) {
|
|
208
|
+
transform: rotate(-45deg);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
&:nth-child(2) {
|
|
212
|
+
transform: rotate(45deg);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
&:nth-child(3),
|
|
216
|
+
&:nth-child(4) {
|
|
217
|
+
opacity: 0;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
@mixin overflow-touch {
|
|
224
|
+
-webkit-overflow-scrolling: touch;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
@mixin placeholder {
|
|
228
|
+
$placeholders: ":-moz" ":-webkit-input" "-moz" "-ms-input";
|
|
229
|
+
|
|
230
|
+
@each $placeholder in $placeholders {
|
|
231
|
+
&:#{$placeholder}-placeholder {
|
|
232
|
+
@content;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
@mixin reset {
|
|
238
|
+
appearance: none;
|
|
239
|
+
background: none;
|
|
240
|
+
border: none;
|
|
241
|
+
color: inherit;
|
|
242
|
+
font-family: inherit;
|
|
243
|
+
font-size: 1em;
|
|
244
|
+
margin: 0;
|
|
245
|
+
padding: 0;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
@mixin selection($current-selector: false) {
|
|
249
|
+
@if $current-selector {
|
|
250
|
+
&::-moz-selection {
|
|
251
|
+
@content;
|
|
252
|
+
}
|
|
253
|
+
&::selection {
|
|
254
|
+
@content;
|
|
255
|
+
}
|
|
256
|
+
} @else {
|
|
257
|
+
::-moz-selection {
|
|
258
|
+
@content;
|
|
259
|
+
}
|
|
260
|
+
::selection {
|
|
261
|
+
@content;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
// Responsiveness
|
|
267
|
+
|
|
268
|
+
@mixin from($device) {
|
|
269
|
+
@media screen and (min-width: $device) {
|
|
270
|
+
@content;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
@mixin until($device) {
|
|
275
|
+
@media screen and (max-width: ($device - 1px)) {
|
|
276
|
+
@content;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
@mixin between($from, $until) {
|
|
281
|
+
@media screen and (min-width: $from) and (max-width: ($until - 1px)) {
|
|
282
|
+
@content;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
@mixin mobile {
|
|
287
|
+
@media screen and (max-width: (iv.$tablet - 1px)) {
|
|
288
|
+
@content;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
@mixin tablet {
|
|
293
|
+
@media screen and (min-width: iv.$tablet), print {
|
|
294
|
+
@content;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
@mixin tablet-only {
|
|
299
|
+
@media screen and (min-width: iv.$tablet) and (max-width: (iv.$desktop - 1px)) {
|
|
300
|
+
@content;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
@mixin touch {
|
|
305
|
+
@media screen and (max-width: (iv.$desktop - 1px)) {
|
|
306
|
+
@content;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
@mixin desktop {
|
|
311
|
+
@media screen and (min-width: iv.$desktop) {
|
|
312
|
+
@content;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
@mixin desktop-only {
|
|
317
|
+
@if iv.$widescreen-enabled {
|
|
318
|
+
@media screen and (min-width: iv.$desktop) and (max-width: (iv.$widescreen - 1px)) {
|
|
319
|
+
@content;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
@mixin until-widescreen {
|
|
325
|
+
@if iv.$widescreen-enabled {
|
|
326
|
+
@media screen and (max-width: (iv.$widescreen - 1px)) {
|
|
327
|
+
@content;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
@mixin widescreen {
|
|
333
|
+
@if iv.$widescreen-enabled {
|
|
334
|
+
@media screen and (min-width: iv.$widescreen) {
|
|
335
|
+
@content;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
@mixin widescreen-only {
|
|
341
|
+
@if iv.$widescreen-enabled and iv.$fullhd-enabled {
|
|
342
|
+
@media screen and (min-width: iv.$widescreen) and (max-width: (iv.$fullhd - 1px)) {
|
|
343
|
+
@content;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
@mixin until-fullhd {
|
|
349
|
+
@if iv.$fullhd-enabled {
|
|
350
|
+
@media screen and (max-width: (iv.$fullhd - 1px)) {
|
|
351
|
+
@content;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
@mixin fullhd {
|
|
357
|
+
@if iv.$fullhd-enabled {
|
|
358
|
+
@media screen and (min-width: iv.$fullhd) {
|
|
359
|
+
@content;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
@mixin breakpoint($name) {
|
|
365
|
+
$breakpoint: map.get(iv.$breakpoints, $name);
|
|
366
|
+
|
|
367
|
+
@if $breakpoint {
|
|
368
|
+
$from: map.get($breakpoint, "from");
|
|
369
|
+
$until: map.get($breakpoint, "until");
|
|
370
|
+
|
|
371
|
+
@if $from and $until {
|
|
372
|
+
@include between($from, $until) {
|
|
373
|
+
@content;
|
|
374
|
+
}
|
|
375
|
+
} @else if $from {
|
|
376
|
+
@include from($from) {
|
|
377
|
+
@content;
|
|
378
|
+
}
|
|
379
|
+
} @else if $until {
|
|
380
|
+
@include until($until) {
|
|
381
|
+
@content;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
@mixin container-from($name, $width) {
|
|
388
|
+
@container #{$name} (min-width: #{$width}) {
|
|
389
|
+
@content;
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
@mixin container-until($name, $width) {
|
|
394
|
+
@container #{$name} (max-width: #{$width - 1px}) {
|
|
395
|
+
@content;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
@mixin ltr {
|
|
400
|
+
@if not iv.$rtl {
|
|
401
|
+
@content;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
@mixin rtl {
|
|
406
|
+
@if iv.$rtl {
|
|
407
|
+
@content;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
@mixin ltr-property($property, $spacing, $right: true) {
|
|
412
|
+
$normal: if($right, "right", "left");
|
|
413
|
+
$opposite: if($right, "left", "right");
|
|
414
|
+
|
|
415
|
+
@if iv.$rtl {
|
|
416
|
+
#{$property}-#{$opposite}: $spacing;
|
|
417
|
+
} @else {
|
|
418
|
+
#{$property}-#{$normal}: $spacing;
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
@mixin ltr-position($spacing, $right: true) {
|
|
423
|
+
$normal: if($right, "right", "left");
|
|
424
|
+
$opposite: if($right, "left", "right");
|
|
425
|
+
|
|
426
|
+
@if iv.$rtl {
|
|
427
|
+
#{$opposite}: $spacing;
|
|
428
|
+
} @else {
|
|
429
|
+
#{$normal}: $spacing;
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
// Placeholders
|
|
434
|
+
|
|
435
|
+
@mixin unselectable {
|
|
436
|
+
-webkit-touch-callout: none;
|
|
437
|
+
-webkit-user-select: none;
|
|
438
|
+
-moz-user-select: none;
|
|
439
|
+
-ms-user-select: none;
|
|
440
|
+
user-select: none;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
@mixin loader {
|
|
444
|
+
animation: spinAround 500ms infinite linear;
|
|
445
|
+
border: 2px solid cv.getVar("loading-color");
|
|
446
|
+
border-radius: cv.getVar("radius-rounded");
|
|
447
|
+
border-right-color: transparent;
|
|
448
|
+
border-top-color: transparent;
|
|
449
|
+
content: "";
|
|
450
|
+
display: block;
|
|
451
|
+
height: 1em;
|
|
452
|
+
position: relative;
|
|
453
|
+
width: 1em;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
@mixin overlay($offset: 0) {
|
|
457
|
+
bottom: $offset;
|
|
458
|
+
left: $offset;
|
|
459
|
+
position: absolute;
|
|
460
|
+
right: $offset;
|
|
461
|
+
top: $offset;
|
|
462
|
+
}
|
data/_sass/flow.scss
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
// jekyll-theme-flow — app shell + small tweaks on top of Bulma.
|
|
2
|
+
// Consumers can override Bulma via `sass` config or their own _sass files.
|
|
3
|
+
|
|
4
|
+
@use "bulma";
|
|
5
|
+
|
|
6
|
+
[x-cloak] {
|
|
7
|
+
display: none !important;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.flow-shell {
|
|
11
|
+
min-height: 100vh;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.flow-sidebar {
|
|
15
|
+
width: 18rem;
|
|
16
|
+
flex-shrink: 0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media (min-width: 1024px) {
|
|
20
|
+
.flow-sidebar {
|
|
21
|
+
position: sticky;
|
|
22
|
+
top: 0;
|
|
23
|
+
height: 100vh;
|
|
24
|
+
overflow-y: auto;
|
|
25
|
+
border-right: 1px solid var(--bulma-border);
|
|
26
|
+
|
|
27
|
+
&.flow-right {
|
|
28
|
+
border-right: 0;
|
|
29
|
+
border-left: 1px solid var(--bulma-border);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@media (max-width: 1023px) {
|
|
35
|
+
.flow-sidebar {
|
|
36
|
+
position: fixed;
|
|
37
|
+
top: 0;
|
|
38
|
+
bottom: 0;
|
|
39
|
+
left: 0;
|
|
40
|
+
max-width: 85vw;
|
|
41
|
+
overflow-y: auto;
|
|
42
|
+
z-index: 40;
|
|
43
|
+
box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 15%);
|
|
44
|
+
|
|
45
|
+
&.flow-right {
|
|
46
|
+
left: auto;
|
|
47
|
+
right: 0;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.flow-chevron {
|
|
53
|
+
transition: transform 150ms ease;
|
|
54
|
+
|
|
55
|
+
&.is-open {
|
|
56
|
+
transform: rotate(90deg);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.flow-brand-icon {
|
|
61
|
+
width: 1em;
|
|
62
|
+
height: 1em;
|
|
63
|
+
margin-right: 0.35em;
|
|
64
|
+
vertical-align: -0.125em;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// jekyll-icon-flow icons — svg elements carrying the normalized
|
|
68
|
+
// .icon contract; nudge to text baseline (Bulma's own .icon class
|
|
69
|
+
// targets wrapper elements, not the svg itself)
|
|
70
|
+
svg.icon {
|
|
71
|
+
vertical-align: -0.125em;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// Search slot — desktop top bar in sidebar shells, navbar-end in topnav
|
|
75
|
+
.flow-topbar {
|
|
76
|
+
padding: 0.75rem 1.5rem;
|
|
77
|
+
border-bottom: 1px solid var(--bulma-border);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.flow-search {
|
|
81
|
+
position: relative;
|
|
82
|
+
width: 100%;
|
|
83
|
+
|
|
84
|
+
.navbar-item & {
|
|
85
|
+
width: auto;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.flow-search-results {
|
|
90
|
+
position: absolute;
|
|
91
|
+
top: 100%;
|
|
92
|
+
right: 0;
|
|
93
|
+
left: 0;
|
|
94
|
+
display: none;
|
|
95
|
+
max-height: 24rem;
|
|
96
|
+
padding: 0.25rem 0;
|
|
97
|
+
margin: 0.25rem 0 0;
|
|
98
|
+
overflow-y: auto;
|
|
99
|
+
list-style: none;
|
|
100
|
+
background: var(--bulma-scheme-main);
|
|
101
|
+
border: 1px solid var(--bulma-border);
|
|
102
|
+
border-radius: var(--bulma-radius);
|
|
103
|
+
box-shadow: var(--bulma-shadow);
|
|
104
|
+
z-index: 50;
|
|
105
|
+
|
|
106
|
+
&[aria-hidden="false"] {
|
|
107
|
+
display: block;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.navbar-item & {
|
|
111
|
+
left: auto;
|
|
112
|
+
min-width: 18rem;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.client-search-dropdown-item {
|
|
117
|
+
padding: 0;
|
|
118
|
+
margin: 0;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.client-search-dropdown-link {
|
|
122
|
+
display: block;
|
|
123
|
+
padding: 0.5rem 0.75rem;
|
|
124
|
+
color: var(--bulma-text);
|
|
125
|
+
text-decoration: none;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.client-search-dropdown-link:hover,
|
|
129
|
+
.client-search-dropdown-item[aria-selected="true"] .client-search-dropdown-link {
|
|
130
|
+
background: var(--bulma-scheme-main-bis);
|
|
131
|
+
}
|