@sc-360-v2/storefront-cms-library 0.3.42 → 0.3.44

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.
@@ -1,7 +1,7 @@
1
1
  @use "sass:map";
2
2
  @use "./functions.scss" as *;
3
3
  @use "./prefix-list.scss" as *;
4
-
4
+ $var: "--_ctm-sf-or-mx-ht";
5
5
  $overflow: (
6
6
  class: (
7
7
  scrollable: "flx-oflow",
@@ -15,7 +15,7 @@ $overflow: (
15
15
  );
16
16
 
17
17
  $overflowValues: (
18
- scroll: scroll,
18
+ scroll: auto,
19
19
  hidden: hidden,
20
20
  visible: visible,
21
21
  // auto: auto,
@@ -43,7 +43,8 @@ $overflowValues: (
43
43
  // Apply max-height if vertical is scroll and max-height is set
44
44
  &[#{map.get($attrs, vertical)}="scroll"] {
45
45
  &[#{map.get($attrs, maxHeight)}] {
46
- max-height: var(--cms-max-height) !important;
46
+ @include FlexUpdatedPrefixCSSVariable($var, false, maxHeight);
47
+ max-height: var(#{$var}, 100%) !important;
47
48
  }
48
49
  }
49
50
 
@@ -10,13 +10,19 @@ $elementDragging: "[data-cms-new-element-dragging-v2='true']";
10
10
  $dataResizerTrue: '[data-cms-element-resizer="true"]';
11
11
  $fullView: '[data-view-state="full"]';
12
12
  $var: "--_sf-width-rb-vl";
13
+ $selector: "[data-element-type='layouter-pro']";
13
14
 
14
15
  @mixin FlexElementResponsiveBehaviourStyles() {
15
16
  #{$elementSelector} {
16
17
  &#{$rb_cls} {
17
18
  &:not(#{$fullView, $elementDragging, $dataResizerTrue}) {
18
19
  @include FlexUpdatedPrefixCSSVariable(#{$var});
19
- width: var(#{$var}, #{prepareMediaVariable(--_ctm-lt-wh)}) !important;
20
+ &:is(#{$selector}) {
21
+ width: min(var(#{$var}, #{prepareMediaVariable(--_ctm-lt-wh)}), 100%) !important;
22
+ }
23
+ &:is(:not(#{$selector})) {
24
+ width: var(#{$var}, #{prepareMediaVariable(--_ctm-lt-wh)}) !important;
25
+ }
20
26
  }
21
27
  }
22
28
  }
package/dist/section.scss CHANGED
@@ -47,7 +47,7 @@ body {
47
47
  @include FlexElementResponsiveBehaviourStyles();
48
48
 
49
49
  // Overflow
50
- @include FlexOverflowModuleStyles();
50
+ // @include FlexOverflowModuleStyles();
51
51
 
52
52
  // Additional Tranform Properties
53
53
  @include FlexElementTransformProps();