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
@@ -34,306 +34,272 @@ $digits: (
|
|
34
34
|
$background: hsl(
|
35
35
|
#{cv.getVar($name, "", "-h")},
|
36
36
|
#{cv.getVar($name, "", "-s")},
|
37
|
-
|
37
|
+
#{cv.getVar($name, "", "-l")}
|
38
38
|
);
|
39
39
|
|
40
40
|
$color: hsl(
|
41
41
|
#{cv.getVar($name, "", "-h")},
|
42
42
|
#{cv.getVar($name, "", "-s")},
|
43
|
-
|
43
|
+
#{cv.getVar($name, "", "-l")}
|
44
44
|
);
|
45
45
|
|
46
|
-
|
47
|
-
[class*="#{iv.$helpers-has-prefix}text-#{$name}"] {
|
48
|
-
@include cv.register-vars(
|
49
|
-
(
|
50
|
-
"color-l": #{cv.getVar($name, "", "-l")},
|
51
|
-
"color-l-delta": 0%,
|
52
|
-
)
|
53
|
-
);
|
46
|
+
.#{iv.$helpers-has-prefix}text-#{$name} {
|
54
47
|
color: $color !important;
|
55
48
|
}
|
56
49
|
|
57
|
-
|
58
|
-
[class*="#{iv.$helpers-has-prefix}background-#{$name}"] {
|
59
|
-
@include cv.register-vars(
|
60
|
-
(
|
61
|
-
"background-l": #{cv.getVar($name, "", "-l")},
|
62
|
-
"background-l-delta": 0%,
|
63
|
-
)
|
64
|
-
);
|
50
|
+
.#{iv.$helpers-has-prefix}background-#{$name} {
|
65
51
|
background-color: $background !important;
|
66
52
|
}
|
67
53
|
|
68
54
|
// Invert
|
69
|
-
.#{iv.$helpers-prefix}color-#{$name}-invert,
|
70
55
|
.#{iv.$helpers-has-prefix}text-#{$name}-invert {
|
71
|
-
|
72
|
-
(
|
73
|
-
|
74
|
-
)
|
75
|
-
);
|
56
|
+
color: hsl(
|
57
|
+
#{cv.getVar($name, "", "-h")},
|
58
|
+
#{cv.getVar($name, "", "-s")},
|
59
|
+
#{cv.getVar($name, "", "-invert-l")}
|
60
|
+
) !important;
|
76
61
|
}
|
77
62
|
|
78
|
-
.#{iv.$helpers-prefix}background-#{$name}-invert,
|
79
63
|
.#{iv.$helpers-has-prefix}background-#{$name}-invert {
|
80
|
-
|
81
|
-
(
|
82
|
-
|
83
|
-
)
|
84
|
-
);
|
64
|
+
background-color: hsl(
|
65
|
+
#{cv.getVar($name, "", "-h")},
|
66
|
+
#{cv.getVar($name, "", "-s")},
|
67
|
+
#{cv.getVar($name, "", "-invert-l")}
|
68
|
+
) !important;
|
85
69
|
}
|
86
70
|
|
87
71
|
// On Scheme
|
88
|
-
.#{iv.$helpers-prefix}color-#{$name}-on-scheme,
|
89
72
|
.#{iv.$helpers-has-prefix}text-#{$name}-on-scheme {
|
90
|
-
|
91
|
-
(
|
92
|
-
|
93
|
-
)
|
94
|
-
);
|
73
|
+
color: hsl(
|
74
|
+
#{cv.getVar($name, "", "-h")},
|
75
|
+
#{cv.getVar($name, "", "-s")},
|
76
|
+
#{cv.getVar($name, "", "-on-scheme-l")}
|
77
|
+
) !important;
|
95
78
|
}
|
96
79
|
|
97
|
-
.#{iv.$helpers-prefix}background-#{$name}-on-scheme,
|
98
80
|
.#{iv.$helpers-has-prefix}background-#{$name}-on-scheme {
|
99
|
-
|
100
|
-
(
|
101
|
-
|
102
|
-
)
|
103
|
-
);
|
81
|
+
background-color: hsl(
|
82
|
+
#{cv.getVar($name, "", "-h")},
|
83
|
+
#{cv.getVar($name, "", "-s")},
|
84
|
+
#{cv.getVar($name, "", "-on-scheme-l")}
|
85
|
+
) !important;
|
104
86
|
}
|
105
87
|
|
106
88
|
// Light
|
107
|
-
.#{iv.$helpers-prefix}color-#{$name}-light,
|
108
89
|
.#{iv.$helpers-has-prefix}text-#{$name}-light {
|
109
|
-
|
110
|
-
(
|
111
|
-
|
112
|
-
)
|
113
|
-
);
|
90
|
+
color: hsl(
|
91
|
+
#{cv.getVar($name, "", "-h")},
|
92
|
+
#{cv.getVar($name, "", "-s")},
|
93
|
+
#{cv.getVar($name, "", "-light-l")}
|
94
|
+
) !important;
|
114
95
|
}
|
115
96
|
|
116
|
-
.#{iv.$helpers-prefix}background-#{$name}-light,
|
117
97
|
.#{iv.$helpers-has-prefix}background-#{$name}-light {
|
118
|
-
|
119
|
-
(
|
120
|
-
|
121
|
-
)
|
122
|
-
);
|
98
|
+
background-color: hsl(
|
99
|
+
#{cv.getVar($name, "", "-h")},
|
100
|
+
#{cv.getVar($name, "", "-s")},
|
101
|
+
#{cv.getVar($name, "", "-light-l")}
|
102
|
+
) !important;
|
123
103
|
}
|
124
104
|
|
125
|
-
.#{iv.$helpers-prefix}color-#{$name}-light-invert,
|
126
105
|
.#{iv.$helpers-has-prefix}text-#{$name}-light-invert {
|
127
|
-
|
128
|
-
(
|
129
|
-
|
130
|
-
)
|
131
|
-
);
|
106
|
+
color: hsl(
|
107
|
+
#{cv.getVar($name, "", "-h")},
|
108
|
+
#{cv.getVar($name, "", "-s")},
|
109
|
+
#{cv.getVar($name, "", "-light-invert-l")}
|
110
|
+
) !important;
|
132
111
|
}
|
133
112
|
|
134
|
-
.#{iv.$helpers-prefix}background-#{$name}-light-invert,
|
135
113
|
.#{iv.$helpers-has-prefix}background-#{$name}-light-invert {
|
136
|
-
|
137
|
-
(
|
138
|
-
|
139
|
-
)
|
140
|
-
);
|
114
|
+
background-color: hsl(
|
115
|
+
#{cv.getVar($name, "", "-h")},
|
116
|
+
#{cv.getVar($name, "", "-s")},
|
117
|
+
#{cv.getVar($name, "", "-light-invert-l")}
|
118
|
+
) !important;
|
141
119
|
}
|
142
120
|
|
143
121
|
// Dark
|
144
|
-
.#{iv.$helpers-prefix}color-#{$name}-dark,
|
145
122
|
.#{iv.$helpers-has-prefix}text-#{$name}-dark {
|
146
|
-
|
147
|
-
(
|
148
|
-
|
149
|
-
)
|
150
|
-
);
|
123
|
+
color: hsl(
|
124
|
+
#{cv.getVar($name, "", "-h")},
|
125
|
+
#{cv.getVar($name, "", "-s")},
|
126
|
+
#{cv.getVar($name, "", "-dark-l")}
|
127
|
+
) !important;
|
151
128
|
}
|
152
129
|
|
153
|
-
.#{iv.$helpers-prefix}background-#{$name}-dark,
|
154
130
|
.#{iv.$helpers-has-prefix}background-#{$name}-dark {
|
155
|
-
|
156
|
-
(
|
157
|
-
|
158
|
-
)
|
159
|
-
);
|
131
|
+
background-color: hsl(
|
132
|
+
#{cv.getVar($name, "", "-h")},
|
133
|
+
#{cv.getVar($name, "", "-s")},
|
134
|
+
#{cv.getVar($name, "", "-dark-l")}
|
135
|
+
) !important;
|
160
136
|
}
|
161
137
|
|
162
|
-
.#{iv.$helpers-prefix}color-#{$name}-dark-invert,
|
163
138
|
.#{iv.$helpers-has-prefix}text-#{$name}-dark-invert {
|
164
|
-
|
165
|
-
(
|
166
|
-
|
167
|
-
)
|
168
|
-
);
|
139
|
+
color: hsl(
|
140
|
+
#{cv.getVar($name, "", "-h")},
|
141
|
+
#{cv.getVar($name, "", "-s")},
|
142
|
+
#{cv.getVar($name, "", "-dark-invert-l")}
|
143
|
+
) !important;
|
169
144
|
}
|
170
145
|
|
171
|
-
.#{iv.$helpers-prefix}background-#{$name}-dark-invert,
|
172
146
|
.#{iv.$helpers-has-prefix}background-#{$name}-dark-invert {
|
173
|
-
|
174
|
-
(
|
175
|
-
|
176
|
-
)
|
177
|
-
);
|
147
|
+
background-color: hsl(
|
148
|
+
#{cv.getVar($name, "", "-h")},
|
149
|
+
#{cv.getVar($name, "", "-s")},
|
150
|
+
#{cv.getVar($name, "", "-dark-invert-l")}
|
151
|
+
) !important;
|
178
152
|
}
|
179
153
|
|
180
154
|
// Soft/Bold
|
181
|
-
.#{iv.$helpers-prefix}color-#{$name}-soft,
|
182
155
|
.#{iv.$helpers-has-prefix}text-#{$name}-soft {
|
183
|
-
|
184
|
-
(
|
185
|
-
|
186
|
-
)
|
187
|
-
);
|
156
|
+
color: hsl(
|
157
|
+
#{cv.getVar($name, "", "-h")},
|
158
|
+
#{cv.getVar($name, "", "-s")},
|
159
|
+
#{cv.getVar("soft-l")}
|
160
|
+
) !important;
|
188
161
|
}
|
189
162
|
|
190
|
-
.#{iv.$helpers-prefix}background-#{$name}-soft,
|
191
163
|
.#{iv.$helpers-has-prefix}background-#{$name}-soft {
|
192
|
-
|
193
|
-
(
|
194
|
-
|
195
|
-
)
|
196
|
-
);
|
164
|
+
background-color: hsl(
|
165
|
+
#{cv.getVar($name, "", "-h")},
|
166
|
+
#{cv.getVar($name, "", "-s")},
|
167
|
+
#{cv.getVar("soft-l")}
|
168
|
+
) !important;
|
197
169
|
}
|
198
170
|
|
199
|
-
.#{iv.$helpers-prefix}color-#{$name}-bold,
|
200
171
|
.#{iv.$helpers-has-prefix}text-#{$name}-bold {
|
201
|
-
|
202
|
-
(
|
203
|
-
|
204
|
-
)
|
205
|
-
);
|
172
|
+
color: hsl(
|
173
|
+
#{cv.getVar($name, "", "-h")},
|
174
|
+
#{cv.getVar($name, "", "-s")},
|
175
|
+
#{cv.getVar("bold-l")}
|
176
|
+
) !important;
|
206
177
|
}
|
207
178
|
|
208
|
-
.#{iv.$helpers-prefix}background-#{$name}-bold,
|
209
179
|
.#{iv.$helpers-has-prefix}background-#{$name}-bold {
|
210
|
-
|
211
|
-
(
|
212
|
-
|
213
|
-
)
|
214
|
-
);
|
180
|
+
background-color: hsl(
|
181
|
+
#{cv.getVar($name, "", "-h")},
|
182
|
+
#{cv.getVar($name, "", "-s")},
|
183
|
+
#{cv.getVar("bold-l")}
|
184
|
+
) !important;
|
215
185
|
}
|
216
186
|
|
217
|
-
.#{iv.$helpers-prefix}color-#{$name}-soft-invert,
|
218
187
|
.#{iv.$helpers-has-prefix}text-#{$name}-soft-invert {
|
219
|
-
|
220
|
-
(
|
221
|
-
|
222
|
-
)
|
223
|
-
);
|
188
|
+
color: hsl(
|
189
|
+
#{cv.getVar($name, "", "-h")},
|
190
|
+
#{cv.getVar($name, "", "-s")},
|
191
|
+
#{cv.getVar("soft-invert-l")}
|
192
|
+
) !important;
|
224
193
|
}
|
225
194
|
|
226
|
-
.#{iv.$helpers-prefix}background-#{$name}-soft-invert,
|
227
195
|
.#{iv.$helpers-has-prefix}background-#{$name}-soft-invert {
|
228
|
-
|
229
|
-
(
|
230
|
-
|
231
|
-
)
|
232
|
-
);
|
196
|
+
background-color: hsl(
|
197
|
+
#{cv.getVar($name, "", "-h")},
|
198
|
+
#{cv.getVar($name, "", "-s")},
|
199
|
+
#{cv.getVar("soft-invert-l")}
|
200
|
+
) !important;
|
233
201
|
}
|
234
202
|
|
235
|
-
.#{iv.$helpers-prefix}color-#{$name}-bold-invert,
|
236
203
|
.#{iv.$helpers-has-prefix}text-#{$name}-bold-invert {
|
237
|
-
|
238
|
-
(
|
239
|
-
|
240
|
-
)
|
241
|
-
);
|
204
|
+
color: hsl(
|
205
|
+
#{cv.getVar($name, "", "-h")},
|
206
|
+
#{cv.getVar($name, "", "-s")},
|
207
|
+
#{cv.getVar("bold-invert-l")}
|
208
|
+
) !important;
|
242
209
|
}
|
243
210
|
|
244
|
-
.#{iv.$helpers-prefix}background-#{$name}-bold-invert,
|
245
211
|
.#{iv.$helpers-has-prefix}background-#{$name}-bold-invert {
|
246
|
-
|
247
|
-
(
|
248
|
-
|
249
|
-
)
|
250
|
-
);
|
212
|
+
background-color: hsl(
|
213
|
+
#{cv.getVar($name, "", "-h")},
|
214
|
+
#{cv.getVar($name, "", "-s")},
|
215
|
+
#{cv.getVar("bold-invert-l")}
|
216
|
+
) !important;
|
251
217
|
}
|
252
218
|
|
253
219
|
@each $digit in $digits {
|
254
|
-
.#{iv.$helpers-prefix}color-#{$name}-#{$digit},
|
255
220
|
.#{iv.$helpers-has-prefix}text-#{$name}-#{$digit} {
|
256
|
-
|
257
|
-
(
|
258
|
-
|
259
|
-
)
|
260
|
-
);
|
221
|
+
color: hsl(
|
222
|
+
#{cv.getVar($name, "", "-h")},
|
223
|
+
#{cv.getVar($name, "", "-s")},
|
224
|
+
#{cv.getVar($name, "", "-#{$digit}-l")}
|
225
|
+
) !important;
|
261
226
|
}
|
262
227
|
|
263
|
-
.#{iv.$helpers-prefix}background-#{$name}-#{$digit},
|
264
228
|
.#{iv.$helpers-has-prefix}background-#{$name}-#{$digit} {
|
265
|
-
|
266
|
-
(
|
267
|
-
|
268
|
-
)
|
269
|
-
);
|
229
|
+
background-color: hsl(
|
230
|
+
#{cv.getVar($name, "", "-h")},
|
231
|
+
#{cv.getVar($name, "", "-s")},
|
232
|
+
#{cv.getVar($name, "", "-#{$digit}-l")}
|
233
|
+
) !important;
|
270
234
|
}
|
271
235
|
|
272
|
-
.#{iv.$helpers-prefix}color-#{$name}-#{$digit}-invert,
|
273
236
|
.#{iv.$helpers-has-prefix}text-#{$name}-#{$digit}-invert {
|
274
|
-
|
275
|
-
(
|
276
|
-
|
277
|
-
)
|
278
|
-
);
|
237
|
+
color: hsl(
|
238
|
+
#{cv.getVar($name, "", "-h")},
|
239
|
+
#{cv.getVar($name, "", "-s")},
|
240
|
+
#{cv.getVar($name, "", "-#{$digit}-invert-l")}
|
241
|
+
) !important;
|
279
242
|
}
|
280
243
|
|
281
|
-
.#{iv.$helpers-prefix}background-#{$name}-#{$digit}-invert,
|
282
244
|
.#{iv.$helpers-has-prefix}background-#{$name}-#{$digit}-invert {
|
283
|
-
|
284
|
-
(
|
285
|
-
|
286
|
-
)
|
287
|
-
);
|
245
|
+
background-color: hsl(
|
246
|
+
#{cv.getVar($name, "", "-h")},
|
247
|
+
#{cv.getVar($name, "", "-s")},
|
248
|
+
#{cv.getVar($name, "", "-#{$digit}-invert-l")}
|
249
|
+
) !important;
|
288
250
|
}
|
289
251
|
}
|
290
252
|
|
291
253
|
// Hover
|
292
|
-
a.#{iv.$helpers-prefix}color-#{$name},
|
293
|
-
button.#{iv.$helpers-prefix}color-#{$name},
|
294
|
-
#{iv.$helpers-prefix}color-#{$name}.is-hoverable,
|
295
254
|
a.#{iv.$helpers-has-prefix}text-#{$name},
|
296
255
|
button.#{iv.$helpers-has-prefix}text-#{$name},
|
297
256
|
#{iv.$helpers-has-prefix}text-#{$name}.is-hoverable {
|
298
257
|
&:hover,
|
299
258
|
&:focus-visible {
|
300
|
-
|
301
|
-
(
|
302
|
-
|
259
|
+
color: hsl(
|
260
|
+
#{cv.getVar($name, "", "-h")},
|
261
|
+
#{cv.getVar($name, "", "-s")},
|
262
|
+
calc(
|
263
|
+
#{cv.getVar($name, "", "-l")} + #{cv.getVar("hover-color-l-delta")}
|
303
264
|
)
|
304
|
-
);
|
265
|
+
) !important;
|
305
266
|
}
|
306
267
|
|
307
268
|
&:active {
|
308
|
-
|
309
|
-
(
|
310
|
-
|
269
|
+
color: hsl(
|
270
|
+
#{cv.getVar($name, "", "-h")},
|
271
|
+
#{cv.getVar($name, "", "-s")},
|
272
|
+
calc(
|
273
|
+
#{cv.getVar($name, "", "-l")} + #{cv.getVar("active-color-l-delta")}
|
311
274
|
)
|
312
|
-
);
|
275
|
+
) !important;
|
313
276
|
}
|
314
277
|
}
|
315
278
|
|
316
|
-
a.#{iv.$helpers-prefix}background-#{$name},
|
317
|
-
button.#{iv.$helpers-prefix}background-#{$name},
|
318
|
-
#{iv.$helpers-prefix}background-#{$name}.is-hoverable,
|
319
279
|
a.#{iv.$helpers-has-prefix}background-#{$name},
|
320
280
|
button.#{iv.$helpers-has-prefix}background-#{$name},
|
321
281
|
#{iv.$helpers-has-prefix}background-#{$name}.is-hoverable {
|
322
282
|
&:hover,
|
323
283
|
&:focus-visible {
|
324
|
-
|
325
|
-
(
|
326
|
-
|
284
|
+
background-color: hsl(
|
285
|
+
#{cv.getVar($name, "", "-h")},
|
286
|
+
#{cv.getVar($name, "", "-s")},
|
287
|
+
calc(
|
288
|
+
#{cv.getVar($name, "", "-l")} +
|
289
|
+
#{cv.getVar("hover-background-l-delta")}
|
327
290
|
)
|
328
|
-
);
|
291
|
+
) !important;
|
329
292
|
}
|
330
293
|
|
331
294
|
&:active {
|
332
|
-
|
333
|
-
(
|
334
|
-
|
295
|
+
background-color: hsl(
|
296
|
+
#{cv.getVar($name, "", "-h")},
|
297
|
+
#{cv.getVar($name, "", "-s")},
|
298
|
+
calc(
|
299
|
+
#{cv.getVar($name, "", "-l")} +
|
300
|
+
#{cv.getVar("active-background-l-delta")}
|
335
301
|
)
|
336
|
-
);
|
302
|
+
) !important;
|
337
303
|
}
|
338
304
|
}
|
339
305
|
|
@@ -352,13 +318,27 @@ $digits: (
|
|
352
318
|
}
|
353
319
|
|
354
320
|
@each $name, $shade in dv.$shades {
|
355
|
-
.#{iv.$helpers-prefix}color-#{$name},
|
356
321
|
.#{iv.$helpers-has-prefix}text-#{$name} {
|
357
322
|
color: $shade !important;
|
358
323
|
}
|
359
324
|
|
360
|
-
.#{iv.$helpers-prefix}background-#{$name},
|
361
325
|
.#{iv.$helpers-has-prefix}background-#{$name} {
|
362
326
|
background-color: $shade !important;
|
363
327
|
}
|
364
328
|
}
|
329
|
+
|
330
|
+
.#{iv.$helpers-has-prefix}text-current {
|
331
|
+
color: currentColor !important;
|
332
|
+
}
|
333
|
+
|
334
|
+
.#{iv.$helpers-has-prefix}text-inherit {
|
335
|
+
color: inherit !important;
|
336
|
+
}
|
337
|
+
|
338
|
+
.#{iv.$helpers-has-prefix}background-current {
|
339
|
+
background-color: currentColor !important;
|
340
|
+
}
|
341
|
+
|
342
|
+
.#{iv.$helpers-has-prefix}background-inherit {
|
343
|
+
background-color: inherit !important;
|
344
|
+
}
|
@@ -17,34 +17,42 @@ $container-max-width: iv.$fullhd !default;
|
|
17
17
|
width: 100%;
|
18
18
|
}
|
19
19
|
|
20
|
+
&.#{iv.$class-prefix}is-max-tablet {
|
21
|
+
max-width: iv.$tablet - $container-offset;
|
22
|
+
}
|
23
|
+
|
20
24
|
@include mx.desktop {
|
21
25
|
max-width: iv.$desktop - $container-offset;
|
22
26
|
}
|
23
27
|
|
24
28
|
@include mx.until-widescreen {
|
25
|
-
&.#{iv.$class-prefix}is-widescreen:not(
|
29
|
+
&.#{iv.$class-prefix}is-widescreen:not(
|
30
|
+
.#{iv.$class-prefix}is-max-tablet
|
31
|
+
):not(.#{iv.$class-prefix}is-max-desktop) {
|
26
32
|
max-width: min(iv.$widescreen, $container-max-width) - $container-offset;
|
27
33
|
}
|
28
34
|
}
|
29
35
|
|
30
36
|
@include mx.until-fullhd {
|
31
|
-
&.#{iv.$class-prefix}is-fullhd:not(.#{iv.$class-prefix}is-max-
|
32
|
-
.#{iv.$class-prefix}is-max-
|
33
|
-
) {
|
37
|
+
&.#{iv.$class-prefix}is-fullhd:not(.#{iv.$class-prefix}is-max-tablet):not(
|
38
|
+
.#{iv.$class-prefix}is-max-desktop
|
39
|
+
):not(.#{iv.$class-prefix}is-max-widescreen) {
|
34
40
|
max-width: min(iv.$fullhd, $container-max-width) - $container-offset;
|
35
41
|
}
|
36
42
|
}
|
37
43
|
|
38
44
|
@include mx.widescreen {
|
39
|
-
&:not(.#{iv.$class-prefix}is-max-
|
45
|
+
&:not(.#{iv.$class-prefix}is-max-tablet):not(
|
46
|
+
.#{iv.$class-prefix}is-max-desktop
|
47
|
+
) {
|
40
48
|
max-width: min(iv.$widescreen, $container-max-width) - $container-offset;
|
41
49
|
}
|
42
50
|
}
|
43
51
|
|
44
52
|
@include mx.fullhd {
|
45
|
-
&:not(.#{iv.$class-prefix}is-max-
|
46
|
-
.#{iv.$class-prefix}is-max-
|
47
|
-
) {
|
53
|
+
&:not(.#{iv.$class-prefix}is-max-tablet):not(
|
54
|
+
.#{iv.$class-prefix}is-max-desktop
|
55
|
+
):not(.#{iv.$class-prefix}is-max-widescreen) {
|
48
56
|
max-width: min(iv.$fullhd, $container-max-width) - $container-offset;
|
49
57
|
}
|
50
58
|
}
|
@@ -81,6 +81,7 @@ $scheme-main: hsl(iv.$scheme-h, iv.$scheme-s, $scheme-main-l);
|
|
81
81
|
"radius-rounded": 9999px,
|
82
82
|
"speed": 86ms,
|
83
83
|
|
84
|
+
"arrow-color": #{cv.getVar("link")},
|
84
85
|
"loading-color": #{cv.getVar("border")},
|
85
86
|
"burger-h": #{cv.getVar("link-h")},
|
86
87
|
"burger-s": #{cv.getVar("link-s")},
|
@@ -211,8 +211,9 @@
|
|
211
211
|
}
|
212
212
|
}
|
213
213
|
|
214
|
-
$
|
215
|
-
|
214
|
+
$l-100: math.min($l-0 + 100%, 100%);
|
215
|
+
$shades: map.set($shades, "100", $l-100);
|
216
|
+
@include register-var($name, $l-100, "", "-100-l");
|
216
217
|
|
217
218
|
// === STEP 3 ===
|
218
219
|
// Find accessible color combinations
|
@@ -184,10 +184,10 @@
|
|
184
184
|
|
185
185
|
@function bulmaColorBrightness($n) {
|
186
186
|
$color-brightness: round(
|
187
|
-
|
187
|
+
math.div((red($n) * 299) + (green($n) * 587) + (blue($n) * 114), 1000)
|
188
188
|
);
|
189
189
|
$light-color: round(
|
190
|
-
(red(#ffffff) * 299) + (green(#ffffff) * 587) + (blue(#ffffff) * 114)
|
190
|
+
math.div((red(#ffffff) * 299) + (green(#ffffff) * 587) + (blue(#ffffff) * 114), 1000)
|
191
191
|
);
|
192
192
|
|
193
193
|
@if abs($color-brightness) < math.div($light-color, 2) {
|
data/bulma-rails.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bulma-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joshua Jansen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dartsass-rails
|
@@ -73,7 +73,6 @@ files:
|
|
73
73
|
- app/assets/stylesheets/sass/form/shared.scss
|
74
74
|
- app/assets/stylesheets/sass/form/tools.scss
|
75
75
|
- app/assets/stylesheets/sass/grid/_index.scss
|
76
|
-
- app/assets/stylesheets/sass/grid/columns-v2.scss
|
77
76
|
- app/assets/stylesheets/sass/grid/columns.scss
|
78
77
|
- app/assets/stylesheets/sass/grid/grid.scss
|
79
78
|
- app/assets/stylesheets/sass/helpers/_index.scss
|
@@ -129,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
128
|
- !ruby/object:Gem::Version
|
130
129
|
version: '0'
|
131
130
|
requirements: []
|
132
|
-
rubygems_version: 3.
|
131
|
+
rubygems_version: 3.3.5
|
133
132
|
signing_key:
|
134
133
|
specification_version: 4
|
135
134
|
summary: This gem adds the bulma.io assets to your asset pipeline so you can import
|