bulma-rails 1.0.0 → 1.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 +30 -3
- data/app/assets/stylesheets/bulma.scss +1 -1
- data/app/assets/stylesheets/sass/base/skeleton.scss +0 -12
- data/app/assets/stylesheets/sass/components/navbar.scss +41 -30
- data/app/assets/stylesheets/sass/components/panel.scss +2 -2
- data/app/assets/stylesheets/sass/elements/button.scss +9 -2
- data/app/assets/stylesheets/sass/elements/content.scss +8 -2
- data/app/assets/stylesheets/sass/form/checkbox-radio.scss +7 -3
- data/app/assets/stylesheets/sass/form/input-textarea.scss +0 -10
- data/app/assets/stylesheets/sass/form/select.scss +1 -0
- data/app/assets/stylesheets/sass/form/shared.scss +5 -1
- data/app/assets/stylesheets/sass/form/tools.scss +23 -12
- data/app/assets/stylesheets/sass/grid/columns.scss +109 -25
- data/app/assets/stylesheets/sass/grid/grid.scss +3 -3
- data/app/assets/stylesheets/sass/helpers/color.scss +166 -186
- data/app/assets/stylesheets/sass/layout/container.scss +16 -8
- data/app/assets/stylesheets/sass/layout/section.scss +4 -0
- data/app/assets/stylesheets/sass/themes/light.scss +1 -0
- data/app/assets/stylesheets/sass/utilities/css-variables.scss +3 -2
- data/app/assets/stylesheets/sass/utilities/functions.scss +2 -2
- data/app/assets/stylesheets/sass/utilities/initial-variables.scss +4 -4
- data/app/assets/stylesheets/sass/utilities/mixins.scss +1 -1
- data/bulma-rails.gemspec +1 -1
- metadata +3 -4
- data/app/assets/stylesheets/sass/grid/columns-v2.scss +0 -957
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2dce4d4282d0b1cdf88404d105fb70d7d78b60c02bc3f242865ee946de3bfcbf
|
4
|
+
data.tar.gz: 948f197e1cc691955e805f89a6b115f7505fddad60678c4436dd81caad4496cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f6c176c264bb30d5ca3c0327cebd3be50bf20d74a176ec13d5937867ef75ddd0656e9bb2308d1edf8f133eaddf4e9d99d7eec7c884f94a91615e752321ff493
|
7
|
+
data.tar.gz: 02bb51a017884d09f1f7dd59b54ba84912673a987dfbdec79f87b1f508e356187588ac567763c881898b886877c0027a6a48f94995930b30b4821aadd8694cb3
|
data/README.md
CHANGED
@@ -51,14 +51,41 @@ For using mixins add the following line to your `application.scss`:
|
|
51
51
|
|
52
52
|
@use "sass/utilities/mixins";
|
53
53
|
|
54
|
-
For more information about Mixins see [Bulma Sass Mixins](https://bulma.io/documentation/
|
54
|
+
For more information about Mixins see [Bulma Sass Mixins](https://bulma.io/documentation/sass/mixins/)
|
55
|
+
|
56
|
+
## Customization
|
57
|
+
|
58
|
+
To overwrite Bulma’s Sass variables with your own value, write `@use` and the `with` keyword for example to your `application.scss`:
|
59
|
+
```
|
60
|
+
// Set your brand colors
|
61
|
+
$purple: #8a4d76;
|
62
|
+
$pink: #fa7c91;
|
63
|
+
$brown: #757763;
|
64
|
+
$beige-light: #d0d1cd;
|
65
|
+
$beige-lighter: #eff0eb;
|
66
|
+
|
67
|
+
// Override global Sass variables from the /utilities folder
|
68
|
+
@use "sass/utilities" with (
|
69
|
+
$family-primary: '"Nunito", sans-serif',
|
70
|
+
$grey-dark: $brown,
|
71
|
+
$grey-light: $beige-light,
|
72
|
+
$primary: $purple,
|
73
|
+
$link: $pink,
|
74
|
+
$control-border-width: 2px
|
75
|
+
);
|
76
|
+
|
77
|
+
// Load all styles
|
78
|
+
@use "bulma";
|
79
|
+
```
|
80
|
+
|
81
|
+
This allows you to override Bulma’s global variables from the `utilities` folder.
|
82
|
+
|
83
|
+
For more information about Customization see [Customize with Modular Sass](https://bulma.io/documentation/customize/with-modular-sass/)
|
55
84
|
|
56
85
|
## Helpful references
|
57
86
|
|
58
87
|
Migrating to Bulma v1 and discover what changes, see [Migrating to Bulma v1](https://bulma.io/documentation/start/migrating-to-v1/)
|
59
88
|
|
60
|
-
For information about customizing Bulma, see: [Bulma Customization Concepts](https://bulma.io/documentation/customize/concepts/)
|
61
|
-
|
62
89
|
## Contributing
|
63
90
|
|
64
91
|
1. Fork it
|
@@ -112,15 +112,3 @@ textarea.#{iv.$class-prefix}is-skeleton {
|
|
112
112
|
}
|
113
113
|
}
|
114
114
|
}
|
115
|
-
|
116
|
-
.#{iv.$class-prefix}skeleton {
|
117
|
-
background-image: linear-gradient(
|
118
|
-
0deg,
|
119
|
-
transparent 0%,
|
120
|
-
transparent 50%,
|
121
|
-
#f60 50%,
|
122
|
-
#f60 100%
|
123
|
-
);
|
124
|
-
background-position: top left;
|
125
|
-
background-size: 1.5em;
|
126
|
-
}
|
@@ -4,9 +4,9 @@
|
|
4
4
|
@use "../utilities/extends";
|
5
5
|
@use "../utilities/mixins" as mx;
|
6
6
|
|
7
|
-
$navbar-h: cv.getVar("scheme-h");
|
8
|
-
$navbar-s: cv.getVar("scheme-s");
|
9
|
-
$navbar-l: cv.getVar("scheme-main-l");
|
7
|
+
$navbar-h: cv.getVar("scheme-h") !default;
|
8
|
+
$navbar-s: cv.getVar("scheme-s") !default;
|
9
|
+
$navbar-l: cv.getVar("scheme-main-l") !default;
|
10
10
|
$navbar-background-color: cv.getVar("scheme-main") !default;
|
11
11
|
$navbar-box-shadow-size: 0 0.125em 0 0 !default;
|
12
12
|
$navbar-box-shadow-color: cv.getVar("background") !default;
|
@@ -16,26 +16,35 @@ $navbar-padding-horizontal: 2rem !default;
|
|
16
16
|
$navbar-z: 30 !default;
|
17
17
|
$navbar-fixed-z: 30 !default;
|
18
18
|
|
19
|
-
$navbar-item-background-a: 0;
|
20
|
-
$navbar-item-background-l: cv.getVar("scheme-main-l");
|
21
|
-
$navbar-item-background-l-delta: 0
|
22
|
-
$navbar-item-hover-background-l-delta: cv.getVar(
|
23
|
-
|
24
|
-
|
25
|
-
$navbar-item-
|
26
|
-
|
27
|
-
|
28
|
-
$navbar-item-
|
29
|
-
$navbar-item-
|
19
|
+
$navbar-item-background-a: 0 !default;
|
20
|
+
$navbar-item-background-l: cv.getVar("scheme-main-l") !default;
|
21
|
+
$navbar-item-background-l-delta: 0% !default;
|
22
|
+
$navbar-item-hover-background-l-delta: cv.getVar(
|
23
|
+
"hover-background-l-delta"
|
24
|
+
) !default;
|
25
|
+
$navbar-item-active-background-l-delta: cv.getVar(
|
26
|
+
"active-background-l-delta"
|
27
|
+
) !default;
|
28
|
+
$navbar-item-color-l: cv.getVar("text-l") !default;
|
29
|
+
$navbar-item-color: hsl(
|
30
|
+
#{cv.getVar("navbar-h")},
|
31
|
+
#{cv.getVar("navbar-s")},
|
32
|
+
#{cv.getVar("navbar-item-color-l")}
|
33
|
+
) !default;
|
34
|
+
$navbar-item-selected-h: cv.getVar("link-h") !default;
|
35
|
+
$navbar-item-selected-s: cv.getVar("link-s") !default;
|
36
|
+
$navbar-item-selected-l: cv.getVar("link-l") !default;
|
37
|
+
$navbar-item-selected-background-l: cv.getVar("link-l") !default;
|
38
|
+
$navbar-item-selected-color-l: cv.getVar("link-invert-l") !default;
|
30
39
|
$navbar-item-img-max-height: 1.75rem !default;
|
31
40
|
|
32
|
-
$navbar-dropdown-item-h: cv.getVar("scheme-h");
|
33
|
-
$navbar-dropdown-item-s: cv.getVar("scheme-s");
|
34
|
-
$navbar-dropdown-item-l: cv.getVar("scheme-main-l");
|
35
|
-
$navbar-dropdown-item-background-l: cv.getVar("scheme-main-l");
|
36
|
-
$navbar-dropdown-item-color-l: cv.getVar("text-l");
|
41
|
+
$navbar-dropdown-item-h: cv.getVar("scheme-h") !default;
|
42
|
+
$navbar-dropdown-item-s: cv.getVar("scheme-s") !default;
|
43
|
+
$navbar-dropdown-item-l: cv.getVar("scheme-main-l") !default;
|
44
|
+
$navbar-dropdown-item-background-l: cv.getVar("scheme-main-l") !default;
|
45
|
+
$navbar-dropdown-item-color-l: cv.getVar("text-l") !default;
|
37
46
|
|
38
|
-
$navbar-burger-color: cv.getVar("
|
47
|
+
$navbar-burger-color: cv.getVar("link") !default;
|
39
48
|
|
40
49
|
$navbar-tab-hover-background-color: transparent !default;
|
41
50
|
$navbar-tab-hover-border-bottom-color: cv.getVar("link") !default;
|
@@ -119,6 +128,7 @@ $navbar-colors: dv.$colors !default;
|
|
119
128
|
"navbar-item-hover-background-l-delta": #{$navbar-item-hover-background-l-delta},
|
120
129
|
"navbar-item-active-background-l-delta": #{$navbar-item-active-background-l-delta},
|
121
130
|
"navbar-item-color-l": #{$navbar-item-color-l},
|
131
|
+
"navbar-item-color": #{$navbar-item-color},
|
122
132
|
"navbar-item-selected-h": #{$navbar-item-selected-h},
|
123
133
|
"navbar-item-selected-s": #{$navbar-item-selected-s},
|
124
134
|
"navbar-item-selected-l": #{$navbar-item-selected-l},
|
@@ -254,9 +264,13 @@ body {
|
|
254
264
|
.#{iv.$class-prefix}navbar-burger {
|
255
265
|
@extend %reset;
|
256
266
|
@include mx.burger(2.5rem);
|
257
|
-
|
258
|
-
|
259
|
-
|
267
|
+
|
268
|
+
& {
|
269
|
+
align-self: center;
|
270
|
+
color: cv.getVar("navbar-burger-color");
|
271
|
+
margin-inline-start: auto;
|
272
|
+
margin-inline-end: 0.375rem;
|
273
|
+
}
|
260
274
|
}
|
261
275
|
|
262
276
|
.#{iv.$class-prefix}navbar-menu {
|
@@ -265,12 +279,9 @@ body {
|
|
265
279
|
|
266
280
|
.#{iv.$class-prefix}navbar-item,
|
267
281
|
.#{iv.$class-prefix}navbar-link {
|
268
|
-
color:
|
269
|
-
#{cv.getVar("navbar-h")},
|
270
|
-
#{cv.getVar("navbar-s")},
|
271
|
-
#{cv.getVar("navbar-item-color-l")}
|
272
|
-
);
|
282
|
+
color: cv.getVar("navbar-item-color");
|
273
283
|
display: block;
|
284
|
+
gap: 0.75rem;
|
274
285
|
line-height: 1.5;
|
275
286
|
padding: 0.5rem 0.75rem;
|
276
287
|
position: relative;
|
@@ -650,8 +661,8 @@ a.#{iv.$class-prefix}navbar-item,
|
|
650
661
|
|
651
662
|
.#{iv.$class-prefix}navbar-dropdown {
|
652
663
|
background-color: cv.getVar("navbar-dropdown-background-color");
|
653
|
-
border-
|
654
|
-
border-
|
664
|
+
border-end-start-radius: cv.getVar("navbar-dropdown-radius");
|
665
|
+
border-end-end-radius: cv.getVar("navbar-dropdown-radius");
|
655
666
|
border-top-color: cv.getVar("navbar-dropdown-border-color");
|
656
667
|
border-top-style: cv.getVar("navbar-dropdown-border-style");
|
657
668
|
border-top-width: cv.getVar("navbar-dropdown-border-width");
|
@@ -192,8 +192,8 @@ $panel-colors: dv.$colors !default;
|
|
192
192
|
}
|
193
193
|
|
194
194
|
&:last-child {
|
195
|
-
border-
|
196
|
-
border-
|
195
|
+
border-end-start-radius: cv.getVar("panel-radius");
|
196
|
+
border-end-end-radius: cv.getVar("panel-radius");
|
197
197
|
}
|
198
198
|
}
|
199
199
|
|
@@ -33,6 +33,7 @@ $button-border-width: cv.getVar("control-border-width") !default;
|
|
33
33
|
|
34
34
|
$button-padding-vertical: 0.5em !default;
|
35
35
|
$button-padding-horizontal: 1em !default;
|
36
|
+
$button-rounded-padding-horizontal-offset: 0.25em !default;
|
36
37
|
|
37
38
|
$button-focus-border-color: cv.getVar("link-focus-border") !default;
|
38
39
|
$button-focus-box-shadow-size: 0 0 0 0.125em !default;
|
@@ -533,8 +534,14 @@ $no-palette: ("white", "black", "light", "dark");
|
|
533
534
|
|
534
535
|
&.#{iv.$class-prefix}is-rounded {
|
535
536
|
border-radius: cv.getVar("radius-rounded");
|
536
|
-
padding-left: calc(
|
537
|
-
|
537
|
+
padding-left: calc(
|
538
|
+
#{cv.getVar("button-padding-horizontal")} + #{$button-rounded-padding-horizontal-offset} -
|
539
|
+
#{cv.getVar("button-border-width")}
|
540
|
+
);
|
541
|
+
padding-right: calc(
|
542
|
+
#{cv.getVar("button-padding-horizontal")} + #{$button-rounded-padding-horizontal-offset} -
|
543
|
+
#{cv.getVar("button-border-width")}
|
544
|
+
);
|
538
545
|
}
|
539
546
|
}
|
540
547
|
|
@@ -133,7 +133,10 @@ $content-table-foot-cell-color: #{cv.getVar("text-strong")} !default;
|
|
133
133
|
ol {
|
134
134
|
list-style-position: outside;
|
135
135
|
margin-inline-start: 2em;
|
136
|
-
|
136
|
+
|
137
|
+
&:not(:first-child) {
|
138
|
+
margin-top: 1em;
|
139
|
+
}
|
137
140
|
|
138
141
|
&:not([type]) {
|
139
142
|
list-style-type: decimal;
|
@@ -159,7 +162,10 @@ $content-table-foot-cell-color: #{cv.getVar("text-strong")} !default;
|
|
159
162
|
ul {
|
160
163
|
list-style: disc outside;
|
161
164
|
margin-inline-start: 2em;
|
162
|
-
|
165
|
+
|
166
|
+
&:not(:first-child) {
|
167
|
+
margin-top: 1em;
|
168
|
+
}
|
163
169
|
|
164
170
|
ul {
|
165
171
|
list-style-type: circle;
|
@@ -25,8 +25,12 @@
|
|
25
25
|
|
26
26
|
.#{iv.$class-prefix}radio {
|
27
27
|
@extend %checkbox-radio;
|
28
|
+
}
|
28
29
|
|
29
|
-
|
30
|
-
|
31
|
-
|
30
|
+
.#{iv.$class-prefix}checkboxes,
|
31
|
+
.#{iv.$class-prefix}radios {
|
32
|
+
display: flex;
|
33
|
+
flex-wrap: wrap;
|
34
|
+
column-gap: 1em;
|
35
|
+
row-gap: 0.5em;
|
32
36
|
}
|
@@ -12,16 +12,6 @@ $textarea-colors: shared.$form-colors !default;
|
|
12
12
|
%input-textarea {
|
13
13
|
@extend %input;
|
14
14
|
|
15
|
-
@include cv.register-vars(
|
16
|
-
(
|
17
|
-
"input-h": #{cv.getVar("scheme-h")},
|
18
|
-
"input-s": #{cv.getVar("scheme-s")},
|
19
|
-
"input-border-style": solid,
|
20
|
-
"input-border-width": 1px,
|
21
|
-
"input-border-l": #{cv.getVar("border-l")},
|
22
|
-
)
|
23
|
-
);
|
24
|
-
|
25
15
|
box-shadow: shared.$input-shadow;
|
26
16
|
max-width: 100%;
|
27
17
|
width: 100%;
|
@@ -9,6 +9,8 @@ $form-colors: dv.$colors !default;
|
|
9
9
|
$input-h: #{cv.getVar("scheme-h")} !default;
|
10
10
|
$input-s: #{cv.getVar("scheme-s")} !default;
|
11
11
|
$input-l: #{cv.getVar("scheme-main-l")} !default;
|
12
|
+
$input-border-style: solid !default;
|
13
|
+
$input-border-width: cv.getVar("control-border-width") !default;
|
12
14
|
$input-border-l: cv.getVar("border-l") !default;
|
13
15
|
$input-border-l-delta: 0% !default;
|
14
16
|
$input-hover-border-l-delta: #{cv.getVar("hover-border-l-delta")} !default;
|
@@ -58,12 +60,14 @@ $input-radius: cv.getVar("radius") !default;
|
|
58
60
|
.#{iv.$class-prefix}control,
|
59
61
|
.#{iv.$class-prefix}input,
|
60
62
|
.#{iv.$class-prefix}textarea,
|
61
|
-
.#{iv.$class-prefix}select
|
63
|
+
.#{iv.$class-prefix}select {
|
62
64
|
@include cv.register-vars(
|
63
65
|
(
|
64
66
|
"input-h": #{$input-h},
|
65
67
|
"input-s": #{$input-s},
|
66
68
|
"input-l": #{$input-l},
|
69
|
+
"input-border-style": #{$input-border-style},
|
70
|
+
"input-border-width": #{$input-border-width},
|
67
71
|
"input-border-l": #{$input-border-l},
|
68
72
|
"input-border-l-delta": #{$input-border-l-delta},
|
69
73
|
"input-hover-border-l-delta": #{$input-hover-border-l-delta},
|
@@ -6,20 +6,35 @@
|
|
6
6
|
@use "../utilities/mixins" as mx;
|
7
7
|
|
8
8
|
$label-color: cv.getVar("text-strong") !default;
|
9
|
+
$label-spacing: 0.5em !default;
|
9
10
|
$label-weight: cv.getVar("weight-semibold") !default;
|
10
11
|
|
11
12
|
$help-size: cv.getVar("size-small") !default;
|
12
13
|
|
13
14
|
$label-colors: shared.$form-colors !default;
|
14
15
|
|
16
|
+
$field-block-spacing: 0.75rem !default;
|
17
|
+
|
18
|
+
:root {
|
19
|
+
@include cv.register-vars(
|
20
|
+
(
|
21
|
+
"label-color": #{$label-color},
|
22
|
+
"label-spacing": #{$label-spacing},
|
23
|
+
"label-weight": #{$label-weight},
|
24
|
+
"help-size": #{$help-size},
|
25
|
+
"field-block-spacing": #{$field-block-spacing},
|
26
|
+
)
|
27
|
+
);
|
28
|
+
}
|
29
|
+
|
15
30
|
.#{iv.$class-prefix}label {
|
16
|
-
color:
|
31
|
+
color: cv.getVar("label-color");
|
17
32
|
display: block;
|
18
33
|
font-size: cv.getVar("size-normal");
|
19
34
|
font-weight: $label-weight;
|
20
35
|
|
21
36
|
&:not(:last-child) {
|
22
|
-
margin-bottom:
|
37
|
+
margin-bottom: cv.getVar("label-spacing");
|
23
38
|
}
|
24
39
|
|
25
40
|
// Sizes
|
@@ -38,7 +53,7 @@ $label-colors: shared.$form-colors !default;
|
|
38
53
|
|
39
54
|
.#{iv.$class-prefix}help {
|
40
55
|
display: block;
|
41
|
-
font-size:
|
56
|
+
font-size: cv.getVar("help-size");
|
42
57
|
margin-top: 0.25rem;
|
43
58
|
|
44
59
|
@each $name, $pair in $label-colors {
|
@@ -57,7 +72,7 @@ $label-colors: shared.$form-colors !default;
|
|
57
72
|
.#{iv.$class-prefix}field {
|
58
73
|
@include cv.register-vars(
|
59
74
|
(
|
60
|
-
"block-spacing":
|
75
|
+
"block-spacing": #{cv.getVar("field-block-spacing")},
|
61
76
|
)
|
62
77
|
);
|
63
78
|
|
@@ -85,10 +100,8 @@ $label-colors: shared.$form-colors !default;
|
|
85
100
|
.#{iv.$class-prefix}button,
|
86
101
|
.#{iv.$class-prefix}input,
|
87
102
|
.#{iv.$class-prefix}select select {
|
88
|
-
|
89
|
-
border-
|
90
|
-
border-top-right-radius: 0;
|
91
|
-
// }
|
103
|
+
border-start-end-radius: 0;
|
104
|
+
border-end-end-radius: 0;
|
92
105
|
}
|
93
106
|
}
|
94
107
|
|
@@ -96,10 +109,8 @@ $label-colors: shared.$form-colors !default;
|
|
96
109
|
.#{iv.$class-prefix}button,
|
97
110
|
.#{iv.$class-prefix}input,
|
98
111
|
.#{iv.$class-prefix}select select {
|
99
|
-
|
100
|
-
border-
|
101
|
-
border-top-left-radius: 0;
|
102
|
-
// }
|
112
|
+
border-start-start-radius: 0;
|
113
|
+
border-end-start-radius: 0;
|
103
114
|
}
|
104
115
|
}
|
105
116
|
|
@@ -20,7 +20,7 @@ $column-gap: 0.75rem !default;
|
|
20
20
|
flex-basis: 0;
|
21
21
|
flex-grow: 1;
|
22
22
|
flex-shrink: 1;
|
23
|
-
padding:
|
23
|
+
padding: cv.getVar("column-gap");
|
24
24
|
|
25
25
|
.#{iv.$class-prefix}columns.#{iv.$class-prefix}is-mobile
|
26
26
|
> &.#{iv.$class-prefix}is-narrow {
|
@@ -137,9 +137,7 @@ $column-gap: 0.75rem !default;
|
|
137
137
|
.#{iv.$class-prefix}columns.#{iv.$class-prefix}is-mobile
|
138
138
|
> &.#{iv.$class-prefix}is-#{$i} {
|
139
139
|
flex: none;
|
140
|
-
width:
|
141
|
-
math.percentage(math.div($i, 12)) - calc(#{cv.getVar("column-gap")} / 2)
|
142
|
-
);
|
140
|
+
width: math.percentage(math.div($i, 12));
|
143
141
|
}
|
144
142
|
|
145
143
|
.#{iv.$class-prefix}columns.#{iv.$class-prefix}is-mobile
|
@@ -243,11 +241,7 @@ $column-gap: 0.75rem !default;
|
|
243
241
|
@for $i from 0 through 12 {
|
244
242
|
&.#{iv.$class-prefix}is-#{$i}-mobile {
|
245
243
|
flex: none;
|
246
|
-
width:
|
247
|
-
math.percentage(math.div($i, 12)) - calc(
|
248
|
-
#{cv.getVar("column-gap")} / 2
|
249
|
-
)
|
250
|
-
);
|
244
|
+
width: math.percentage(math.div($i, 12));
|
251
245
|
}
|
252
246
|
|
253
247
|
&.#{iv.$class-prefix}is-offset-#{$i}-mobile {
|
@@ -372,11 +366,7 @@ $column-gap: 0.75rem !default;
|
|
372
366
|
&.#{iv.$class-prefix}is-#{$i},
|
373
367
|
&.#{iv.$class-prefix}is-#{$i}-tablet {
|
374
368
|
flex: none;
|
375
|
-
width:
|
376
|
-
math.percentage(math.div($i, 12)) - calc(
|
377
|
-
#{cv.getVar("column-gap")} / 2
|
378
|
-
)
|
379
|
-
);
|
369
|
+
width: math.percentage(math.div($i, 12));
|
380
370
|
}
|
381
371
|
|
382
372
|
&.#{iv.$class-prefix}is-offset-#{$i},
|
@@ -585,11 +575,7 @@ $column-gap: 0.75rem !default;
|
|
585
575
|
@for $i from 0 through 12 {
|
586
576
|
&.#{iv.$class-prefix}is-#{$i}-desktop {
|
587
577
|
flex: none;
|
588
|
-
width:
|
589
|
-
math.percentage(math.div($i, 12)) - calc(
|
590
|
-
#{cv.getVar("column-gap")} / 2
|
591
|
-
)
|
592
|
-
);
|
578
|
+
width: math.percentage(math.div($i, 12));
|
593
579
|
}
|
594
580
|
|
595
581
|
&.#{iv.$class-prefix}is-offset-#{$i}-desktop {
|
@@ -693,11 +679,7 @@ $column-gap: 0.75rem !default;
|
|
693
679
|
@for $i from 0 through 12 {
|
694
680
|
&.#{iv.$class-prefix}is-#{$i}-widescreen {
|
695
681
|
flex: none;
|
696
|
-
width:
|
697
|
-
math.percentage(math.div($i, 12)) - calc(
|
698
|
-
#{cv.getVar("column-gap")} / 2
|
699
|
-
)
|
700
|
-
);
|
682
|
+
width: math.percentage(math.div($i, 12));
|
701
683
|
}
|
702
684
|
|
703
685
|
&.#{iv.$class-prefix}is-offset-#{$i}-widescreen {
|
@@ -821,7 +803,9 @@ $column-gap: 0.75rem !default;
|
|
821
803
|
}
|
822
804
|
|
823
805
|
&:not(:last-child) {
|
824
|
-
margin-bottom: calc(
|
806
|
+
margin-bottom: calc(
|
807
|
+
#{cv.getVar("block-spacing")} - #{cv.getVar("column-gap")}
|
808
|
+
);
|
825
809
|
}
|
826
810
|
|
827
811
|
// Modifiers
|
@@ -874,4 +858,104 @@ $column-gap: 0.75rem !default;
|
|
874
858
|
display: flex;
|
875
859
|
}
|
876
860
|
}
|
861
|
+
|
862
|
+
@for $i from 0 through 8 {
|
863
|
+
&.#{iv.$class-prefix}is-#{$i} {
|
864
|
+
@include cv.register-vars(
|
865
|
+
(
|
866
|
+
"column-gap": #{$i * 0.25rem},
|
867
|
+
)
|
868
|
+
);
|
869
|
+
}
|
870
|
+
|
871
|
+
@include mx.mobile {
|
872
|
+
&.#{iv.$class-prefix}is-#{$i}-mobile {
|
873
|
+
@include cv.register-vars(
|
874
|
+
(
|
875
|
+
"column-gap": #{$i * 0.25rem},
|
876
|
+
)
|
877
|
+
);
|
878
|
+
}
|
879
|
+
}
|
880
|
+
|
881
|
+
@include mx.tablet {
|
882
|
+
&.#{iv.$class-prefix}is-#{$i}-tablet {
|
883
|
+
@include cv.register-vars(
|
884
|
+
(
|
885
|
+
"column-gap": #{$i * 0.25rem},
|
886
|
+
)
|
887
|
+
);
|
888
|
+
}
|
889
|
+
}
|
890
|
+
|
891
|
+
@include mx.tablet-only {
|
892
|
+
&.#{iv.$class-prefix}is-#{$i}-tablet-only {
|
893
|
+
@include cv.register-vars(
|
894
|
+
(
|
895
|
+
"column-gap": #{$i * 0.25rem},
|
896
|
+
)
|
897
|
+
);
|
898
|
+
}
|
899
|
+
}
|
900
|
+
|
901
|
+
@include mx.touch {
|
902
|
+
&.#{iv.$class-prefix}is-#{$i}-touch {
|
903
|
+
@include cv.register-vars(
|
904
|
+
(
|
905
|
+
"column-gap": #{$i * 0.25rem},
|
906
|
+
)
|
907
|
+
);
|
908
|
+
}
|
909
|
+
}
|
910
|
+
|
911
|
+
@include mx.desktop {
|
912
|
+
&.#{iv.$class-prefix}is-#{$i}-desktop {
|
913
|
+
@include cv.register-vars(
|
914
|
+
(
|
915
|
+
"column-gap": #{$i * 0.25rem},
|
916
|
+
)
|
917
|
+
);
|
918
|
+
}
|
919
|
+
}
|
920
|
+
|
921
|
+
@include mx.desktop-only {
|
922
|
+
&.#{iv.$class-prefix}is-#{$i}-desktop-only {
|
923
|
+
@include cv.register-vars(
|
924
|
+
(
|
925
|
+
"column-gap": #{$i * 0.25rem},
|
926
|
+
)
|
927
|
+
);
|
928
|
+
}
|
929
|
+
}
|
930
|
+
|
931
|
+
@include mx.widescreen {
|
932
|
+
&.#{iv.$class-prefix}is-#{$i}-widescreen {
|
933
|
+
@include cv.register-vars(
|
934
|
+
(
|
935
|
+
"column-gap": #{$i * 0.25rem},
|
936
|
+
)
|
937
|
+
);
|
938
|
+
}
|
939
|
+
}
|
940
|
+
|
941
|
+
@include mx.widescreen-only {
|
942
|
+
&.#{iv.$class-prefix}is-#{$i}-widescreen-only {
|
943
|
+
@include cv.register-vars(
|
944
|
+
(
|
945
|
+
"column-gap": #{$i * 0.25rem},
|
946
|
+
)
|
947
|
+
);
|
948
|
+
}
|
949
|
+
}
|
950
|
+
|
951
|
+
@include mx.fullhd {
|
952
|
+
&.#{iv.$class-prefix}is-#{$i}-fullhd {
|
953
|
+
@include cv.register-vars(
|
954
|
+
(
|
955
|
+
"column-gap": #{$i * 0.25rem},
|
956
|
+
)
|
957
|
+
);
|
958
|
+
}
|
959
|
+
}
|
960
|
+
}
|
877
961
|
}
|
@@ -10,7 +10,7 @@ $column-min-base: 1.5rem;
|
|
10
10
|
@mixin fixed-grid-properties($suffix: "") {
|
11
11
|
@for $i from 1 through $max-column-count {
|
12
12
|
&.#{iv.$class-prefix}has-#{$i}-cols#{$suffix} {
|
13
|
-
.#{iv.$class-prefix}grid {
|
13
|
+
> .#{iv.$class-prefix}grid {
|
14
14
|
@include cv.register-var("grid-column-count", #{$i});
|
15
15
|
}
|
16
16
|
}
|
@@ -24,7 +24,7 @@ $grid-container-name: bulma-fixed-grid;
|
|
24
24
|
container-name: $grid-container-name;
|
25
25
|
container-type: inline-size;
|
26
26
|
|
27
|
-
.#{iv.$class-prefix}grid {
|
27
|
+
> .#{iv.$class-prefix}grid {
|
28
28
|
@include cv.register-vars(
|
29
29
|
(
|
30
30
|
"grid-gap-count": calc(#{cv.getVar("grid-column-count")} - 1),
|
@@ -110,7 +110,7 @@ $grid-container-name: bulma-fixed-grid;
|
|
110
110
|
);
|
111
111
|
}
|
112
112
|
|
113
|
-
@for $i from 1 through
|
113
|
+
@for $i from 1 through 32 {
|
114
114
|
&.#{iv.$class-prefix}is-col-min-#{$i} {
|
115
115
|
@include cv.register-vars(
|
116
116
|
(
|