@sc-360-v2/storefront-cms-library 0.5.64 → 0.5.65

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.
@@ -540,11 +540,9 @@ $ad-slider-arrows: "--_ctm-dn-sr-pn-as"; // design.slider.paginationArrows
540
540
  // so the rules come from a rebound copy of the card stylesheet rather than
541
541
  // being written out again here.
542
542
  .showcase__title {
543
- // A row now, because the view switcher sits in this header beside the
544
- // name and quota rather than up in `.main__header`. `flex-start` lets the
545
- // switcher's own Vertical Alignment decide where it sits against the
546
- // taller text column — in a row, align-self IS the vertical axis, which
547
- // is what Top / Center / Bottom means.
543
+ // Name and quota only the view switcher moved back up to
544
+ // `.main__header`, where it is drawn once for the whole element instead
545
+ // of once per allocation.
548
546
  display: flex;
549
547
  align-items: flex-start;
550
548
  justify-content: space-between;
@@ -719,9 +717,9 @@ $ad-slider-arrows: "--_ctm-dn-sr-pn-as"; // design.slider.paginationArrows
719
717
  }
720
718
  }
721
719
 
722
- // The view switcher lives in the allocation header (`.showcase__title`), not
723
- // in `.main__header` where it started, so its rules sit at showcase level and
724
- // reach it wherever it is nested.
720
+ // The view switcher sits in `.main__header`, once for the whole element.
721
+ // These rules stay at showcase level rather than nested under that header, so
722
+ // they keep reaching it wherever it ends up.
725
723
  .button__group {
726
724
  display: flex;
727
725
  gap: 12px;
@@ -2152,48 +2150,44 @@ $ad-slider-arrows: "--_ctm-dn-sr-pn-as"; // design.slider.paginationArrows
2152
2150
  margin-top: 10px;
2153
2151
  }
2154
2152
  }
2155
- // Profiles Slider > Pagination Arrows. These rules used to read
2153
+ // Profiles Slider > Pagination Arrows, styled the way the Gallery Slider
2154
+ // element styles its own: the button is a plain 10px-padded circle, sized by
2155
+ // Arrow Size, and the only fill it carries is the chosen Background Color
2156
+ // mixed down to 10% (20% on hover). These rules used to read
2156
2157
  // `--_ctm-dn-pn-as-*`, a `design.paginationArrows` node that does not exist
2157
- // on this element so every one of them fell through to its hardcoded
2158
- // default and the panel could not reach the strip's arrows at all. They now
2159
- // read design.slider.paginationArrows, and each fallback is the value that
2160
- // was hardcoded, so an untouched strip renders exactly as before.
2161
- &[data-control-type="Side"] {
2162
- .left-button,
2163
- .right-button {
2164
- background-color: prepareMediaVariable(#{$ad-slider-arrows}-bd-cr, transparent);
2165
- }
2166
- }
2167
- &[data-background-shape="Round"] {
2168
- .left-button,
2169
- .right-button {
2170
- background-color: prepareMediaVariable(#{$ad-slider-arrows}-bd-cr, #f2f5f5);
2171
- box-sizing: 0 4px 8px rgba(0, 0, 0, 0.1);
2158
+ // on this element, so the panel could not reach the strip's arrows at all;
2159
+ // they now read design.slider.paginationArrows.
2160
+ :is(.left-button, .right-button) {
2161
+ @include BgColorLighter(var(#{$ad-slider-arrows}-bd-cr), 10%);
2162
+
2163
+ &:not(:disabled):hover {
2164
+ @include BgColorLighter(var(#{$ad-slider-arrows}-bd-cr), 20%);
2172
2165
  }
2173
2166
  }
2174
2167
  .left-button,
2175
2168
  .right-button {
2176
- padding: prepareMediaVariable(#{$ad-slider-arrows}-pg, 10px);
2177
- border-color: prepareMediaVariable(#{$ad-slider-arrows}-br-cr, transparent);
2178
- border-style: prepareMediaVariable(#{$ad-slider-arrows}-br-se, solid);
2179
- border-width: prepareMediaVariable(#{$ad-slider-arrows}-br-wh, 0);
2180
- // 50%, not prepareMediaVariable's `inherit` tail: an arrow with no
2181
- // configured radius has always been a circle.
2182
- border-radius: prepareMediaVariable(#{$ad-slider-arrows}-br-rs, 50%);
2169
+ padding: 10px;
2170
+ border: none;
2171
+ border-radius: 50%;
2172
+
2173
+ // Background Shape: a circle by default, squared off by "None" and given
2174
+ // the gallery's 4px rounding by "Square". Keyed off the BUTTON, not the
2175
+ // `.embla` container — EmblaCarouselBasic, which renders this strip, only
2176
+ // publishes the attribute on the buttons.
2177
+ &[data-background-shape="None"] {
2178
+ border-radius: 0;
2179
+ }
2180
+ &[data-background-shape="Round"] {
2181
+ border-radius: 50%;
2182
+ }
2183
+ &[data-background-shape="Square"] {
2184
+ border-radius: 4px;
2185
+ }
2183
2186
  // 20px, not prepareMediaVariable's `inherit` tail — inheriting the strip's
2184
2187
  // width here would blow the buttons out. 20 is also the schema default, so
2185
2188
  // a strip saved before this node existed matches a fresh one.
2186
2189
  width: prepareMediaVariable(#{$ad-slider-arrows}-aw-se, 20px);
2187
2190
  height: prepareMediaVariable(#{$ad-slider-arrows}-aw-se, 20px);
2188
- // Opt-in, like the gallery's: these arrows have never cast a shadow.
2189
- box-shadow: none;
2190
-
2191
- &[data-show-shadow="true"] {
2192
- box-shadow: prepareMediaVariable(#{$ad-slider-arrows}-sw-ae, 0 0)
2193
- prepareMediaVariable(#{$ad-slider-arrows}-sw-br, 0)
2194
- prepareMediaVariable(#{$ad-slider-arrows}-sw-sd, 0)
2195
- prepareMediaVariable(#{$ad-slider-arrows}-sw-cr, transparent);
2196
- }
2197
2191
 
2198
2192
  display: flex;
2199
2193
  align-items: center;
@@ -2201,19 +2195,6 @@ $ad-slider-arrows: "--_ctm-dn-sr-pn-as"; // design.slider.paginationArrows
2201
2195
  cursor: pointer;
2202
2196
  outline: none;
2203
2197
 
2204
- &[data-show-border="false"] {
2205
- border: none;
2206
- }
2207
-
2208
- // Background Shape overrides the configured radius when it names one;
2209
- // "None" leaves the radius alone.
2210
- &[data-background-shape="Round"] {
2211
- border-radius: 50%;
2212
- }
2213
- &[data-background-shape="Square"] {
2214
- border-radius: 0;
2215
- }
2216
-
2217
2198
  &:disabled {
2218
2199
  & svg {
2219
2200
  path {