@lucca-front/scss 21.4.1 → 21.4.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lucca-front/scss",
3
- "version": "21.4.1",
3
+ "version": "21.4.2",
4
4
  "description": "A Sass framework for Lucca products.",
5
5
  "main": "src/main.scss",
6
6
  "scripts": {},
@@ -24,7 +24,7 @@
24
24
  "normalize.css": "^8.0.0"
25
25
  },
26
26
  "peerDependencies": {
27
- "@lucca-front/icons": "21.4.1",
28
- "@lucca/prisme": "21.4.1"
27
+ "@lucca-front/icons": "21.4.2",
28
+ "@lucca/prisme": "21.4.2"
29
29
  }
30
30
  }
@@ -77,6 +77,7 @@
77
77
  margin-block-end: 0;
78
78
  overflow-wrap: anywhere;
79
79
  font: var(--components-comment-text-font);
80
+ white-space: var(--components-comment-text-whiteSpace);
80
81
  }
81
82
 
82
83
  .comment-content-textContainerOptional {
@@ -17,6 +17,10 @@
17
17
  @include noAvatar;
18
18
  }
19
19
 
20
+ &.mod-plainText {
21
+ @include plainText;
22
+ }
23
+
20
24
  &:has(.comment-infos) {
21
25
  @include container.max(25rem, $name: 'comment') {
22
26
  @include narrow;
@@ -57,3 +57,7 @@
57
57
  margin-inline: 0 var(--components-comment-content-margin);
58
58
  }
59
59
  }
60
+
61
+ @mixin plainText {
62
+ --components-comment-text-whiteSpace: pre-line;
63
+ }
@@ -1,5 +1,6 @@
1
1
  @mixin vars {
2
2
  --components-comment-max-width: 66ch;
3
+ --components-comment-text-whiteSpace: normal;
3
4
  --components-comment-text-font: var(--pr-t-font-body-M);
4
5
  --components-comment-margin: 0;
5
6
  --components-comment-content-margin: calc(1.5rem + var(--pr-t-spacings-100)); // 1.5rem for the width of the avatar and 0.5rem for the gap
@@ -12,7 +12,7 @@
12
12
  }
13
13
 
14
14
  @mixin disabled {
15
- --components-multiSelect-background: var(--commons-disabled-background);
15
+ --components-multiSelect-background: var(--pr-t-color-input-background-disabled);
16
16
  --components-multiSelect-placeholder: var(--commons-disabled-placeholder);
17
17
  --components-multiSelect-arrow-color: var(--pr-t-color-input-icon-disabled);
18
18
 
@@ -62,6 +62,8 @@
62
62
  $wrappingElements: 'ol, ul';
63
63
 
64
64
  &:not(:has(#{$notPlainText})) {
65
+ white-space: var(--components-readMore-content-whiteSpace);
66
+
65
67
  &::after {
66
68
  @extend %after;
67
69
  }
@@ -28,5 +28,9 @@
28
28
  &.mod-sunken {
29
29
  @include sunken;
30
30
  }
31
+
32
+ &.mod-plainText {
33
+ @include plainText;
34
+ }
31
35
  }
32
36
  }
@@ -9,3 +9,7 @@
9
9
  @mixin linkReset {
10
10
  --components-readMore-link-insetBlockEnd: 0;
11
11
  }
12
+
13
+ @mixin plainText {
14
+ --components-readMore-content-whiteSpace: pre-line;
15
+ }
@@ -3,4 +3,5 @@
3
3
  --components-readMore-link-backgroudColor: var(--pr-t-elevation-surface-raised);
4
4
  --components-readMore-link-paddingInlineStart: var(--pr-t-spacings-500);
5
5
  --components-readMore-link-insetBlockEnd: var(--pr-t-spacings-50);
6
+ --components-readMore-content-whiteSpace: normal;
6
7
  }
@@ -22,7 +22,17 @@
22
22
 
23
23
  @at-root ($atRoot) {
24
24
  .resourceCardWrapper {
25
- grid-template-columns: repeat(auto-fill, minmax(var(--components-resourceCardWrapper-gridTemplateColumnsMin), 1fr));
25
+ grid-template-columns:
26
+ repeat(
27
+ auto-fill,
28
+ minmax(
29
+ min(
30
+ var(--components-resourceCardWrapper-gridTemplateColumnsMin),
31
+ 100%
32
+ ),
33
+ 1fr
34
+ )
35
+ );
26
36
  display: var(--components-resourceCardWrapper-display);
27
37
  flex-direction: column;
28
38
  gap: var(--pr-t-spacings-100);
@@ -26,7 +26,7 @@
26
26
 
27
27
  @at-root ($atRoot) {
28
28
  // Prevent Safari to display a native tooltip
29
- [luTooltipWhenEllipsis] {
29
+ .tooltip_trigger.is-whenEllipsis {
30
30
  @supports (background-image: -webkit-named-image(i)) {
31
31
  @media (hover: hover) {
32
32
  &::after {