bulma-rails 0.9.4 → 1.0.4
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 +4 -4
- data/README.md +86 -13
- data/app/assets/stylesheets/bulma.scss +4 -0
- data/app/assets/stylesheets/bulma_sass/_index.scss +10 -0
- data/app/assets/stylesheets/bulma_sass/base/_index.scss +6 -0
- data/app/assets/stylesheets/bulma_sass/base/animations.scss +15 -0
- data/app/assets/stylesheets/bulma_sass/base/generic.scss +240 -0
- data/app/assets/stylesheets/bulma_sass/base/minireset.scss +92 -0
- data/app/assets/stylesheets/bulma_sass/base/skeleton.scss +114 -0
- data/app/assets/stylesheets/bulma_sass/components/_index.scss +13 -0
- data/app/assets/stylesheets/bulma_sass/components/breadcrumb.scss +139 -0
- data/app/assets/stylesheets/bulma_sass/components/card.scss +162 -0
- data/app/assets/stylesheets/bulma_sass/components/dropdown.scss +188 -0
- data/app/assets/stylesheets/bulma_sass/components/menu.scss +165 -0
- data/app/assets/stylesheets/bulma_sass/components/message.scss +183 -0
- data/app/assets/stylesheets/bulma_sass/components/modal.scss +164 -0
- data/app/assets/stylesheets/bulma_sass/components/navbar.scss +799 -0
- data/app/assets/stylesheets/bulma_sass/components/pagination.scss +379 -0
- data/app/assets/stylesheets/bulma_sass/components/panel.scss +218 -0
- data/app/assets/stylesheets/bulma_sass/components/tabs.scss +273 -0
- data/app/assets/stylesheets/bulma_sass/elements/_index.scss +16 -0
- data/app/assets/stylesheets/bulma_sass/elements/block.scss +6 -0
- data/app/assets/stylesheets/bulma_sass/elements/box.scss +59 -0
- data/app/assets/stylesheets/bulma_sass/elements/button.scss +659 -0
- data/app/assets/stylesheets/bulma_sass/elements/content.scss +289 -0
- data/app/assets/stylesheets/bulma_sass/elements/delete.scss +6 -0
- data/app/assets/stylesheets/bulma_sass/elements/icon.scss +67 -0
- data/app/assets/stylesheets/bulma_sass/elements/image.scss +64 -0
- data/app/assets/stylesheets/bulma_sass/elements/loader.scss +15 -0
- data/app/assets/stylesheets/bulma_sass/elements/notification.scss +105 -0
- data/app/assets/stylesheets/bulma_sass/elements/progress.scss +115 -0
- data/app/assets/stylesheets/bulma_sass/elements/table.scss +261 -0
- data/app/assets/stylesheets/bulma_sass/elements/tag.scss +219 -0
- data/app/assets/stylesheets/bulma_sass/elements/title.scss +130 -0
- data/app/assets/stylesheets/bulma_sass/form/_index.scss +9 -0
- data/app/assets/stylesheets/bulma_sass/form/checkbox-radio.scss +36 -0
- data/app/assets/stylesheets/bulma_sass/form/file.scss +330 -0
- data/app/assets/stylesheets/bulma_sass/form/input-textarea.scss +115 -0
- data/app/assets/stylesheets/bulma_sass/form/select.scss +144 -0
- data/app/assets/stylesheets/bulma_sass/form/shared.scss +178 -0
- data/app/assets/stylesheets/bulma_sass/form/tools.scss +352 -0
- data/app/assets/stylesheets/bulma_sass/grid/_index.scss +5 -0
- data/app/assets/stylesheets/bulma_sass/grid/columns.scss +961 -0
- data/app/assets/stylesheets/bulma_sass/grid/grid.scss +209 -0
- data/app/assets/stylesheets/bulma_sass/helpers/_index.scss +15 -0
- data/app/assets/stylesheets/bulma_sass/helpers/aspect-ratio.scss +12 -0
- data/app/assets/stylesheets/bulma_sass/helpers/border.scss +15 -0
- data/app/assets/stylesheets/bulma_sass/helpers/color.scss +344 -0
- data/app/assets/stylesheets/bulma_sass/helpers/flexbox.scss +62 -0
- data/app/assets/stylesheets/bulma_sass/helpers/float.scss +28 -0
- data/app/assets/stylesheets/bulma_sass/helpers/gap.scss +24 -0
- data/app/assets/stylesheets/bulma_sass/helpers/other.scss +19 -0
- data/app/assets/stylesheets/bulma_sass/helpers/overflow.scss +21 -0
- data/app/assets/stylesheets/bulma_sass/helpers/position.scss +19 -0
- data/app/assets/stylesheets/bulma_sass/helpers/spacing.scss +64 -0
- data/app/assets/stylesheets/bulma_sass/helpers/typography.scss +174 -0
- data/app/assets/stylesheets/bulma_sass/helpers/visibility.scss +221 -0
- data/app/assets/stylesheets/bulma_sass/layout/_index.scss +9 -0
- data/app/assets/stylesheets/bulma_sass/layout/container.scss +59 -0
- data/app/assets/stylesheets/bulma_sass/layout/footer.scss +23 -0
- data/app/assets/stylesheets/bulma_sass/layout/hero.scss +273 -0
- data/app/assets/stylesheets/bulma_sass/layout/level.scss +107 -0
- data/app/assets/stylesheets/bulma_sass/layout/media.scss +106 -0
- data/app/assets/stylesheets/bulma_sass/layout/section.scss +38 -0
- data/app/assets/stylesheets/bulma_sass/themes/_index.scss +36 -0
- data/app/assets/stylesheets/bulma_sass/themes/dark.scss +57 -0
- data/app/assets/stylesheets/bulma_sass/themes/light.scss +147 -0
- data/app/assets/stylesheets/bulma_sass/themes/setup.scss +174 -0
- data/app/assets/stylesheets/bulma_sass/utilities/_index.scss +7 -0
- data/app/assets/stylesheets/bulma_sass/utilities/controls.scss +85 -0
- data/app/assets/stylesheets/bulma_sass/utilities/css-variables.scss +502 -0
- data/app/assets/stylesheets/bulma_sass/utilities/derived-variables.scss +112 -0
- data/app/assets/stylesheets/bulma_sass/utilities/extends.scss +34 -0
- data/app/assets/stylesheets/bulma_sass/utilities/functions.scss +310 -0
- data/app/assets/stylesheets/bulma_sass/utilities/initial-variables.scss +157 -0
- data/app/assets/stylesheets/bulma_sass/utilities/mixins.scss +462 -0
- data/bulma-rails.gemspec +4 -6
- metadata +83 -74
- data/app/assets/stylesheets/bulma.sass +0 -10
- data/app/assets/stylesheets/sass/base/_all.sass +0 -6
- data/app/assets/stylesheets/sass/base/animations.sass +0 -5
- data/app/assets/stylesheets/sass/base/generic.sass +0 -145
- data/app/assets/stylesheets/sass/base/helpers.sass +0 -1
- data/app/assets/stylesheets/sass/base/minireset.sass +0 -79
- data/app/assets/stylesheets/sass/components/_all.sass +0 -15
- data/app/assets/stylesheets/sass/components/breadcrumb.sass +0 -77
- data/app/assets/stylesheets/sass/components/card.sass +0 -103
- data/app/assets/stylesheets/sass/components/dropdown.sass +0 -83
- data/app/assets/stylesheets/sass/components/level.sass +0 -79
- data/app/assets/stylesheets/sass/components/media.sass +0 -59
- data/app/assets/stylesheets/sass/components/menu.sass +0 -59
- data/app/assets/stylesheets/sass/components/message.sass +0 -101
- data/app/assets/stylesheets/sass/components/modal.sass +0 -117
- data/app/assets/stylesheets/sass/components/navbar.sass +0 -446
- data/app/assets/stylesheets/sass/components/pagination.sass +0 -167
- data/app/assets/stylesheets/sass/components/panel.sass +0 -121
- data/app/assets/stylesheets/sass/components/tabs.sass +0 -176
- data/app/assets/stylesheets/sass/elements/_all.sass +0 -16
- data/app/assets/stylesheets/sass/elements/box.sass +0 -26
- data/app/assets/stylesheets/sass/elements/button.sass +0 -357
- data/app/assets/stylesheets/sass/elements/container.sass +0 -29
- data/app/assets/stylesheets/sass/elements/content.sass +0 -162
- data/app/assets/stylesheets/sass/elements/form.sass +0 -1
- data/app/assets/stylesheets/sass/elements/icon.sass +0 -46
- data/app/assets/stylesheets/sass/elements/image.sass +0 -73
- data/app/assets/stylesheets/sass/elements/notification.sass +0 -52
- data/app/assets/stylesheets/sass/elements/other.sass +0 -31
- data/app/assets/stylesheets/sass/elements/progress.sass +0 -73
- data/app/assets/stylesheets/sass/elements/table.sass +0 -134
- data/app/assets/stylesheets/sass/elements/tag.sass +0 -140
- data/app/assets/stylesheets/sass/elements/title.sass +0 -70
- data/app/assets/stylesheets/sass/form/_all.sass +0 -9
- data/app/assets/stylesheets/sass/form/checkbox-radio.sass +0 -22
- data/app/assets/stylesheets/sass/form/file.sass +0 -184
- data/app/assets/stylesheets/sass/form/input-textarea.sass +0 -66
- data/app/assets/stylesheets/sass/form/select.sass +0 -88
- data/app/assets/stylesheets/sass/form/shared.sass +0 -60
- data/app/assets/stylesheets/sass/form/tools.sass +0 -215
- data/app/assets/stylesheets/sass/grid/_all.sass +0 -5
- data/app/assets/stylesheets/sass/grid/columns.sass +0 -513
- data/app/assets/stylesheets/sass/grid/tiles.sass +0 -36
- data/app/assets/stylesheets/sass/helpers/_all.sass +0 -12
- data/app/assets/stylesheets/sass/helpers/color.sass +0 -39
- data/app/assets/stylesheets/sass/helpers/flexbox.sass +0 -35
- data/app/assets/stylesheets/sass/helpers/float.sass +0 -10
- data/app/assets/stylesheets/sass/helpers/other.sass +0 -14
- data/app/assets/stylesheets/sass/helpers/overflow.sass +0 -2
- data/app/assets/stylesheets/sass/helpers/position.sass +0 -7
- data/app/assets/stylesheets/sass/helpers/spacing.sass +0 -31
- data/app/assets/stylesheets/sass/helpers/typography.sass +0 -103
- data/app/assets/stylesheets/sass/helpers/visibility.sass +0 -122
- data/app/assets/stylesheets/sass/layout/_all.sass +0 -6
- data/app/assets/stylesheets/sass/layout/footer.sass +0 -11
- data/app/assets/stylesheets/sass/layout/hero.sass +0 -153
- data/app/assets/stylesheets/sass/layout/section.sass +0 -17
- data/app/assets/stylesheets/sass/utilities/_all.sass +0 -9
- data/app/assets/stylesheets/sass/utilities/animations.sass +0 -1
- data/app/assets/stylesheets/sass/utilities/controls.sass +0 -49
- data/app/assets/stylesheets/sass/utilities/derived-variables.sass +0 -114
- data/app/assets/stylesheets/sass/utilities/extends.sass +0 -25
- data/app/assets/stylesheets/sass/utilities/functions.sass +0 -135
- data/app/assets/stylesheets/sass/utilities/initial-variables.sass +0 -79
- data/app/assets/stylesheets/sass/utilities/mixins.sass +0 -303
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
@use "../utilities/css-variables" as cv;
|
|
2
|
+
@use "../utilities/derived-variables" as dv;
|
|
3
|
+
@use "../utilities/initial-variables" as iv;
|
|
4
|
+
@use "../utilities/extends";
|
|
5
|
+
@use "../utilities/mixins" as mx;
|
|
6
|
+
|
|
7
|
+
$form-colors: dv.$colors !default;
|
|
8
|
+
|
|
9
|
+
$input-h: #{cv.getVar("scheme-h")} !default;
|
|
10
|
+
$input-s: #{cv.getVar("scheme-s")} !default;
|
|
11
|
+
$input-l: #{cv.getVar("scheme-main-l")} !default;
|
|
12
|
+
$input-border-style: solid !default;
|
|
13
|
+
$input-border-width: cv.getVar("control-border-width") !default;
|
|
14
|
+
$input-border-l: cv.getVar("border-l") !default;
|
|
15
|
+
$input-border-l-delta: 0% !default;
|
|
16
|
+
$input-border-color: hsl(
|
|
17
|
+
cv.getVar("input-h"),
|
|
18
|
+
cv.getVar("input-s"),
|
|
19
|
+
calc(#{cv.getVar("input-border-l")} + #{cv.getVar("input-border-l-delta")})
|
|
20
|
+
) !default;
|
|
21
|
+
$input-hover-border-l-delta: #{cv.getVar("hover-border-l-delta")} !default;
|
|
22
|
+
$input-active-border-l-delta: #{cv.getVar("active-border-l-delta")} !default;
|
|
23
|
+
$input-color-l: cv.getVar("text-strong-l") !default;
|
|
24
|
+
$input-background-l: cv.getVar("scheme-main-l") !default;
|
|
25
|
+
$input-background-l-delta: 0% !default;
|
|
26
|
+
$input-height: cv.getVar("control-height") !default;
|
|
27
|
+
$input-shadow: inset 0 0.0625em 0.125em
|
|
28
|
+
hsla(
|
|
29
|
+
#{cv.getVar("scheme-h")},
|
|
30
|
+
#{cv.getVar("scheme-s")},
|
|
31
|
+
#{cv.getVar("scheme-invert-l")},
|
|
32
|
+
0.05
|
|
33
|
+
) !default;
|
|
34
|
+
$input-placeholder-color: hsla(
|
|
35
|
+
#{cv.getVar("text-h")},
|
|
36
|
+
#{cv.getVar("text-s")},
|
|
37
|
+
#{cv.getVar("text-strong-l")},
|
|
38
|
+
0.3
|
|
39
|
+
) !default;
|
|
40
|
+
|
|
41
|
+
$input-focus-h: cv.getVar("focus-h") !default;
|
|
42
|
+
$input-focus-s: cv.getVar("focus-s") !default;
|
|
43
|
+
$input-focus-l: cv.getVar("focus-l") !default;
|
|
44
|
+
$input-focus-shadow-size: cv.getVar("focus-shadow-size") !default;
|
|
45
|
+
$input-focus-shadow-alpha: cv.getVar("focus-shadow-alpha") !default;
|
|
46
|
+
|
|
47
|
+
$input-disabled-color: cv.getVar("text-weak") !default;
|
|
48
|
+
$input-disabled-background-color: cv.getVar("background") !default;
|
|
49
|
+
$input-disabled-border-color: cv.getVar("background") !default;
|
|
50
|
+
$input-disabled-placeholder-color: hsla(
|
|
51
|
+
#{cv.getVar("text-h")},
|
|
52
|
+
#{cv.getVar("text-s")},
|
|
53
|
+
#{cv.getVar("text-weak-l")},
|
|
54
|
+
0.3
|
|
55
|
+
) !default;
|
|
56
|
+
|
|
57
|
+
$input-arrow: cv.getVar("link") !default;
|
|
58
|
+
|
|
59
|
+
$input-icon-color: cv.getVar("text-light") !default;
|
|
60
|
+
$input-icon-hover-color: cv.getVar("text-weak") !default;
|
|
61
|
+
$input-icon-focus-color: cv.getVar("link") !default;
|
|
62
|
+
|
|
63
|
+
$input-radius: cv.getVar("radius") !default;
|
|
64
|
+
|
|
65
|
+
.#{iv.$class-prefix}control,
|
|
66
|
+
.#{iv.$class-prefix}input,
|
|
67
|
+
.#{iv.$class-prefix}textarea,
|
|
68
|
+
.#{iv.$class-prefix}select {
|
|
69
|
+
@include cv.register-vars(
|
|
70
|
+
(
|
|
71
|
+
"input-h": #{$input-h},
|
|
72
|
+
"input-s": #{$input-s},
|
|
73
|
+
"input-l": #{$input-l},
|
|
74
|
+
"input-border-style": #{$input-border-style},
|
|
75
|
+
"input-border-width": #{$input-border-width},
|
|
76
|
+
"input-border-l": #{$input-border-l},
|
|
77
|
+
"input-border-l-delta": #{$input-border-l-delta},
|
|
78
|
+
"input-border-color": #{$input-border-color},
|
|
79
|
+
"input-hover-border-l-delta": #{$input-hover-border-l-delta},
|
|
80
|
+
"input-active-border-l-delta": #{$input-active-border-l-delta},
|
|
81
|
+
"input-focus-h": #{$input-focus-h},
|
|
82
|
+
"input-focus-s": #{$input-focus-s},
|
|
83
|
+
"input-focus-l": #{$input-focus-l},
|
|
84
|
+
"input-focus-shadow-size": #{$input-focus-shadow-size},
|
|
85
|
+
"input-focus-shadow-alpha": #{$input-focus-shadow-alpha},
|
|
86
|
+
"input-color-l": #{$input-color-l},
|
|
87
|
+
"input-background-l": #{$input-background-l},
|
|
88
|
+
"input-background-l-delta": #{$input-background-l-delta},
|
|
89
|
+
"input-height": #{$input-height},
|
|
90
|
+
"input-shadow": #{$input-shadow},
|
|
91
|
+
"input-placeholder-color": #{$input-placeholder-color},
|
|
92
|
+
"input-disabled-color": #{$input-disabled-color},
|
|
93
|
+
"input-disabled-background-color": #{$input-disabled-background-color},
|
|
94
|
+
"input-disabled-border-color": #{$input-disabled-border-color},
|
|
95
|
+
"input-disabled-placeholder-color": #{$input-disabled-placeholder-color},
|
|
96
|
+
"input-arrow": #{$input-arrow},
|
|
97
|
+
"input-icon-color": #{$input-icon-color},
|
|
98
|
+
"input-icon-hover-color": #{$input-icon-hover-color},
|
|
99
|
+
"input-icon-focus-color": #{$input-icon-focus-color},
|
|
100
|
+
"input-radius": #{$input-radius},
|
|
101
|
+
)
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@mixin input {
|
|
106
|
+
@extend %control;
|
|
107
|
+
background-color: hsl(
|
|
108
|
+
#{cv.getVar("input-h")},
|
|
109
|
+
#{cv.getVar("input-s")},
|
|
110
|
+
calc(
|
|
111
|
+
#{cv.getVar("input-background-l")} + #{cv.getVar(
|
|
112
|
+
"input-background-l-delta"
|
|
113
|
+
)}
|
|
114
|
+
)
|
|
115
|
+
);
|
|
116
|
+
border-color: cv.getVar("input-border-color");
|
|
117
|
+
border-radius: cv.getVar("input-radius");
|
|
118
|
+
color: hsl(
|
|
119
|
+
#{cv.getVar("input-h")},
|
|
120
|
+
#{cv.getVar("input-s")},
|
|
121
|
+
#{cv.getVar("input-color-l")}
|
|
122
|
+
);
|
|
123
|
+
|
|
124
|
+
@include mx.placeholder {
|
|
125
|
+
color: cv.getVar("input-placeholder-color");
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&:hover,
|
|
129
|
+
&.#{iv.$class-prefix}is-hovered {
|
|
130
|
+
@include cv.register-vars(
|
|
131
|
+
(
|
|
132
|
+
"input-border-l-delta": #{cv.getVar("input-hover-border-l-delta")},
|
|
133
|
+
)
|
|
134
|
+
);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
&:active,
|
|
138
|
+
&.#{iv.$class-prefix}is-active {
|
|
139
|
+
@include cv.register-vars(
|
|
140
|
+
(
|
|
141
|
+
"input-border-l-delta": #{cv.getVar("input-active-border-l-delta")},
|
|
142
|
+
)
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&:focus,
|
|
147
|
+
&:focus-within,
|
|
148
|
+
&.#{iv.$class-prefix}is-focused {
|
|
149
|
+
border-color: hsl(
|
|
150
|
+
cv.getVar("input-focus-h"),
|
|
151
|
+
cv.getVar("input-focus-s"),
|
|
152
|
+
cv.getVar("input-focus-l")
|
|
153
|
+
);
|
|
154
|
+
box-shadow: cv.getVar("input-focus-shadow-size")
|
|
155
|
+
hsla(
|
|
156
|
+
cv.getVar("input-focus-h"),
|
|
157
|
+
cv.getVar("input-focus-s"),
|
|
158
|
+
cv.getVar("input-focus-l"),
|
|
159
|
+
cv.getVar("input-focus-shadow-alpha")
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
&[disabled],
|
|
164
|
+
fieldset[disabled] & {
|
|
165
|
+
background-color: cv.getVar("input-disabled-background-color");
|
|
166
|
+
border-color: cv.getVar("input-disabled-border-color");
|
|
167
|
+
box-shadow: none;
|
|
168
|
+
color: cv.getVar("input-disabled-color");
|
|
169
|
+
|
|
170
|
+
@include mx.placeholder {
|
|
171
|
+
color: cv.getVar("input-disabled-placeholder-color");
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
%input {
|
|
177
|
+
@include input;
|
|
178
|
+
}
|
|
@@ -0,0 +1,352 @@
|
|
|
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
|
+
@use "../utilities/mixins" as mx;
|
|
7
|
+
|
|
8
|
+
$label-color: cv.getVar("text-strong") !default;
|
|
9
|
+
$label-spacing: 0.5em !default;
|
|
10
|
+
$label-weight: cv.getVar("weight-semibold") !default;
|
|
11
|
+
|
|
12
|
+
$help-size: cv.getVar("size-small") !default;
|
|
13
|
+
|
|
14
|
+
$label-colors: shared.$form-colors !default;
|
|
15
|
+
|
|
16
|
+
$field-block-spacing: 0.75rem !default;
|
|
17
|
+
|
|
18
|
+
#{iv.$variables-host} {
|
|
19
|
+
@include cv.register-vars(
|
|
20
|
+
(
|
|
21
|
+
"label-color": #{$label-color},
|
|
22
|
+
"label-spacing": #{$label-spacing},
|
|
23
|
+
"label-weight": #{$label-weight},
|
|
24
|
+
"help-size": #{$help-size},
|
|
25
|
+
"field-block-spacing": #{$field-block-spacing},
|
|
26
|
+
)
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.#{iv.$class-prefix}label {
|
|
31
|
+
color: cv.getVar("label-color");
|
|
32
|
+
display: block;
|
|
33
|
+
font-size: cv.getVar("size-normal");
|
|
34
|
+
font-weight: $label-weight;
|
|
35
|
+
|
|
36
|
+
&:not(:last-child) {
|
|
37
|
+
margin-bottom: cv.getVar("label-spacing");
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// Sizes
|
|
41
|
+
&.#{iv.$class-prefix}is-small {
|
|
42
|
+
font-size: cv.getVar("size-small");
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&.#{iv.$class-prefix}is-medium {
|
|
46
|
+
font-size: cv.getVar("size-medium");
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&.#{iv.$class-prefix}is-large {
|
|
50
|
+
font-size: cv.getVar("size-large");
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.#{iv.$class-prefix}help {
|
|
55
|
+
display: block;
|
|
56
|
+
font-size: cv.getVar("help-size");
|
|
57
|
+
margin-top: 0.25rem;
|
|
58
|
+
|
|
59
|
+
@each $name, $pair in $label-colors {
|
|
60
|
+
&.#{iv.$class-prefix}is-#{$name} {
|
|
61
|
+
color: hsl(
|
|
62
|
+
#{cv.getVar($name, "", "-h")},
|
|
63
|
+
#{cv.getVar($name, "", "-s")},
|
|
64
|
+
#{cv.getVar($name, "", "-on-scheme-l")}
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// Containers
|
|
71
|
+
|
|
72
|
+
.#{iv.$class-prefix}field {
|
|
73
|
+
@include cv.register-vars(
|
|
74
|
+
(
|
|
75
|
+
"block-spacing": #{cv.getVar("field-block-spacing")},
|
|
76
|
+
)
|
|
77
|
+
);
|
|
78
|
+
|
|
79
|
+
@extend %block;
|
|
80
|
+
|
|
81
|
+
// Modifiers
|
|
82
|
+
&.#{iv.$class-prefix}has-addons {
|
|
83
|
+
display: flex;
|
|
84
|
+
justify-content: flex-start;
|
|
85
|
+
|
|
86
|
+
.#{iv.$class-prefix}control {
|
|
87
|
+
&:not(:last-child) {
|
|
88
|
+
margin-inline-end: -1px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&:not(:first-child):not(:last-child) {
|
|
92
|
+
.#{iv.$class-prefix}button,
|
|
93
|
+
.#{iv.$class-prefix}input,
|
|
94
|
+
.#{iv.$class-prefix}select select {
|
|
95
|
+
border-radius: 0;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&:first-child:not(:only-child) {
|
|
100
|
+
.#{iv.$class-prefix}button,
|
|
101
|
+
.#{iv.$class-prefix}input,
|
|
102
|
+
.#{iv.$class-prefix}select select {
|
|
103
|
+
border-start-end-radius: 0;
|
|
104
|
+
border-end-end-radius: 0;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&:last-child:not(:only-child) {
|
|
109
|
+
.#{iv.$class-prefix}button,
|
|
110
|
+
.#{iv.$class-prefix}input,
|
|
111
|
+
.#{iv.$class-prefix}select select {
|
|
112
|
+
border-start-start-radius: 0;
|
|
113
|
+
border-end-start-radius: 0;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.#{iv.$class-prefix}button,
|
|
118
|
+
.#{iv.$class-prefix}input,
|
|
119
|
+
.#{iv.$class-prefix}select select {
|
|
120
|
+
&:not([disabled]) {
|
|
121
|
+
&:hover,
|
|
122
|
+
&.#{iv.$class-prefix}is-hovered {
|
|
123
|
+
z-index: 2;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&:focus,
|
|
127
|
+
&.#{iv.$class-prefix}is-focused,
|
|
128
|
+
&:active,
|
|
129
|
+
&.#{iv.$class-prefix}is-active {
|
|
130
|
+
z-index: 3;
|
|
131
|
+
|
|
132
|
+
&:hover {
|
|
133
|
+
z-index: 4;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&.#{iv.$class-prefix}is-expanded {
|
|
140
|
+
flex-grow: 1;
|
|
141
|
+
flex-shrink: 1;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
&.#{iv.$class-prefix}has-addons-centered {
|
|
146
|
+
justify-content: center;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
&.#{iv.$class-prefix}has-addons-right {
|
|
150
|
+
justify-content: flex-end;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
&.#{iv.$class-prefix}has-addons-fullwidth {
|
|
154
|
+
.#{iv.$class-prefix}control {
|
|
155
|
+
flex-grow: 1;
|
|
156
|
+
flex-shrink: 0;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&.#{iv.$class-prefix}is-grouped {
|
|
162
|
+
display: flex;
|
|
163
|
+
gap: 0.75rem;
|
|
164
|
+
justify-content: flex-start;
|
|
165
|
+
|
|
166
|
+
& > .#{iv.$class-prefix}control {
|
|
167
|
+
flex-shrink: 0;
|
|
168
|
+
|
|
169
|
+
&.#{iv.$class-prefix}is-expanded {
|
|
170
|
+
flex-grow: 1;
|
|
171
|
+
flex-shrink: 1;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
&.#{iv.$class-prefix}is-grouped-centered {
|
|
176
|
+
justify-content: center;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
&.#{iv.$class-prefix}is-grouped-right {
|
|
180
|
+
justify-content: flex-end;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
&.#{iv.$class-prefix}is-grouped-multiline {
|
|
184
|
+
flex-wrap: wrap;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
&.#{iv.$class-prefix}is-horizontal {
|
|
189
|
+
@include mx.tablet {
|
|
190
|
+
display: flex;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.#{iv.$class-prefix}field-label {
|
|
196
|
+
.#{iv.$class-prefix}label {
|
|
197
|
+
font-size: inherit;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
@include mx.mobile {
|
|
201
|
+
margin-bottom: 0.5rem;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
@include mx.tablet {
|
|
205
|
+
flex-basis: 0;
|
|
206
|
+
flex-grow: 1;
|
|
207
|
+
flex-shrink: 0;
|
|
208
|
+
margin-inline-end: 1.5rem;
|
|
209
|
+
text-align: right;
|
|
210
|
+
|
|
211
|
+
&.#{iv.$class-prefix}is-small {
|
|
212
|
+
font-size: cv.getVar("size-small");
|
|
213
|
+
padding-top: 0.375em;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
&.#{iv.$class-prefix}is-normal {
|
|
217
|
+
padding-top: 0.375em;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
&.#{iv.$class-prefix}is-medium {
|
|
221
|
+
font-size: cv.getVar("size-medium");
|
|
222
|
+
padding-top: 0.375em;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
&.#{iv.$class-prefix}is-large {
|
|
226
|
+
font-size: cv.getVar("size-large");
|
|
227
|
+
padding-top: 0.375em;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.#{iv.$class-prefix}field-body {
|
|
233
|
+
.#{iv.$class-prefix}field .#{iv.$class-prefix}field {
|
|
234
|
+
margin-bottom: 0;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
@include mx.tablet {
|
|
238
|
+
display: flex;
|
|
239
|
+
flex-basis: 0;
|
|
240
|
+
flex-grow: 5;
|
|
241
|
+
flex-shrink: 1;
|
|
242
|
+
|
|
243
|
+
.#{iv.$class-prefix}field {
|
|
244
|
+
margin-bottom: 0;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
& > .#{iv.$class-prefix}field {
|
|
248
|
+
flex-shrink: 1;
|
|
249
|
+
|
|
250
|
+
&:not(.#{iv.$class-prefix}is-narrow) {
|
|
251
|
+
flex-grow: 1;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
&:not(:last-child) {
|
|
255
|
+
margin-inline-end: 0.75rem;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.#{iv.$class-prefix}control {
|
|
262
|
+
box-sizing: border-box;
|
|
263
|
+
clear: both;
|
|
264
|
+
font-size: cv.getVar("size-normal");
|
|
265
|
+
position: relative;
|
|
266
|
+
text-align: inherit;
|
|
267
|
+
|
|
268
|
+
// Modifiers
|
|
269
|
+
&.#{iv.$class-prefix}has-icons-left,
|
|
270
|
+
&.#{iv.$class-prefix}has-icons-right {
|
|
271
|
+
.#{iv.$class-prefix}input,
|
|
272
|
+
.#{iv.$class-prefix}select {
|
|
273
|
+
&:hover {
|
|
274
|
+
& ~ .#{iv.$class-prefix}icon {
|
|
275
|
+
color: cv.getVar("input-icon-hover-color");
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
&:focus {
|
|
280
|
+
& ~ .#{iv.$class-prefix}icon {
|
|
281
|
+
color: cv.getVar("input-icon-focus-color");
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
&.#{iv.$class-prefix}is-small ~ .#{iv.$class-prefix}icon {
|
|
286
|
+
font-size: cv.getVar("size-small");
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
&.#{iv.$class-prefix}is-medium ~ .#{iv.$class-prefix}icon {
|
|
290
|
+
font-size: cv.getVar("size-medium");
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
&.#{iv.$class-prefix}is-large ~ .#{iv.$class-prefix}icon {
|
|
294
|
+
font-size: cv.getVar("size-large");
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.#{iv.$class-prefix}icon {
|
|
299
|
+
color: cv.getVar("input-icon-color");
|
|
300
|
+
height: cv.getVar("input-height");
|
|
301
|
+
pointer-events: none;
|
|
302
|
+
position: absolute;
|
|
303
|
+
top: 0;
|
|
304
|
+
width: cv.getVar("input-height");
|
|
305
|
+
z-index: 4;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
&.#{iv.$class-prefix}has-icons-left {
|
|
310
|
+
.#{iv.$class-prefix}input,
|
|
311
|
+
.#{iv.$class-prefix}select select {
|
|
312
|
+
padding-left: cv.getVar("input-height");
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.#{iv.$class-prefix}icon.#{iv.$class-prefix}is-left {
|
|
316
|
+
left: 0;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
&.#{iv.$class-prefix}has-icons-right {
|
|
321
|
+
.#{iv.$class-prefix}input,
|
|
322
|
+
.#{iv.$class-prefix}select select {
|
|
323
|
+
padding-right: cv.getVar("input-height");
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.#{iv.$class-prefix}icon.#{iv.$class-prefix}is-right {
|
|
327
|
+
right: 0;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
&.#{iv.$class-prefix}is-loading {
|
|
332
|
+
&::after {
|
|
333
|
+
@extend %loader;
|
|
334
|
+
inset-inline-end: 0.75em;
|
|
335
|
+
position: absolute !important;
|
|
336
|
+
top: 0.75em;
|
|
337
|
+
z-index: 4;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
&.#{iv.$class-prefix}is-small:after {
|
|
341
|
+
font-size: cv.getVar("size-small");
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
&.#{iv.$class-prefix}is-medium:after {
|
|
345
|
+
font-size: cv.getVar("size-medium");
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
&.#{iv.$class-prefix}is-large:after {
|
|
349
|
+
font-size: cv.getVar("size-large");
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
}
|