bulma-sass-rails 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +4 -0
- data/README.md +43 -0
- data/app/assets/stylesheets/bulma-rtl.sass +3 -0
- data/app/assets/stylesheets/bulma.sass +10 -0
- data/app/assets/stylesheets/sass/base/_all.sass +6 -0
- data/app/assets/stylesheets/sass/base/animations.sass +5 -0
- data/app/assets/stylesheets/sass/base/generic.sass +145 -0
- data/app/assets/stylesheets/sass/base/helpers.sass +1 -0
- data/app/assets/stylesheets/sass/base/minireset.sass +79 -0
- data/app/assets/stylesheets/sass/components/_all.sass +15 -0
- data/app/assets/stylesheets/sass/components/breadcrumb.sass +77 -0
- data/app/assets/stylesheets/sass/components/card.sass +103 -0
- data/app/assets/stylesheets/sass/components/dropdown.sass +83 -0
- data/app/assets/stylesheets/sass/components/level.sass +79 -0
- data/app/assets/stylesheets/sass/components/media.sass +59 -0
- data/app/assets/stylesheets/sass/components/menu.sass +59 -0
- data/app/assets/stylesheets/sass/components/message.sass +101 -0
- data/app/assets/stylesheets/sass/components/modal.sass +117 -0
- data/app/assets/stylesheets/sass/components/navbar.sass +446 -0
- data/app/assets/stylesheets/sass/components/pagination.sass +167 -0
- data/app/assets/stylesheets/sass/components/panel.sass +121 -0
- data/app/assets/stylesheets/sass/components/tabs.sass +176 -0
- data/app/assets/stylesheets/sass/elements/_all.sass +16 -0
- data/app/assets/stylesheets/sass/elements/box.sass +26 -0
- data/app/assets/stylesheets/sass/elements/button.sass +345 -0
- data/app/assets/stylesheets/sass/elements/container.sass +29 -0
- data/app/assets/stylesheets/sass/elements/content.sass +159 -0
- data/app/assets/stylesheets/sass/elements/form.sass +1 -0
- data/app/assets/stylesheets/sass/elements/icon.sass +46 -0
- data/app/assets/stylesheets/sass/elements/image.sass +73 -0
- data/app/assets/stylesheets/sass/elements/notification.sass +52 -0
- data/app/assets/stylesheets/sass/elements/other.sass +31 -0
- data/app/assets/stylesheets/sass/elements/progress.sass +73 -0
- data/app/assets/stylesheets/sass/elements/table.sass +133 -0
- data/app/assets/stylesheets/sass/elements/tag.sass +140 -0
- data/app/assets/stylesheets/sass/elements/title.sass +70 -0
- data/app/assets/stylesheets/sass/form/_all.sass +9 -0
- data/app/assets/stylesheets/sass/form/checkbox-radio.sass +22 -0
- data/app/assets/stylesheets/sass/form/file.sass +184 -0
- data/app/assets/stylesheets/sass/form/input-textarea.sass +66 -0
- data/app/assets/stylesheets/sass/form/select.sass +87 -0
- data/app/assets/stylesheets/sass/form/shared.sass +60 -0
- data/app/assets/stylesheets/sass/form/tools.sass +215 -0
- data/app/assets/stylesheets/sass/grid/_all.sass +5 -0
- data/app/assets/stylesheets/sass/grid/columns.sass +513 -0
- data/app/assets/stylesheets/sass/grid/tiles.sass +36 -0
- data/app/assets/stylesheets/sass/helpers/_all.sass +12 -0
- data/app/assets/stylesheets/sass/helpers/color.sass +39 -0
- data/app/assets/stylesheets/sass/helpers/flexbox.sass +35 -0
- data/app/assets/stylesheets/sass/helpers/float.sass +10 -0
- data/app/assets/stylesheets/sass/helpers/other.sass +14 -0
- data/app/assets/stylesheets/sass/helpers/overflow.sass +2 -0
- data/app/assets/stylesheets/sass/helpers/position.sass +7 -0
- data/app/assets/stylesheets/sass/helpers/spacing.sass +31 -0
- data/app/assets/stylesheets/sass/helpers/typography.sass +103 -0
- data/app/assets/stylesheets/sass/helpers/visibility.sass +122 -0
- data/app/assets/stylesheets/sass/layout/_all.sass +6 -0
- data/app/assets/stylesheets/sass/layout/footer.sass +11 -0
- data/app/assets/stylesheets/sass/layout/hero.sass +153 -0
- data/app/assets/stylesheets/sass/layout/section.sass +17 -0
- data/app/assets/stylesheets/sass/utilities/_all.sass +9 -0
- data/app/assets/stylesheets/sass/utilities/animations.sass +1 -0
- data/app/assets/stylesheets/sass/utilities/controls.sass +49 -0
- data/app/assets/stylesheets/sass/utilities/derived-variables.sass +114 -0
- data/app/assets/stylesheets/sass/utilities/extends.sass +25 -0
- data/app/assets/stylesheets/sass/utilities/functions.sass +135 -0
- data/app/assets/stylesheets/sass/utilities/initial-variables.sass +78 -0
- data/app/assets/stylesheets/sass/utilities/mixins.sass +284 -0
- data/bulma-sass-rails.gemspec +18 -0
- data/lib/bulma/engine.rb +4 -0
- data/lib/bulma/version.rb +3 -0
- data/lib/bulma-sass-rails.rb +5 -0
- metadata +130 -0
@@ -0,0 +1,121 @@
|
|
1
|
+
@import "../utilities/mixins"
|
2
|
+
|
3
|
+
$panel-margin: $block-spacing !default
|
4
|
+
$panel-item-border: 1px solid $border-light !default
|
5
|
+
$panel-radius: $radius-large !default
|
6
|
+
$panel-shadow: $shadow !default
|
7
|
+
|
8
|
+
$panel-heading-background-color: $border-light !default
|
9
|
+
$panel-heading-color: $text-strong !default
|
10
|
+
$panel-heading-line-height: 1.25 !default
|
11
|
+
$panel-heading-padding: 0.75em 1em !default
|
12
|
+
$panel-heading-radius: $radius !default
|
13
|
+
$panel-heading-size: 1.25em !default
|
14
|
+
$panel-heading-weight: $weight-bold !default
|
15
|
+
|
16
|
+
$panel-tabs-font-size: 0.875em !default
|
17
|
+
$panel-tab-border-bottom: 1px solid $border !default
|
18
|
+
$panel-tab-active-border-bottom-color: $link-active-border !default
|
19
|
+
$panel-tab-active-color: $link-active !default
|
20
|
+
|
21
|
+
$panel-list-item-color: $text !default
|
22
|
+
$panel-list-item-hover-color: $link !default
|
23
|
+
|
24
|
+
$panel-block-color: $text-strong !default
|
25
|
+
$panel-block-hover-background-color: $background !default
|
26
|
+
$panel-block-active-border-left-color: $link !default
|
27
|
+
$panel-block-active-color: $link-active !default
|
28
|
+
$panel-block-active-icon-color: $link !default
|
29
|
+
|
30
|
+
$panel-icon-color: $text-light !default
|
31
|
+
$panel-colors: $colors !default
|
32
|
+
|
33
|
+
.panel
|
34
|
+
border-radius: $panel-radius
|
35
|
+
box-shadow: $panel-shadow
|
36
|
+
font-size: $size-normal
|
37
|
+
&:not(:last-child)
|
38
|
+
margin-bottom: $panel-margin
|
39
|
+
// Colors
|
40
|
+
@each $name, $components in $panel-colors
|
41
|
+
$color: nth($components, 1)
|
42
|
+
$color-invert: nth($components, 2)
|
43
|
+
&.is-#{$name}
|
44
|
+
.panel-heading
|
45
|
+
background-color: $color
|
46
|
+
color: $color-invert
|
47
|
+
.panel-tabs a.is-active
|
48
|
+
border-bottom-color: $color
|
49
|
+
.panel-block.is-active .panel-icon
|
50
|
+
color: $color
|
51
|
+
|
52
|
+
.panel-tabs,
|
53
|
+
.panel-block
|
54
|
+
&:not(:last-child)
|
55
|
+
border-bottom: $panel-item-border
|
56
|
+
|
57
|
+
.panel-heading
|
58
|
+
background-color: $panel-heading-background-color
|
59
|
+
border-radius: $panel-radius $panel-radius 0 0
|
60
|
+
color: $panel-heading-color
|
61
|
+
font-size: $panel-heading-size
|
62
|
+
font-weight: $panel-heading-weight
|
63
|
+
line-height: $panel-heading-line-height
|
64
|
+
padding: $panel-heading-padding
|
65
|
+
|
66
|
+
.panel-tabs
|
67
|
+
align-items: flex-end
|
68
|
+
display: flex
|
69
|
+
font-size: $panel-tabs-font-size
|
70
|
+
justify-content: center
|
71
|
+
a
|
72
|
+
border-bottom: $panel-tab-border-bottom
|
73
|
+
margin-bottom: -1px
|
74
|
+
padding: 0.5em
|
75
|
+
// Modifiers
|
76
|
+
&.is-active
|
77
|
+
border-bottom-color: $panel-tab-active-border-bottom-color
|
78
|
+
color: $panel-tab-active-color
|
79
|
+
|
80
|
+
.panel-list
|
81
|
+
a
|
82
|
+
color: $panel-list-item-color
|
83
|
+
&:hover
|
84
|
+
color: $panel-list-item-hover-color
|
85
|
+
|
86
|
+
.panel-block
|
87
|
+
align-items: center
|
88
|
+
color: $panel-block-color
|
89
|
+
display: flex
|
90
|
+
justify-content: flex-start
|
91
|
+
padding: 0.5em 0.75em
|
92
|
+
input[type="checkbox"]
|
93
|
+
+ltr-property("margin", 0.75em)
|
94
|
+
& > .control
|
95
|
+
flex-grow: 1
|
96
|
+
flex-shrink: 1
|
97
|
+
width: 100%
|
98
|
+
&.is-wrapped
|
99
|
+
flex-wrap: wrap
|
100
|
+
&.is-active
|
101
|
+
border-left-color: $panel-block-active-border-left-color
|
102
|
+
color: $panel-block-active-color
|
103
|
+
.panel-icon
|
104
|
+
color: $panel-block-active-icon-color
|
105
|
+
&:last-child
|
106
|
+
border-bottom-left-radius: $panel-radius
|
107
|
+
border-bottom-right-radius: $panel-radius
|
108
|
+
|
109
|
+
a.panel-block,
|
110
|
+
label.panel-block
|
111
|
+
cursor: pointer
|
112
|
+
&:hover
|
113
|
+
background-color: $panel-block-hover-background-color
|
114
|
+
|
115
|
+
.panel-icon
|
116
|
+
+fa(14px, 1em)
|
117
|
+
color: $panel-icon-color
|
118
|
+
+ltr-property("margin", 0.75em)
|
119
|
+
.fa
|
120
|
+
font-size: inherit
|
121
|
+
line-height: inherit
|
@@ -0,0 +1,176 @@
|
|
1
|
+
@import "../utilities/mixins"
|
2
|
+
|
3
|
+
$tabs-border-bottom-color: $border !default
|
4
|
+
$tabs-border-bottom-style: solid !default
|
5
|
+
$tabs-border-bottom-width: 1px !default
|
6
|
+
$tabs-link-color: $text !default
|
7
|
+
$tabs-link-hover-border-bottom-color: $text-strong !default
|
8
|
+
$tabs-link-hover-color: $text-strong !default
|
9
|
+
$tabs-link-active-border-bottom-color: $link !default
|
10
|
+
$tabs-link-active-color: $link !default
|
11
|
+
$tabs-link-padding: 0.5em 1em !default
|
12
|
+
|
13
|
+
$tabs-boxed-link-radius: $radius !default
|
14
|
+
$tabs-boxed-link-hover-background-color: $background !default
|
15
|
+
$tabs-boxed-link-hover-border-bottom-color: $border !default
|
16
|
+
|
17
|
+
$tabs-boxed-link-active-background-color: $scheme-main !default
|
18
|
+
$tabs-boxed-link-active-border-color: $border !default
|
19
|
+
$tabs-boxed-link-active-border-bottom-color: transparent !default
|
20
|
+
|
21
|
+
$tabs-toggle-link-border-color: $border !default
|
22
|
+
$tabs-toggle-link-border-style: solid !default
|
23
|
+
$tabs-toggle-link-border-width: 1px !default
|
24
|
+
$tabs-toggle-link-hover-background-color: $background !default
|
25
|
+
$tabs-toggle-link-hover-border-color: $border-hover !default
|
26
|
+
$tabs-toggle-link-radius: $radius !default
|
27
|
+
$tabs-toggle-link-active-background-color: $link !default
|
28
|
+
$tabs-toggle-link-active-border-color: $link !default
|
29
|
+
$tabs-toggle-link-active-color: $link-invert !default
|
30
|
+
|
31
|
+
.tabs
|
32
|
+
@extend %block
|
33
|
+
+overflow-touch
|
34
|
+
@extend %unselectable
|
35
|
+
align-items: stretch
|
36
|
+
display: flex
|
37
|
+
font-size: $size-normal
|
38
|
+
justify-content: space-between
|
39
|
+
overflow: hidden
|
40
|
+
overflow-x: auto
|
41
|
+
white-space: nowrap
|
42
|
+
a
|
43
|
+
align-items: center
|
44
|
+
border-bottom-color: $tabs-border-bottom-color
|
45
|
+
border-bottom-style: $tabs-border-bottom-style
|
46
|
+
border-bottom-width: $tabs-border-bottom-width
|
47
|
+
color: $tabs-link-color
|
48
|
+
display: flex
|
49
|
+
justify-content: center
|
50
|
+
margin-bottom: -#{$tabs-border-bottom-width}
|
51
|
+
padding: $tabs-link-padding
|
52
|
+
vertical-align: top
|
53
|
+
&:hover
|
54
|
+
border-bottom-color: $tabs-link-hover-border-bottom-color
|
55
|
+
color: $tabs-link-hover-color
|
56
|
+
li
|
57
|
+
display: block
|
58
|
+
&.is-active
|
59
|
+
a
|
60
|
+
border-bottom-color: $tabs-link-active-border-bottom-color
|
61
|
+
color: $tabs-link-active-color
|
62
|
+
ul
|
63
|
+
align-items: center
|
64
|
+
border-bottom-color: $tabs-border-bottom-color
|
65
|
+
border-bottom-style: $tabs-border-bottom-style
|
66
|
+
border-bottom-width: $tabs-border-bottom-width
|
67
|
+
display: flex
|
68
|
+
flex-grow: 1
|
69
|
+
flex-shrink: 0
|
70
|
+
justify-content: flex-start
|
71
|
+
&.is-left
|
72
|
+
padding-right: 0.75em
|
73
|
+
&.is-center
|
74
|
+
flex: none
|
75
|
+
justify-content: center
|
76
|
+
padding-left: 0.75em
|
77
|
+
padding-right: 0.75em
|
78
|
+
&.is-right
|
79
|
+
justify-content: flex-end
|
80
|
+
padding-left: 0.75em
|
81
|
+
.icon
|
82
|
+
&:first-child
|
83
|
+
+ltr-property("margin", 0.5em)
|
84
|
+
&:last-child
|
85
|
+
+ltr-property("margin", 0.5em, false)
|
86
|
+
// Alignment
|
87
|
+
&.is-centered
|
88
|
+
ul
|
89
|
+
justify-content: center
|
90
|
+
&.is-right
|
91
|
+
ul
|
92
|
+
justify-content: flex-end
|
93
|
+
// Styles
|
94
|
+
&.is-boxed
|
95
|
+
a
|
96
|
+
border: 1px solid transparent
|
97
|
+
+ltr
|
98
|
+
border-radius: $tabs-boxed-link-radius $tabs-boxed-link-radius 0 0
|
99
|
+
+rtl
|
100
|
+
border-radius: 0 0 $tabs-boxed-link-radius $tabs-boxed-link-radius
|
101
|
+
&:hover
|
102
|
+
background-color: $tabs-boxed-link-hover-background-color
|
103
|
+
border-bottom-color: $tabs-boxed-link-hover-border-bottom-color
|
104
|
+
li
|
105
|
+
&.is-active
|
106
|
+
a
|
107
|
+
background-color: $tabs-boxed-link-active-background-color
|
108
|
+
border-color: $tabs-boxed-link-active-border-color
|
109
|
+
border-bottom-color: $tabs-boxed-link-active-border-bottom-color !important
|
110
|
+
&.is-fullwidth
|
111
|
+
li
|
112
|
+
flex-grow: 1
|
113
|
+
flex-shrink: 0
|
114
|
+
&.is-toggle
|
115
|
+
a
|
116
|
+
border-color: $tabs-toggle-link-border-color
|
117
|
+
border-style: $tabs-toggle-link-border-style
|
118
|
+
border-width: $tabs-toggle-link-border-width
|
119
|
+
margin-bottom: 0
|
120
|
+
position: relative
|
121
|
+
&:hover
|
122
|
+
background-color: $tabs-toggle-link-hover-background-color
|
123
|
+
border-color: $tabs-toggle-link-hover-border-color
|
124
|
+
z-index: 2
|
125
|
+
li
|
126
|
+
& + li
|
127
|
+
+ltr-property("margin", -#{$tabs-toggle-link-border-width}, false)
|
128
|
+
&:first-child a
|
129
|
+
+ltr
|
130
|
+
border-top-left-radius: $tabs-toggle-link-radius
|
131
|
+
border-bottom-left-radius: $tabs-toggle-link-radius
|
132
|
+
+rtl
|
133
|
+
border-top-right-radius: $tabs-toggle-link-radius
|
134
|
+
border-bottom-right-radius: $tabs-toggle-link-radius
|
135
|
+
&:last-child a
|
136
|
+
+ltr
|
137
|
+
border-top-right-radius: $tabs-toggle-link-radius
|
138
|
+
border-bottom-right-radius: $tabs-toggle-link-radius
|
139
|
+
+rtl
|
140
|
+
border-top-left-radius: $tabs-toggle-link-radius
|
141
|
+
border-bottom-left-radius: $tabs-toggle-link-radius
|
142
|
+
&.is-active
|
143
|
+
a
|
144
|
+
background-color: $tabs-toggle-link-active-background-color
|
145
|
+
border-color: $tabs-toggle-link-active-border-color
|
146
|
+
color: $tabs-toggle-link-active-color
|
147
|
+
z-index: 1
|
148
|
+
ul
|
149
|
+
border-bottom: none
|
150
|
+
&.is-toggle-rounded
|
151
|
+
li
|
152
|
+
&:first-child a
|
153
|
+
+ltr
|
154
|
+
border-bottom-left-radius: $radius-rounded
|
155
|
+
border-top-left-radius: $radius-rounded
|
156
|
+
padding-left: 1.25em
|
157
|
+
+rtl
|
158
|
+
border-bottom-right-radius: $radius-rounded
|
159
|
+
border-top-right-radius: $radius-rounded
|
160
|
+
padding-right: 1.25em
|
161
|
+
&:last-child a
|
162
|
+
+ltr
|
163
|
+
border-bottom-right-radius: $radius-rounded
|
164
|
+
border-top-right-radius: $radius-rounded
|
165
|
+
padding-right: 1.25em
|
166
|
+
+rtl
|
167
|
+
border-bottom-left-radius: $radius-rounded
|
168
|
+
border-top-left-radius: $radius-rounded
|
169
|
+
padding-left: 1.25em
|
170
|
+
// Sizes
|
171
|
+
&.is-small
|
172
|
+
font-size: $size-small
|
173
|
+
&.is-medium
|
174
|
+
font-size: $size-medium
|
175
|
+
&.is-large
|
176
|
+
font-size: $size-large
|
@@ -0,0 +1,16 @@
|
|
1
|
+
/* Bulma Elements */
|
2
|
+
@charset "utf-8"
|
3
|
+
|
4
|
+
@import "box"
|
5
|
+
@import "button"
|
6
|
+
@import "container"
|
7
|
+
@import "content"
|
8
|
+
@import "icon"
|
9
|
+
@import "image"
|
10
|
+
@import "notification"
|
11
|
+
@import "progress"
|
12
|
+
@import "table"
|
13
|
+
@import "tag"
|
14
|
+
@import "title"
|
15
|
+
|
16
|
+
@import "other"
|
@@ -0,0 +1,26 @@
|
|
1
|
+
@import "../utilities/mixins"
|
2
|
+
|
3
|
+
$box-color: $text !default
|
4
|
+
$box-background-color: $scheme-main !default
|
5
|
+
$box-radius: $radius-large !default
|
6
|
+
$box-shadow: $shadow !default
|
7
|
+
$box-padding: 1.25rem !default
|
8
|
+
|
9
|
+
$box-link-hover-shadow: 0 0.5em 1em -0.125em rgba($scheme-invert, 0.1), 0 0 0 1px $link !default
|
10
|
+
$box-link-active-shadow: inset 0 1px 2px rgba($scheme-invert, 0.2), 0 0 0 1px $link !default
|
11
|
+
|
12
|
+
.box
|
13
|
+
@extend %block
|
14
|
+
background-color: $box-background-color
|
15
|
+
border-radius: $box-radius
|
16
|
+
box-shadow: $box-shadow
|
17
|
+
color: $box-color
|
18
|
+
display: block
|
19
|
+
padding: $box-padding
|
20
|
+
|
21
|
+
a.box
|
22
|
+
&:hover,
|
23
|
+
&:focus
|
24
|
+
box-shadow: $box-link-hover-shadow
|
25
|
+
&:active
|
26
|
+
box-shadow: $box-link-active-shadow
|
@@ -0,0 +1,345 @@
|
|
1
|
+
@import "../utilities/controls"
|
2
|
+
@import "../utilities/mixins"
|
3
|
+
|
4
|
+
$button-color: $text-strong !default
|
5
|
+
$button-background-color: $scheme-main !default
|
6
|
+
$button-family: false !default
|
7
|
+
|
8
|
+
$button-border-color: $border !default
|
9
|
+
$button-border-width: $control-border-width !default
|
10
|
+
|
11
|
+
$button-padding-vertical: calc(0.5em - #{$button-border-width}) !default
|
12
|
+
$button-padding-horizontal: 1em !default
|
13
|
+
|
14
|
+
$button-hover-color: $link-hover !default
|
15
|
+
$button-hover-border-color: $link-hover-border !default
|
16
|
+
|
17
|
+
$button-focus-color: $link-focus !default
|
18
|
+
$button-focus-border-color: $link-focus-border !default
|
19
|
+
$button-focus-box-shadow-size: 0 0 0 0.125em !default
|
20
|
+
$button-focus-box-shadow-color: bulmaRgba($link, 0.25) !default
|
21
|
+
|
22
|
+
$button-active-color: $link-active !default
|
23
|
+
$button-active-border-color: $link-active-border !default
|
24
|
+
|
25
|
+
$button-text-color: $text !default
|
26
|
+
$button-text-decoration: underline !default
|
27
|
+
$button-text-hover-background-color: $background !default
|
28
|
+
$button-text-hover-color: $text-strong !default
|
29
|
+
|
30
|
+
$button-ghost-background: none !default
|
31
|
+
$button-ghost-border-color: transparent !default
|
32
|
+
$button-ghost-color: $link !default
|
33
|
+
$button-ghost-decoration: none !default
|
34
|
+
$button-ghost-hover-color: $link !default
|
35
|
+
$button-ghost-hover-decoration: underline !default
|
36
|
+
|
37
|
+
$button-disabled-background-color: $scheme-main !default
|
38
|
+
$button-disabled-border-color: $border !default
|
39
|
+
$button-disabled-shadow: none !default
|
40
|
+
$button-disabled-opacity: 0.5 !default
|
41
|
+
|
42
|
+
$button-static-color: $text-light !default
|
43
|
+
$button-static-background-color: $scheme-main-ter !default
|
44
|
+
$button-static-border-color: $border !default
|
45
|
+
|
46
|
+
$button-colors: $colors !default
|
47
|
+
|
48
|
+
// The button sizes use mixins so they can be used at different breakpoints
|
49
|
+
=button-small
|
50
|
+
&:not(.is-rounded)
|
51
|
+
border-radius: $radius-small
|
52
|
+
font-size: $size-small
|
53
|
+
=button-normal
|
54
|
+
font-size: $size-normal
|
55
|
+
=button-medium
|
56
|
+
font-size: $size-medium
|
57
|
+
=button-large
|
58
|
+
font-size: $size-large
|
59
|
+
|
60
|
+
.button
|
61
|
+
@extend %control
|
62
|
+
@extend %unselectable
|
63
|
+
background-color: $button-background-color
|
64
|
+
border-color: $button-border-color
|
65
|
+
border-width: $button-border-width
|
66
|
+
color: $button-color
|
67
|
+
cursor: pointer
|
68
|
+
@if $button-family
|
69
|
+
font-family: $button-family
|
70
|
+
justify-content: center
|
71
|
+
padding-bottom: $button-padding-vertical
|
72
|
+
padding-left: $button-padding-horizontal
|
73
|
+
padding-right: $button-padding-horizontal
|
74
|
+
padding-top: $button-padding-vertical
|
75
|
+
text-align: center
|
76
|
+
white-space: nowrap
|
77
|
+
strong
|
78
|
+
color: inherit
|
79
|
+
.icon
|
80
|
+
&,
|
81
|
+
&.is-small,
|
82
|
+
&.is-medium,
|
83
|
+
&.is-large
|
84
|
+
height: 1.5em
|
85
|
+
width: 1.5em
|
86
|
+
&:first-child:not(:last-child)
|
87
|
+
+ltr-property("margin", calc(#{-0.5 * $button-padding-horizontal} - #{$button-border-width}), false)
|
88
|
+
+ltr-property("margin", $button-padding-horizontal * 0.25)
|
89
|
+
&:last-child:not(:first-child)
|
90
|
+
+ltr-property("margin", $button-padding-horizontal * 0.25, false)
|
91
|
+
+ltr-property("margin", calc(#{-0.5 * $button-padding-horizontal} - #{$button-border-width}))
|
92
|
+
&:first-child:last-child
|
93
|
+
margin-left: calc(#{-0.5 * $button-padding-horizontal} - #{$button-border-width})
|
94
|
+
margin-right: calc(#{-0.5 * $button-padding-horizontal} - #{$button-border-width})
|
95
|
+
// States
|
96
|
+
&:hover,
|
97
|
+
&.is-hovered
|
98
|
+
border-color: $button-hover-border-color
|
99
|
+
color: $button-hover-color
|
100
|
+
&:focus,
|
101
|
+
&.is-focused
|
102
|
+
border-color: $button-focus-border-color
|
103
|
+
color: $button-focus-color
|
104
|
+
&:not(:active)
|
105
|
+
box-shadow: $button-focus-box-shadow-size $button-focus-box-shadow-color
|
106
|
+
&:active,
|
107
|
+
&.is-active
|
108
|
+
border-color: $button-active-border-color
|
109
|
+
color: $button-active-color
|
110
|
+
// Colors
|
111
|
+
&.is-text
|
112
|
+
background-color: transparent
|
113
|
+
border-color: transparent
|
114
|
+
color: $button-text-color
|
115
|
+
text-decoration: $button-text-decoration
|
116
|
+
&:hover,
|
117
|
+
&.is-hovered,
|
118
|
+
&:focus,
|
119
|
+
&.is-focused
|
120
|
+
background-color: $button-text-hover-background-color
|
121
|
+
color: $button-text-hover-color
|
122
|
+
&:active,
|
123
|
+
&.is-active
|
124
|
+
background-color: bulmaDarken($button-text-hover-background-color, 5%)
|
125
|
+
color: $button-text-hover-color
|
126
|
+
&[disabled],
|
127
|
+
fieldset[disabled] &
|
128
|
+
background-color: transparent
|
129
|
+
border-color: transparent
|
130
|
+
box-shadow: none
|
131
|
+
&.is-ghost
|
132
|
+
background: $button-ghost-background
|
133
|
+
border-color: $button-ghost-border-color
|
134
|
+
color: $button-ghost-color
|
135
|
+
text-decoration: $button-ghost-decoration
|
136
|
+
&:hover,
|
137
|
+
&.is-hovered
|
138
|
+
color: $button-ghost-hover-color
|
139
|
+
text-decoration: $button-ghost-hover-decoration
|
140
|
+
@each $name, $pair in $button-colors
|
141
|
+
$color: nth($pair, 1)
|
142
|
+
$color-invert: nth($pair, 2)
|
143
|
+
&.is-#{$name}
|
144
|
+
background-color: $color
|
145
|
+
border-color: transparent
|
146
|
+
color: $color-invert
|
147
|
+
&:hover,
|
148
|
+
&.is-hovered
|
149
|
+
background-color: bulmaDarken($color, 2.5%)
|
150
|
+
border-color: transparent
|
151
|
+
color: $color-invert
|
152
|
+
&:focus,
|
153
|
+
&.is-focused
|
154
|
+
border-color: transparent
|
155
|
+
color: $color-invert
|
156
|
+
&:not(:active)
|
157
|
+
box-shadow: $button-focus-box-shadow-size bulmaRgba($color, 0.25)
|
158
|
+
&:active,
|
159
|
+
&.is-active
|
160
|
+
background-color: bulmaDarken($color, 5%)
|
161
|
+
border-color: transparent
|
162
|
+
color: $color-invert
|
163
|
+
&[disabled],
|
164
|
+
fieldset[disabled] &
|
165
|
+
background-color: $color
|
166
|
+
border-color: transparent
|
167
|
+
box-shadow: none
|
168
|
+
&.is-inverted
|
169
|
+
background-color: $color-invert
|
170
|
+
color: $color
|
171
|
+
&:hover,
|
172
|
+
&.is-hovered
|
173
|
+
background-color: bulmaDarken($color-invert, 5%)
|
174
|
+
&[disabled],
|
175
|
+
fieldset[disabled] &
|
176
|
+
background-color: $color-invert
|
177
|
+
border-color: transparent
|
178
|
+
box-shadow: none
|
179
|
+
color: $color
|
180
|
+
&.is-loading
|
181
|
+
&::after
|
182
|
+
border-color: transparent transparent $color-invert $color-invert !important
|
183
|
+
&.is-outlined
|
184
|
+
background-color: transparent
|
185
|
+
border-color: $color
|
186
|
+
color: $color
|
187
|
+
&:hover,
|
188
|
+
&.is-hovered,
|
189
|
+
&:focus,
|
190
|
+
&.is-focused
|
191
|
+
background-color: $color
|
192
|
+
border-color: $color
|
193
|
+
color: $color-invert
|
194
|
+
&.is-loading
|
195
|
+
&::after
|
196
|
+
border-color: transparent transparent $color $color !important
|
197
|
+
&:hover,
|
198
|
+
&.is-hovered,
|
199
|
+
&:focus,
|
200
|
+
&.is-focused
|
201
|
+
&::after
|
202
|
+
border-color: transparent transparent $color-invert $color-invert !important
|
203
|
+
&[disabled],
|
204
|
+
fieldset[disabled] &
|
205
|
+
background-color: transparent
|
206
|
+
border-color: $color
|
207
|
+
box-shadow: none
|
208
|
+
color: $color
|
209
|
+
&.is-inverted.is-outlined
|
210
|
+
background-color: transparent
|
211
|
+
border-color: $color-invert
|
212
|
+
color: $color-invert
|
213
|
+
&:hover,
|
214
|
+
&.is-hovered,
|
215
|
+
&:focus,
|
216
|
+
&.is-focused
|
217
|
+
background-color: $color-invert
|
218
|
+
color: $color
|
219
|
+
&.is-loading
|
220
|
+
&:hover,
|
221
|
+
&.is-hovered,
|
222
|
+
&:focus,
|
223
|
+
&.is-focused
|
224
|
+
&::after
|
225
|
+
border-color: transparent transparent $color $color !important
|
226
|
+
&[disabled],
|
227
|
+
fieldset[disabled] &
|
228
|
+
background-color: transparent
|
229
|
+
border-color: $color-invert
|
230
|
+
box-shadow: none
|
231
|
+
color: $color-invert
|
232
|
+
// If light and dark colors are provided
|
233
|
+
@if length($pair) >= 4
|
234
|
+
$color-light: nth($pair, 3)
|
235
|
+
$color-dark: nth($pair, 4)
|
236
|
+
&.is-light
|
237
|
+
background-color: $color-light
|
238
|
+
color: $color-dark
|
239
|
+
&:hover,
|
240
|
+
&.is-hovered
|
241
|
+
background-color: bulmaDarken($color-light, 2.5%)
|
242
|
+
border-color: transparent
|
243
|
+
color: $color-dark
|
244
|
+
&:active,
|
245
|
+
&.is-active
|
246
|
+
background-color: bulmaDarken($color-light, 5%)
|
247
|
+
border-color: transparent
|
248
|
+
color: $color-dark
|
249
|
+
// Sizes
|
250
|
+
&.is-small
|
251
|
+
+button-small
|
252
|
+
&.is-normal
|
253
|
+
+button-normal
|
254
|
+
&.is-medium
|
255
|
+
+button-medium
|
256
|
+
&.is-large
|
257
|
+
+button-large
|
258
|
+
// Modifiers
|
259
|
+
&[disabled],
|
260
|
+
fieldset[disabled] &
|
261
|
+
background-color: $button-disabled-background-color
|
262
|
+
border-color: $button-disabled-border-color
|
263
|
+
box-shadow: $button-disabled-shadow
|
264
|
+
opacity: $button-disabled-opacity
|
265
|
+
&.is-fullwidth
|
266
|
+
display: flex
|
267
|
+
width: 100%
|
268
|
+
&.is-loading
|
269
|
+
color: transparent !important
|
270
|
+
pointer-events: none
|
271
|
+
&::after
|
272
|
+
@extend %loader
|
273
|
+
+center(1em)
|
274
|
+
position: absolute !important
|
275
|
+
&.is-static
|
276
|
+
background-color: $button-static-background-color
|
277
|
+
border-color: $button-static-border-color
|
278
|
+
color: $button-static-color
|
279
|
+
box-shadow: none
|
280
|
+
pointer-events: none
|
281
|
+
&.is-rounded
|
282
|
+
border-radius: $radius-rounded
|
283
|
+
padding-left: calc(#{$button-padding-horizontal} + 0.25em)
|
284
|
+
padding-right: calc(#{$button-padding-horizontal} + 0.25em)
|
285
|
+
|
286
|
+
.buttons
|
287
|
+
align-items: center
|
288
|
+
display: flex
|
289
|
+
flex-wrap: wrap
|
290
|
+
justify-content: flex-start
|
291
|
+
.button
|
292
|
+
margin-bottom: 0.5rem
|
293
|
+
&:not(:last-child):not(.is-fullwidth)
|
294
|
+
+ltr-property("margin", 0.5rem)
|
295
|
+
&:last-child
|
296
|
+
margin-bottom: -0.5rem
|
297
|
+
&:not(:last-child)
|
298
|
+
margin-bottom: 1rem
|
299
|
+
// Sizes
|
300
|
+
&.are-small
|
301
|
+
.button:not(.is-normal):not(.is-medium):not(.is-large)
|
302
|
+
+button-small
|
303
|
+
&.are-medium
|
304
|
+
.button:not(.is-small):not(.is-normal):not(.is-large)
|
305
|
+
+button-medium
|
306
|
+
&.are-large
|
307
|
+
.button:not(.is-small):not(.is-normal):not(.is-medium)
|
308
|
+
+button-large
|
309
|
+
&.has-addons
|
310
|
+
.button
|
311
|
+
&:not(:first-child)
|
312
|
+
border-bottom-left-radius: 0
|
313
|
+
border-top-left-radius: 0
|
314
|
+
&:not(:last-child)
|
315
|
+
border-bottom-right-radius: 0
|
316
|
+
border-top-right-radius: 0
|
317
|
+
+ltr-property("margin", -1px)
|
318
|
+
&:last-child
|
319
|
+
+ltr-property("margin", 0)
|
320
|
+
&:hover,
|
321
|
+
&.is-hovered
|
322
|
+
z-index: 2
|
323
|
+
&:focus,
|
324
|
+
&.is-focused,
|
325
|
+
&:active,
|
326
|
+
&.is-active,
|
327
|
+
&.is-selected
|
328
|
+
z-index: 3
|
329
|
+
&:hover
|
330
|
+
z-index: 4
|
331
|
+
&.is-expanded
|
332
|
+
flex-grow: 1
|
333
|
+
flex-shrink: 1
|
334
|
+
&.is-centered
|
335
|
+
justify-content: center
|
336
|
+
&:not(.has-addons)
|
337
|
+
.button:not(.is-fullwidth)
|
338
|
+
margin-left: 0.25rem
|
339
|
+
margin-right: 0.25rem
|
340
|
+
&.is-right
|
341
|
+
justify-content: flex-end
|
342
|
+
&:not(.has-addons)
|
343
|
+
.button:not(.is-fullwidth)
|
344
|
+
margin-left: 0.25rem
|
345
|
+
margin-right: 0.25rem
|
@@ -0,0 +1,29 @@
|
|
1
|
+
@import "../utilities/mixins"
|
2
|
+
|
3
|
+
$container-offset: (2 * $gap) !default
|
4
|
+
$container-max-width: $fullhd !default
|
5
|
+
|
6
|
+
.container
|
7
|
+
flex-grow: 1
|
8
|
+
margin: 0 auto
|
9
|
+
position: relative
|
10
|
+
width: auto
|
11
|
+
&.is-fluid
|
12
|
+
max-width: none !important
|
13
|
+
padding-left: $gap
|
14
|
+
padding-right: $gap
|
15
|
+
width: 100%
|
16
|
+
+desktop
|
17
|
+
max-width: $desktop - $container-offset
|
18
|
+
+until-widescreen
|
19
|
+
&.is-widescreen:not(.is-max-desktop)
|
20
|
+
max-width: min($widescreen, $container-max-width) - $container-offset
|
21
|
+
+until-fullhd
|
22
|
+
&.is-fullhd:not(.is-max-desktop):not(.is-max-widescreen)
|
23
|
+
max-width: min($fullhd, $container-max-width) - $container-offset
|
24
|
+
+widescreen
|
25
|
+
&:not(.is-max-desktop)
|
26
|
+
max-width: min($widescreen, $container-max-width) - $container-offset
|
27
|
+
+fullhd
|
28
|
+
&:not(.is-max-desktop):not(.is-max-widescreen)
|
29
|
+
max-width: min($fullhd, $container-max-width) - $container-offset
|