bulma-rails 0.9.4 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +48 -14
- data/app/assets/stylesheets/bulma.scss +4 -0
- data/app/assets/stylesheets/sass/_index.scss +10 -0
- data/app/assets/stylesheets/sass/base/_index.scss +6 -0
- data/app/assets/stylesheets/sass/base/animations.scss +15 -0
- data/app/assets/stylesheets/sass/base/generic.scss +239 -0
- data/app/assets/stylesheets/sass/base/minireset.scss +92 -0
- data/app/assets/stylesheets/sass/base/skeleton.scss +126 -0
- data/app/assets/stylesheets/sass/components/_index.scss +13 -0
- data/app/assets/stylesheets/sass/components/breadcrumb.scss +139 -0
- data/app/assets/stylesheets/sass/components/card.scss +162 -0
- data/app/assets/stylesheets/sass/components/dropdown.scss +188 -0
- data/app/assets/stylesheets/sass/components/menu.scss +165 -0
- data/app/assets/stylesheets/sass/components/message.scss +183 -0
- data/app/assets/stylesheets/sass/components/modal.scss +164 -0
- data/app/assets/stylesheets/sass/components/navbar.scss +788 -0
- data/app/assets/stylesheets/sass/components/pagination.scss +379 -0
- data/app/assets/stylesheets/sass/components/panel.scss +218 -0
- data/app/assets/stylesheets/sass/components/tabs.scss +273 -0
- data/app/assets/stylesheets/sass/elements/_index.scss +16 -0
- data/app/assets/stylesheets/sass/elements/block.scss +6 -0
- data/app/assets/stylesheets/sass/elements/box.scss +59 -0
- data/app/assets/stylesheets/sass/elements/button.scss +640 -0
- data/app/assets/stylesheets/sass/elements/content.scss +283 -0
- data/app/assets/stylesheets/sass/elements/delete.scss +6 -0
- data/app/assets/stylesheets/sass/elements/icon.scss +67 -0
- data/app/assets/stylesheets/sass/elements/image.scss +62 -0
- data/app/assets/stylesheets/sass/elements/loader.scss +15 -0
- data/app/assets/stylesheets/sass/elements/notification.scss +105 -0
- data/app/assets/stylesheets/sass/elements/progress.scss +115 -0
- data/app/assets/stylesheets/sass/elements/table.scss +261 -0
- data/app/assets/stylesheets/sass/elements/tag.scss +219 -0
- data/app/assets/stylesheets/sass/elements/title.scss +128 -0
- data/app/assets/stylesheets/sass/form/_index.scss +9 -0
- data/app/assets/stylesheets/sass/form/checkbox-radio.scss +32 -0
- data/app/assets/stylesheets/sass/form/file.scss +330 -0
- data/app/assets/stylesheets/sass/form/input-textarea.scss +123 -0
- data/app/assets/stylesheets/sass/form/select.scss +143 -0
- data/app/assets/stylesheets/sass/form/shared.scss +172 -0
- data/app/assets/stylesheets/sass/form/tools.scss +341 -0
- data/app/assets/stylesheets/sass/grid/_index.scss +5 -0
- data/app/assets/stylesheets/sass/grid/columns-v2.scss +957 -0
- data/app/assets/stylesheets/sass/grid/columns.scss +877 -0
- data/app/assets/stylesheets/sass/grid/grid.scss +209 -0
- data/app/assets/stylesheets/sass/helpers/_index.scss +15 -0
- data/app/assets/stylesheets/sass/helpers/aspect-ratio.scss +10 -0
- data/app/assets/stylesheets/sass/helpers/border.scss +15 -0
- data/app/assets/stylesheets/sass/helpers/color.scss +364 -0
- data/app/assets/stylesheets/sass/helpers/flexbox.scss +62 -0
- data/app/assets/stylesheets/sass/helpers/float.scss +28 -0
- data/app/assets/stylesheets/sass/helpers/gap.scss +24 -0
- data/app/assets/stylesheets/sass/helpers/other.scss +19 -0
- data/app/assets/stylesheets/sass/helpers/overflow.scss +21 -0
- data/app/assets/stylesheets/sass/helpers/position.scss +19 -0
- data/app/assets/stylesheets/sass/helpers/spacing.scss +64 -0
- data/app/assets/stylesheets/sass/helpers/typography.scss +168 -0
- data/app/assets/stylesheets/sass/helpers/visibility.scss +221 -0
- data/app/assets/stylesheets/sass/layout/_index.scss +9 -0
- data/app/assets/stylesheets/sass/layout/container.scss +51 -0
- data/app/assets/stylesheets/sass/layout/footer.scss +23 -0
- data/app/assets/stylesheets/sass/layout/hero.scss +270 -0
- data/app/assets/stylesheets/sass/layout/level.scss +107 -0
- data/app/assets/stylesheets/sass/layout/media.scss +106 -0
- data/app/assets/stylesheets/sass/layout/section.scss +34 -0
- data/app/assets/stylesheets/sass/themes/_index.scss +35 -0
- data/app/assets/stylesheets/sass/themes/dark.scss +56 -0
- data/app/assets/stylesheets/sass/themes/light.scss +145 -0
- data/app/assets/stylesheets/sass/themes/setup.scss +174 -0
- data/app/assets/stylesheets/sass/utilities/_index.scss +7 -0
- data/app/assets/stylesheets/sass/utilities/controls.scss +85 -0
- data/app/assets/stylesheets/sass/utilities/css-variables.scss +425 -0
- data/app/assets/stylesheets/sass/utilities/derived-variables.scss +112 -0
- data/app/assets/stylesheets/sass/utilities/extends.scss +34 -0
- data/app/assets/stylesheets/sass/utilities/functions.scss +258 -0
- data/app/assets/stylesheets/sass/utilities/initial-variables.scss +155 -0
- data/app/assets/stylesheets/sass/utilities/mixins.scss +460 -0
- data/bulma-rails.gemspec +4 -6
- metadata +84 -74
- data/app/assets/stylesheets/bulma.sass +0 -10
- data/app/assets/stylesheets/sass/base/_all.sass +0 -6
- data/app/assets/stylesheets/sass/base/animations.sass +0 -5
- data/app/assets/stylesheets/sass/base/generic.sass +0 -145
- data/app/assets/stylesheets/sass/base/helpers.sass +0 -1
- data/app/assets/stylesheets/sass/base/minireset.sass +0 -79
- data/app/assets/stylesheets/sass/components/_all.sass +0 -15
- data/app/assets/stylesheets/sass/components/breadcrumb.sass +0 -77
- data/app/assets/stylesheets/sass/components/card.sass +0 -103
- data/app/assets/stylesheets/sass/components/dropdown.sass +0 -83
- data/app/assets/stylesheets/sass/components/level.sass +0 -79
- data/app/assets/stylesheets/sass/components/media.sass +0 -59
- data/app/assets/stylesheets/sass/components/menu.sass +0 -59
- data/app/assets/stylesheets/sass/components/message.sass +0 -101
- data/app/assets/stylesheets/sass/components/modal.sass +0 -117
- data/app/assets/stylesheets/sass/components/navbar.sass +0 -446
- data/app/assets/stylesheets/sass/components/pagination.sass +0 -167
- data/app/assets/stylesheets/sass/components/panel.sass +0 -121
- data/app/assets/stylesheets/sass/components/tabs.sass +0 -176
- data/app/assets/stylesheets/sass/elements/_all.sass +0 -16
- data/app/assets/stylesheets/sass/elements/box.sass +0 -26
- data/app/assets/stylesheets/sass/elements/button.sass +0 -357
- data/app/assets/stylesheets/sass/elements/container.sass +0 -29
- data/app/assets/stylesheets/sass/elements/content.sass +0 -162
- data/app/assets/stylesheets/sass/elements/form.sass +0 -1
- data/app/assets/stylesheets/sass/elements/icon.sass +0 -46
- data/app/assets/stylesheets/sass/elements/image.sass +0 -73
- data/app/assets/stylesheets/sass/elements/notification.sass +0 -52
- data/app/assets/stylesheets/sass/elements/other.sass +0 -31
- data/app/assets/stylesheets/sass/elements/progress.sass +0 -73
- data/app/assets/stylesheets/sass/elements/table.sass +0 -134
- data/app/assets/stylesheets/sass/elements/tag.sass +0 -140
- data/app/assets/stylesheets/sass/elements/title.sass +0 -70
- data/app/assets/stylesheets/sass/form/_all.sass +0 -9
- data/app/assets/stylesheets/sass/form/checkbox-radio.sass +0 -22
- data/app/assets/stylesheets/sass/form/file.sass +0 -184
- data/app/assets/stylesheets/sass/form/input-textarea.sass +0 -66
- data/app/assets/stylesheets/sass/form/select.sass +0 -88
- data/app/assets/stylesheets/sass/form/shared.sass +0 -60
- data/app/assets/stylesheets/sass/form/tools.sass +0 -215
- data/app/assets/stylesheets/sass/grid/_all.sass +0 -5
- data/app/assets/stylesheets/sass/grid/columns.sass +0 -513
- data/app/assets/stylesheets/sass/grid/tiles.sass +0 -36
- data/app/assets/stylesheets/sass/helpers/_all.sass +0 -12
- data/app/assets/stylesheets/sass/helpers/color.sass +0 -39
- data/app/assets/stylesheets/sass/helpers/flexbox.sass +0 -35
- data/app/assets/stylesheets/sass/helpers/float.sass +0 -10
- data/app/assets/stylesheets/sass/helpers/other.sass +0 -14
- data/app/assets/stylesheets/sass/helpers/overflow.sass +0 -2
- data/app/assets/stylesheets/sass/helpers/position.sass +0 -7
- data/app/assets/stylesheets/sass/helpers/spacing.sass +0 -31
- data/app/assets/stylesheets/sass/helpers/typography.sass +0 -103
- data/app/assets/stylesheets/sass/helpers/visibility.sass +0 -122
- data/app/assets/stylesheets/sass/layout/_all.sass +0 -6
- data/app/assets/stylesheets/sass/layout/footer.sass +0 -11
- data/app/assets/stylesheets/sass/layout/hero.sass +0 -153
- data/app/assets/stylesheets/sass/layout/section.sass +0 -17
- data/app/assets/stylesheets/sass/utilities/_all.sass +0 -9
- data/app/assets/stylesheets/sass/utilities/animations.sass +0 -1
- data/app/assets/stylesheets/sass/utilities/controls.sass +0 -49
- data/app/assets/stylesheets/sass/utilities/derived-variables.sass +0 -114
- data/app/assets/stylesheets/sass/utilities/extends.sass +0 -25
- data/app/assets/stylesheets/sass/utilities/functions.sass +0 -135
- data/app/assets/stylesheets/sass/utilities/initial-variables.sass +0 -79
- data/app/assets/stylesheets/sass/utilities/mixins.sass +0 -303
@@ -0,0 +1,258 @@
|
|
1
|
+
@use "sass:list";
|
2
|
+
@use "sass:math";
|
3
|
+
|
4
|
+
@function mergeColorMaps($bulma-colors, $custom-colors) {
|
5
|
+
// We return at least Bulma's hard-coded colors
|
6
|
+
$merged-colors: $bulma-colors;
|
7
|
+
|
8
|
+
// We want a map as input
|
9
|
+
@if type-of($custom-colors) == "map" {
|
10
|
+
@each $name, $components in $custom-colors {
|
11
|
+
// The color name should be a string
|
12
|
+
// and the components either a single color
|
13
|
+
// or a colors list with at least one element
|
14
|
+
@if type-of($name) ==
|
15
|
+
"string" and
|
16
|
+
(type-of($components) == "list" or type-of($components) == "color") and
|
17
|
+
length($components) >=
|
18
|
+
1
|
19
|
+
{
|
20
|
+
$color-base: null;
|
21
|
+
$color-invert: null;
|
22
|
+
$color-light: null;
|
23
|
+
$color-dark: null;
|
24
|
+
$value: null;
|
25
|
+
|
26
|
+
// The param can either be a single color
|
27
|
+
// or a list of 2 colors
|
28
|
+
@if type-of($components) == "color" {
|
29
|
+
$color-base: $components;
|
30
|
+
$color-invert: bulmaFindColorInvert($color-base);
|
31
|
+
$color-light: bulmaFindLightColor($color-base);
|
32
|
+
$color-dark: bulmaFindDarkColor($color-base);
|
33
|
+
} @else if type-of($components) == "list" {
|
34
|
+
$color-base: list.nth($components, 1);
|
35
|
+
|
36
|
+
// If Invert, Light and Dark are provided
|
37
|
+
@if length($components) > 3 {
|
38
|
+
$color-invert: list.nth($components, 2);
|
39
|
+
$color-light: list.nth($components, 3);
|
40
|
+
$color-dark: list.nth($components, 4);
|
41
|
+
|
42
|
+
// If only Invert and Light are provided
|
43
|
+
} @else if length($components) > 2 {
|
44
|
+
$color-invert: list.nth($components, 2);
|
45
|
+
$color-light: list.nth($components, 3);
|
46
|
+
$color-dark: bulmaFindDarkColor($color-base);
|
47
|
+
|
48
|
+
// If only Invert is provided
|
49
|
+
} @else {
|
50
|
+
$color-invert: list.nth($components, 2);
|
51
|
+
$color-light: bulmaFindLightColor($color-base);
|
52
|
+
$color-dark: bulmaFindDarkColor($color-base);
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
$value: $color-base, $color-invert, $color-light, $color-dark;
|
57
|
+
|
58
|
+
// We only want to merge the map if the color base is an actual color
|
59
|
+
@if type-of($color-base) == "color" {
|
60
|
+
// We merge this colors elements as map with Bulma's colors map
|
61
|
+
// (we can override them this way, no multiple definition for the same name)
|
62
|
+
// $merged-colors: map_merge($merged-colors, ($name: ($color-base, $color-invert, $color-light, $color-dark)))
|
63
|
+
$merged-colors: map_merge(
|
64
|
+
$merged-colors,
|
65
|
+
(
|
66
|
+
$name: $value,
|
67
|
+
)
|
68
|
+
);
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
@return $merged-colors;
|
75
|
+
}
|
76
|
+
|
77
|
+
@function powerNumber($number, $exp) {
|
78
|
+
$value: 1;
|
79
|
+
|
80
|
+
@if $exp > 0 {
|
81
|
+
@for $i from 1 through $exp {
|
82
|
+
$value: $value * $number;
|
83
|
+
}
|
84
|
+
} @else if $exp < 0 {
|
85
|
+
@for $i from 1 through -$exp {
|
86
|
+
$value: math.div($value, $number);
|
87
|
+
}
|
88
|
+
}
|
89
|
+
|
90
|
+
@return $value;
|
91
|
+
}
|
92
|
+
|
93
|
+
@function bulmaColorLuminance($color) {
|
94
|
+
@if type-of($color) != "color" {
|
95
|
+
@return 0.55;
|
96
|
+
}
|
97
|
+
|
98
|
+
$color-rgb: (
|
99
|
+
"red": red($color),
|
100
|
+
"green": green($color),
|
101
|
+
"blue": blue($color),
|
102
|
+
);
|
103
|
+
|
104
|
+
@each $name, $value in $color-rgb {
|
105
|
+
$adjusted: 0;
|
106
|
+
$value: math.div($value, 255);
|
107
|
+
|
108
|
+
@if $value < 0.03928 {
|
109
|
+
$value: math.div($value, 12.92);
|
110
|
+
} @else {
|
111
|
+
$value: math.div($value + 0.055, 1.055);
|
112
|
+
$value: powerNumber($value, 2);
|
113
|
+
}
|
114
|
+
|
115
|
+
$color-rgb: map-merge(
|
116
|
+
$color-rgb,
|
117
|
+
(
|
118
|
+
$name: $value,
|
119
|
+
)
|
120
|
+
);
|
121
|
+
}
|
122
|
+
|
123
|
+
@return map-get($color-rgb, "red") * 0.2126 + map-get($color-rgb, "green") *
|
124
|
+
0.7152 + map-get($color-rgb, "blue") * 0.0722;
|
125
|
+
}
|
126
|
+
|
127
|
+
@function bulmaFindColorInvert($color) {
|
128
|
+
@if bulmaColorLuminance($color) > 0.55 {
|
129
|
+
@return rgba(#000, 0.7);
|
130
|
+
} @else {
|
131
|
+
@return #fff;
|
132
|
+
}
|
133
|
+
}
|
134
|
+
|
135
|
+
@function bulmaFindLightColor($color, $l: 96%) {
|
136
|
+
@if type-of($color) == "color" {
|
137
|
+
$l: 96%;
|
138
|
+
|
139
|
+
@if lightness($color) > 96% {
|
140
|
+
$l: lightness($color);
|
141
|
+
}
|
142
|
+
|
143
|
+
@return change-color($color, $lightness: $l);
|
144
|
+
}
|
145
|
+
|
146
|
+
@return $background;
|
147
|
+
}
|
148
|
+
|
149
|
+
@function bulmaFindDarkColor($color, $base-l: 29%) {
|
150
|
+
@if type-of($color) == "color" {
|
151
|
+
$luminance: bulmaColorLuminance($color);
|
152
|
+
$luminance-delta: 0.53 - $luminance;
|
153
|
+
$target-l: round($base-l + $luminance-delta * 53);
|
154
|
+
|
155
|
+
@return change-color($color, $lightness: max($base-l, $target-l));
|
156
|
+
}
|
157
|
+
|
158
|
+
@return $text-strong;
|
159
|
+
}
|
160
|
+
|
161
|
+
@function bulmaRgba($color, $alpha) {
|
162
|
+
@if type-of($color) != "color" {
|
163
|
+
@return $color;
|
164
|
+
}
|
165
|
+
|
166
|
+
@return rgba($color, $alpha);
|
167
|
+
}
|
168
|
+
|
169
|
+
@function bulmaDarken($color, $amount) {
|
170
|
+
@if type-of($color) != "color" {
|
171
|
+
@return $color;
|
172
|
+
}
|
173
|
+
|
174
|
+
@return darken($color, $amount);
|
175
|
+
}
|
176
|
+
|
177
|
+
@function bulmaLighten($color, $amount) {
|
178
|
+
@if type-of($color) != "color" {
|
179
|
+
@return $color;
|
180
|
+
}
|
181
|
+
|
182
|
+
@return lighten($color, $amount);
|
183
|
+
}
|
184
|
+
|
185
|
+
@function bulmaColorBrightness($n) {
|
186
|
+
$color-brightness: round(
|
187
|
+
(red($n) * 299) + (green($n) * 587) + (blue($n) * 114) / 1000
|
188
|
+
);
|
189
|
+
$light-color: round(
|
190
|
+
(red(#ffffff) * 299) + (green(#ffffff) * 587) + (blue(#ffffff) * 114) / 1000
|
191
|
+
);
|
192
|
+
|
193
|
+
@if abs($color-brightness) < math.div($light-color, 2) {
|
194
|
+
@return "dark";
|
195
|
+
}
|
196
|
+
|
197
|
+
@return "bright";
|
198
|
+
}
|
199
|
+
|
200
|
+
@function bulmaEnoughContrast($foreground, $background) {
|
201
|
+
$r: (max(red($foreground), red($background))) -
|
202
|
+
(min(red($foreground), red($background)));
|
203
|
+
$g: (max(green($foreground), green($background))) -
|
204
|
+
(min(green($foreground), green($background)));
|
205
|
+
$b: (max(blue($foreground), blue($background))) -
|
206
|
+
(min(blue($foreground), blue($background)));
|
207
|
+
$sum-rgb: $r + $g + $b;
|
208
|
+
|
209
|
+
@if $sum-rgb < 500 {
|
210
|
+
@return false;
|
211
|
+
}
|
212
|
+
|
213
|
+
@return true;
|
214
|
+
}
|
215
|
+
|
216
|
+
// By Cory Simmons https://corysimmons.com/
|
217
|
+
@function bulmaStringToNumber($value) {
|
218
|
+
@if type-of($value) == "number" {
|
219
|
+
@return $value;
|
220
|
+
} @else if type-of($value) != "string" {
|
221
|
+
$_: log("Value for `to-number` should be a number or a string.");
|
222
|
+
}
|
223
|
+
|
224
|
+
$result: 0;
|
225
|
+
$digits: 0;
|
226
|
+
$minus: str-slice($value, 1, 1) == "-";
|
227
|
+
$numbers: (
|
228
|
+
"0": 0,
|
229
|
+
"1": 1,
|
230
|
+
"2": 2,
|
231
|
+
"3": 3,
|
232
|
+
"4": 4,
|
233
|
+
"5": 5,
|
234
|
+
"6": 6,
|
235
|
+
"7": 7,
|
236
|
+
"8": 8,
|
237
|
+
"9": 9,
|
238
|
+
);
|
239
|
+
|
240
|
+
@for $i from if($minus, 2, 1) through str-length($value) {
|
241
|
+
$character: str-slice($value, $i, $i);
|
242
|
+
|
243
|
+
@if not(index(map-keys($numbers), $character) or $character == ".") {
|
244
|
+
@return to-length(if($minus, -$result, $result), str-slice($value, $i));
|
245
|
+
}
|
246
|
+
|
247
|
+
@if $character == "." {
|
248
|
+
$digits: 1;
|
249
|
+
} @else if $digits == 0 {
|
250
|
+
$result: $result * 10 + map-get($numbers, $character);
|
251
|
+
} @else {
|
252
|
+
$digits: $digits * 10;
|
253
|
+
$result: $result + map-get($numbers, $character) / $digits;
|
254
|
+
}
|
255
|
+
}
|
256
|
+
|
257
|
+
@return if($minus, -$result, $result);
|
258
|
+
}
|
@@ -0,0 +1,155 @@
|
|
1
|
+
// Scheme Hue and Saturation
|
2
|
+
|
3
|
+
$scheme-h: 221;
|
4
|
+
$scheme-s: 14%;
|
5
|
+
$dark-l: 20%;
|
6
|
+
$light-l: 90%;
|
7
|
+
|
8
|
+
// Colors
|
9
|
+
|
10
|
+
$black: hsl(221, 14%, 4%) !default;
|
11
|
+
$black-bis: hsl(221, 14%, 9%) !default;
|
12
|
+
$black-ter: hsl(221, 14%, 14%) !default;
|
13
|
+
|
14
|
+
$grey-darker: hsl(221, 14%, 21%) !default;
|
15
|
+
$grey-dark: hsl(221, 14%, 29%) !default;
|
16
|
+
$grey: hsl(221, 14%, 48%) !default;
|
17
|
+
$grey-light: hsl(221, 14%, 71%) !default;
|
18
|
+
$grey-lighter: hsl(221, 14%, 86%) !default;
|
19
|
+
$grey-lightest: hsl(221, 14%, 93%) !default;
|
20
|
+
|
21
|
+
$white-ter: hsl(221, 14%, 96%) !default;
|
22
|
+
$white-bis: hsl(221, 14%, 98%) !default;
|
23
|
+
$white: hsl(221, 14%, 100%) !default;
|
24
|
+
|
25
|
+
$orange: hsl(14, 100%, 53%) !default;
|
26
|
+
$yellow: hsl(42, 100%, 53%) !default;
|
27
|
+
$green: hsl(153, 53%, 53%) !default;
|
28
|
+
$turquoise: hsl(171, 100%, 41%) !default;
|
29
|
+
$cyan: hsl(198, 100%, 70%) !default;
|
30
|
+
$blue: hsl(233, 100%, 63%) !default;
|
31
|
+
$purple: hsl(271, 100%, 71%) !default;
|
32
|
+
$red: hsl(348, 100%, 70%) !default;
|
33
|
+
|
34
|
+
// Typography
|
35
|
+
|
36
|
+
$family-sans-serif: "Inter", "SF Pro", "Segoe UI", "Roboto", "Oxygen", "Ubuntu",
|
37
|
+
"Helvetica Neue", "Helvetica", "Arial", sans-serif !default;
|
38
|
+
$family-monospace: "Inconsolata", "Hack", "SF Mono", "Roboto Mono",
|
39
|
+
"Source Code Pro", "Ubuntu Mono", monospace !default;
|
40
|
+
$render-mode: optimizeLegibility !default;
|
41
|
+
|
42
|
+
$size-1: 3rem !default;
|
43
|
+
$size-2: 2.5rem !default;
|
44
|
+
$size-3: 2rem !default;
|
45
|
+
$size-4: 1.5rem !default;
|
46
|
+
$size-5: 1.25rem !default;
|
47
|
+
$size-6: 1rem !default;
|
48
|
+
$size-7: 0.75rem !default;
|
49
|
+
|
50
|
+
$weight-light: 300 !default;
|
51
|
+
$weight-normal: 400 !default;
|
52
|
+
$weight-medium: 500 !default;
|
53
|
+
$weight-semibold: 600 !default;
|
54
|
+
$weight-bold: 700 !default;
|
55
|
+
$weight-extrabold: 800 !default;
|
56
|
+
|
57
|
+
// Spacing
|
58
|
+
|
59
|
+
$block-spacing: 1.5rem !default;
|
60
|
+
$aspect-ratios: (
|
61
|
+
(1, 1),
|
62
|
+
(5, 4),
|
63
|
+
(4, 3),
|
64
|
+
(3, 2),
|
65
|
+
(5, 3),
|
66
|
+
(16, 9),
|
67
|
+
(2, 1),
|
68
|
+
(3, 1),
|
69
|
+
(4, 5),
|
70
|
+
(3, 4),
|
71
|
+
(2, 3),
|
72
|
+
(3, 5),
|
73
|
+
(9, 16),
|
74
|
+
(1, 2),
|
75
|
+
(1, 3)
|
76
|
+
) !default;
|
77
|
+
|
78
|
+
// Responsiveness
|
79
|
+
|
80
|
+
// The container horizontal gap, which acts as the offset for breakpoints
|
81
|
+
$gap: 32px !default;
|
82
|
+
|
83
|
+
// 960, 1152, and 1344 have been chosen because they are divisible by both 12 and 16
|
84
|
+
$tablet: 769px !default;
|
85
|
+
|
86
|
+
// 960px container + 4rem
|
87
|
+
$desktop: 960px + 2 * $gap !default;
|
88
|
+
|
89
|
+
// 1152px container + 4rem
|
90
|
+
$widescreen: 1152px + 2 * $gap !default;
|
91
|
+
$widescreen-enabled: true !default;
|
92
|
+
|
93
|
+
// 1344px container + 4rem
|
94
|
+
$fullhd: 1344px + 2 * $gap !default;
|
95
|
+
$fullhd-enabled: true !default;
|
96
|
+
$breakpoints: (
|
97
|
+
"mobile": (
|
98
|
+
"until": $tablet,
|
99
|
+
),
|
100
|
+
"tablet": (
|
101
|
+
"from": $tablet,
|
102
|
+
),
|
103
|
+
"tablet-only": (
|
104
|
+
"from": $tablet,
|
105
|
+
"until": $desktop,
|
106
|
+
),
|
107
|
+
"touch": (
|
108
|
+
"from": $desktop,
|
109
|
+
),
|
110
|
+
"desktop": (
|
111
|
+
"from": $desktop,
|
112
|
+
),
|
113
|
+
"desktop-only": (
|
114
|
+
"from": $desktop,
|
115
|
+
"until": $widescreen,
|
116
|
+
),
|
117
|
+
"until-widescreen": (
|
118
|
+
"until": $widescreen,
|
119
|
+
),
|
120
|
+
"widescreen": (
|
121
|
+
"from": $widescreen,
|
122
|
+
),
|
123
|
+
"widescreen-only": (
|
124
|
+
"from": $widescreen,
|
125
|
+
"until": $fullhd,
|
126
|
+
),
|
127
|
+
"until-fullhd": (
|
128
|
+
"until": $fullhd,
|
129
|
+
),
|
130
|
+
"fullhd": (
|
131
|
+
"from": $fullhd,
|
132
|
+
),
|
133
|
+
) !default;
|
134
|
+
|
135
|
+
// Miscellaneous
|
136
|
+
|
137
|
+
$easing: ease-out !default;
|
138
|
+
$radius-small: 0.25rem !default;
|
139
|
+
$radius: 0.375rem !default;
|
140
|
+
$radius-medium: 0.5em !default;
|
141
|
+
$radius-large: 0.75rem !default;
|
142
|
+
$radius-rounded: 9999px !default;
|
143
|
+
$speed: 86ms !default;
|
144
|
+
|
145
|
+
// Flags
|
146
|
+
|
147
|
+
$variable-columns: true !default;
|
148
|
+
$rtl: false !default;
|
149
|
+
|
150
|
+
// Prefixes
|
151
|
+
|
152
|
+
$class-prefix: "" !default;
|
153
|
+
$cssvars-prefix: "bulma-" !default;
|
154
|
+
$helpers-prefix: "is-" !default;
|
155
|
+
$helpers-has-prefix: "has-" !default;
|