bulma-sass 0.0.2 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/README.md +2 -0
  4. data/app/assets/stylesheets/bulma.sass +7 -8
  5. data/app/assets/stylesheets/sass/base/_all.sass +5 -0
  6. data/app/assets/stylesheets/sass/base/generic.sass +127 -0
  7. data/app/assets/stylesheets/sass/base/helpers.sass +203 -0
  8. data/app/assets/stylesheets/sass/base/minireset.sass +80 -0
  9. data/app/assets/stylesheets/sass/components/_all.sass +14 -0
  10. data/app/assets/stylesheets/sass/components/breadcrumb.sass +74 -0
  11. data/app/assets/stylesheets/sass/components/card.sass +67 -0
  12. data/app/assets/stylesheets/sass/components/dropdown.sass +74 -0
  13. data/app/assets/stylesheets/sass/components/level.sass +75 -0
  14. data/app/assets/stylesheets/sass/components/media.sass +44 -0
  15. data/app/assets/stylesheets/sass/components/menu.sass +50 -0
  16. data/app/assets/stylesheets/sass/components/message.sass +79 -0
  17. data/app/assets/stylesheets/sass/components/modal.sass +111 -0
  18. data/app/assets/stylesheets/sass/components/navbar.sass +301 -0
  19. data/app/assets/stylesheets/sass/components/pagination.sass +134 -0
  20. data/app/assets/stylesheets/sass/components/panel.sass +101 -0
  21. data/app/assets/stylesheets/sass/components/tabs.sass +141 -0
  22. data/app/assets/stylesheets/sass/elements/_all.sass +16 -0
  23. data/app/assets/stylesheets/sass/elements/box.sass +24 -0
  24. data/app/assets/stylesheets/sass/elements/button.sass +201 -0
  25. data/app/assets/stylesheets/sass/elements/container.sass +25 -0
  26. data/app/assets/stylesheets/sass/elements/content.sass +145 -0
  27. data/app/assets/stylesheets/sass/elements/form.sass +605 -0
  28. data/app/assets/stylesheets/sass/elements/icon.sass +21 -0
  29. data/app/assets/stylesheets/sass/elements/image.sass +36 -0
  30. data/app/assets/stylesheets/sass/elements/notification.sass +35 -0
  31. data/app/assets/stylesheets/sass/elements/other.sass +39 -0
  32. data/app/assets/stylesheets/sass/elements/progress.sass +35 -0
  33. data/app/assets/stylesheets/sass/elements/table.sass +104 -0
  34. data/app/assets/stylesheets/sass/elements/tag.sass +89 -0
  35. data/app/assets/stylesheets/sass/elements/title.sass +55 -0
  36. data/app/assets/stylesheets/sass/grid/_all.sass +4 -0
  37. data/app/assets/stylesheets/sass/grid/columns.sass +328 -0
  38. data/app/assets/stylesheets/sass/grid/tiles.sass +32 -0
  39. data/app/assets/stylesheets/sass/layout/_all.sass +5 -0
  40. data/app/assets/stylesheets/sass/layout/footer.sass +5 -0
  41. data/app/assets/stylesheets/sass/layout/hero.sass +155 -0
  42. data/app/assets/stylesheets/sass/layout/section.sass +13 -0
  43. data/app/assets/stylesheets/sass/utilities/_all.sass +8 -0
  44. data/app/assets/stylesheets/{bulma → sass}/utilities/animations.sass +1 -1
  45. data/app/assets/stylesheets/sass/utilities/controls.sass +41 -0
  46. data/app/assets/stylesheets/sass/utilities/derived-variables.sass +82 -0
  47. data/app/assets/stylesheets/{bulma → sass}/utilities/functions.sass +7 -13
  48. data/app/assets/stylesheets/sass/utilities/initial-variables.sass +65 -0
  49. data/app/assets/stylesheets/sass/utilities/mixins.sass +226 -0
  50. data/lib/bulma/sass/version.rb +1 -1
  51. metadata +46 -32
  52. data/app/assets/stylesheets/bulma/base/base.sass +0 -6
  53. data/app/assets/stylesheets/bulma/base/content.sass +0 -51
  54. data/app/assets/stylesheets/bulma/base/generic.sass +0 -101
  55. data/app/assets/stylesheets/bulma/base/helpers.sass +0 -27
  56. data/app/assets/stylesheets/bulma/base/highlight.sass +0 -123
  57. data/app/assets/stylesheets/bulma/components/card.sass +0 -36
  58. data/app/assets/stylesheets/bulma/components/components.sass +0 -11
  59. data/app/assets/stylesheets/bulma/components/grid.sass +0 -48
  60. data/app/assets/stylesheets/bulma/components/media.sass +0 -69
  61. data/app/assets/stylesheets/bulma/components/menu.sass +0 -25
  62. data/app/assets/stylesheets/bulma/components/navbar.sass +0 -45
  63. data/app/assets/stylesheets/bulma/components/table.sass +0 -73
  64. data/app/assets/stylesheets/bulma/components/tabs.sass +0 -84
  65. data/app/assets/stylesheets/bulma/config/generated-variables.sass +0 -74
  66. data/app/assets/stylesheets/bulma/config/variables.sass +0 -41
  67. data/app/assets/stylesheets/bulma/elements/buttons.sass +0 -96
  68. data/app/assets/stylesheets/bulma/elements/controls.sass +0 -213
  69. data/app/assets/stylesheets/bulma/elements/elements.sass +0 -172
  70. data/app/assets/stylesheets/bulma/elements/messages.sass +0 -41
  71. data/app/assets/stylesheets/bulma/elements/notifications.sass +0 -20
  72. data/app/assets/stylesheets/bulma/elements/titles.sass +0 -57
  73. data/app/assets/stylesheets/bulma/layout/footer.sass +0 -11
  74. data/app/assets/stylesheets/bulma/layout/header.sass +0 -149
  75. data/app/assets/stylesheets/bulma/layout/hero.sass +0 -148
  76. data/app/assets/stylesheets/bulma/layout/layout.sass +0 -6
  77. data/app/assets/stylesheets/bulma/layout/section.sass +0 -11
  78. data/app/assets/stylesheets/bulma/utilities/mixins.sass +0 -83
  79. data/app/assets/stylesheets/bulma/utilities/reset.sass +0 -174
  80. data/app/assets/stylesheets/bulma/utilities/utilities.sass +0 -6
