@allxsmith/bestax-bulma 5.44.0 → 5.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bestax.css +1 -1
- package/dist/bestax.css.map +1 -1
- package/dist/esm/components/Carousel.js +2 -2
- package/dist/esm/components/Carousel.js.map +1 -1
- package/dist/esm/form/Checkbox.js.map +1 -1
- package/dist/extras.css +1 -1
- package/dist/extras.css.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/types/components/Carousel.d.ts +29 -3
- package/dist/types/form/Checkbox.d.ts +8 -6
- package/dist/types-cjs/components/Carousel.d.ts +29 -3
- package/dist/types-cjs/form/Checkbox.d.ts +8 -6
- package/dist/versions/bestax-no-dark-mode.css +1 -1
- package/dist/versions/bestax-no-dark-mode.css.map +1 -1
- package/dist/versions/bestax-no-helpers-prefixed.css +1 -1
- package/dist/versions/bestax-no-helpers-prefixed.css.map +1 -1
- package/dist/versions/bestax-no-helpers.css +1 -1
- package/dist/versions/bestax-no-helpers.css.map +1 -1
- package/dist/versions/bestax-prefixed.css +1 -1
- package/dist/versions/bestax-prefixed.css.map +1 -1
- package/package.json +1 -1
- package/src/scss/components/_carousel.scss +31 -13
|
@@ -50,7 +50,11 @@ $carousel-arrow-background-hover: hsla(
|
|
|
50
50
|
0.95
|
|
51
51
|
) !default;
|
|
52
52
|
|
|
53
|
-
// Overlay variant colors
|
|
53
|
+
// Overlay variant colors, for controls over photos: light controls on a dark
|
|
54
|
+
// tint in either scheme. `scheme-invert-l` stays dark in Bulma's dark theme
|
|
55
|
+
// too, so the tint and the band keep it. The light side takes `white` rather
|
|
56
|
+
// than `scheme-main`, which turns dark in dark mode and left dark arrows and
|
|
57
|
+
// dots on the dark band. In the light theme the two are the same white.
|
|
54
58
|
$carousel-overlay-arrow-background: hsla(
|
|
55
59
|
#{cv.getVar("scheme-h")},
|
|
56
60
|
#{cv.getVar("scheme-s")},
|
|
@@ -64,15 +68,15 @@ $carousel-overlay-arrow-background-hover: hsla(
|
|
|
64
68
|
0.5
|
|
65
69
|
) !default;
|
|
66
70
|
$carousel-overlay-indicator-background: hsla(
|
|
67
|
-
#{cv.getVar("
|
|
68
|
-
#{cv.getVar("
|
|
69
|
-
#{cv.getVar("
|
|
71
|
+
#{cv.getVar("white-h")},
|
|
72
|
+
#{cv.getVar("white-s")},
|
|
73
|
+
#{cv.getVar("white-l")},
|
|
70
74
|
0.5
|
|
71
75
|
) !default;
|
|
72
76
|
$carousel-overlay-indicator-background-hover: hsla(
|
|
73
|
-
#{cv.getVar("
|
|
74
|
-
#{cv.getVar("
|
|
75
|
-
#{cv.getVar("
|
|
77
|
+
#{cv.getVar("white-h")},
|
|
78
|
+
#{cv.getVar("white-s")},
|
|
79
|
+
#{cv.getVar("white-l")},
|
|
76
80
|
0.8
|
|
77
81
|
) !default;
|
|
78
82
|
|
|
@@ -88,8 +92,8 @@ $carousel-arrow-color: cv.getVar("text") !default;
|
|
|
88
92
|
$carousel-indicator-background: cv.getVar("border") !default;
|
|
89
93
|
$carousel-indicator-background-hover: cv.getVar("border-hover") !default;
|
|
90
94
|
$carousel-indicator-background-active: cv.getVar("primary") !default;
|
|
91
|
-
$carousel-overlay-arrow-color: cv.getVar("
|
|
92
|
-
$carousel-overlay-indicator-background-active: cv.getVar("
|
|
95
|
+
$carousel-overlay-arrow-color: cv.getVar("white") !default;
|
|
96
|
+
$carousel-overlay-indicator-background-active: cv.getVar("white") !default;
|
|
93
97
|
$carousel-arrow-radius: cv.getVar("radius") !default;
|
|
94
98
|
$carousel-indicator-line-radius: cv.getVar("radius-small") !default;
|
|
95
99
|
|
|
@@ -403,23 +407,37 @@ $carousel-indicator-line-radius: cv.getVar("radius-small") !default;
|
|
|
403
407
|
padding: 1rem;
|
|
404
408
|
width: 100%;
|
|
405
409
|
|
|
410
|
+
// Over the slides, at the bottom edge
|
|
406
411
|
&.#{iv.$class-prefix}is-inside {
|
|
407
412
|
position: absolute;
|
|
408
413
|
bottom: 0;
|
|
409
414
|
left: 0;
|
|
410
415
|
right: 0;
|
|
411
|
-
background: linear-gradient(transparent, #{$carousel-gradient-overlay});
|
|
412
416
|
padding-bottom: 1.5rem;
|
|
413
417
|
}
|
|
414
418
|
|
|
415
|
-
|
|
419
|
+
// Over the slides, at the top edge. `is-top` moves only indicators over
|
|
420
|
+
// the slides: below them it has no edge to move to. `:where()` keeps the
|
|
421
|
+
// rule at the specificity of the bare `is-top` one it replaces.
|
|
422
|
+
&.#{iv.$class-prefix}is-top:where(.#{iv.$class-prefix}is-inside) {
|
|
416
423
|
top: 0;
|
|
417
424
|
bottom: auto;
|
|
418
|
-
background: linear-gradient(#{$carousel-gradient-overlay}, transparent);
|
|
419
425
|
padding-top: 1.5rem;
|
|
420
426
|
}
|
|
421
427
|
}
|
|
422
428
|
|
|
429
|
+
// The overlay look's dark band behind indicators over the slides, which
|
|
430
|
+
// the plain look leaves off. `:where()` keeps both rules at the
|
|
431
|
+
// specificity the band had before `overlayControls` could turn it off, so
|
|
432
|
+
// a page's own rule that takes the band off still wins as it did.
|
|
433
|
+
&:where(.#{iv.$class-prefix}is-overlay) .#{iv.$class-prefix}carousel-indicator.#{iv.$class-prefix}is-inside {
|
|
434
|
+
background: linear-gradient(transparent, #{$carousel-gradient-overlay});
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
&:where(.#{iv.$class-prefix}is-overlay) .#{iv.$class-prefix}carousel-indicator.#{iv.$class-prefix}is-top:where(.#{iv.$class-prefix}is-inside) {
|
|
438
|
+
background: linear-gradient(#{$carousel-gradient-overlay}, transparent);
|
|
439
|
+
}
|
|
440
|
+
|
|
423
441
|
// Indicator items
|
|
424
442
|
.#{iv.$class-prefix}indicator-item {
|
|
425
443
|
width: cv.getVar("carousel-indicator-size");
|
|
@@ -482,7 +500,7 @@ $carousel-indicator-line-radius: cv.getVar("radius-small") !default;
|
|
|
482
500
|
}
|
|
483
501
|
}
|
|
484
502
|
|
|
485
|
-
//
|
|
503
|
+
// The overlay look (`overlayControls`, which `indicatorInside` turns on)
|
|
486
504
|
&.#{iv.$class-prefix}is-overlay {
|
|
487
505
|
.#{iv.$class-prefix}carousel-indicator.#{iv.$class-prefix}is-inside {
|
|
488
506
|
.#{iv.$class-prefix}indicator-item {
|