bulma-rails 0.4.3 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/assets/stylesheets/bulma.sass +1 -2
- data/app/assets/stylesheets/sass/base/_all.sass +0 -0
- data/app/assets/stylesheets/sass/base/generic.sass +39 -19
- data/app/assets/stylesheets/sass/base/helpers.sass +132 -54
- data/app/assets/stylesheets/sass/base/minireset.sass +0 -0
- data/app/assets/stylesheets/sass/components/_all.sass +2 -1
- data/app/assets/stylesheets/sass/components/breadcrumb.sass +20 -14
- data/app/assets/stylesheets/sass/components/card.sass +24 -10
- data/app/assets/stylesheets/sass/components/dropdown.sass +68 -0
- data/app/assets/stylesheets/sass/components/level.sass +29 -29
- data/app/assets/stylesheets/sass/components/media.sass +18 -18
- data/app/assets/stylesheets/sass/components/menu.sass +27 -9
- data/app/assets/stylesheets/sass/components/message.sass +41 -18
- data/app/assets/stylesheets/sass/components/modal.sass +65 -35
- data/app/assets/stylesheets/sass/components/nav.sass +0 -0
- data/app/assets/stylesheets/sass/components/navbar.sass +80 -37
- data/app/assets/stylesheets/sass/components/pagination.sass +28 -28
- data/app/assets/stylesheets/sass/components/panel.sass +47 -22
- data/app/assets/stylesheets/sass/components/tabs.sass +58 -24
- data/app/assets/stylesheets/sass/elements/_all.sass +1 -0
- data/app/assets/stylesheets/sass/elements/box.sass +16 -6
- data/app/assets/stylesheets/sass/elements/button.sass +41 -39
- data/app/assets/stylesheets/sass/elements/container.sass +27 -0
- data/app/assets/stylesheets/sass/elements/content.sass +38 -18
- data/app/assets/stylesheets/sass/elements/form.sass +266 -54
- data/app/assets/stylesheets/sass/elements/icon.sass +13 -8
- data/app/assets/stylesheets/sass/elements/image.sass +1 -1
- data/app/assets/stylesheets/sass/elements/notification.sass +10 -4
- data/app/assets/stylesheets/sass/elements/other.sass +0 -18
- data/app/assets/stylesheets/sass/elements/progress.sass +6 -3
- data/app/assets/stylesheets/sass/elements/table.sass +42 -26
- data/app/assets/stylesheets/sass/elements/tag.sass +65 -5
- data/app/assets/stylesheets/sass/elements/title.sass +17 -15
- data/app/assets/stylesheets/sass/grid/_all.sass +0 -0
- data/app/assets/stylesheets/sass/grid/columns.sass +0 -0
- data/app/assets/stylesheets/sass/grid/tiles.sass +0 -0
- data/app/assets/stylesheets/sass/layout/_all.sass +0 -0
- data/app/assets/stylesheets/sass/layout/footer.sass +3 -1
- data/app/assets/stylesheets/sass/layout/hero.sass +45 -46
- data/app/assets/stylesheets/sass/layout/section.sass +7 -4
- data/app/assets/stylesheets/sass/utilities/_all.sass +0 -0
- data/app/assets/stylesheets/sass/utilities/animations.sass +0 -0
- data/app/assets/stylesheets/sass/utilities/controls.sass +0 -0
- data/app/assets/stylesheets/sass/utilities/derived-variables.sass +2 -1
- data/app/assets/stylesheets/sass/utilities/functions.sass +0 -0
- data/app/assets/stylesheets/sass/utilities/initial-variables.sass +10 -12
- data/app/assets/stylesheets/sass/utilities/mixins.sass +0 -0
- data/app/assets/stylesheets/sass/utilities/variables.sass +1 -1
- data/bulma-rails.gemspec +1 -1
- metadata +4 -2
@@ -1,14 +1,24 @@
|
|
1
|
+
$box-color: $text !default
|
2
|
+
$box-background-color: $white !default
|
3
|
+
$box-radius: $radius-large !default
|
4
|
+
$box-shadow: 0 2px 3px rgba($black, 0.1), 0 0 0 1px rgba($black, 0.1) !default
|
5
|
+
$box-padding: 1.25rem !default
|
6
|
+
|
7
|
+
$box-link-hover-shadow: 0 2px 3px rgba($black, 0.1), 0 0 0 1px $link !default
|
8
|
+
$box-link-active-shadow: inset 0 1px 2px rgba($black, 0.2), 0 0 0 1px $link !default
|
9
|
+
|
1
10
|
.box
|
2
11
|
+block
|
3
|
-
background-color: $
|
4
|
-
border-radius: $radius
|
5
|
-
box-shadow:
|
12
|
+
background-color: $box-background-color
|
13
|
+
border-radius: $box-radius
|
14
|
+
box-shadow: $box-shadow
|
15
|
+
color: $box-color
|
6
16
|
display: block
|
7
|
-
padding:
|
17
|
+
padding: $box-padding
|
8
18
|
|
9
19
|
a.box
|
10
20
|
&:hover,
|
11
21
|
&:focus
|
12
|
-
box-shadow:
|
22
|
+
box-shadow: $box-link-hover-shadow
|
13
23
|
&:active
|
14
|
-
box-shadow:
|
24
|
+
box-shadow: $box-link-active-shadow
|
@@ -1,19 +1,28 @@
|
|
1
|
-
$button: $grey-darker !default
|
2
|
-
$button-background: $white !default
|
3
|
-
$button-border: $grey-lighter !default
|
1
|
+
$button-color: $grey-darker !default
|
2
|
+
$button-background-color: $white !default
|
3
|
+
$button-border-color: $grey-lighter !default
|
4
4
|
|
5
|
-
$button-hover: $link-hover !default
|
6
|
-
$button-hover-border: $link-hover-border !default
|
5
|
+
$button-hover-color: $link-hover !default
|
6
|
+
$button-hover-border-color: $link-hover-border !default
|
7
7
|
|
8
|
-
$button-focus: $link-focus !default
|
9
|
-
$button-focus-border: $link-focus-border !default
|
8
|
+
$button-focus-color: $link-focus !default
|
9
|
+
$button-focus-border-color: $link-focus-border !default
|
10
10
|
|
11
|
-
$button-active: $link-active !default
|
12
|
-
$button-active-border: $link-active-border !default
|
11
|
+
$button-active-color: $link-active !default
|
12
|
+
$button-active-border-color: $link-active-border !default
|
13
13
|
|
14
|
-
$button-
|
15
|
-
$button-
|
16
|
-
$button-
|
14
|
+
$button-link-color: $text !default
|
15
|
+
$button-link-hover-background-color: $background !default
|
16
|
+
$button-link-hover-color: $text-strong !default
|
17
|
+
|
18
|
+
$button-disabled-background-color: $white !default
|
19
|
+
$button-disabled-border-color: $grey-lighter !default
|
20
|
+
$button-disabled-shadow: none !default
|
21
|
+
$button-disabled-opacity: 0.5 !default
|
22
|
+
|
23
|
+
$button-static-color: $grey !default
|
24
|
+
$button-static-background-color: $white-ter !default
|
25
|
+
$button-static-border-color: $grey-lighter !default
|
17
26
|
|
18
27
|
$button-shadow-inset: inset 0 1px 2px rgba($black, 0.2) !default
|
19
28
|
|
@@ -29,9 +38,9 @@ $button-shadow-inset: inset 0 1px 2px rgba($black, 0.2) !default
|
|
29
38
|
.button
|
30
39
|
+control
|
31
40
|
+unselectable
|
32
|
-
background-color: $button-background
|
33
|
-
border-color: $button-border
|
34
|
-
color: $button
|
41
|
+
background-color: $button-background-color
|
42
|
+
border-color: $button-border-color
|
43
|
+
color: $button-color
|
35
44
|
cursor: pointer
|
36
45
|
justify-content: center
|
37
46
|
padding-left: 0.75em
|
@@ -59,23 +68,23 @@ $button-shadow-inset: inset 0 1px 2px rgba($black, 0.2) !default
|
|
59
68
|
// States
|
60
69
|
&:hover,
|
61
70
|
&.is-hovered
|
62
|
-
border-color: $button-hover-border
|
63
|
-
color: $button-hover
|
71
|
+
border-color: $button-hover-border-color
|
72
|
+
color: $button-hover-color
|
64
73
|
&:focus,
|
65
74
|
&.is-focused
|
66
|
-
border-color: $button-focus-border
|
67
|
-
box-shadow: 0 0 0.5em rgba($button-focus-border, 0.25)
|
68
|
-
color: $button-focus
|
75
|
+
border-color: $button-focus-border-color
|
76
|
+
// box-shadow: 0 0 0.5em rgba($button-focus-border-color, 0.25)
|
77
|
+
color: $button-focus-color
|
69
78
|
&:active,
|
70
79
|
&.is-active
|
71
|
-
border-color: $button-active-border
|
80
|
+
border-color: $button-active-border-color
|
72
81
|
box-shadow: $button-shadow-inset
|
73
|
-
color: $button-active
|
82
|
+
color: $button-active-color
|
74
83
|
// Colors
|
75
84
|
&.is-link
|
76
85
|
background-color: transparent
|
77
86
|
border-color: transparent
|
78
|
-
color: $
|
87
|
+
color: $button-link-color
|
79
88
|
text-decoration: underline
|
80
89
|
&:hover,
|
81
90
|
&.is-hovered,
|
@@ -83,8 +92,8 @@ $button-shadow-inset: inset 0 1px 2px rgba($black, 0.2) !default
|
|
83
92
|
&.is-focused,
|
84
93
|
&:active,
|
85
94
|
&.is-active
|
86
|
-
background-color: $background
|
87
|
-
color: $
|
95
|
+
background-color: $button-link-hover-background-color
|
96
|
+
color: $button-link-hover-color
|
88
97
|
&[disabled]
|
89
98
|
background-color: transparent
|
90
99
|
border-color: transparent
|
@@ -168,10 +177,10 @@ $button-shadow-inset: inset 0 1px 2px rgba($black, 0.2) !default
|
|
168
177
|
+button-large
|
169
178
|
// Modifiers
|
170
179
|
&[disabled]
|
171
|
-
background-color: $button-background
|
172
|
-
border-color: $button-border
|
173
|
-
box-shadow:
|
174
|
-
opacity:
|
180
|
+
background-color: $button-disabled-background-color
|
181
|
+
border-color: $button-disabled-border-color
|
182
|
+
box-shadow: $button-disabled-shadow
|
183
|
+
opacity: $button-disabled-opacity
|
175
184
|
&.is-fullwidth
|
176
185
|
display: flex
|
177
186
|
width: 100%
|
@@ -183,15 +192,8 @@ $button-shadow-inset: inset 0 1px 2px rgba($black, 0.2) !default
|
|
183
192
|
+center(1em)
|
184
193
|
position: absolute !important
|
185
194
|
&.is-static
|
186
|
-
background-color: $button-static-background
|
187
|
-
border-color: $button-static-border
|
188
|
-
color: $button-static
|
195
|
+
background-color: $button-static-background-color
|
196
|
+
border-color: $button-static-border-color
|
197
|
+
color: $button-static-color
|
189
198
|
box-shadow: none
|
190
199
|
pointer-events: none
|
191
|
-
|
192
|
-
// Adjustment for vertical spacing
|
193
|
-
button.button,
|
194
|
-
input[type="submit"].button
|
195
|
-
line-height: 1
|
196
|
-
padding-bottom: 0.4em
|
197
|
-
padding-top: 0.35em
|
@@ -0,0 +1,27 @@
|
|
1
|
+
$container-offset: 60px !default
|
2
|
+
|
3
|
+
.container
|
4
|
+
margin: 0 auto
|
5
|
+
position: relative
|
6
|
+
+from($desktop + $container-offset)
|
7
|
+
max-width: $desktop - (2 * $gap)
|
8
|
+
width: $desktop - (2 * $gap)
|
9
|
+
&.is-fluid
|
10
|
+
margin-left: $gap
|
11
|
+
margin-right: $gap
|
12
|
+
max-width: none
|
13
|
+
width: auto
|
14
|
+
+until($widescreen + $container-offset)
|
15
|
+
&.is-widescreen
|
16
|
+
max-width: $widescreen - (2 * $gap)
|
17
|
+
width: auto
|
18
|
+
+until($fullhd + $container-offset)
|
19
|
+
&.is-fullhd
|
20
|
+
max-width: $fullhd - (2 * $gap)
|
21
|
+
width: auto
|
22
|
+
+from($widescreen + $container-offset)
|
23
|
+
max-width: $widescreen - (2 * $gap)
|
24
|
+
width: $widescreen - (2 * $gap)
|
25
|
+
+from($fullhd + $container-offset)
|
26
|
+
max-width: $fullhd - (2 * $gap)
|
27
|
+
width: $fullhd - (2 * $gap)
|
@@ -1,6 +1,25 @@
|
|
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
|
+
|
1
21
|
.content
|
2
22
|
+block
|
3
|
-
color: $text
|
4
23
|
// Inline
|
5
24
|
li + li
|
6
25
|
margin-top: 0.25em
|
@@ -20,9 +39,9 @@
|
|
20
39
|
h4,
|
21
40
|
h5,
|
22
41
|
h6
|
23
|
-
color: $
|
24
|
-
font-weight: $weight
|
25
|
-
line-height:
|
42
|
+
color: $content-heading-color
|
43
|
+
font-weight: $content-heading-weight
|
44
|
+
line-height: $content-heading-line-height
|
26
45
|
h1
|
27
46
|
font-size: 2em
|
28
47
|
margin-bottom: 0.5em
|
@@ -48,9 +67,9 @@
|
|
48
67
|
font-size: 1em
|
49
68
|
margin-bottom: 1em
|
50
69
|
blockquote
|
51
|
-
background-color: $background
|
52
|
-
border-left:
|
53
|
-
padding:
|
70
|
+
background-color: $content-blockquote-background-color
|
71
|
+
border-left: $content-blockquote-border-left
|
72
|
+
padding: $content-blockquote-padding
|
54
73
|
ol
|
55
74
|
list-style: decimal outside
|
56
75
|
margin-left: 2em
|
@@ -67,6 +86,7 @@
|
|
67
86
|
dd
|
68
87
|
margin-left: 2em
|
69
88
|
figure
|
89
|
+
margin: 2em
|
70
90
|
text-align: center
|
71
91
|
img
|
72
92
|
display: inline-block
|
@@ -75,36 +95,36 @@
|
|
75
95
|
pre
|
76
96
|
+overflow-touch
|
77
97
|
overflow-x: auto
|
78
|
-
padding:
|
98
|
+
padding: $content-pre-padding
|
79
99
|
white-space: pre
|
80
100
|
word-wrap: normal
|
81
101
|
sup,
|
82
102
|
sub
|
83
|
-
font-size:
|
103
|
+
font-size: 75%
|
84
104
|
table
|
85
105
|
width: 100%
|
86
106
|
td,
|
87
107
|
th
|
88
|
-
border:
|
89
|
-
border-width:
|
90
|
-
padding:
|
108
|
+
border: $content-table-cell-border
|
109
|
+
border-width: $content-table-cell-border-width
|
110
|
+
padding: $content-table-cell-padding
|
91
111
|
vertical-align: top
|
92
112
|
th
|
93
|
-
color: $
|
113
|
+
color: $content-table-cell-heading-color
|
94
114
|
text-align: left
|
95
115
|
tr
|
96
116
|
&:hover
|
97
|
-
background-color: $background
|
117
|
+
background-color: $content-table-row-hover-background-color
|
98
118
|
thead
|
99
119
|
td,
|
100
120
|
th
|
101
|
-
border-width:
|
102
|
-
color: $
|
121
|
+
border-width: $content-table-head-cell-border-width
|
122
|
+
color: $content-table-head-cell-color
|
103
123
|
tfoot
|
104
124
|
td,
|
105
125
|
th
|
106
|
-
border-width:
|
107
|
-
color: $
|
126
|
+
border-width: $content-table-foot-cell-border-width
|
127
|
+
color: $content-table-foot-cell-color
|
108
128
|
tbody
|
109
129
|
tr
|
110
130
|
&:last-child
|
@@ -1,49 +1,68 @@
|
|
1
|
-
$input:
|
2
|
-
$input-background:
|
3
|
-
$input-border:
|
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
|
4
5
|
|
5
|
-
$input-hover:
|
6
|
-
$input-hover-border:
|
6
|
+
$input-hover-color: $grey-darker !default
|
7
|
+
$input-hover-border-color: $grey-light !default
|
7
8
|
|
8
|
-
$input-focus:
|
9
|
-
$input-focus-border:
|
9
|
+
$input-focus-color: $grey-darker !default
|
10
|
+
$input-focus-border-color: $link !default
|
10
11
|
|
11
|
-
$input-disabled:
|
12
|
-
$input-disabled-background: $background !default
|
13
|
-
$input-disabled-border:
|
12
|
+
$input-disabled-color: $text-light !default
|
13
|
+
$input-disabled-background-color: $background !default
|
14
|
+
$input-disabled-border-color: $background !default
|
14
15
|
|
15
|
-
$input-arrow:
|
16
|
+
$input-arrow: $link !default
|
16
17
|
|
17
|
-
$input-icon:
|
18
|
-
$input-icon-active:
|
18
|
+
$input-icon-color: $grey-lighter !default
|
19
|
+
$input-icon-active-color: $grey !default
|
19
20
|
|
20
|
-
$input-radius:
|
21
|
+
$input-radius: $radius !default
|
22
|
+
|
23
|
+
$file-border-color: $border !default
|
24
|
+
$file-radius: $radius !default
|
25
|
+
|
26
|
+
$file-cta-background-color: $white-ter !default
|
27
|
+
$file-cta-color: $grey-dark !default
|
28
|
+
$file-cta-hover-color: $grey-darker !default
|
29
|
+
$file-cta-active-color: $grey-darker !default
|
30
|
+
|
31
|
+
$file-name-border-color: $border !default
|
32
|
+
$file-name-border-style: solid !default
|
33
|
+
$file-name-border-width: 1px 1px 1px 0 !default
|
34
|
+
$file-name-max-width: 16em !default
|
35
|
+
|
36
|
+
$label-color: $grey-darker !default
|
37
|
+
$label-weight: $weight-bold !default
|
38
|
+
|
39
|
+
$help-size: $size-small !default
|
21
40
|
|
22
41
|
=input
|
23
42
|
+control
|
24
|
-
background-color: $input-background
|
25
|
-
border-color: $input-border
|
26
|
-
color: $input
|
43
|
+
background-color: $input-background-color
|
44
|
+
border-color: $input-border-color
|
45
|
+
color: $input-color
|
27
46
|
&:hover,
|
28
47
|
&.is-hovered
|
29
|
-
border-color: $input-hover-border
|
48
|
+
border-color: $input-hover-border-color
|
30
49
|
&:focus,
|
31
50
|
&.is-focused,
|
32
51
|
&:active,
|
33
52
|
&.is-active
|
34
|
-
border-color: $input-focus-border
|
53
|
+
border-color: $input-focus-border-color
|
35
54
|
&[disabled]
|
36
|
-
background-color: $input-disabled-background
|
37
|
-
border-color: $input-disabled-border
|
55
|
+
background-color: $input-disabled-background-color
|
56
|
+
border-color: $input-disabled-border-color
|
38
57
|
box-shadow: none
|
39
|
-
color: $input-disabled
|
58
|
+
color: $input-disabled-color
|
40
59
|
+placeholder
|
41
|
-
color: rgba($input, 0.3)
|
60
|
+
color: rgba($input-disabled-color, 0.3)
|
42
61
|
|
43
62
|
.input,
|
44
63
|
.textarea
|
45
64
|
+input
|
46
|
-
box-shadow:
|
65
|
+
box-shadow: $input-shadow
|
47
66
|
max-width: 100%
|
48
67
|
width: 100%
|
49
68
|
&[type="search"]
|
@@ -70,12 +89,15 @@ $input-radius: $radius !default
|
|
70
89
|
|
71
90
|
.textarea
|
72
91
|
display: block
|
73
|
-
max-height: 600px
|
74
92
|
max-width: 100%
|
75
|
-
min-height: 120px
|
76
93
|
min-width: 100%
|
77
94
|
padding: 0.625em
|
78
95
|
resize: vertical
|
96
|
+
&:not([rows])
|
97
|
+
max-height: 600px
|
98
|
+
min-height: 120px
|
99
|
+
&[rows]
|
100
|
+
height: unset
|
79
101
|
|
80
102
|
.checkbox,
|
81
103
|
.radio
|
@@ -86,9 +108,9 @@ $input-radius: $radius !default
|
|
86
108
|
input
|
87
109
|
cursor: pointer
|
88
110
|
&:hover
|
89
|
-
color: $input-hover
|
111
|
+
color: $input-hover-color
|
90
112
|
&[disabled]
|
91
|
-
color: $input-disabled
|
113
|
+
color: $input-disabled-color
|
92
114
|
cursor: not-allowed
|
93
115
|
|
94
116
|
.radio
|
@@ -97,16 +119,17 @@ $input-radius: $radius !default
|
|
97
119
|
|
98
120
|
.select
|
99
121
|
display: inline-block
|
100
|
-
height: 2.25em
|
101
122
|
max-width: 100%
|
102
123
|
position: relative
|
103
124
|
vertical-align: top
|
104
|
-
&:
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
125
|
+
&:not(.is-multiple)
|
126
|
+
height: 2.25em
|
127
|
+
&::after
|
128
|
+
+arrow($input-arrow)
|
129
|
+
margin-top: -0.375em
|
130
|
+
right: 1.125em
|
131
|
+
top: 50%
|
132
|
+
z-index: 4
|
110
133
|
select
|
111
134
|
+input
|
112
135
|
cursor: pointer
|
@@ -114,17 +137,28 @@ $input-radius: $radius !default
|
|
114
137
|
font-size: 1em
|
115
138
|
max-width: 100%
|
116
139
|
outline: none
|
117
|
-
padding-right: 2.5em
|
118
140
|
&:hover
|
119
|
-
border-color: $input-hover-border
|
141
|
+
border-color: $input-hover-border-color
|
142
|
+
&:focus,
|
143
|
+
&.is-focused,
|
144
|
+
&:active,
|
145
|
+
&.is-active
|
146
|
+
border-color: $input-focus-border-color
|
120
147
|
&::-ms-expand
|
121
148
|
display: none
|
122
149
|
&[disabled]:hover
|
123
|
-
border-color: $input-disabled-border
|
150
|
+
border-color: $input-disabled-border-color
|
151
|
+
&:not([multiple])
|
152
|
+
padding-right: 2.5em
|
153
|
+
&[multiple]
|
154
|
+
height: unset
|
155
|
+
padding: 0
|
156
|
+
option
|
157
|
+
padding: 0.5em 1em
|
124
158
|
// States
|
125
159
|
&:hover
|
126
|
-
|
127
|
-
border-color: $input-hover
|
160
|
+
&::after
|
161
|
+
border-color: $input-hover-color
|
128
162
|
// Colors
|
129
163
|
@each $name, $pair in $colors
|
130
164
|
$color: nth($pair, 1)
|
@@ -139,14 +173,14 @@ $input-radius: $radius !default
|
|
139
173
|
+control-large
|
140
174
|
// Modifiers
|
141
175
|
&.is-disabled
|
142
|
-
|
143
|
-
border-color: $input-disabled
|
176
|
+
&::after
|
177
|
+
border-color: $input-disabled-color
|
144
178
|
&.is-fullwidth
|
145
179
|
width: 100%
|
146
180
|
select
|
147
181
|
width: 100%
|
148
182
|
&.is-loading
|
149
|
-
|
183
|
+
&::after
|
150
184
|
+loader
|
151
185
|
margin-top: 0
|
152
186
|
position: absolute
|
@@ -160,11 +194,174 @@ $input-radius: $radius !default
|
|
160
194
|
&.is-large:after
|
161
195
|
font-size: $size-large
|
162
196
|
|
197
|
+
.file
|
198
|
+
+unselectable
|
199
|
+
align-items: stretch
|
200
|
+
display: flex
|
201
|
+
justify-content: flex-start
|
202
|
+
position: relative
|
203
|
+
// Colors
|
204
|
+
@each $name, $pair in $colors
|
205
|
+
$color: nth($pair, 1)
|
206
|
+
$color-invert: nth($pair, 2)
|
207
|
+
&.is-#{$name}
|
208
|
+
.file-cta
|
209
|
+
background-color: $color
|
210
|
+
border-color: transparent
|
211
|
+
color: $color-invert
|
212
|
+
&:hover,
|
213
|
+
&.is-hovered
|
214
|
+
.file-cta
|
215
|
+
background-color: darken($color, 2.5%)
|
216
|
+
border-color: transparent
|
217
|
+
color: $color-invert
|
218
|
+
&:focus,
|
219
|
+
&.is-focused
|
220
|
+
.file-cta
|
221
|
+
border-color: transparent
|
222
|
+
box-shadow: 0 0 0.5em rgba($color, 0.25)
|
223
|
+
color: $color-invert
|
224
|
+
&:active,
|
225
|
+
&.is-active
|
226
|
+
.file-cta
|
227
|
+
background-color: darken($color, 5%)
|
228
|
+
border-color: transparent
|
229
|
+
color: $color-invert
|
230
|
+
// Sizes
|
231
|
+
&.is-small
|
232
|
+
font-size: $size-small
|
233
|
+
&.is-medium
|
234
|
+
font-size: $size-medium
|
235
|
+
.file-icon
|
236
|
+
.fa
|
237
|
+
font-size: 21px
|
238
|
+
&.is-large
|
239
|
+
font-size: $size-large
|
240
|
+
.file-icon
|
241
|
+
.fa
|
242
|
+
font-size: 28px
|
243
|
+
// Modifiers
|
244
|
+
&.has-name
|
245
|
+
.file-cta
|
246
|
+
border-bottom-right-radius: 0
|
247
|
+
border-top-right-radius: 0
|
248
|
+
.file-name
|
249
|
+
border-bottom-left-radius: 0
|
250
|
+
border-top-left-radius: 0
|
251
|
+
&.is-centered
|
252
|
+
justify-content: center
|
253
|
+
&.is-right
|
254
|
+
justify-content: flex-end
|
255
|
+
&.is-boxed
|
256
|
+
.file-label
|
257
|
+
flex-direction: column
|
258
|
+
.file-cta
|
259
|
+
flex-direction: column
|
260
|
+
height: auto
|
261
|
+
padding: 1em 3em
|
262
|
+
.file-name
|
263
|
+
border-width: 0 1px 1px
|
264
|
+
.file-icon
|
265
|
+
height: 1.5em
|
266
|
+
width: 1.5em
|
267
|
+
.fa
|
268
|
+
font-size: 21px
|
269
|
+
&.is-small
|
270
|
+
.file-icon .fa
|
271
|
+
font-size: 14px
|
272
|
+
&.is-medium
|
273
|
+
.file-icon .fa
|
274
|
+
font-size: 28px
|
275
|
+
&.is-large
|
276
|
+
.file-icon .fa
|
277
|
+
font-size: 35px
|
278
|
+
&.has-name
|
279
|
+
.file-cta
|
280
|
+
border-radius: $file-radius $file-radius 0 0
|
281
|
+
.file-name
|
282
|
+
border-radius: 0 0 $file-radius $file-radius
|
283
|
+
border-width: 0 1px 1px
|
284
|
+
&.is-right
|
285
|
+
.file-cta
|
286
|
+
border-radius: 0 $file-radius $file-radius 0
|
287
|
+
.file-name
|
288
|
+
border-radius: $file-radius 0 0 $file-radius
|
289
|
+
border-width: 1px 0 1px 1px
|
290
|
+
order: -1
|
291
|
+
&.is-fullwidth
|
292
|
+
.file-label
|
293
|
+
width: 100%
|
294
|
+
.file-name
|
295
|
+
flex-grow: 1
|
296
|
+
max-width: none
|
297
|
+
|
298
|
+
.file-label
|
299
|
+
align-items: stretch
|
300
|
+
display: flex
|
301
|
+
cursor: pointer
|
302
|
+
justify-content: flex-start
|
303
|
+
overflow: hidden
|
304
|
+
position: relative
|
305
|
+
&:hover
|
306
|
+
.file-cta
|
307
|
+
background-color: darken($file-cta-background-color, 2.5%)
|
308
|
+
color: $file-cta-hover-color
|
309
|
+
.file-name
|
310
|
+
border-color: darken($file-name-border-color, 2.5%)
|
311
|
+
&:active
|
312
|
+
.file-cta
|
313
|
+
background-color: darken($file-cta-background-color, 5%)
|
314
|
+
color: $file-cta-active-color
|
315
|
+
.file-name
|
316
|
+
border-color: darken($file-name-border-color, 5%)
|
317
|
+
|
318
|
+
.file-input
|
319
|
+
height: 0.01em
|
320
|
+
left: 0
|
321
|
+
outline: none
|
322
|
+
position: absolute
|
323
|
+
top: 0
|
324
|
+
width: 0.01em
|
325
|
+
|
326
|
+
.file-cta,
|
327
|
+
.file-name
|
328
|
+
+control
|
329
|
+
border-color: $file-border-color
|
330
|
+
border-radius: $file-radius
|
331
|
+
font-size: 1em
|
332
|
+
padding-left: 1em
|
333
|
+
padding-right: 1em
|
334
|
+
white-space: nowrap
|
335
|
+
|
336
|
+
.file-cta
|
337
|
+
background-color: $file-cta-background-color
|
338
|
+
color: $file-cta-color
|
339
|
+
|
340
|
+
.file-name
|
341
|
+
border-color: $file-name-border-color
|
342
|
+
border-style: $file-name-border-style
|
343
|
+
border-width: $file-name-border-width
|
344
|
+
display: block
|
345
|
+
max-width: $file-name-max-width
|
346
|
+
overflow: hidden
|
347
|
+
text-align: left
|
348
|
+
text-overflow: ellipsis
|
349
|
+
|
350
|
+
.file-icon
|
351
|
+
align-items: center
|
352
|
+
display: flex
|
353
|
+
height: 1em
|
354
|
+
justify-content: center
|
355
|
+
margin-right: 0.5em
|
356
|
+
width: 1em
|
357
|
+
.fa
|
358
|
+
font-size: 14px
|
359
|
+
|
163
360
|
.label
|
164
|
-
color: $
|
361
|
+
color: $label-color
|
165
362
|
display: block
|
166
363
|
font-size: $size-normal
|
167
|
-
font-weight: $weight
|
364
|
+
font-weight: $label-weight
|
168
365
|
&:not(:last-child)
|
169
366
|
margin-bottom: 0.5em
|
170
367
|
// Sizes
|
@@ -177,7 +374,7 @@ $input-radius: $radius !default
|
|
177
374
|
|
178
375
|
.help
|
179
376
|
display: block
|
180
|
-
font-size: $size
|
377
|
+
font-size: $help-size
|
181
378
|
margin-top: 0.25rem
|
182
379
|
@each $name, $pair in $colors
|
183
380
|
$color: nth($pair, 1)
|
@@ -194,7 +391,8 @@ $input-radius: $radius !default
|
|
194
391
|
display: flex
|
195
392
|
justify-content: flex-start
|
196
393
|
.control
|
197
|
-
|
394
|
+
&:not(:last-child)
|
395
|
+
margin-right: -1px
|
198
396
|
&:first-child
|
199
397
|
.button,
|
200
398
|
.input,
|
@@ -246,6 +444,17 @@ $input-radius: $radius !default
|
|
246
444
|
justify-content: center
|
247
445
|
&.is-grouped-right
|
248
446
|
justify-content: flex-end
|
447
|
+
&.is-grouped-multiline
|
448
|
+
flex-wrap: wrap
|
449
|
+
& > .control
|
450
|
+
&:last-child,
|
451
|
+
&:not(:last-child)
|
452
|
+
margin-bottom: 0.75rem
|
453
|
+
&:last-child
|
454
|
+
margin-bottom: -0.75rem
|
455
|
+
&:not(:last-child)
|
456
|
+
margin-bottom: 0
|
457
|
+
|
249
458
|
&.is-horizontal
|
250
459
|
+tablet
|
251
460
|
display: flex
|
@@ -274,17 +483,20 @@ $input-radius: $radius !default
|
|
274
483
|
padding-top: 0.375em
|
275
484
|
|
276
485
|
.field-body
|
486
|
+
.field .field
|
487
|
+
margin-bottom: 0
|
277
488
|
+tablet
|
278
489
|
display: flex
|
279
490
|
flex-basis: 0
|
280
491
|
flex-grow: 5
|
281
492
|
flex-shrink: 1
|
282
493
|
.field
|
494
|
+
margin-bottom: 0
|
495
|
+
& > .field
|
283
496
|
flex-shrink: 1
|
284
497
|
&:not(.is-narrow)
|
285
498
|
flex-grow: 1
|
286
499
|
&:not(:last-child)
|
287
|
-
margin-bottom: 0
|
288
500
|
margin-right: 0.75rem
|
289
501
|
|
290
502
|
.control
|
@@ -295,7 +507,7 @@ $input-radius: $radius !default
|
|
295
507
|
// DEPRECATED
|
296
508
|
&.has-icon
|
297
509
|
.icon
|
298
|
-
color: $input-icon
|
510
|
+
color: $input-icon-color
|
299
511
|
height: 2.25em
|
300
512
|
pointer-events: none
|
301
513
|
position: absolute
|
@@ -305,7 +517,7 @@ $input-radius: $radius !default
|
|
305
517
|
.input
|
306
518
|
&:focus
|
307
519
|
& + .icon
|
308
|
-
color: $input-icon-active
|
520
|
+
color: $input-icon-active-color
|
309
521
|
&.is-small
|
310
522
|
& + .icon
|
311
523
|
font-size: $size-small
|
@@ -328,10 +540,10 @@ $input-radius: $radius !default
|
|
328
540
|
&.has-icons-left,
|
329
541
|
&.has-icons-right
|
330
542
|
.input,
|
331
|
-
.select
|
543
|
+
.select
|
332
544
|
&:focus
|
333
545
|
& ~ .icon
|
334
|
-
color: $input-icon-active
|
546
|
+
color: $input-icon-active-color
|
335
547
|
&.is-small ~ .icon
|
336
548
|
font-size: $size-small
|
337
549
|
&.is-medium ~ .icon
|
@@ -339,7 +551,7 @@ $input-radius: $radius !default
|
|
339
551
|
&.is-large ~ .icon
|
340
552
|
font-size: $size-large
|
341
553
|
.icon
|
342
|
-
color: $input-icon
|
554
|
+
color: $input-icon-color
|
343
555
|
height: 2.25em
|
344
556
|
pointer-events: none
|
345
557
|
position: absolute
|
@@ -359,7 +571,7 @@ $input-radius: $radius !default
|
|
359
571
|
.icon.is-right
|
360
572
|
right: 0
|
361
573
|
&.is-loading
|
362
|
-
|
574
|
+
&::after
|
363
575
|
+loader
|
364
576
|
position: absolute !important
|
365
577
|
right: 0.625em
|