@@ -0,0 +1,25 @@
1
+ .container
2
+ margin: 0 auto
3
+ position: relative
4
+ +from($desktop)
5
+ max-width: $desktop - (2 * $gap)
6
+ width: $desktop - (2 * $gap)
7
+ &.is-fluid
8
+ margin-left: $gap
9
+ margin-right: $gap
10
+ max-width: none
11
+ width: auto
12
+ +until($widescreen)
13
+ &.is-widescreen
14
+ max-width: $widescreen - (2 * $gap)
15
+ width: auto
16
+ +until($fullhd)
17
+ &.is-fullhd
18
+ max-width: $fullhd - (2 * $gap)
19
+ width: auto
20
+ +from($widescreen)
21
+ max-width: $widescreen - (2 * $gap)
22
+ width: $widescreen - (2 * $gap)
23
+ +from($fullhd)
24
+ max-width: $fullhd - (2 * $gap)
25
+ width: $fullhd - (2 * $gap)
@@ -0,0 +1,145 @@
1
+ $content-heading-color: $text-strong !default
2
+ $content-heading-weight: $weight-normal !default
3
+ $content-heading-line-height: 1.125 !default
4
+
5
+ $content-blockquote-background-color: $background !default
6
+ $content-blockquote-border-left: 5px solid $border !default
7
+ $content-blockquote-padding: 1.25em 1.5em !default
8
+
9
+ $content-pre-padding: 1.25em 1.5em !default
10
+
11
+ $content-table-cell-border: 1px solid $border !default
12
+ $content-table-cell-border-width: 0 0 1px !default
13
+ $content-table-cell-padding: 0.5em 0.75em !default
14
+ $content-table-cell-heading-color: $text-strong !default
15
+ $content-table-row-hover-background-color: $background !default
16
+ $content-table-head-cell-border-width: 0 0 2px !default
17
+ $content-table-head-cell-color: $text-strong !default
18
+ $content-table-foot-cell-border-width: 2px 0 0 !default
19
+ $content-table-foot-cell-color: $text-strong !default
20
+
21
+ .content
22
+ +block
23
+ // Inline
24
+ li + li
25
+ margin-top: 0.25em
26
+ // Block
27
+ p,
28
+ dl,
29
+ ol,
30
+ ul,
31
+ blockquote,
32
+ pre,
33
+ table
34
+ &:not(:last-child)
35
+ margin-bottom: 1em
36
+ h1,
37
+ h2,
38
+ h3,
39
+ h4,
40
+ h5,
41
+ h6
42
+ color: $content-heading-color
43
+ font-weight: $content-heading-weight
44
+ line-height: $content-heading-line-height
45
+ h1
46
+ font-size: 2em
47
+ margin-bottom: 0.5em
48
+ &:not(:first-child)
49
+ margin-top: 1em
50
+ h2
51
+ font-size: 1.75em
52
+ margin-bottom: 0.5714em
53
+ &:not(:first-child)
54
+ margin-top: 1.1428em
55
+ h3
56
+ font-size: 1.5em
57
+ margin-bottom: 0.6666em
58
+ &:not(:first-child)
59
+ margin-top: 1.3333em
60
+ h4
61
+ font-size: 1.25em
62
+ margin-bottom: 0.8em
63
+ h5
64
+ font-size: 1.125em
65
+ margin-bottom: 0.8888em
66
+ h6
67
+ font-size: 1em
68
+ margin-bottom: 1em
69
+ blockquote
70
+ background-color: $content-blockquote-background-color
71
+ border-left: $content-blockquote-border-left
72
+ padding: $content-blockquote-padding
73
+ ol
74
+ list-style: decimal outside
75
+ margin-left: 2em
76
+ margin-top: 1em
77
+ ul
78
+ list-style: disc outside
79
+ margin-left: 2em
80
+ margin-top: 1em
81
+ ul
82
+ list-style-type: circle
83
+ margin-top: 0.5em
84
+ ul
85
+ list-style-type: square
86
+ dd
87
+ margin-left: 2em
88
+ figure
89
+ margin-left: 2em
90
+ margin-right: 2em
91
+ text-align: center
92
+ &:not(:first-child)
93
+ margin-top: 2em
94
+ &:not(:last-child)
95
+ margin-bottom: 2em
96
+ img
97
+ display: inline-block
98
+ figcaption
99
+ font-style: italic
100
+ pre
101
+ +overflow-touch
102
+ overflow-x: auto
103
+ padding: $content-pre-padding
104
+ white-space: pre
105
+ word-wrap: normal
106
+ sup,
107
+ sub
108
+ font-size: 75%
109
+ table
110
+ width: 100%
111
+ td,
112
+ th
113
+ border: $content-table-cell-border
114
+ border-width: $content-table-cell-border-width
115
+ padding: $content-table-cell-padding
116
+ vertical-align: top
117
+ th
118
+ color: $content-table-cell-heading-color
119
+ text-align: left
120
+ tr
121
+ &:hover
122
+ background-color: $content-table-row-hover-background-color
123
+ thead
124
+ td,
125
+ th
126
+ border-width: $content-table-head-cell-border-width
127
+ color: $content-table-head-cell-color
128
+ tfoot
129
+ td,
130
+ th
131
+ border-width: $content-table-foot-cell-border-width
132
+ color: $content-table-foot-cell-color
133
+ tbody
134
+ tr
135
+ &:last-child
136
+ td,
137
+ th
138
+ border-bottom-width: 0
139
+ // Sizes
140
+ &.is-small
141
+ font-size: $size-small
142
+ &.is-medium
143
+ font-size: $size-medium
144
+ &.is-large
145
+ font-size: $size-large
@@ -0,0 +1,605 @@
1
+ $input-color: $grey-darker !default
2
+ $input-background-color: $white !default
3
+ $input-border-color: $grey-lighter !default
4
+ $input-shadow: inset 0 1px 2px rgba($black, 0.1) !default
5
+
6
+ $input-hover-color: $grey-darker !default
7
+ $input-hover-border-color: $grey-light !default
8
+
9
+ $input-focus-color: $grey-darker !default
10
+ $input-focus-border-color: $link !default
11
+ $input-focus-box-shadow-size: 0 0 0 0.125em !default
12
+ $input-focus-box-shadow-color: rgba($link, 0.25) !default
13
+
14
+ $input-disabled-color: $text-light !default
15
+ $input-disabled-background-color: $background !default
16
+ $input-disabled-border-color: $background !default
17
+
18
+ $input-arrow: $link !default
19
+
20
+ $input-icon-color: $grey-lighter !default
21
+ $input-icon-active-color: $grey !default
22
+
23
+ $input-radius: $radius !default
24
+
25
+ $file-border-color: $border !default
26
+ $file-radius: $radius !default
27
+
28
+ $file-cta-background-color: $white-ter !default
29
+ $file-cta-color: $grey-dark !default
30
+ $file-cta-hover-color: $grey-darker !default
31
+ $file-cta-active-color: $grey-darker !default
32
+
33
+ $file-name-border-color: $border !default
34
+ $file-name-border-style: solid !default
35
+ $file-name-border-width: 1px 1px 1px 0 !default
36
+ $file-name-max-width: 16em !default
37
+
38
+ $label-color: $grey-darker !default
39
+ $label-weight: $weight-bold !default
40
+
41
+ $help-size: $size-small !default
42
+
43
+ =input
44
+ +control
45
+ background-color: $input-background-color
46
+ border-color: $input-border-color
47
+ color: $input-color
48
+ +placeholder
49
+ color: rgba($input-color, 0.3)
50
+ &:hover,
51
+ &.is-hovered
52
+ border-color: $input-hover-border-color
53
+ &:focus,
54
+ &.is-focused,
55
+ &:active,
56
+ &.is-active
57
+ border-color: $input-focus-border-color
58
+ box-shadow: $input-focus-box-shadow-size $input-focus-box-shadow-color
59
+ &[disabled]
60
+ background-color: $input-disabled-background-color
61
+ border-color: $input-disabled-border-color
62
+ box-shadow: none
63
+ color: $input-disabled-color
64
+ +placeholder
65
+ color: rgba($input-disabled-color, 0.3)
66
+
67
+ .input,
68
+ .textarea
69
+ +input
70
+ box-shadow: $input-shadow
71
+ max-width: 100%
72
+ width: 100%
73
+ &[type="search"]
74
+ border-radius: 290486px
75
+ &[readonly]
76
+ box-shadow: none
77
+ // Colors
78
+ @each $name, $pair in $colors
79
+ $color: nth($pair, 1)
80
+ &.is-#{$name}
81
+ border-color: $color
82
+ &:focus,
83
+ &.is-focused,
84
+ &:active,
85
+ &.is-active
86
+ box-shadow: $input-focus-box-shadow-size rgba($color, 0.25)
87
+ // Sizes
88
+ &.is-small
89
+ +control-small
90
+ &.is-medium
91
+ +control-medium
92
+ &.is-large
93
+ +control-large
94
+ // Modifiers
95
+ &.is-fullwidth
96
+ display: block
97
+ width: 100%
98
+ &.is-inline
99
+ display: inline
100
+ width: auto
101
+
102
+ .input
103
+ &.is-static
104
+ background-color: transparent
105
+ border-color: transparent
106
+ box-shadow: none
107
+ padding-left: 0
108
+ padding-right: 0
109
+
110
+ .textarea
111
+ display: block
112
+ max-width: 100%
113
+ min-width: 100%
114
+ padding: 0.625em
115
+ resize: vertical
116
+ &:not([rows])
117
+ max-height: 600px
118
+ min-height: 120px
119
+ &[rows]
120
+ height: unset
121
+ // Modifiers
122
+ &.has-fixed-size
123
+ resize: none
124
+
125
+ .checkbox,
126
+ .radio
127
+ cursor: pointer
128
+ display: inline-block
129
+ line-height: 1.25
130
+ position: relative
131
+ input
132
+ cursor: pointer
133
+ &:hover
134
+ color: $input-hover-color
135
+ &[disabled]
136
+ color: $input-disabled-color
137
+ cursor: not-allowed
138
+
139
+ .radio
140
+ & + .radio
141
+ margin-left: 0.5em
142
+
143
+ .select
144
+ display: inline-block
145
+ max-width: 100%
146
+ position: relative
147
+ vertical-align: top
148
+ &:not(.is-multiple)
149
+ height: 2.25em
150
+ &::after
151
+ +arrow($input-arrow)
152
+ margin-top: -0.375em
153
+ right: 1.125em
154
+ top: 50%
155
+ z-index: 4
156
+ select
157
+ +input
158
+ cursor: pointer
159
+ display: block
160
+ font-size: 1em
161
+ max-width: 100%
162
+ outline: none
163
+ &::-ms-expand
164
+ display: none
165
+ &[disabled]:hover
166
+ border-color: $input-disabled-border-color
167
+ &:not([multiple])
168
+ padding-right: 2.5em
169
+ &[multiple]
170
+ height: unset
171
+ padding: 0
172
+ option
173
+ padding: 0.5em 1em
174
+ // States
175
+ &:hover
176
+ &::after
177
+ border-color: $input-hover-color
178
+ // Colors
179
+ @each $name, $pair in $colors
180
+ $color: nth($pair, 1)
181
+ &.is-#{$name} select
182
+ border-color: $color
183
+ &:focus,
184
+ &.is-focused,
185
+ &:active,
186
+ &.is-active
187
+ box-shadow: $input-focus-box-shadow-size rgba($color, 0.25)
188
+ // Sizes
189
+ &.is-small
190
+ +control-small
191
+ &.is-medium
192
+ +control-medium
193
+ &.is-large
194
+ +control-large
195
+ // Modifiers
196
+ &.is-disabled
197
+ &::after
198
+ border-color: $input-disabled-color
199
+ &.is-fullwidth
200
+ width: 100%
201
+ select
202
+ width: 100%
203
+ &.is-loading
204
+ &::after
205
+ +loader
206
+ margin-top: 0
207
+ position: absolute
208
+ right: 0.625em
209
+ top: 0.625em
210
+ transform: none
211
+ &.is-small:after
212
+ font-size: $size-small
213
+ &.is-medium:after
214
+ font-size: $size-medium
215
+ &.is-large:after
216
+ font-size: $size-large
217
+
218
+ .file
219
+ +unselectable
220
+ align-items: stretch
221
+ display: flex
222
+ justify-content: flex-start
223
+ position: relative
224
+ // Colors
225
+ @each $name, $pair in $colors
226
+ $color: nth($pair, 1)
227
+ $color-invert: nth($pair, 2)
228
+ &.is-#{$name}
229
+ .file-cta
230
+ background-color: $color
231
+ border-color: transparent
232
+ color: $color-invert
233
+ &:hover,
234
+ &.is-hovered
235
+ .file-cta
236
+ background-color: darken($color, 2.5%)
237
+ border-color: transparent
238
+ color: $color-invert
239
+ &:focus,
240
+ &.is-focused
241
+ .file-cta
242
+ border-color: transparent
243
+ box-shadow: 0 0 0.5em rgba($color, 0.25)
244
+ color: $color-invert
245
+ &:active,
246
+ &.is-active
247
+ .file-cta
248
+ background-color: darken($color, 5%)
249
+ border-color: transparent
250
+ color: $color-invert
251
+ // Sizes
252
+ &.is-small
253
+ font-size: $size-small
254
+ &.is-medium
255
+ font-size: $size-medium
256
+ .file-icon
257
+ .fa
258
+ font-size: 21px
259
+ &.is-large
260
+ font-size: $size-large
261
+ .file-icon
262
+ .fa
263
+ font-size: 28px
264
+ // Modifiers
265
+ &.has-name
266
+ .file-cta
267
+ border-bottom-right-radius: 0
268
+ border-top-right-radius: 0
269
+ .file-name
270
+ border-bottom-left-radius: 0
271
+ border-top-left-radius: 0
272
+ &.is-centered
273
+ justify-content: center
274
+ &.is-right
275
+ justify-content: flex-end
276
+ &.is-boxed
277
+ .file-label
278
+ flex-direction: column
279
+ .file-cta
280
+ flex-direction: column
281
+ height: auto
282
+ padding: 1em 3em
283
+ .file-name
284
+ border-width: 0 1px 1px
285
+ .file-icon
286
+ height: 1.5em
287
+ width: 1.5em
288
+ .fa
289
+ font-size: 21px
290
+ &.is-small
291
+ .file-icon .fa
292
+ font-size: 14px
293
+ &.is-medium
294
+ .file-icon .fa
295
+ font-size: 28px
296
+ &.is-large
297
+ .file-icon .fa
298
+ font-size: 35px
299
+ &.has-name
300
+ .file-cta
301
+ border-radius: $file-radius $file-radius 0 0
302
+ .file-name
303
+ border-radius: 0 0 $file-radius $file-radius
304
+ border-width: 0 1px 1px
305
+ &.is-right
306
+ .file-cta
307
+ border-radius: 0 $file-radius $file-radius 0
308
+ .file-name
309
+ border-radius: $file-radius 0 0 $file-radius
310
+ border-width: 1px 0 1px 1px
311
+ order: -1
312
+ &.is-fullwidth
313
+ .file-label
314
+ width: 100%
315
+ .file-name
316
+ flex-grow: 1
317
+ max-width: none
318
+
319
+ .file-label
320
+ align-items: stretch
321
+ display: flex
322
+ cursor: pointer
323
+ justify-content: flex-start
324
+ overflow: hidden
325
+ position: relative
326
+ &:hover
327
+ .file-cta
328
+ background-color: darken($file-cta-background-color, 2.5%)
329
+ color: $file-cta-hover-color
330
+ .file-name
331
+ border-color: darken($file-name-border-color, 2.5%)
332
+ &:active
333
+ .file-cta
334
+ background-color: darken($file-cta-background-color, 5%)
335
+ color: $file-cta-active-color
336
+ .file-name
337
+ border-color: darken($file-name-border-color, 5%)
338
+
339
+ .file-input
340
+ height: 0.01em
341
+ left: 0
342
+ outline: none
343
+ position: absolute
344
+ top: 0
345
+ width: 0.01em
346
+
347
+ .file-cta,
348
+ .file-name
349
+ +control
350
+ border-color: $file-border-color
351
+ border-radius: $file-radius
352
+ font-size: 1em
353
+ padding-left: 1em
354
+ padding-right: 1em
355
+ white-space: nowrap
356
+
357
+ .file-cta
358
+ background-color: $file-cta-background-color
359
+ color: $file-cta-color
360
+
361
+ .file-name
362
+ border-color: $file-name-border-color
363
+ border-style: $file-name-border-style
364
+ border-width: $file-name-border-width
365
+ display: block
366
+ max-width: $file-name-max-width
367
+ overflow: hidden
368
+ text-align: left
369
+ text-overflow: ellipsis
370
+
371
+ .file-icon
372
+ align-items: center
373
+ display: flex
374
+ height: 1em
375
+ justify-content: center
376
+ margin-right: 0.5em
377
+ width: 1em
378
+ .fa
379
+ font-size: 14px
380
+
381
+ .label
382
+ color: $label-color
383
+ display: block
384
+ font-size: $size-normal
385
+ font-weight: $label-weight
386
+ &:not(:last-child)
387
+ margin-bottom: 0.5em
388
+ // Sizes
389
+ &.is-small
390
+ font-size: $size-small
391
+ &.is-medium
392
+ font-size: $size-medium
393
+ &.is-large
394
+ font-size: $size-large
395
+
396
+ .help
397
+ display: block
398
+ font-size: $help-size
399
+ margin-top: 0.25rem
400
+ @each $name, $pair in $colors
401
+ $color: nth($pair, 1)
402
+ &.is-#{$name}
403
+ color: $color
404
+
405
+ // Containers
406
+
407
+ .field
408
+ &:not(:last-child)
409
+ margin-bottom: 0.75rem
410
+ // Modifiers
411
+ &.has-addons
412
+ display: flex
413
+ justify-content: flex-start
414
+ .control
415
+ &:not(:last-child)
416
+ margin-right: -1px
417
+ &:first-child
418
+ .button,
419
+ .input,
420
+ .select select
421
+ border-bottom-left-radius: $input-radius
422
+ border-top-left-radius: $input-radius
423
+ &:last-child
424
+ .button,
425
+ .input,
426
+ .select select
427
+ border-bottom-right-radius: $input-radius
428
+ border-top-right-radius: $input-radius
429
+ .button,
430
+ .input,
431
+ .select select
432
+ border-radius: 0
433
+ &:hover,
434
+ &.is-hovered
435
+ z-index: 2
436
+ &:focus,
437
+ &.is-focused,
438
+ &:active,
439
+ &.is-active
440
+ z-index: 3
441
+ &:hover
442
+ z-index: 4
443
+ &.is-expanded
444
+ flex-grow: 1
445
+ &.has-addons-centered
446
+ justify-content: center
447
+ &.has-addons-right
448
+ justify-content: flex-end
449
+ &.has-addons-fullwidth
450
+ .control
451
+ flex-grow: 1
452
+ flex-shrink: 0
453
+ &.is-grouped
454
+ display: flex
455
+ justify-content: flex-start
456
+ & > .control
457
+ flex-shrink: 0
458
+ &:not(:last-child)
459
+ margin-bottom: 0
460
+ margin-right: 0.75rem
461
+ &.is-expanded
462
+ flex-grow: 1
463
+ flex-shrink: 1
464
+ &.is-grouped-centered
465
+ justify-content: center
466
+ &.is-grouped-right
467
+ justify-content: flex-end
468
+ &.is-grouped-multiline
469
+ flex-wrap: wrap
470
+ & > .control
471
+ &:last-child,
472
+ &:not(:last-child)
473
+ margin-bottom: 0.75rem
474
+ &:last-child
475
+ margin-bottom: -0.75rem
476
+ &:not(:last-child)
477
+ margin-bottom: 0
478
+
479
+ &.is-horizontal
480
+ +tablet
481
+ display: flex
482
+
483
+ .field-label
484
+ .label
485
+ font-size: inherit
486
+ +mobile
487
+ margin-bottom: 0.5rem
488
+ +tablet
489
+ flex-basis: 0
490
+ flex-grow: 1
491
+ flex-shrink: 0
492
+ margin-right: 1.5rem
493
+ text-align: right
494
+ &.is-small
495
+ font-size: $size-small
496
+ padding-top: 0.375em
497
+ &.is-normal
498
+ padding-top: 0.375em
499
+ &.is-medium
500
+ font-size: $size-medium
501
+ padding-top: 0.375em
502
+ &.is-large
503
+ font-size: $size-large
504
+ padding-top: 0.375em
505
+
506
+ .field-body
507
+ .field .field
508
+ margin-bottom: 0
509
+ +tablet
510
+ display: flex
511
+ flex-basis: 0
512
+ flex-grow: 5
513
+ flex-shrink: 1
514
+ .field
515
+ margin-bottom: 0
516
+ & > .field
517
+ flex-shrink: 1
518
+ &:not(.is-narrow)
519
+ flex-grow: 1
520
+ &:not(:last-child)
521
+ margin-right: 0.75rem
522
+
523
+ .control
524
+ font-size: $size-normal
525
+ position: relative
526
+ text-align: left
527
+ // Modifiers
528
+ // DEPRECATED
529
+ &.has-icon
530
+ .icon
531
+ color: $input-icon-color
532
+ height: 2.25em
533
+ pointer-events: none
534
+ position: absolute
535
+ top: 0
536
+ width: 2.25em
537
+ z-index: 4
538
+ .input
539
+ &:focus
540
+ & + .icon
541
+ color: $input-icon-active-color
542
+ &.is-small
543
+ & + .icon
544
+ font-size: $size-small
545
+ &.is-medium
546
+ & + .icon
547
+ font-size: $size-medium
548
+ &.is-large
549
+ & + .icon
550
+ font-size: $size-large
551
+ &:not(.has-icon-right)
552
+ .icon
553
+ left: 0
554
+ .input
555
+ padding-left: 2.25em
556
+ &.has-icon-right
557
+ .icon
558
+ right: 0
559
+ .input
560
+ padding-right: 2.25em
561
+ &.has-icons-left,
562
+ &.has-icons-right
563
+ .input,
564
+ .select
565
+ &:focus
566
+ & ~ .icon
567
+ color: $input-icon-active-color
568
+ &.is-small ~ .icon
569
+ font-size: $size-small
570
+ &.is-medium ~ .icon
571
+ font-size: $size-medium
572
+ &.is-large ~ .icon
573
+ font-size: $size-large
574
+ .icon
575
+ color: $input-icon-color
576
+ height: 2.25em
577
+ pointer-events: none
578
+ position: absolute
579
+ top: 0
580
+ width: 2.25em
581
+ z-index: 4
582
+ &.has-icons-left
583
+ .input,
584
+ .select select
585
+ padding-left: 2.25em
586
+ .icon.is-left
587
+ left: 0
588
+ &.has-icons-right
589
+ .input,
590
+ .select select
591
+ padding-right: 2.25em
592
+ .icon.is-right
593
+ right: 0
594
+ &.is-loading
595
+ &::after
596
+ +loader
597
+ position: absolute !important
598
+ right: 0.625em
599
+ top: 0.625em
600
+ &.is-small:after
601
+ font-size: $size-small
602
+ &.is-medium:after
603
+ font-size: $size-medium
604
+ &.is-large:after
605
+ font-size: $size-large