@lucca-front/scss 21.4.0 → 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.0",
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.0",
28
- "@lucca/prisme": "21.4.0"
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
@@ -158,6 +158,7 @@
158
158
  padding-inline: var(--components-dialog-insideContent-paddingInline);
159
159
  grid-area: overflow;
160
160
  overflow: var(--components-dialog-insideContent-overflow);
161
+ flex-grow: var(--components-dialog-insideContent-flexGrow);
161
162
  display: block;
162
163
  outline: none;
163
164
  }
@@ -155,6 +155,7 @@
155
155
 
156
156
  @mixin withHorizontalNavigation {
157
157
  --components-dialog-insideContent-overflow: none;
158
+ --components-dialog-insideContent-flexGrow: 1;
158
159
  --components-dialog-inside-header-boxShadow: none;
159
160
  --components-dialog-inside-header-paddingBlock: var(--pr-t-spacings-200) 0;
160
161
  }
@@ -20,6 +20,7 @@
20
20
  --components-dialog-insideContent-paddingInline: var(--pr-t-spacings-300);
21
21
  --components-dialog-insideContent-paddingBlock: var(--pr-t-spacings-200);
22
22
  --components-dialog-insideContent-overflow: auto;
23
+ --components-dialog-insideContent-flexGrow: 0;
23
24
  --components-dialog-level: 0;
24
25
  --components-dialog-translate-spacing: var(--pr-t-spacings-500);
25
26
  --components-dialog-translate: calc(var(--components-dialog-translate-spacing) * var(--components-dialog-level) * -1);
@@ -16,8 +16,8 @@
16
16
  @include narrow;
17
17
  }
18
18
 
19
- .appLayout & {
20
- @include inAppLayout;
19
+ :is(.appLayout, .dialog) & {
20
+ @include nested;
21
21
  }
22
22
  }
23
23
  }
@@ -26,7 +26,7 @@
26
26
  }
27
27
  }
28
28
 
29
- @mixin inAppLayout {
29
+ @mixin nested {
30
30
  &,
31
31
  .errorPage-section {
32
32
  block-size: 100%;
@@ -104,22 +104,18 @@
104
104
 
105
105
  display: flex;
106
106
  margin-block-start: -1px;
107
- margin-inline-start: var(--pr-t-spacings-50);
108
107
  inline-size: calc(var(--pr-t-spacings-50) + var(--pr-t-spacings-200));
109
108
  flex-shrink: 0;
110
109
  z-index: 1;
111
110
  color: var(--components-filterPill-toggle-iconColor);
112
111
  cursor: var(--components-filterPill-label-cursor);
112
+ margin-inline-start: var(--components-filterPill-toggle-marginInlineStart);
113
113
 
114
114
  .icon-arrowChevronBottom {
115
115
  transition-property: transform;
116
116
  transition-duration: var(--commons-animations-durations-fast);
117
117
  transform: rotate(var(--components-filterPill-toggle-rotation));
118
118
  }
119
-
120
- .filterPill-value + & {
121
- margin-inline-start: var(--components-filterPill-toggle-marginInlineStart);
122
- }
123
119
  }
124
120
 
125
121
  .filterPill-clear.clear {
@@ -38,6 +38,10 @@
38
38
  &:active {
39
39
  @include filledActive;
40
40
  }
41
+
42
+ &:has(~ .filterPill_clear) {
43
+ @include filledClearable;
44
+ }
41
45
  }
42
46
 
43
47
  &.mod-checkbox {
@@ -82,6 +86,10 @@
82
86
  }
83
87
 
84
88
  .filterPillWrapper {
89
+ @layer components {
90
+ @include varsWrapper;
91
+ }
92
+
85
93
  @layer mods {
86
94
  &.is-hidden {
87
95
  @include hidden;
@@ -67,7 +67,6 @@
67
67
  --components-filterPill-backgroundColor: var(--palettes-product-50);
68
68
  --components-filterPill-color: var(--palettes-product-800);
69
69
  --components-filterPill-toggle-iconColor: var(--palettes-product-700);
70
- --components-filterPill-toggle-marginInlineStart: calc(var(--pr-t-spacings-300) + var(--pr-t-spacings-50));
71
70
  }
72
71
 
73
72
  @mixin notFilled {
@@ -109,3 +108,7 @@
109
108
  @mixin hidden {
110
109
  --components-filterPillWrapper-display: none;
111
110
  }
111
+
112
+ @mixin filledClearable {
113
+ --components-filterPill-toggle-marginInlineStart: calc(var(--pr-t-spacings-300) + var(--pr-t-spacings-50));
114
+ }
@@ -18,5 +18,8 @@
18
18
  --components-filterPill-arrowColor: var(--palettes-product-700);
19
19
  --components-filterPill-label-maxInlineSize: none;
20
20
  --components-filterPill-toggle-marginInlineStart: var(--pr-t-spacings-50);
21
+ }
22
+
23
+ @mixin varsWrapper {
21
24
  --components-filterPillWrapper-display: block;
22
25
  }
@@ -18,6 +18,10 @@
18
18
  @at-root ($atRoot) {
19
19
  .footer-content {
20
20
  flex-grow: 1;
21
+
22
+ &:empty {
23
+ display: none;
24
+ }
21
25
  }
22
26
 
23
27
  .footer-actions {
@@ -55,7 +55,7 @@
55
55
  --commons-text-link-hover: var(--palettes-800, var(--palettes-product-800));
56
56
  }
57
57
 
58
- .button {
58
+ .button.mod-outlined {
59
59
  @include color.palette('neutral');
60
60
  }
61
61
  }
@@ -149,6 +149,7 @@
149
149
  .horizontalNavigation_panel {
150
150
  display: var(--components-horizontalNavigation-panel-display);
151
151
  overflow: var(--components-horizontalNavigation-panel-overflow);
152
+ flex-grow: var(--components-horizontalNavigation-panel-flexGrow);
152
153
  min-height: 0;
153
154
  flex-direction: column;
154
155
 
@@ -115,6 +115,7 @@
115
115
  @mixin insideDialogPanel {
116
116
  --components-horizontalNavigation-panel-display: flex;
117
117
  --components-horizontalNavigation-panel-overflow: auto;
118
+ --components-horizontalNavigation-panel-flexGrow: 1;
118
119
 
119
120
  &:focus-visible {
120
121
  @include a11y.focusVisible($offset: -4px, $borderRadius: var(--pr-t-border-radius-structure));
@@ -25,4 +25,5 @@
25
25
  @mixin varsPanel {
26
26
  --components-horizontalNavigation-panel-display: block;
27
27
  --components-horizontalNavigation-panel-overflow: visible;
28
+ --components-horizontalNavigation-panel-flexGrow: 0;
28
29
  }
@@ -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);
@@ -132,6 +132,7 @@
132
132
 
133
133
  .textField-prefix-lang {
134
134
  min-inline-size: calc(var(--pr-t-spacings-300) + var(--pr-t-spacings-50));
135
+ padding-inline-end: var(--pr-t-spacings-100);
135
136
  position: relative;
136
137
 
137
138
  &::after {
@@ -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 {