jekyll-theme-opentoolbox 1.0.8 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +58 -31
- data/_includes/banner.html +4 -4
- data/_includes/callouts.html +10 -3
- data/_includes/contribute.html +19 -0
- data/_includes/credits.html +13 -0
- data/_includes/disqus.html +16 -16
- data/_includes/footer.html +7 -18
- data/_includes/gallery.html +24 -24
- data/_includes/google-analytics.html +7 -7
- data/_includes/header.html +11 -12
- data/_includes/icon.html +3 -0
- data/_includes/image-modal.html +18 -18
- data/_includes/important-message.html +5 -0
- data/_includes/latest-posts.html +14 -12
- data/_includes/menubar.html +20 -20
- data/_includes/notification.html +17 -16
- data/_includes/pagination.html +21 -23
- data/_includes/post-card.html +2 -2
- data/_includes/section-divider.html +5 -0
- data/_includes/setup.html +11 -0
- data/_includes/showcase.html +1 -1
- data/_includes/simple_banner.html +11 -0
- data/_includes/sponsors.html +43 -41
- data/_includes/subscribe.html +15 -5
- data/_includes/tabs.html +18 -17
- data/_includes/tag.html +2 -2
- data/_includes/toc.html +82 -82
- data/_includes/vimeo.html +2 -2
- data/_includes/youtube.html +7 -7
- data/_layouts/base.html +25 -0
- data/_layouts/blog.html +4 -3
- data/_layouts/default.html +34 -61
- data/_layouts/page.html +10 -10
- data/_layouts/post.html +50 -17
- data/_layouts/resource.html +1 -1
- data/_posts/2021-03-24-hello.md +1 -0
- data/_sass/_external.scss +1 -0
- data/_sass/_layout.scss +48 -36
- data/_sass/_main.scss +49 -22
- data/_sass/_showcase.scss +12 -12
- data/_sass/{syntax.scss → _syntax.scss} +209 -209
- data/_sass/_variables.scss +126 -0
- data/_sass/highlight/_dark.scss +71 -0
- data/_sass/highlight/_light.scss +259 -0
- data/assets/css/app.scss +8 -147
- data/blog/index.html +4 -2
- data/node_modules/bulma/CHANGELOG.md +1558 -1558
- data/node_modules/bulma/LICENSE +21 -21
- data/node_modules/bulma/README.md +134 -134
- data/node_modules/bulma/bulma.sass +10 -10
- data/node_modules/bulma/css/bulma-rtl.css +11810 -11810
- data/node_modules/bulma/css/bulma.css +11810 -11810
- data/node_modules/bulma/package.json +81 -81
- data/node_modules/bulma/sass/base/_all.sass +6 -6
- data/node_modules/bulma/sass/base/animations.sass +5 -5
- data/node_modules/bulma/sass/base/generic.sass +145 -145
- data/node_modules/bulma/sass/base/helpers.sass +1 -1
- data/node_modules/bulma/sass/base/minireset.sass +79 -79
- data/node_modules/bulma/sass/components/_all.sass +15 -15
- data/node_modules/bulma/sass/components/breadcrumb.sass +77 -77
- data/node_modules/bulma/sass/components/card.sass +103 -103
- data/node_modules/bulma/sass/components/dropdown.sass +83 -83
- data/node_modules/bulma/sass/components/level.sass +79 -79
- data/node_modules/bulma/sass/components/media.sass +59 -59
- data/node_modules/bulma/sass/components/menu.sass +59 -59
- data/node_modules/bulma/sass/components/message.sass +101 -101
- data/node_modules/bulma/sass/components/modal.sass +117 -117
- data/node_modules/bulma/sass/components/navbar.sass +446 -446
- data/node_modules/bulma/sass/components/pagination.sass +166 -166
- data/node_modules/bulma/sass/components/panel.sass +121 -121
- data/node_modules/bulma/sass/components/tabs.sass +176 -176
- data/node_modules/bulma/sass/elements/_all.sass +16 -16
- data/node_modules/bulma/sass/elements/box.sass +26 -26
- data/node_modules/bulma/sass/elements/button.sass +345 -345
- data/node_modules/bulma/sass/elements/container.sass +29 -29
- data/node_modules/bulma/sass/elements/content.sass +159 -159
- data/node_modules/bulma/sass/elements/form.sass +1 -1
- data/node_modules/bulma/sass/elements/icon.sass +46 -46
- data/node_modules/bulma/sass/elements/image.sass +73 -73
- data/node_modules/bulma/sass/elements/notification.sass +52 -52
- data/node_modules/bulma/sass/elements/other.sass +31 -31
- data/node_modules/bulma/sass/elements/progress.sass +73 -73
- data/node_modules/bulma/sass/elements/table.sass +133 -133
- data/node_modules/bulma/sass/elements/tag.sass +140 -140
- data/node_modules/bulma/sass/elements/title.sass +70 -70
- data/node_modules/bulma/sass/form/_all.sass +9 -9
- data/node_modules/bulma/sass/form/checkbox-radio.sass +22 -22
- data/node_modules/bulma/sass/form/file.sass +184 -184
- data/node_modules/bulma/sass/form/input-textarea.sass +66 -66
- data/node_modules/bulma/sass/form/select.sass +87 -87
- data/node_modules/bulma/sass/form/shared.sass +60 -60
- data/node_modules/bulma/sass/form/tools.sass +215 -215
- data/node_modules/bulma/sass/grid/_all.sass +5 -5
- data/node_modules/bulma/sass/grid/columns.sass +513 -513
- data/node_modules/bulma/sass/grid/tiles.sass +36 -36
- data/node_modules/bulma/sass/helpers/_all.sass +12 -12
- data/node_modules/bulma/sass/helpers/color.sass +39 -39
- data/node_modules/bulma/sass/helpers/flexbox.sass +35 -35
- data/node_modules/bulma/sass/helpers/float.sass +10 -10
- data/node_modules/bulma/sass/helpers/other.sass +14 -14
- data/node_modules/bulma/sass/helpers/overflow.sass +2 -2
- data/node_modules/bulma/sass/helpers/position.sass +7 -7
- data/node_modules/bulma/sass/helpers/spacing.sass +31 -31
- data/node_modules/bulma/sass/helpers/typography.sass +103 -103
- data/node_modules/bulma/sass/helpers/visibility.sass +122 -122
- data/node_modules/bulma/sass/layout/_all.sass +6 -6
- data/node_modules/bulma/sass/layout/footer.sass +11 -11
- data/node_modules/bulma/sass/layout/hero.sass +153 -153
- data/node_modules/bulma/sass/layout/section.sass +17 -17
- data/node_modules/bulma/sass/utilities/_all.sass +9 -9
- data/node_modules/bulma/sass/utilities/animations.sass +1 -1
- data/node_modules/bulma/sass/utilities/controls.sass +49 -49
- data/node_modules/bulma/sass/utilities/derived-variables.sass +114 -114
- data/node_modules/bulma/sass/utilities/extends.sass +25 -25
- data/node_modules/bulma/sass/utilities/functions.sass +136 -136
- data/node_modules/bulma/sass/utilities/initial-variables.sass +78 -78
- data/node_modules/bulma/sass/utilities/mixins.sass +280 -280
- data/node_modules/bulma-block-list/LICENSE.txt +21 -21
- data/node_modules/bulma-block-list/README.md +31 -31
- data/node_modules/bulma-block-list/docs/Gemfile +2 -2
- data/node_modules/bulma-block-list/docs/_config.yml +15 -15
- data/node_modules/bulma-block-list/docs/_data/menu.yaml +19 -19
- data/node_modules/bulma-block-list/docs/_sass/_block-list.scss +108 -108
- data/node_modules/bulma-block-list/docs/_sass/_main.scss +19 -19
- data/node_modules/bulma-block-list/docs/assets/css/app.scss +6 -6
- data/node_modules/bulma-block-list/docs/index.html +260 -260
- data/node_modules/bulma-block-list/node_modules/bulma/CHANGELOG.md +1390 -1390
- data/node_modules/bulma-block-list/node_modules/bulma/LICENSE +21 -21
- data/node_modules/bulma-block-list/node_modules/bulma/README.md +130 -130
- data/node_modules/bulma-block-list/node_modules/bulma/bulma.sass +9 -9
- data/node_modules/bulma-block-list/node_modules/bulma/css/bulma.css +10854 -10854
- data/node_modules/bulma-block-list/node_modules/bulma/package.json +77 -77
- data/node_modules/bulma-block-list/node_modules/bulma/sass/base/_all.sass +5 -5
- data/node_modules/bulma-block-list/node_modules/bulma/sass/base/generic.sass +142 -142
- data/node_modules/bulma-block-list/node_modules/bulma/sass/base/helpers.sass +281 -281
- data/node_modules/bulma-block-list/node_modules/bulma/sass/base/minireset.sass +79 -79
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/_all.sass +15 -15
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/breadcrumb.sass +75 -75
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/card.sass +79 -79
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/dropdown.sass +81 -81
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/level.sass +77 -77
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/list.sass +39 -39
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/media.sass +50 -50
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/menu.sass +57 -57
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/message.sass +99 -99
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/modal.sass +113 -113
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/navbar.sass +441 -441
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/pagination.sass +150 -150
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/panel.sass +119 -119
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/tabs.sass +151 -151
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/_all.sass +15 -15
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/box.sass +24 -24
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/button.sass +323 -323
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/container.sass +24 -24
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/content.sass +155 -155
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/form.sass +1 -1
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/icon.sass +21 -21
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/image.sass +71 -71
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/notification.sass +43 -43
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/other.sass +39 -39
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/progress.sass +67 -67
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/table.sass +127 -127
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/tag.sass +128 -128
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/title.sass +70 -70
- data/node_modules/bulma-block-list/node_modules/bulma/sass/form/_all.sass +8 -8
- data/node_modules/bulma-block-list/node_modules/bulma/sass/form/checkbox-radio.sass +21 -21
- data/node_modules/bulma-block-list/node_modules/bulma/sass/form/file.sass +180 -180
- data/node_modules/bulma-block-list/node_modules/bulma/sass/form/input-textarea.sass +64 -64
- data/node_modules/bulma-block-list/node_modules/bulma/sass/form/select.sass +85 -85
- data/node_modules/bulma-block-list/node_modules/bulma/sass/form/shared.sass +55 -55
- data/node_modules/bulma-block-list/node_modules/bulma/sass/form/tools.sass +205 -205
- data/node_modules/bulma-block-list/node_modules/bulma/sass/grid/_all.sass +4 -4
- data/node_modules/bulma-block-list/node_modules/bulma/sass/grid/columns.sass +504 -504
- data/node_modules/bulma-block-list/node_modules/bulma/sass/grid/tiles.sass +34 -34
- data/node_modules/bulma-block-list/node_modules/bulma/sass/layout/_all.sass +5 -5
- data/node_modules/bulma-block-list/node_modules/bulma/sass/layout/footer.sass +9 -9
- data/node_modules/bulma-block-list/node_modules/bulma/sass/layout/hero.sass +145 -145
- data/node_modules/bulma-block-list/node_modules/bulma/sass/layout/section.sass +13 -13
- data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/_all.sass +8 -8
- data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/animations.sass +5 -5
- data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/controls.sass +50 -50
- data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/derived-variables.sass +106 -106
- data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/functions.sass +110 -110
- data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/initial-variables.sass +77 -77
- data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/mixins.sass +261 -261
- data/node_modules/bulma-block-list/package.json +56 -56
- data/node_modules/bulma-block-list/src/block-list.scss +108 -108
- data/node_modules/bulma-block-list/src/demo.scss +2 -2
- data/package-lock.json +28 -28
- data/package.json +20 -20
- metadata +16 -13
- data/_includes/hero.html +0 -11
- data/_includes/join.html +0 -30
- data/_includes/rating.html +0 -14
- data/_includes/review.html +0 -27
- data/_includes/share-buttons.html +0 -19
- data/_layouts/product-category.html +0 -42
- data/_layouts/product.html +0 -61
- data/_layouts/recipe.html +0 -98
- data/assets/css/highlight.css +0 -78
@@ -1,323 +1,323 @@
|
|
1
|
-
$button-color: $text-strong !default
|
2
|
-
$button-background-color: $scheme-main !default
|
3
|
-
$button-family: false !default
|
4
|
-
|
5
|
-
$button-border-color: $border !default
|
6
|
-
$button-border-width: $control-border-width !default
|
7
|
-
|
8
|
-
$button-padding-vertical: calc(0.5em - #{$button-border-width}) !default
|
9
|
-
$button-padding-horizontal: 1em !default
|
10
|
-
|
11
|
-
$button-hover-color: $link-hover !default
|
12
|
-
$button-hover-border-color: $link-hover-border !default
|
13
|
-
|
14
|
-
$button-focus-color: $link-focus !default
|
15
|
-
$button-focus-border-color: $link-focus-border !default
|
16
|
-
$button-focus-box-shadow-size: 0 0 0 0.125em !default
|
17
|
-
$button-focus-box-shadow-color: bulmaRgba($link, 0.25) !default
|
18
|
-
|
19
|
-
$button-active-color: $link-active !default
|
20
|
-
$button-active-border-color: $link-active-border !default
|
21
|
-
|
22
|
-
$button-text-color: $text !default
|
23
|
-
$button-text-decoration: underline !default
|
24
|
-
$button-text-hover-background-color: $background !default
|
25
|
-
$button-text-hover-color: $text-strong !default
|
26
|
-
|
27
|
-
$button-disabled-background-color: $scheme-main !default
|
28
|
-
$button-disabled-border-color: $border !default
|
29
|
-
$button-disabled-shadow: none !default
|
30
|
-
$button-disabled-opacity: 0.5 !default
|
31
|
-
|
32
|
-
$button-static-color: $text-light !default
|
33
|
-
$button-static-background-color: $scheme-main-ter !default
|
34
|
-
$button-static-border-color: $border !default
|
35
|
-
|
36
|
-
// The button sizes use mixins so they can be used at different breakpoints
|
37
|
-
=button-small
|
38
|
-
border-radius: $radius-small
|
39
|
-
font-size: $size-small
|
40
|
-
=button-normal
|
41
|
-
font-size: $size-normal
|
42
|
-
=button-medium
|
43
|
-
font-size: $size-medium
|
44
|
-
=button-large
|
45
|
-
font-size: $size-large
|
46
|
-
|
47
|
-
.button
|
48
|
-
@extend %control
|
49
|
-
@extend %unselectable
|
50
|
-
background-color: $button-background-color
|
51
|
-
border-color: $button-border-color
|
52
|
-
border-width: $button-border-width
|
53
|
-
color: $button-color
|
54
|
-
cursor: pointer
|
55
|
-
@if $button-family
|
56
|
-
font-family: $button-family
|
57
|
-
justify-content: center
|
58
|
-
padding-bottom: $button-padding-vertical
|
59
|
-
padding-left: $button-padding-horizontal
|
60
|
-
padding-right: $button-padding-horizontal
|
61
|
-
padding-top: $button-padding-vertical
|
62
|
-
text-align: center
|
63
|
-
white-space: nowrap
|
64
|
-
strong
|
65
|
-
color: inherit
|
66
|
-
.icon
|
67
|
-
&,
|
68
|
-
&.is-small,
|
69
|
-
&.is-medium,
|
70
|
-
&.is-large
|
71
|
-
height: 1.5em
|
72
|
-
width: 1.5em
|
73
|
-
&:first-child:not(:last-child)
|
74
|
-
margin-left: calc(#{-1 / 2 * $button-padding-horizontal} - #{$button-border-width})
|
75
|
-
margin-right: $button-padding-horizontal / 4
|
76
|
-
&:last-child:not(:first-child)
|
77
|
-
margin-left: $button-padding-horizontal / 4
|
78
|
-
margin-right: calc(#{-1 / 2 * $button-padding-horizontal} - #{$button-border-width})
|
79
|
-
&:first-child:last-child
|
80
|
-
margin-left: calc(#{-1 / 2 * $button-padding-horizontal} - #{$button-border-width})
|
81
|
-
margin-right: calc(#{-1 / 2 * $button-padding-horizontal} - #{$button-border-width})
|
82
|
-
// States
|
83
|
-
&:hover,
|
84
|
-
&.is-hovered
|
85
|
-
border-color: $button-hover-border-color
|
86
|
-
color: $button-hover-color
|
87
|
-
&:focus,
|
88
|
-
&.is-focused
|
89
|
-
border-color: $button-focus-border-color
|
90
|
-
color: $button-focus-color
|
91
|
-
&:not(:active)
|
92
|
-
box-shadow: $button-focus-box-shadow-size $button-focus-box-shadow-color
|
93
|
-
&:active,
|
94
|
-
&.is-active
|
95
|
-
border-color: $button-active-border-color
|
96
|
-
color: $button-active-color
|
97
|
-
// Colors
|
98
|
-
&.is-text
|
99
|
-
background-color: transparent
|
100
|
-
border-color: transparent
|
101
|
-
color: $button-text-color
|
102
|
-
text-decoration: $button-text-decoration
|
103
|
-
&:hover,
|
104
|
-
&.is-hovered,
|
105
|
-
&:focus,
|
106
|
-
&.is-focused
|
107
|
-
background-color: $button-text-hover-background-color
|
108
|
-
color: $button-text-hover-color
|
109
|
-
&:active,
|
110
|
-
&.is-active
|
111
|
-
background-color: bulmaDarken($button-text-hover-background-color, 5%)
|
112
|
-
color: $button-text-hover-color
|
113
|
-
&[disabled],
|
114
|
-
fieldset[disabled] &
|
115
|
-
background-color: transparent
|
116
|
-
border-color: transparent
|
117
|
-
box-shadow: none
|
118
|
-
@each $name, $pair in $colors
|
119
|
-
$color: nth($pair, 1)
|
120
|
-
$color-invert: nth($pair, 2)
|
121
|
-
&.is-#{$name}
|
122
|
-
background-color: $color
|
123
|
-
border-color: transparent
|
124
|
-
color: $color-invert
|
125
|
-
&:hover,
|
126
|
-
&.is-hovered
|
127
|
-
background-color: bulmaDarken($color, 2.5%)
|
128
|
-
border-color: transparent
|
129
|
-
color: $color-invert
|
130
|
-
&:focus,
|
131
|
-
&.is-focused
|
132
|
-
border-color: transparent
|
133
|
-
color: $color-invert
|
134
|
-
&:not(:active)
|
135
|
-
box-shadow: $button-focus-box-shadow-size bulmaRgba($color, 0.25)
|
136
|
-
&:active,
|
137
|
-
&.is-active
|
138
|
-
background-color: bulmaDarken($color, 5%)
|
139
|
-
border-color: transparent
|
140
|
-
color: $color-invert
|
141
|
-
&[disabled],
|
142
|
-
fieldset[disabled] &
|
143
|
-
background-color: $color
|
144
|
-
border-color: transparent
|
145
|
-
box-shadow: none
|
146
|
-
&.is-inverted
|
147
|
-
background-color: $color-invert
|
148
|
-
color: $color
|
149
|
-
&:hover,
|
150
|
-
&.is-hovered
|
151
|
-
background-color: bulmaDarken($color-invert, 5%)
|
152
|
-
&[disabled],
|
153
|
-
fieldset[disabled] &
|
154
|
-
background-color: $color-invert
|
155
|
-
border-color: transparent
|
156
|
-
box-shadow: none
|
157
|
-
color: $color
|
158
|
-
&.is-loading
|
159
|
-
&::after
|
160
|
-
border-color: transparent transparent $color-invert $color-invert !important
|
161
|
-
&.is-outlined
|
162
|
-
background-color: transparent
|
163
|
-
border-color: $color
|
164
|
-
color: $color
|
165
|
-
&:hover,
|
166
|
-
&.is-hovered,
|
167
|
-
&:focus,
|
168
|
-
&.is-focused
|
169
|
-
background-color: $color
|
170
|
-
border-color: $color
|
171
|
-
color: $color-invert
|
172
|
-
&.is-loading
|
173
|
-
&::after
|
174
|
-
border-color: transparent transparent $color $color !important
|
175
|
-
&:hover,
|
176
|
-
&.is-hovered,
|
177
|
-
&:focus,
|
178
|
-
&.is-focused
|
179
|
-
&::after
|
180
|
-
border-color: transparent transparent $color-invert $color-invert !important
|
181
|
-
&[disabled],
|
182
|
-
fieldset[disabled] &
|
183
|
-
background-color: transparent
|
184
|
-
border-color: $color
|
185
|
-
box-shadow: none
|
186
|
-
color: $color
|
187
|
-
&.is-inverted.is-outlined
|
188
|
-
background-color: transparent
|
189
|
-
border-color: $color-invert
|
190
|
-
color: $color-invert
|
191
|
-
&:hover,
|
192
|
-
&.is-hovered,
|
193
|
-
&:focus,
|
194
|
-
&.is-focused
|
195
|
-
background-color: $color-invert
|
196
|
-
color: $color
|
197
|
-
&.is-loading
|
198
|
-
&:hover,
|
199
|
-
&.is-hovered,
|
200
|
-
&:focus,
|
201
|
-
&.is-focused
|
202
|
-
&::after
|
203
|
-
border-color: transparent transparent $color $color !important
|
204
|
-
&[disabled],
|
205
|
-
fieldset[disabled] &
|
206
|
-
background-color: transparent
|
207
|
-
border-color: $color-invert
|
208
|
-
box-shadow: none
|
209
|
-
color: $color-invert
|
210
|
-
// If light and dark colors are provided
|
211
|
-
@if length($pair) >= 4
|
212
|
-
$color-light: nth($pair, 3)
|
213
|
-
$color-dark: nth($pair, 4)
|
214
|
-
&.is-light
|
215
|
-
background-color: $color-light
|
216
|
-
color: $color-dark
|
217
|
-
&:hover,
|
218
|
-
&.is-hovered
|
219
|
-
background-color: bulmaDarken($color-light, 2.5%)
|
220
|
-
border-color: transparent
|
221
|
-
color: $color-dark
|
222
|
-
&:active,
|
223
|
-
&.is-active
|
224
|
-
background-color: bulmaDarken($color-light, 5%)
|
225
|
-
border-color: transparent
|
226
|
-
color: $color-dark
|
227
|
-
// Sizes
|
228
|
-
&.is-small
|
229
|
-
+button-small
|
230
|
-
&.is-normal
|
231
|
-
+button-normal
|
232
|
-
&.is-medium
|
233
|
-
+button-medium
|
234
|
-
&.is-large
|
235
|
-
+button-large
|
236
|
-
// Modifiers
|
237
|
-
&[disabled],
|
238
|
-
fieldset[disabled] &
|
239
|
-
background-color: $button-disabled-background-color
|
240
|
-
border-color: $button-disabled-border-color
|
241
|
-
box-shadow: $button-disabled-shadow
|
242
|
-
opacity: $button-disabled-opacity
|
243
|
-
&.is-fullwidth
|
244
|
-
display: flex
|
245
|
-
width: 100%
|
246
|
-
&.is-loading
|
247
|
-
color: transparent !important
|
248
|
-
pointer-events: none
|
249
|
-
&::after
|
250
|
-
@extend %loader
|
251
|
-
+center(1em)
|
252
|
-
position: absolute !important
|
253
|
-
&.is-static
|
254
|
-
background-color: $button-static-background-color
|
255
|
-
border-color: $button-static-border-color
|
256
|
-
color: $button-static-color
|
257
|
-
box-shadow: none
|
258
|
-
pointer-events: none
|
259
|
-
&.is-rounded
|
260
|
-
border-radius: $radius-rounded
|
261
|
-
padding-left: calc(#{$button-padding-horizontal} + 0.25em)
|
262
|
-
padding-right: calc(#{$button-padding-horizontal} + 0.25em)
|
263
|
-
|
264
|
-
.buttons
|
265
|
-
align-items: center
|
266
|
-
display: flex
|
267
|
-
flex-wrap: wrap
|
268
|
-
justify-content: flex-start
|
269
|
-
.button
|
270
|
-
margin-bottom: 0.5rem
|
271
|
-
&:not(:last-child):not(.is-fullwidth)
|
272
|
-
margin-right: 0.5rem
|
273
|
-
&:last-child
|
274
|
-
margin-bottom: -0.5rem
|
275
|
-
&:not(:last-child)
|
276
|
-
margin-bottom: 1rem
|
277
|
-
// Sizes
|
278
|
-
&.are-small
|
279
|
-
.button:not(.is-normal):not(.is-medium):not(.is-large)
|
280
|
-
+button-small
|
281
|
-
&.are-medium
|
282
|
-
.button:not(.is-small):not(.is-normal):not(.is-large)
|
283
|
-
+button-medium
|
284
|
-
&.are-large
|
285
|
-
.button:not(.is-small):not(.is-normal):not(.is-medium)
|
286
|
-
+button-large
|
287
|
-
&.has-addons
|
288
|
-
.button
|
289
|
-
&:not(:first-child)
|
290
|
-
border-bottom-left-radius: 0
|
291
|
-
border-top-left-radius: 0
|
292
|
-
&:not(:last-child)
|
293
|
-
border-bottom-right-radius: 0
|
294
|
-
border-top-right-radius: 0
|
295
|
-
margin-right: -1px
|
296
|
-
&:last-child
|
297
|
-
margin-right: 0
|
298
|
-
&:hover,
|
299
|
-
&.is-hovered
|
300
|
-
z-index: 2
|
301
|
-
&:focus,
|
302
|
-
&.is-focused,
|
303
|
-
&:active,
|
304
|
-
&.is-active,
|
305
|
-
&.is-selected
|
306
|
-
z-index: 3
|
307
|
-
&:hover
|
308
|
-
z-index: 4
|
309
|
-
&.is-expanded
|
310
|
-
flex-grow: 1
|
311
|
-
flex-shrink: 1
|
312
|
-
&.is-centered
|
313
|
-
justify-content: center
|
314
|
-
&:not(.has-addons)
|
315
|
-
.button:not(.is-fullwidth)
|
316
|
-
margin-left: 0.25rem
|
317
|
-
margin-right: 0.25rem
|
318
|
-
&.is-right
|
319
|
-
justify-content: flex-end
|
320
|
-
&:not(.has-addons)
|
321
|
-
.button:not(.is-fullwidth)
|
322
|
-
margin-left: 0.25rem
|
323
|
-
margin-right: 0.25rem
|
1
|
+
$button-color: $text-strong !default
|
2
|
+
$button-background-color: $scheme-main !default
|
3
|
+
$button-family: false !default
|
4
|
+
|
5
|
+
$button-border-color: $border !default
|
6
|
+
$button-border-width: $control-border-width !default
|
7
|
+
|
8
|
+
$button-padding-vertical: calc(0.5em - #{$button-border-width}) !default
|
9
|
+
$button-padding-horizontal: 1em !default
|
10
|
+
|
11
|
+
$button-hover-color: $link-hover !default
|
12
|
+
$button-hover-border-color: $link-hover-border !default
|
13
|
+
|
14
|
+
$button-focus-color: $link-focus !default
|
15
|
+
$button-focus-border-color: $link-focus-border !default
|
16
|
+
$button-focus-box-shadow-size: 0 0 0 0.125em !default
|
17
|
+
$button-focus-box-shadow-color: bulmaRgba($link, 0.25) !default
|
18
|
+
|
19
|
+
$button-active-color: $link-active !default
|
20
|
+
$button-active-border-color: $link-active-border !default
|
21
|
+
|
22
|
+
$button-text-color: $text !default
|
23
|
+
$button-text-decoration: underline !default
|
24
|
+
$button-text-hover-background-color: $background !default
|
25
|
+
$button-text-hover-color: $text-strong !default
|
26
|
+
|
27
|
+
$button-disabled-background-color: $scheme-main !default
|
28
|
+
$button-disabled-border-color: $border !default
|
29
|
+
$button-disabled-shadow: none !default
|
30
|
+
$button-disabled-opacity: 0.5 !default
|
31
|
+
|
32
|
+
$button-static-color: $text-light !default
|
33
|
+
$button-static-background-color: $scheme-main-ter !default
|
34
|
+
$button-static-border-color: $border !default
|
35
|
+
|
36
|
+
// The button sizes use mixins so they can be used at different breakpoints
|
37
|
+
=button-small
|
38
|
+
border-radius: $radius-small
|
39
|
+
font-size: $size-small
|
40
|
+
=button-normal
|
41
|
+
font-size: $size-normal
|
42
|
+
=button-medium
|
43
|
+
font-size: $size-medium
|
44
|
+
=button-large
|
45
|
+
font-size: $size-large
|
46
|
+
|
47
|
+
.button
|
48
|
+
@extend %control
|
49
|
+
@extend %unselectable
|
50
|
+
background-color: $button-background-color
|
51
|
+
border-color: $button-border-color
|
52
|
+
border-width: $button-border-width
|
53
|
+
color: $button-color
|
54
|
+
cursor: pointer
|
55
|
+
@if $button-family
|
56
|
+
font-family: $button-family
|
57
|
+
justify-content: center
|
58
|
+
padding-bottom: $button-padding-vertical
|
59
|
+
padding-left: $button-padding-horizontal
|
60
|
+
padding-right: $button-padding-horizontal
|
61
|
+
padding-top: $button-padding-vertical
|
62
|
+
text-align: center
|
63
|
+
white-space: nowrap
|
64
|
+
strong
|
65
|
+
color: inherit
|
66
|
+
.icon
|
67
|
+
&,
|
68
|
+
&.is-small,
|
69
|
+
&.is-medium,
|
70
|
+
&.is-large
|
71
|
+
height: 1.5em
|
72
|
+
width: 1.5em
|
73
|
+
&:first-child:not(:last-child)
|
74
|
+
margin-left: calc(#{-1 / 2 * $button-padding-horizontal} - #{$button-border-width})
|
75
|
+
margin-right: $button-padding-horizontal / 4
|
76
|
+
&:last-child:not(:first-child)
|
77
|
+
margin-left: $button-padding-horizontal / 4
|
78
|
+
margin-right: calc(#{-1 / 2 * $button-padding-horizontal} - #{$button-border-width})
|
79
|
+
&:first-child:last-child
|
80
|
+
margin-left: calc(#{-1 / 2 * $button-padding-horizontal} - #{$button-border-width})
|
81
|
+
margin-right: calc(#{-1 / 2 * $button-padding-horizontal} - #{$button-border-width})
|
82
|
+
// States
|
83
|
+
&:hover,
|
84
|
+
&.is-hovered
|
85
|
+
border-color: $button-hover-border-color
|
86
|
+
color: $button-hover-color
|
87
|
+
&:focus,
|
88
|
+
&.is-focused
|
89
|
+
border-color: $button-focus-border-color
|
90
|
+
color: $button-focus-color
|
91
|
+
&:not(:active)
|
92
|
+
box-shadow: $button-focus-box-shadow-size $button-focus-box-shadow-color
|
93
|
+
&:active,
|
94
|
+
&.is-active
|
95
|
+
border-color: $button-active-border-color
|
96
|
+
color: $button-active-color
|
97
|
+
// Colors
|
98
|
+
&.is-text
|
99
|
+
background-color: transparent
|
100
|
+
border-color: transparent
|
101
|
+
color: $button-text-color
|
102
|
+
text-decoration: $button-text-decoration
|
103
|
+
&:hover,
|
104
|
+
&.is-hovered,
|
105
|
+
&:focus,
|
106
|
+
&.is-focused
|
107
|
+
background-color: $button-text-hover-background-color
|
108
|
+
color: $button-text-hover-color
|
109
|
+
&:active,
|
110
|
+
&.is-active
|
111
|
+
background-color: bulmaDarken($button-text-hover-background-color, 5%)
|
112
|
+
color: $button-text-hover-color
|
113
|
+
&[disabled],
|
114
|
+
fieldset[disabled] &
|
115
|
+
background-color: transparent
|
116
|
+
border-color: transparent
|
117
|
+
box-shadow: none
|
118
|
+
@each $name, $pair in $colors
|
119
|
+
$color: nth($pair, 1)
|
120
|
+
$color-invert: nth($pair, 2)
|
121
|
+
&.is-#{$name}
|
122
|
+
background-color: $color
|
123
|
+
border-color: transparent
|
124
|
+
color: $color-invert
|
125
|
+
&:hover,
|
126
|
+
&.is-hovered
|
127
|
+
background-color: bulmaDarken($color, 2.5%)
|
128
|
+
border-color: transparent
|
129
|
+
color: $color-invert
|
130
|
+
&:focus,
|
131
|
+
&.is-focused
|
132
|
+
border-color: transparent
|
133
|
+
color: $color-invert
|
134
|
+
&:not(:active)
|
135
|
+
box-shadow: $button-focus-box-shadow-size bulmaRgba($color, 0.25)
|
136
|
+
&:active,
|
137
|
+
&.is-active
|
138
|
+
background-color: bulmaDarken($color, 5%)
|
139
|
+
border-color: transparent
|
140
|
+
color: $color-invert
|
141
|
+
&[disabled],
|
142
|
+
fieldset[disabled] &
|
143
|
+
background-color: $color
|
144
|
+
border-color: transparent
|
145
|
+
box-shadow: none
|
146
|
+
&.is-inverted
|
147
|
+
background-color: $color-invert
|
148
|
+
color: $color
|
149
|
+
&:hover,
|
150
|
+
&.is-hovered
|
151
|
+
background-color: bulmaDarken($color-invert, 5%)
|
152
|
+
&[disabled],
|
153
|
+
fieldset[disabled] &
|
154
|
+
background-color: $color-invert
|
155
|
+
border-color: transparent
|
156
|
+
box-shadow: none
|
157
|
+
color: $color
|
158
|
+
&.is-loading
|
159
|
+
&::after
|
160
|
+
border-color: transparent transparent $color-invert $color-invert !important
|
161
|
+
&.is-outlined
|
162
|
+
background-color: transparent
|
163
|
+
border-color: $color
|
164
|
+
color: $color
|
165
|
+
&:hover,
|
166
|
+
&.is-hovered,
|
167
|
+
&:focus,
|
168
|
+
&.is-focused
|
169
|
+
background-color: $color
|
170
|
+
border-color: $color
|
171
|
+
color: $color-invert
|
172
|
+
&.is-loading
|
173
|
+
&::after
|
174
|
+
border-color: transparent transparent $color $color !important
|
175
|
+
&:hover,
|
176
|
+
&.is-hovered,
|
177
|
+
&:focus,
|
178
|
+
&.is-focused
|
179
|
+
&::after
|
180
|
+
border-color: transparent transparent $color-invert $color-invert !important
|
181
|
+
&[disabled],
|
182
|
+
fieldset[disabled] &
|
183
|
+
background-color: transparent
|
184
|
+
border-color: $color
|
185
|
+
box-shadow: none
|
186
|
+
color: $color
|
187
|
+
&.is-inverted.is-outlined
|
188
|
+
background-color: transparent
|
189
|
+
border-color: $color-invert
|
190
|
+
color: $color-invert
|
191
|
+
&:hover,
|
192
|
+
&.is-hovered,
|
193
|
+
&:focus,
|
194
|
+
&.is-focused
|
195
|
+
background-color: $color-invert
|
196
|
+
color: $color
|
197
|
+
&.is-loading
|
198
|
+
&:hover,
|
199
|
+
&.is-hovered,
|
200
|
+
&:focus,
|
201
|
+
&.is-focused
|
202
|
+
&::after
|
203
|
+
border-color: transparent transparent $color $color !important
|
204
|
+
&[disabled],
|
205
|
+
fieldset[disabled] &
|
206
|
+
background-color: transparent
|
207
|
+
border-color: $color-invert
|
208
|
+
box-shadow: none
|
209
|
+
color: $color-invert
|
210
|
+
// If light and dark colors are provided
|
211
|
+
@if length($pair) >= 4
|
212
|
+
$color-light: nth($pair, 3)
|
213
|
+
$color-dark: nth($pair, 4)
|
214
|
+
&.is-light
|
215
|
+
background-color: $color-light
|
216
|
+
color: $color-dark
|
217
|
+
&:hover,
|
218
|
+
&.is-hovered
|
219
|
+
background-color: bulmaDarken($color-light, 2.5%)
|
220
|
+
border-color: transparent
|
221
|
+
color: $color-dark
|
222
|
+
&:active,
|
223
|
+
&.is-active
|
224
|
+
background-color: bulmaDarken($color-light, 5%)
|
225
|
+
border-color: transparent
|
226
|
+
color: $color-dark
|
227
|
+
// Sizes
|
228
|
+
&.is-small
|
229
|
+
+button-small
|
230
|
+
&.is-normal
|
231
|
+
+button-normal
|
232
|
+
&.is-medium
|
233
|
+
+button-medium
|
234
|
+
&.is-large
|
235
|
+
+button-large
|
236
|
+
// Modifiers
|
237
|
+
&[disabled],
|
238
|
+
fieldset[disabled] &
|
239
|
+
background-color: $button-disabled-background-color
|
240
|
+
border-color: $button-disabled-border-color
|
241
|
+
box-shadow: $button-disabled-shadow
|
242
|
+
opacity: $button-disabled-opacity
|
243
|
+
&.is-fullwidth
|
244
|
+
display: flex
|
245
|
+
width: 100%
|
246
|
+
&.is-loading
|
247
|
+
color: transparent !important
|
248
|
+
pointer-events: none
|
249
|
+
&::after
|
250
|
+
@extend %loader
|
251
|
+
+center(1em)
|
252
|
+
position: absolute !important
|
253
|
+
&.is-static
|
254
|
+
background-color: $button-static-background-color
|
255
|
+
border-color: $button-static-border-color
|
256
|
+
color: $button-static-color
|
257
|
+
box-shadow: none
|
258
|
+
pointer-events: none
|
259
|
+
&.is-rounded
|
260
|
+
border-radius: $radius-rounded
|
261
|
+
padding-left: calc(#{$button-padding-horizontal} + 0.25em)
|
262
|
+
padding-right: calc(#{$button-padding-horizontal} + 0.25em)
|
263
|
+
|
264
|
+
.buttons
|
265
|
+
align-items: center
|
266
|
+
display: flex
|
267
|
+
flex-wrap: wrap
|
268
|
+
justify-content: flex-start
|
269
|
+
.button
|
270
|
+
margin-bottom: 0.5rem
|
271
|
+
&:not(:last-child):not(.is-fullwidth)
|
272
|
+
margin-right: 0.5rem
|
273
|
+
&:last-child
|
274
|
+
margin-bottom: -0.5rem
|
275
|
+
&:not(:last-child)
|
276
|
+
margin-bottom: 1rem
|
277
|
+
// Sizes
|
278
|
+
&.are-small
|
279
|
+
.button:not(.is-normal):not(.is-medium):not(.is-large)
|
280
|
+
+button-small
|
281
|
+
&.are-medium
|
282
|
+
.button:not(.is-small):not(.is-normal):not(.is-large)
|
283
|
+
+button-medium
|
284
|
+
&.are-large
|
285
|
+
.button:not(.is-small):not(.is-normal):not(.is-medium)
|
286
|
+
+button-large
|
287
|
+
&.has-addons
|
288
|
+
.button
|
289
|
+
&:not(:first-child)
|
290
|
+
border-bottom-left-radius: 0
|
291
|
+
border-top-left-radius: 0
|
292
|
+
&:not(:last-child)
|
293
|
+
border-bottom-right-radius: 0
|
294
|
+
border-top-right-radius: 0
|
295
|
+
margin-right: -1px
|
296
|
+
&:last-child
|
297
|
+
margin-right: 0
|
298
|
+
&:hover,
|
299
|
+
&.is-hovered
|
300
|
+
z-index: 2
|
301
|
+
&:focus,
|
302
|
+
&.is-focused,
|
303
|
+
&:active,
|
304
|
+
&.is-active,
|
305
|
+
&.is-selected
|
306
|
+
z-index: 3
|
307
|
+
&:hover
|
308
|
+
z-index: 4
|
309
|
+
&.is-expanded
|
310
|
+
flex-grow: 1
|
311
|
+
flex-shrink: 1
|
312
|
+
&.is-centered
|
313
|
+
justify-content: center
|
314
|
+
&:not(.has-addons)
|
315
|
+
.button:not(.is-fullwidth)
|
316
|
+
margin-left: 0.25rem
|
317
|
+
margin-right: 0.25rem
|
318
|
+
&.is-right
|
319
|
+
justify-content: flex-end
|
320
|
+
&:not(.has-addons)
|
321
|
+
.button:not(.is-fullwidth)
|
322
|
+
margin-left: 0.25rem
|
323
|
+
margin-right: 0.25rem
|