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,330 @@
|
|
|
1
|
+
@use "shared";
|
|
2
|
+
@use "../utilities/css-variables" as cv;
|
|
3
|
+
@use "../utilities/initial-variables" as iv;
|
|
4
|
+
@use "../utilities/controls";
|
|
5
|
+
@use "../utilities/extends";
|
|
6
|
+
|
|
7
|
+
$file-radius: cv.getVar("radius") !default;
|
|
8
|
+
|
|
9
|
+
$file-h: cv.getVar("scheme-h");
|
|
10
|
+
$file-s: cv.getVar("scheme-s");
|
|
11
|
+
$file-background-l: cv.getVar("scheme-main-ter-l");
|
|
12
|
+
$file-background-l-delta: 0%;
|
|
13
|
+
$file-hover-background-l-delta: -5%;
|
|
14
|
+
$file-active-background-l-delta: -10%;
|
|
15
|
+
$file-border-l: cv.getVar("border-l");
|
|
16
|
+
$file-border-l-delta: 0%;
|
|
17
|
+
$file-hover-border-l-delta: -10%;
|
|
18
|
+
$file-active-border-l-delta: -20%;
|
|
19
|
+
$file-cta-color-l: cv.getVar("text-strong-l");
|
|
20
|
+
$file-name-color-l: cv.getVar("text-strong-l");
|
|
21
|
+
$file-color-l-delta: 0%;
|
|
22
|
+
$file-hover-color-l-delta: -5%;
|
|
23
|
+
$file-active-color-l-delta: -10%;
|
|
24
|
+
|
|
25
|
+
$file-cta-color: cv.getVar("text") !default;
|
|
26
|
+
$file-cta-hover-color: cv.getVar("text-strong") !default;
|
|
27
|
+
$file-cta-active-color: cv.getVar("text-strong") !default;
|
|
28
|
+
|
|
29
|
+
$file-name-border-color: cv.getVar("border") !default;
|
|
30
|
+
$file-name-border-style: solid !default;
|
|
31
|
+
$file-name-border-width: 1px 1px 1px 0 !default;
|
|
32
|
+
$file-name-max-width: 16em !default;
|
|
33
|
+
|
|
34
|
+
$file-colors: shared.$form-colors !default;
|
|
35
|
+
|
|
36
|
+
.#{iv.$class-prefix}file {
|
|
37
|
+
@extend %block;
|
|
38
|
+
@extend %unselectable;
|
|
39
|
+
|
|
40
|
+
@include cv.register-vars(
|
|
41
|
+
(
|
|
42
|
+
"file-radius": #{$file-radius},
|
|
43
|
+
"file-name-border-color": #{$file-name-border-color},
|
|
44
|
+
"file-name-border-style": #{$file-name-border-style},
|
|
45
|
+
"file-name-border-width": #{$file-name-border-width},
|
|
46
|
+
"file-name-max-width": #{$file-name-max-width},
|
|
47
|
+
"file-h": #{$file-h},
|
|
48
|
+
"file-s": #{$file-s},
|
|
49
|
+
"file-background-l": #{$file-background-l},
|
|
50
|
+
"file-background-l-delta": #{$file-background-l-delta},
|
|
51
|
+
"file-hover-background-l-delta": #{$file-hover-background-l-delta},
|
|
52
|
+
"file-active-background-l-delta": #{$file-active-background-l-delta},
|
|
53
|
+
"file-border-l": #{$file-border-l},
|
|
54
|
+
"file-border-l-delta": #{$file-border-l-delta},
|
|
55
|
+
"file-hover-border-l-delta": #{$file-hover-border-l-delta},
|
|
56
|
+
"file-active-border-l-delta": #{$file-active-border-l-delta},
|
|
57
|
+
"file-cta-color-l": #{$file-cta-color-l},
|
|
58
|
+
"file-name-color-l": #{$file-name-color-l},
|
|
59
|
+
"file-color-l-delta": #{$file-color-l-delta},
|
|
60
|
+
"file-hover-color-l-delta": #{$file-hover-color-l-delta},
|
|
61
|
+
"file-active-color-l-delta": #{$file-active-color-l-delta},
|
|
62
|
+
)
|
|
63
|
+
);
|
|
64
|
+
|
|
65
|
+
align-items: stretch;
|
|
66
|
+
display: flex;
|
|
67
|
+
justify-content: flex-start;
|
|
68
|
+
position: relative;
|
|
69
|
+
|
|
70
|
+
// Colors
|
|
71
|
+
@each $name, $pair in $file-colors {
|
|
72
|
+
&.#{iv.$class-prefix}is-#{$name} {
|
|
73
|
+
@include cv.register-vars(
|
|
74
|
+
(
|
|
75
|
+
"file-h": #{cv.getVar($name, "", "-h")},
|
|
76
|
+
"file-s": #{cv.getVar($name, "", "-s")},
|
|
77
|
+
"file-background-l": #{cv.getVar($name, "", "-l")},
|
|
78
|
+
"file-border-l": #{cv.getVar($name, "", "-l")},
|
|
79
|
+
"file-cta-color-l": #{cv.getVar($name, "", "-invert-l")},
|
|
80
|
+
"file-name-color-l": #{cv.getVar($name, "", "-on-scheme-l")},
|
|
81
|
+
)
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// Sizes
|
|
87
|
+
&.#{iv.$class-prefix}is-small {
|
|
88
|
+
font-size: cv.getVar("size-small");
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&.#{iv.$class-prefix}is-normal {
|
|
92
|
+
font-size: cv.getVar("size-normal");
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&.#{iv.$class-prefix}is-medium {
|
|
96
|
+
font-size: cv.getVar("size-medium");
|
|
97
|
+
|
|
98
|
+
.#{iv.$class-prefix}file-icon {
|
|
99
|
+
.#{iv.$class-prefix}fa {
|
|
100
|
+
font-size: 1.5rem;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&.#{iv.$class-prefix}is-large {
|
|
106
|
+
font-size: cv.getVar("size-large");
|
|
107
|
+
|
|
108
|
+
.#{iv.$class-prefix}file-icon {
|
|
109
|
+
.#{iv.$class-prefix}fa {
|
|
110
|
+
font-size: 2rem;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// Modifiers
|
|
116
|
+
&.#{iv.$class-prefix}has-name {
|
|
117
|
+
.#{iv.$class-prefix}file-cta {
|
|
118
|
+
border-end-end-radius: 0;
|
|
119
|
+
border-start-end-radius: 0;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.#{iv.$class-prefix}file-name {
|
|
123
|
+
border-end-start-radius: 0;
|
|
124
|
+
border-start-start-radius: 0;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&.#{iv.$class-prefix}is-empty {
|
|
128
|
+
.#{iv.$class-prefix}file-cta {
|
|
129
|
+
border-radius: cv.getVar("file-radius");
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.#{iv.$class-prefix}file-name {
|
|
133
|
+
display: none;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&.#{iv.$class-prefix}is-boxed {
|
|
139
|
+
.#{iv.$class-prefix}file-label {
|
|
140
|
+
flex-direction: column;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.#{iv.$class-prefix}file-cta {
|
|
144
|
+
flex-direction: column;
|
|
145
|
+
height: auto;
|
|
146
|
+
padding: 1em 3em;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.#{iv.$class-prefix}file-name {
|
|
150
|
+
border-width: 0 1px 1px;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.#{iv.$class-prefix}file-icon {
|
|
154
|
+
height: 1.5em;
|
|
155
|
+
width: 1.5em;
|
|
156
|
+
|
|
157
|
+
.#{iv.$class-prefix}fa {
|
|
158
|
+
font-size: 1.5rem;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
&.#{iv.$class-prefix}is-small {
|
|
163
|
+
.#{iv.$class-prefix}file-icon .#{iv.$class-prefix}fa {
|
|
164
|
+
font-size: 1rem;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
&.#{iv.$class-prefix}is-medium {
|
|
169
|
+
.#{iv.$class-prefix}file-icon .#{iv.$class-prefix}fa {
|
|
170
|
+
font-size: 2rem;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
&.#{iv.$class-prefix}is-large {
|
|
175
|
+
.#{iv.$class-prefix}file-icon .#{iv.$class-prefix}fa {
|
|
176
|
+
font-size: 2.5rem;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
&.#{iv.$class-prefix}has-name {
|
|
181
|
+
.#{iv.$class-prefix}file-cta {
|
|
182
|
+
border-end-end-radius: 0;
|
|
183
|
+
border-end-start-radius: 0;
|
|
184
|
+
border-start-end-radius: cv.getVar("file-radius");
|
|
185
|
+
border-start-start-radius: cv.getVar("file-radius");
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.#{iv.$class-prefix}file-name {
|
|
189
|
+
border-end-end-radius: cv.getVar("file-radius");
|
|
190
|
+
border-end-start-radius: cv.getVar("file-radius");
|
|
191
|
+
border-start-end-radius: 0;
|
|
192
|
+
border-start-start-radius: 0;
|
|
193
|
+
border-width: 0 1px 1px;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
&.#{iv.$class-prefix}is-centered {
|
|
199
|
+
justify-content: center;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
&.#{iv.$class-prefix}is-fullwidth {
|
|
203
|
+
.#{iv.$class-prefix}file-label {
|
|
204
|
+
width: 100%;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.#{iv.$class-prefix}file-name {
|
|
208
|
+
flex-grow: 1;
|
|
209
|
+
max-width: none;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
&.#{iv.$class-prefix}is-right {
|
|
214
|
+
justify-content: flex-end;
|
|
215
|
+
|
|
216
|
+
.#{iv.$class-prefix}file-cta {
|
|
217
|
+
border-radius: 0 cv.getVar("file-radius") cv.getVar("file-radius") 0;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.#{iv.$class-prefix}file-name {
|
|
221
|
+
border-radius: cv.getVar("file-radius") 0 0 cv.getVar("file-radius");
|
|
222
|
+
border-width: 1px 0 1px 1px;
|
|
223
|
+
order: -1;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.#{iv.$class-prefix}file-label {
|
|
229
|
+
align-items: stretch;
|
|
230
|
+
display: flex;
|
|
231
|
+
cursor: pointer;
|
|
232
|
+
justify-content: flex-start;
|
|
233
|
+
overflow: hidden;
|
|
234
|
+
position: relative;
|
|
235
|
+
|
|
236
|
+
&:hover {
|
|
237
|
+
@include cv.register-vars(
|
|
238
|
+
(
|
|
239
|
+
"file-background-l-delta": #{cv.getVar("file-hover-background-l-delta")},
|
|
240
|
+
"file-border-l-delta": #{cv.getVar("file-hover-border-l-delta")},
|
|
241
|
+
"file-color-l-delta": #{cv.getVar("file-hover-color-l-delta")},
|
|
242
|
+
)
|
|
243
|
+
);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
&:active {
|
|
247
|
+
@include cv.register-vars(
|
|
248
|
+
(
|
|
249
|
+
"file-background-l-delta": #{cv.getVar("file-active-background-l-delta")},
|
|
250
|
+
"file-border-l-delta": #{cv.getVar("file-active-border-l-delta")},
|
|
251
|
+
"file-color-l-delta": #{cv.getVar("file-active-color-l-delta")},
|
|
252
|
+
)
|
|
253
|
+
);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.#{iv.$class-prefix}file-input {
|
|
258
|
+
height: 100%;
|
|
259
|
+
left: 0;
|
|
260
|
+
opacity: 0;
|
|
261
|
+
outline: none;
|
|
262
|
+
position: absolute;
|
|
263
|
+
top: 0;
|
|
264
|
+
width: 100%;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.#{iv.$class-prefix}file-cta,
|
|
268
|
+
.#{iv.$class-prefix}file-name {
|
|
269
|
+
@extend %control;
|
|
270
|
+
border-color: hsl(
|
|
271
|
+
cv.getVar("file-h"),
|
|
272
|
+
cv.getVar("file-s"),
|
|
273
|
+
calc(#{cv.getVar("file-border-l")} + #{cv.getVar("file-border-l-delta")})
|
|
274
|
+
);
|
|
275
|
+
border-radius: cv.getVar("file-radius");
|
|
276
|
+
font-size: 1em;
|
|
277
|
+
padding-left: 1em;
|
|
278
|
+
padding-right: 1em;
|
|
279
|
+
white-space: nowrap;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.#{iv.$class-prefix}file-cta {
|
|
283
|
+
background-color: hsl(
|
|
284
|
+
cv.getVar("file-h"),
|
|
285
|
+
cv.getVar("file-s"),
|
|
286
|
+
calc(
|
|
287
|
+
#{cv.getVar("file-background-l")} + #{cv.getVar(
|
|
288
|
+
"file-background-l-delta"
|
|
289
|
+
)}
|
|
290
|
+
)
|
|
291
|
+
);
|
|
292
|
+
color: hsl(
|
|
293
|
+
cv.getVar("file-h"),
|
|
294
|
+
cv.getVar("file-s"),
|
|
295
|
+
calc(#{cv.getVar("file-cta-color-l")} + #{cv.getVar("file-color-l-delta")})
|
|
296
|
+
);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.#{iv.$class-prefix}file-name {
|
|
300
|
+
border-color: hsl(
|
|
301
|
+
cv.getVar("file-h"),
|
|
302
|
+
cv.getVar("file-s"),
|
|
303
|
+
calc(#{cv.getVar("file-border-l")} + #{cv.getVar("file-color-l-delta")})
|
|
304
|
+
);
|
|
305
|
+
border-style: cv.getVar("file-name-border-style");
|
|
306
|
+
border-width: cv.getVar("file-name-border-width");
|
|
307
|
+
color: hsl(
|
|
308
|
+
cv.getVar("file-h"),
|
|
309
|
+
cv.getVar("file-s"),
|
|
310
|
+
calc(#{cv.getVar("file-name-color-l")} + #{cv.getVar("file-color-l-delta")})
|
|
311
|
+
);
|
|
312
|
+
display: block;
|
|
313
|
+
max-width: cv.getVar("file-name-max-width");
|
|
314
|
+
overflow: hidden;
|
|
315
|
+
text-align: inherit;
|
|
316
|
+
text-overflow: ellipsis;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.#{iv.$class-prefix}file-icon {
|
|
320
|
+
align-items: center;
|
|
321
|
+
display: flex;
|
|
322
|
+
height: 1em;
|
|
323
|
+
justify-content: center;
|
|
324
|
+
margin-inline-end: 0.5em;
|
|
325
|
+
width: 1em;
|
|
326
|
+
|
|
327
|
+
.#{iv.$class-prefix}fa {
|
|
328
|
+
font-size: 1rem;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
@use "sass:list";
|
|
2
|
+
|
|
3
|
+
@use "shared";
|
|
4
|
+
@use "../utilities/css-variables" as cv;
|
|
5
|
+
@use "../utilities/initial-variables" as iv;
|
|
6
|
+
@use "../utilities/controls";
|
|
7
|
+
|
|
8
|
+
$textarea-padding: cv.getVar("control-padding-horizontal") !default;
|
|
9
|
+
$textarea-max-height: 40em !default;
|
|
10
|
+
$textarea-min-height: 8em !default;
|
|
11
|
+
|
|
12
|
+
$textarea-colors: shared.$form-colors !default;
|
|
13
|
+
|
|
14
|
+
%input-textarea {
|
|
15
|
+
@extend %input;
|
|
16
|
+
|
|
17
|
+
box-shadow: shared.$input-shadow;
|
|
18
|
+
max-width: 100%;
|
|
19
|
+
width: 100%;
|
|
20
|
+
|
|
21
|
+
&[readonly] {
|
|
22
|
+
box-shadow: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Colors
|
|
26
|
+
@each $name, $pair in $textarea-colors {
|
|
27
|
+
$color: list.nth($pair, 1);
|
|
28
|
+
|
|
29
|
+
&.#{iv.$class-prefix}is-#{$name} {
|
|
30
|
+
@include cv.register-vars(
|
|
31
|
+
(
|
|
32
|
+
"input-h": #{cv.getVar($name, "", "-h")},
|
|
33
|
+
"input-s": #{cv.getVar($name, "", "-s")},
|
|
34
|
+
"input-l": #{cv.getVar($name, "", "-l")},
|
|
35
|
+
"input-focus-h": #{cv.getVar($name, "", "-h")},
|
|
36
|
+
"input-focus-s": #{cv.getVar($name, "", "-s")},
|
|
37
|
+
"input-focus-l": #{cv.getVar($name, "", "-l")},
|
|
38
|
+
"input-border-l": #{cv.getVar($name, "", "-l")},
|
|
39
|
+
)
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// Sizes
|
|
45
|
+
&.#{iv.$class-prefix}is-small {
|
|
46
|
+
@include controls.control-small;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&.#{iv.$class-prefix}is-medium {
|
|
50
|
+
@include controls.control-medium;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&.#{iv.$class-prefix}is-large {
|
|
54
|
+
@include controls.control-large;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// Modifiers
|
|
58
|
+
&.#{iv.$class-prefix}is-fullwidth {
|
|
59
|
+
display: block;
|
|
60
|
+
width: 100%;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&.#{iv.$class-prefix}is-inline {
|
|
64
|
+
display: inline;
|
|
65
|
+
width: auto;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.#{iv.$class-prefix}input {
|
|
70
|
+
@extend %input-textarea;
|
|
71
|
+
|
|
72
|
+
&.#{iv.$class-prefix}is-rounded {
|
|
73
|
+
border-radius: cv.getVar("radius-rounded");
|
|
74
|
+
padding-left: calc(#{controls.$control-padding-horizontal} + 0.375em);
|
|
75
|
+
padding-right: calc(#{controls.$control-padding-horizontal} + 0.375em);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&.#{iv.$class-prefix}is-static {
|
|
79
|
+
background-color: transparent;
|
|
80
|
+
border-color: transparent;
|
|
81
|
+
box-shadow: none;
|
|
82
|
+
padding-left: 0;
|
|
83
|
+
padding-right: 0;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.#{iv.$class-prefix}textarea {
|
|
88
|
+
@extend %input-textarea;
|
|
89
|
+
@include cv.register-vars(
|
|
90
|
+
(
|
|
91
|
+
"textarea-padding": #{$textarea-padding},
|
|
92
|
+
"textarea-max-height": #{$textarea-max-height},
|
|
93
|
+
"textarea-min-height": #{$textarea-min-height},
|
|
94
|
+
)
|
|
95
|
+
);
|
|
96
|
+
display: block;
|
|
97
|
+
max-width: 100%;
|
|
98
|
+
min-width: 100%;
|
|
99
|
+
padding: cv.getVar("textarea-padding");
|
|
100
|
+
resize: vertical;
|
|
101
|
+
|
|
102
|
+
&:not([rows]) {
|
|
103
|
+
max-height: cv.getVar("textarea-max-height");
|
|
104
|
+
min-height: cv.getVar("textarea-min-height");
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&[rows] {
|
|
108
|
+
height: initial;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// Modifiers
|
|
112
|
+
&.#{iv.$class-prefix}has-fixed-size {
|
|
113
|
+
resize: none;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
@use "shared";
|
|
2
|
+
@use "../utilities/controls";
|
|
3
|
+
@use "../utilities/css-variables" as cv;
|
|
4
|
+
@use "../utilities/initial-variables" as iv;
|
|
5
|
+
@use "../utilities/extends";
|
|
6
|
+
|
|
7
|
+
$select-colors: shared.$form-colors !default;
|
|
8
|
+
|
|
9
|
+
.#{iv.$class-prefix}select {
|
|
10
|
+
@include cv.register-vars(
|
|
11
|
+
(
|
|
12
|
+
"input-h": #{cv.getVar("scheme-h")},
|
|
13
|
+
"input-s": #{cv.getVar("scheme-s")},
|
|
14
|
+
"input-border-style": solid,
|
|
15
|
+
"input-border-width": 1px,
|
|
16
|
+
"input-border-l": #{cv.getVar("border-l")},
|
|
17
|
+
)
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
display: inline-block;
|
|
21
|
+
max-width: 100%;
|
|
22
|
+
position: relative;
|
|
23
|
+
vertical-align: top;
|
|
24
|
+
|
|
25
|
+
&:not(.#{iv.$class-prefix}is-multiple) {
|
|
26
|
+
height: shared.$input-height;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&:not(.#{iv.$class-prefix}is-multiple):not(.#{iv.$class-prefix}is-loading) {
|
|
30
|
+
&::after {
|
|
31
|
+
@extend %arrow;
|
|
32
|
+
inset-inline-end: 1.125em;
|
|
33
|
+
z-index: 4;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&.#{iv.$class-prefix}is-rounded {
|
|
38
|
+
select {
|
|
39
|
+
border-radius: cv.getVar("radius-rounded");
|
|
40
|
+
padding-inline-start: 1em;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
select {
|
|
45
|
+
@extend %input;
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
display: block;
|
|
48
|
+
font-size: 1em;
|
|
49
|
+
max-width: 100%;
|
|
50
|
+
outline: none;
|
|
51
|
+
|
|
52
|
+
&::-ms-expand {
|
|
53
|
+
display: none;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&[disabled]:hover,
|
|
57
|
+
fieldset[disabled] &:hover {
|
|
58
|
+
border-color: shared.$input-disabled-border-color;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&:not([multiple]) {
|
|
62
|
+
padding-inline-end: 2.5em;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&[multiple] {
|
|
66
|
+
height: auto;
|
|
67
|
+
padding: 0;
|
|
68
|
+
|
|
69
|
+
option {
|
|
70
|
+
padding: 0.5em 1em;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// Colors
|
|
76
|
+
@each $name, $pair in $select-colors {
|
|
77
|
+
&.#{iv.$class-prefix}is-#{$name} {
|
|
78
|
+
@include cv.register-vars(
|
|
79
|
+
(
|
|
80
|
+
"input-h": #{cv.getVar($name, "", "-h")},
|
|
81
|
+
"input-s": #{cv.getVar($name, "", "-s")},
|
|
82
|
+
"input-l": #{cv.getVar($name, "", "-l")},
|
|
83
|
+
"input-focus-h": #{cv.getVar($name, "", "-h")},
|
|
84
|
+
"input-focus-s": #{cv.getVar($name, "", "-s")},
|
|
85
|
+
"input-focus-l": #{cv.getVar($name, "", "-l")},
|
|
86
|
+
"input-border-l": #{cv.getVar($name, "", "-l")},
|
|
87
|
+
"arrow-color": #{cv.getVar($name)},
|
|
88
|
+
)
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// Sizes
|
|
94
|
+
&.#{iv.$class-prefix}is-small {
|
|
95
|
+
@include controls.control-small;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&.#{iv.$class-prefix}is-medium {
|
|
99
|
+
@include controls.control-medium;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&.#{iv.$class-prefix}is-large {
|
|
103
|
+
@include controls.control-large;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// Modifiers
|
|
107
|
+
&.#{iv.$class-prefix}is-disabled {
|
|
108
|
+
&::after {
|
|
109
|
+
border-color: shared.$input-disabled-color !important;
|
|
110
|
+
opacity: 0.5;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&.#{iv.$class-prefix}is-fullwidth {
|
|
115
|
+
width: 100%;
|
|
116
|
+
|
|
117
|
+
select {
|
|
118
|
+
width: 100%;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&.#{iv.$class-prefix}is-loading {
|
|
123
|
+
&::after {
|
|
124
|
+
@extend %loader;
|
|
125
|
+
inset-inline-end: 0.625em;
|
|
126
|
+
margin-top: 0;
|
|
127
|
+
position: absolute;
|
|
128
|
+
top: 0.625em;
|
|
129
|
+
transform: none;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
&.#{iv.$class-prefix}is-small:after {
|
|
133
|
+
font-size: cv.getVar("size-small");
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&.#{iv.$class-prefix}is-medium:after {
|
|
137
|
+
font-size: cv.getVar("size-medium");
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
&.#{iv.$class-prefix}is-large:after {
|
|
141
|
+
font-size: cv.getVar("size-large");
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|