@allxsmith/bestax-bulma 5.44.0 → 5.45.1

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.
@@ -50,7 +50,11 @@ $carousel-arrow-background-hover: hsla(
50
50
  0.95
51
51
  ) !default;
52
52
 
53
- // Overlay variant colors (for image carousels - always dark overlay regardless of theme)
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("scheme-h")},
68
- #{cv.getVar("scheme-s")},
69
- #{cv.getVar("scheme-main-l")},
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("scheme-h")},
74
- #{cv.getVar("scheme-s")},
75
- #{cv.getVar("scheme-main-l")},
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("scheme-main") !default;
92
- $carousel-overlay-indicator-background-active: cv.getVar("scheme-main") !default;
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
- &.#{iv.$class-prefix}is-top {
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
- // Inside indicator light variant (overlay mode)
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 {