bulma-sass 0.7.5 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/bulma.sass +2 -1
- data/app/assets/stylesheets/sass/base/_all.sass +0 -1
- data/app/assets/stylesheets/sass/base/generic.sass +2 -2
- data/app/assets/stylesheets/sass/base/helpers.sass +1 -281
- data/app/assets/stylesheets/sass/base/minireset.sass +2 -8
- data/app/assets/stylesheets/sass/components/_all.sass +0 -1
- data/app/assets/stylesheets/sass/components/breadcrumb.sass +4 -4
- data/app/assets/stylesheets/sass/components/card.sass +6 -6
- data/app/assets/stylesheets/sass/components/dropdown.sass +8 -8
- data/app/assets/stylesheets/sass/components/level.sass +2 -2
- data/app/assets/stylesheets/sass/components/media.sass +14 -10
- data/app/assets/stylesheets/sass/components/menu.sass +2 -2
- data/app/assets/stylesheets/sass/components/message.sass +23 -11
- data/app/assets/stylesheets/sass/components/modal.sass +4 -4
- data/app/assets/stylesheets/sass/components/navbar.sass +24 -26
- data/app/assets/stylesheets/sass/components/pagination.sass +7 -6
- data/app/assets/stylesheets/sass/components/panel.sass +29 -13
- data/app/assets/stylesheets/sass/components/tabs.sass +36 -13
- data/app/assets/stylesheets/sass/elements/box.sass +4 -4
- data/app/assets/stylesheets/sass/elements/button.sass +46 -28
- data/app/assets/stylesheets/sass/elements/container.sass +5 -4
- data/app/assets/stylesheets/sass/elements/content.sass +5 -5
- data/app/assets/stylesheets/sass/elements/image.sass +2 -0
- data/app/assets/stylesheets/sass/elements/notification.sass +16 -3
- data/app/assets/stylesheets/sass/elements/progress.sass +1 -1
- data/app/assets/stylesheets/sass/elements/table.sass +9 -7
- data/app/assets/stylesheets/sass/elements/tag.sass +31 -16
- data/app/assets/stylesheets/sass/elements/title.sass +3 -3
- data/app/assets/stylesheets/sass/form/_all.sass +8 -0
- data/app/assets/stylesheets/sass/form/checkbox-radio.sass +21 -0
- data/app/assets/stylesheets/sass/form/file.sass +180 -0
- data/app/assets/stylesheets/sass/form/input-textarea.sass +64 -0
- data/app/assets/stylesheets/sass/form/select.sass +85 -0
- data/app/assets/stylesheets/sass/form/shared.sass +55 -0
- data/app/assets/stylesheets/sass/form/tools.sass +213 -0
- data/app/assets/stylesheets/sass/helpers/_all.sass +10 -0
- data/app/assets/stylesheets/sass/helpers/color.sass +37 -0
- data/app/assets/stylesheets/sass/helpers/float.sass +8 -0
- data/app/assets/stylesheets/sass/helpers/other.sass +8 -0
- data/app/assets/stylesheets/sass/helpers/overflow.sass +2 -0
- data/app/assets/stylesheets/sass/helpers/position.sass +5 -0
- data/app/assets/stylesheets/sass/helpers/spacing.sass +28 -0
- data/app/assets/stylesheets/sass/helpers/typography.sass +98 -0
- data/app/assets/stylesheets/sass/helpers/visibility.sass +122 -0
- data/app/assets/stylesheets/sass/layout/footer.sass +1 -1
- data/app/assets/stylesheets/sass/layout/hero.sass +22 -20
- data/app/assets/stylesheets/sass/utilities/_all.sass +1 -1
- data/app/assets/stylesheets/sass/utilities/controls.sass +3 -3
- data/app/assets/stylesheets/sass/utilities/derived-variables.scss +132 -0
- data/app/assets/stylesheets/sass/utilities/functions.sass +68 -15
- data/app/assets/stylesheets/sass/utilities/initial-variables.sass +5 -3
- data/app/assets/stylesheets/sass/utilities/mixins.sass +29 -5
- data/bulma-sass.gemspec +2 -2
- data/lib/bulma/sass/version.rb +1 -1
- data/release.sh +2 -2
- metadata +24 -10
- data/app/assets/stylesheets/sass/components/list.sass +0 -39
- data/app/assets/stylesheets/sass/utilities/derived-variables.sass +0 -85
@@ -1,4 +1,4 @@
|
|
1
|
-
$title-color: $
|
1
|
+
$title-color: $text-strong !default
|
2
2
|
$title-family: false !default
|
3
3
|
$title-size: $size-3 !default
|
4
4
|
$title-weight: $weight-semibold !default
|
@@ -8,12 +8,12 @@ $title-strong-weight: inherit !default
|
|
8
8
|
$title-sub-size: 0.75em !default
|
9
9
|
$title-sup-size: 0.75em !default
|
10
10
|
|
11
|
-
$subtitle-color: $
|
11
|
+
$subtitle-color: $text !default
|
12
12
|
$subtitle-family: false !default
|
13
13
|
$subtitle-size: $size-5 !default
|
14
14
|
$subtitle-weight: $weight-normal !default
|
15
15
|
$subtitle-line-height: 1.25 !default
|
16
|
-
$subtitle-strong-color: $
|
16
|
+
$subtitle-strong-color: $text-strong !default
|
17
17
|
$subtitle-strong-weight: $weight-semibold !default
|
18
18
|
$subtitle-negative-margin: -1.25rem !default
|
19
19
|
|
@@ -0,0 +1,21 @@
|
|
1
|
+
%checkbox-radio
|
2
|
+
cursor: pointer
|
3
|
+
display: inline-block
|
4
|
+
line-height: 1.25
|
5
|
+
position: relative
|
6
|
+
input
|
7
|
+
cursor: pointer
|
8
|
+
&:hover
|
9
|
+
color: $input-hover-color
|
10
|
+
&[disabled],
|
11
|
+
fieldset[disabled] &
|
12
|
+
color: $input-disabled-color
|
13
|
+
cursor: not-allowed
|
14
|
+
|
15
|
+
.checkbox
|
16
|
+
@extend %checkbox-radio
|
17
|
+
|
18
|
+
.radio
|
19
|
+
@extend %checkbox-radio
|
20
|
+
& + .radio
|
21
|
+
+ltr-property("margin", 0.5em, false)
|
@@ -0,0 +1,180 @@
|
|
1
|
+
$file-border-color: $border !default
|
2
|
+
$file-radius: $radius !default
|
3
|
+
|
4
|
+
$file-cta-background-color: $scheme-main-ter !default
|
5
|
+
$file-cta-color: $text !default
|
6
|
+
$file-cta-hover-color: $text-strong !default
|
7
|
+
$file-cta-active-color: $text-strong !default
|
8
|
+
|
9
|
+
$file-name-border-color: $border !default
|
10
|
+
$file-name-border-style: solid !default
|
11
|
+
$file-name-border-width: 1px 1px 1px 0 !default
|
12
|
+
$file-name-max-width: 16em !default
|
13
|
+
|
14
|
+
.file
|
15
|
+
@extend %unselectable
|
16
|
+
align-items: stretch
|
17
|
+
display: flex
|
18
|
+
justify-content: flex-start
|
19
|
+
position: relative
|
20
|
+
// Colors
|
21
|
+
@each $name, $pair in $colors
|
22
|
+
$color: nth($pair, 1)
|
23
|
+
$color-invert: nth($pair, 2)
|
24
|
+
&.is-#{$name}
|
25
|
+
.file-cta
|
26
|
+
background-color: $color
|
27
|
+
border-color: transparent
|
28
|
+
color: $color-invert
|
29
|
+
&:hover,
|
30
|
+
&.is-hovered
|
31
|
+
.file-cta
|
32
|
+
background-color: bulmaDarken($color, 2.5%)
|
33
|
+
border-color: transparent
|
34
|
+
color: $color-invert
|
35
|
+
&:focus,
|
36
|
+
&.is-focused
|
37
|
+
.file-cta
|
38
|
+
border-color: transparent
|
39
|
+
box-shadow: 0 0 0.5em bulmaRgba($color, 0.25)
|
40
|
+
color: $color-invert
|
41
|
+
&:active,
|
42
|
+
&.is-active
|
43
|
+
.file-cta
|
44
|
+
background-color: bulmaDarken($color, 5%)
|
45
|
+
border-color: transparent
|
46
|
+
color: $color-invert
|
47
|
+
// Sizes
|
48
|
+
&.is-small
|
49
|
+
font-size: $size-small
|
50
|
+
&.is-medium
|
51
|
+
font-size: $size-medium
|
52
|
+
.file-icon
|
53
|
+
.fa
|
54
|
+
font-size: 21px
|
55
|
+
&.is-large
|
56
|
+
font-size: $size-large
|
57
|
+
.file-icon
|
58
|
+
.fa
|
59
|
+
font-size: 28px
|
60
|
+
// Modifiers
|
61
|
+
&.has-name
|
62
|
+
.file-cta
|
63
|
+
border-bottom-right-radius: 0
|
64
|
+
border-top-right-radius: 0
|
65
|
+
.file-name
|
66
|
+
border-bottom-left-radius: 0
|
67
|
+
border-top-left-radius: 0
|
68
|
+
&.is-empty
|
69
|
+
.file-cta
|
70
|
+
border-radius: $file-radius
|
71
|
+
.file-name
|
72
|
+
display: none
|
73
|
+
&.is-boxed
|
74
|
+
.file-label
|
75
|
+
flex-direction: column
|
76
|
+
.file-cta
|
77
|
+
flex-direction: column
|
78
|
+
height: auto
|
79
|
+
padding: 1em 3em
|
80
|
+
.file-name
|
81
|
+
border-width: 0 1px 1px
|
82
|
+
.file-icon
|
83
|
+
height: 1.5em
|
84
|
+
width: 1.5em
|
85
|
+
.fa
|
86
|
+
font-size: 21px
|
87
|
+
&.is-small
|
88
|
+
.file-icon .fa
|
89
|
+
font-size: 14px
|
90
|
+
&.is-medium
|
91
|
+
.file-icon .fa
|
92
|
+
font-size: 28px
|
93
|
+
&.is-large
|
94
|
+
.file-icon .fa
|
95
|
+
font-size: 35px
|
96
|
+
&.has-name
|
97
|
+
.file-cta
|
98
|
+
border-radius: $file-radius $file-radius 0 0
|
99
|
+
.file-name
|
100
|
+
border-radius: 0 0 $file-radius $file-radius
|
101
|
+
border-width: 0 1px 1px
|
102
|
+
&.is-centered
|
103
|
+
justify-content: center
|
104
|
+
&.is-fullwidth
|
105
|
+
.file-label
|
106
|
+
width: 100%
|
107
|
+
.file-name
|
108
|
+
flex-grow: 1
|
109
|
+
max-width: none
|
110
|
+
&.is-right
|
111
|
+
justify-content: flex-end
|
112
|
+
.file-cta
|
113
|
+
border-radius: 0 $file-radius $file-radius 0
|
114
|
+
.file-name
|
115
|
+
border-radius: $file-radius 0 0 $file-radius
|
116
|
+
border-width: 1px 0 1px 1px
|
117
|
+
order: -1
|
118
|
+
|
119
|
+
.file-label
|
120
|
+
align-items: stretch
|
121
|
+
display: flex
|
122
|
+
cursor: pointer
|
123
|
+
justify-content: flex-start
|
124
|
+
overflow: hidden
|
125
|
+
position: relative
|
126
|
+
&:hover
|
127
|
+
.file-cta
|
128
|
+
background-color: bulmaDarken($file-cta-background-color, 2.5%)
|
129
|
+
color: $file-cta-hover-color
|
130
|
+
.file-name
|
131
|
+
border-color: bulmaDarken($file-name-border-color, 2.5%)
|
132
|
+
&:active
|
133
|
+
.file-cta
|
134
|
+
background-color: bulmaDarken($file-cta-background-color, 5%)
|
135
|
+
color: $file-cta-active-color
|
136
|
+
.file-name
|
137
|
+
border-color: bulmaDarken($file-name-border-color, 5%)
|
138
|
+
|
139
|
+
.file-input
|
140
|
+
height: 100%
|
141
|
+
left: 0
|
142
|
+
opacity: 0
|
143
|
+
outline: none
|
144
|
+
position: absolute
|
145
|
+
top: 0
|
146
|
+
width: 100%
|
147
|
+
|
148
|
+
.file-cta,
|
149
|
+
.file-name
|
150
|
+
@extend %control
|
151
|
+
border-color: $file-border-color
|
152
|
+
border-radius: $file-radius
|
153
|
+
font-size: 1em
|
154
|
+
padding-left: 1em
|
155
|
+
padding-right: 1em
|
156
|
+
white-space: nowrap
|
157
|
+
|
158
|
+
.file-cta
|
159
|
+
background-color: $file-cta-background-color
|
160
|
+
color: $file-cta-color
|
161
|
+
|
162
|
+
.file-name
|
163
|
+
border-color: $file-name-border-color
|
164
|
+
border-style: $file-name-border-style
|
165
|
+
border-width: $file-name-border-width
|
166
|
+
display: block
|
167
|
+
max-width: $file-name-max-width
|
168
|
+
overflow: hidden
|
169
|
+
text-align: inherit
|
170
|
+
text-overflow: ellipsis
|
171
|
+
|
172
|
+
.file-icon
|
173
|
+
align-items: center
|
174
|
+
display: flex
|
175
|
+
height: 1em
|
176
|
+
justify-content: center
|
177
|
+
+ltr-property("margin", 0.5em)
|
178
|
+
width: 1em
|
179
|
+
.fa
|
180
|
+
font-size: 14px
|
@@ -0,0 +1,64 @@
|
|
1
|
+
$textarea-padding: $control-padding-horizontal !default
|
2
|
+
$textarea-max-height: 40em !default
|
3
|
+
$textarea-min-height: 8em !default
|
4
|
+
|
5
|
+
%input-textarea
|
6
|
+
@extend %input
|
7
|
+
box-shadow: $input-shadow
|
8
|
+
max-width: 100%
|
9
|
+
width: 100%
|
10
|
+
&[readonly]
|
11
|
+
box-shadow: none
|
12
|
+
// Colors
|
13
|
+
@each $name, $pair in $colors
|
14
|
+
$color: nth($pair, 1)
|
15
|
+
&.is-#{$name}
|
16
|
+
border-color: $color
|
17
|
+
&:focus,
|
18
|
+
&.is-focused,
|
19
|
+
&:active,
|
20
|
+
&.is-active
|
21
|
+
box-shadow: $input-focus-box-shadow-size bulmaRgba($color, 0.25)
|
22
|
+
// Sizes
|
23
|
+
&.is-small
|
24
|
+
+control-small
|
25
|
+
&.is-medium
|
26
|
+
+control-medium
|
27
|
+
&.is-large
|
28
|
+
+control-large
|
29
|
+
// Modifiers
|
30
|
+
&.is-fullwidth
|
31
|
+
display: block
|
32
|
+
width: 100%
|
33
|
+
&.is-inline
|
34
|
+
display: inline
|
35
|
+
width: auto
|
36
|
+
|
37
|
+
.input
|
38
|
+
@extend %input-textarea
|
39
|
+
&.is-rounded
|
40
|
+
border-radius: $radius-rounded
|
41
|
+
padding-left: calc(#{$control-padding-horizontal} + 0.375em)
|
42
|
+
padding-right: calc(#{$control-padding-horizontal} + 0.375em)
|
43
|
+
&.is-static
|
44
|
+
background-color: transparent
|
45
|
+
border-color: transparent
|
46
|
+
box-shadow: none
|
47
|
+
padding-left: 0
|
48
|
+
padding-right: 0
|
49
|
+
|
50
|
+
.textarea
|
51
|
+
@extend %input-textarea
|
52
|
+
display: block
|
53
|
+
max-width: 100%
|
54
|
+
min-width: 100%
|
55
|
+
padding: $textarea-padding
|
56
|
+
resize: vertical
|
57
|
+
&:not([rows])
|
58
|
+
max-height: $textarea-max-height
|
59
|
+
min-height: $textarea-min-height
|
60
|
+
&[rows]
|
61
|
+
height: initial
|
62
|
+
// Modifiers
|
63
|
+
&.has-fixed-size
|
64
|
+
resize: none
|
@@ -0,0 +1,85 @@
|
|
1
|
+
.select
|
2
|
+
display: inline-block
|
3
|
+
max-width: 100%
|
4
|
+
position: relative
|
5
|
+
vertical-align: top
|
6
|
+
&:not(.is-multiple)
|
7
|
+
height: $input-height
|
8
|
+
&:not(.is-multiple):not(.is-loading)
|
9
|
+
&::after
|
10
|
+
@extend %arrow
|
11
|
+
border-color: $input-arrow
|
12
|
+
+ltr-position(1.125em)
|
13
|
+
z-index: 4
|
14
|
+
&.is-rounded
|
15
|
+
select
|
16
|
+
border-radius: $radius-rounded
|
17
|
+
+ltr-property("padding", 1em, false)
|
18
|
+
select
|
19
|
+
@extend %input
|
20
|
+
cursor: pointer
|
21
|
+
display: block
|
22
|
+
font-size: 1em
|
23
|
+
max-width: 100%
|
24
|
+
outline: none
|
25
|
+
&::-ms-expand
|
26
|
+
display: none
|
27
|
+
&[disabled]:hover,
|
28
|
+
fieldset[disabled] &:hover
|
29
|
+
border-color: $input-disabled-border-color
|
30
|
+
&:not([multiple])
|
31
|
+
+ltr-property("padding", 2.5em)
|
32
|
+
&[multiple]
|
33
|
+
height: auto
|
34
|
+
padding: 0
|
35
|
+
option
|
36
|
+
padding: 0.5em 1em
|
37
|
+
// States
|
38
|
+
&:not(.is-multiple):not(.is-loading):hover
|
39
|
+
&::after
|
40
|
+
border-color: $input-hover-color
|
41
|
+
// Colors
|
42
|
+
@each $name, $pair in $colors
|
43
|
+
$color: nth($pair, 1)
|
44
|
+
&.is-#{$name}
|
45
|
+
&:not(:hover)::after
|
46
|
+
border-color: $color
|
47
|
+
select
|
48
|
+
border-color: $color
|
49
|
+
&:hover,
|
50
|
+
&.is-hovered
|
51
|
+
border-color: bulmaDarken($color, 5%)
|
52
|
+
&:focus,
|
53
|
+
&.is-focused,
|
54
|
+
&:active,
|
55
|
+
&.is-active
|
56
|
+
box-shadow: $input-focus-box-shadow-size bulmaRgba($color, 0.25)
|
57
|
+
// Sizes
|
58
|
+
&.is-small
|
59
|
+
+control-small
|
60
|
+
&.is-medium
|
61
|
+
+control-medium
|
62
|
+
&.is-large
|
63
|
+
+control-large
|
64
|
+
// Modifiers
|
65
|
+
&.is-disabled
|
66
|
+
&::after
|
67
|
+
border-color: $input-disabled-color
|
68
|
+
&.is-fullwidth
|
69
|
+
width: 100%
|
70
|
+
select
|
71
|
+
width: 100%
|
72
|
+
&.is-loading
|
73
|
+
&::after
|
74
|
+
@extend %loader
|
75
|
+
margin-top: 0
|
76
|
+
position: absolute
|
77
|
+
+ltr-position(0.625em)
|
78
|
+
top: 0.625em
|
79
|
+
transform: none
|
80
|
+
&.is-small:after
|
81
|
+
font-size: $size-small
|
82
|
+
&.is-medium:after
|
83
|
+
font-size: $size-medium
|
84
|
+
&.is-large:after
|
85
|
+
font-size: $size-large
|
@@ -0,0 +1,55 @@
|
|
1
|
+
$input-color: $text-strong !default
|
2
|
+
$input-background-color: $scheme-main !default
|
3
|
+
$input-border-color: $border !default
|
4
|
+
$input-height: $control-height !default
|
5
|
+
$input-shadow: inset 0 0.0625em 0.125em rgba($scheme-invert, 0.05) !default
|
6
|
+
$input-placeholder-color: bulmaRgba($input-color, 0.3) !default
|
7
|
+
|
8
|
+
$input-hover-color: $text-strong !default
|
9
|
+
$input-hover-border-color: $border-hover !default
|
10
|
+
|
11
|
+
$input-focus-color: $text-strong !default
|
12
|
+
$input-focus-border-color: $link !default
|
13
|
+
$input-focus-box-shadow-size: 0 0 0 0.125em !default
|
14
|
+
$input-focus-box-shadow-color: bulmaRgba($link, 0.25) !default
|
15
|
+
|
16
|
+
$input-disabled-color: $text-light !default
|
17
|
+
$input-disabled-background-color: $background !default
|
18
|
+
$input-disabled-border-color: $background !default
|
19
|
+
$input-disabled-placeholder-color: bulmaRgba($input-disabled-color, 0.3) !default
|
20
|
+
|
21
|
+
$input-arrow: $link !default
|
22
|
+
|
23
|
+
$input-icon-color: $border !default
|
24
|
+
$input-icon-active-color: $text !default
|
25
|
+
|
26
|
+
$input-radius: $radius !default
|
27
|
+
|
28
|
+
=input
|
29
|
+
@extend %control
|
30
|
+
background-color: $input-background-color
|
31
|
+
border-color: $input-border-color
|
32
|
+
border-radius: $input-radius
|
33
|
+
color: $input-color
|
34
|
+
+placeholder
|
35
|
+
color: $input-placeholder-color
|
36
|
+
&:hover,
|
37
|
+
&.is-hovered
|
38
|
+
border-color: $input-hover-border-color
|
39
|
+
&:focus,
|
40
|
+
&.is-focused,
|
41
|
+
&:active,
|
42
|
+
&.is-active
|
43
|
+
border-color: $input-focus-border-color
|
44
|
+
box-shadow: $input-focus-box-shadow-size $input-focus-box-shadow-color
|
45
|
+
&[disabled],
|
46
|
+
fieldset[disabled] &
|
47
|
+
background-color: $input-disabled-background-color
|
48
|
+
border-color: $input-disabled-border-color
|
49
|
+
box-shadow: none
|
50
|
+
color: $input-disabled-color
|
51
|
+
+placeholder
|
52
|
+
color: $input-disabled-placeholder-color
|
53
|
+
|
54
|
+
%input
|
55
|
+
+input
|
@@ -0,0 +1,213 @@
|
|
1
|
+
$label-color: $text-strong !default
|
2
|
+
$label-weight: $weight-bold !default
|
3
|
+
|
4
|
+
$help-size: $size-small !default
|
5
|
+
|
6
|
+
.label
|
7
|
+
color: $label-color
|
8
|
+
display: block
|
9
|
+
font-size: $size-normal
|
10
|
+
font-weight: $label-weight
|
11
|
+
&:not(:last-child)
|
12
|
+
margin-bottom: 0.5em
|
13
|
+
// Sizes
|
14
|
+
&.is-small
|
15
|
+
font-size: $size-small
|
16
|
+
&.is-medium
|
17
|
+
font-size: $size-medium
|
18
|
+
&.is-large
|
19
|
+
font-size: $size-large
|
20
|
+
|
21
|
+
.help
|
22
|
+
display: block
|
23
|
+
font-size: $help-size
|
24
|
+
margin-top: 0.25rem
|
25
|
+
@each $name, $pair in $colors
|
26
|
+
$color: nth($pair, 1)
|
27
|
+
&.is-#{$name}
|
28
|
+
color: $color
|
29
|
+
|
30
|
+
// Containers
|
31
|
+
|
32
|
+
.field
|
33
|
+
&:not(:last-child)
|
34
|
+
margin-bottom: 0.75rem
|
35
|
+
// Modifiers
|
36
|
+
&.has-addons
|
37
|
+
display: flex
|
38
|
+
justify-content: flex-start
|
39
|
+
.control
|
40
|
+
&:not(:last-child)
|
41
|
+
+ltr-property("margin", -1px)
|
42
|
+
&:not(:first-child):not(:last-child)
|
43
|
+
.button,
|
44
|
+
.input,
|
45
|
+
.select select
|
46
|
+
border-radius: 0
|
47
|
+
&:first-child:not(:only-child)
|
48
|
+
.button,
|
49
|
+
.input,
|
50
|
+
.select select
|
51
|
+
+ltr
|
52
|
+
border-bottom-right-radius: 0
|
53
|
+
border-top-right-radius: 0
|
54
|
+
+rtl
|
55
|
+
border-bottom-left-radius: 0
|
56
|
+
border-top-left-radius: 0
|
57
|
+
&:last-child:not(:only-child)
|
58
|
+
.button,
|
59
|
+
.input,
|
60
|
+
.select select
|
61
|
+
+ltr
|
62
|
+
border-bottom-left-radius: 0
|
63
|
+
border-top-left-radius: 0
|
64
|
+
+rtl
|
65
|
+
border-bottom-right-radius: 0
|
66
|
+
border-top-right-radius: 0
|
67
|
+
.button,
|
68
|
+
.input,
|
69
|
+
.select select
|
70
|
+
&:not([disabled])
|
71
|
+
&:hover,
|
72
|
+
&.is-hovered
|
73
|
+
z-index: 2
|
74
|
+
&:focus,
|
75
|
+
&.is-focused,
|
76
|
+
&:active,
|
77
|
+
&.is-active
|
78
|
+
z-index: 3
|
79
|
+
&:hover
|
80
|
+
z-index: 4
|
81
|
+
&.is-expanded
|
82
|
+
flex-grow: 1
|
83
|
+
flex-shrink: 1
|
84
|
+
&.has-addons-centered
|
85
|
+
justify-content: center
|
86
|
+
&.has-addons-right
|
87
|
+
justify-content: flex-end
|
88
|
+
&.has-addons-fullwidth
|
89
|
+
.control
|
90
|
+
flex-grow: 1
|
91
|
+
flex-shrink: 0
|
92
|
+
&.is-grouped
|
93
|
+
display: flex
|
94
|
+
justify-content: flex-start
|
95
|
+
& > .control
|
96
|
+
flex-shrink: 0
|
97
|
+
&:not(:last-child)
|
98
|
+
margin-bottom: 0
|
99
|
+
+ltr-property("margin", 0.75rem)
|
100
|
+
&.is-expanded
|
101
|
+
flex-grow: 1
|
102
|
+
flex-shrink: 1
|
103
|
+
&.is-grouped-centered
|
104
|
+
justify-content: center
|
105
|
+
&.is-grouped-right
|
106
|
+
justify-content: flex-end
|
107
|
+
&.is-grouped-multiline
|
108
|
+
flex-wrap: wrap
|
109
|
+
& > .control
|
110
|
+
&:last-child,
|
111
|
+
&:not(:last-child)
|
112
|
+
margin-bottom: 0.75rem
|
113
|
+
&:last-child
|
114
|
+
margin-bottom: -0.75rem
|
115
|
+
&:not(:last-child)
|
116
|
+
margin-bottom: 0
|
117
|
+
&.is-horizontal
|
118
|
+
+tablet
|
119
|
+
display: flex
|
120
|
+
|
121
|
+
.field-label
|
122
|
+
.label
|
123
|
+
font-size: inherit
|
124
|
+
+mobile
|
125
|
+
margin-bottom: 0.5rem
|
126
|
+
+tablet
|
127
|
+
flex-basis: 0
|
128
|
+
flex-grow: 1
|
129
|
+
flex-shrink: 0
|
130
|
+
+ltr-property("margin", 1.5rem)
|
131
|
+
text-align: right
|
132
|
+
&.is-small
|
133
|
+
font-size: $size-small
|
134
|
+
padding-top: 0.375em
|
135
|
+
&.is-normal
|
136
|
+
padding-top: 0.375em
|
137
|
+
&.is-medium
|
138
|
+
font-size: $size-medium
|
139
|
+
padding-top: 0.375em
|
140
|
+
&.is-large
|
141
|
+
font-size: $size-large
|
142
|
+
padding-top: 0.375em
|
143
|
+
|
144
|
+
.field-body
|
145
|
+
.field .field
|
146
|
+
margin-bottom: 0
|
147
|
+
+tablet
|
148
|
+
display: flex
|
149
|
+
flex-basis: 0
|
150
|
+
flex-grow: 5
|
151
|
+
flex-shrink: 1
|
152
|
+
.field
|
153
|
+
margin-bottom: 0
|
154
|
+
& > .field
|
155
|
+
flex-shrink: 1
|
156
|
+
&:not(.is-narrow)
|
157
|
+
flex-grow: 1
|
158
|
+
&:not(:last-child)
|
159
|
+
+ltr-property("margin", 0.75rem)
|
160
|
+
|
161
|
+
.control
|
162
|
+
box-sizing: border-box
|
163
|
+
clear: both
|
164
|
+
font-size: $size-normal
|
165
|
+
position: relative
|
166
|
+
text-align: inherit
|
167
|
+
// Modifiers
|
168
|
+
&.has-icons-left,
|
169
|
+
&.has-icons-right
|
170
|
+
.input,
|
171
|
+
.select
|
172
|
+
&:focus
|
173
|
+
& ~ .icon
|
174
|
+
color: $input-icon-active-color
|
175
|
+
&.is-small ~ .icon
|
176
|
+
font-size: $size-small
|
177
|
+
&.is-medium ~ .icon
|
178
|
+
font-size: $size-medium
|
179
|
+
&.is-large ~ .icon
|
180
|
+
font-size: $size-large
|
181
|
+
.icon
|
182
|
+
color: $input-icon-color
|
183
|
+
height: $input-height
|
184
|
+
pointer-events: none
|
185
|
+
position: absolute
|
186
|
+
top: 0
|
187
|
+
width: $input-height
|
188
|
+
z-index: 4
|
189
|
+
&.has-icons-left
|
190
|
+
.input,
|
191
|
+
.select select
|
192
|
+
padding-left: $input-height
|
193
|
+
.icon.is-left
|
194
|
+
left: 0
|
195
|
+
&.has-icons-right
|
196
|
+
.input,
|
197
|
+
.select select
|
198
|
+
padding-right: $input-height
|
199
|
+
.icon.is-right
|
200
|
+
right: 0
|
201
|
+
&.is-loading
|
202
|
+
&::after
|
203
|
+
@extend %loader
|
204
|
+
position: absolute !important
|
205
|
+
+ltr-position(0.625em)
|
206
|
+
top: 0.625em
|
207
|
+
z-index: 4
|
208
|
+
&.is-small:after
|
209
|
+
font-size: $size-small
|
210
|
+
&.is-medium:after
|
211
|
+
font-size: $size-medium
|
212
|
+
&.is-large:after
|
213
|
+
font-size: $size-large
|