@lucca-front/scss 20.2.0 → 20.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lucca-front/scss",
3
- "version": "20.2.0",
3
+ "version": "20.2.1",
4
4
  "description": "A Sass framework for Lucca products.",
5
5
  "main": "src/main.scss",
6
6
  "scripts": {},
@@ -23,6 +23,6 @@
23
23
  "normalize.css": "^8.0.0"
24
24
  },
25
25
  "peerDependencies": {
26
- "@lucca-front/icons": "20.2.0"
26
+ "@lucca-front/icons": "20.2.1"
27
27
  }
28
28
  }
@@ -66,7 +66,7 @@ $fontTokens: (
66
66
  heading-3-fontWeight: var(--pr-t-font-fontWeight-bold),
67
67
  heading-4-fontSize: var(--pr-t-font-fontSize-200),
68
68
  heading-4-lineHeight: var(--pr-t-font-lineHeight-300),
69
- heading-4-fontWeight: var(--pr-t-font-fontWeight-semibold),
69
+ heading-4-fontWeight: var(--pr-t-font-fontWeight-bold),
70
70
  highlight-XXL-fontSize: var(--pr-t-font-fontSize-350),
71
71
  highlight-XXL-lineHeight: var(--pr-t-font-lineHeight-400),
72
72
  highlight-XXL-fontWeight: var(--pr-t-font-fontWeight-black),
@@ -34,6 +34,7 @@
34
34
 
35
35
  @mixin loadingXS {
36
36
  @include loading.spinner(var(--pr-t-font-body-XS-lineHeight));
37
+
37
38
  --commons-loading-borderWidth: 2px;
38
39
  }
39
40
 
@@ -108,6 +109,7 @@
108
109
 
109
110
  @mixin error {
110
111
  @include keyframe.shake;
112
+
111
113
  animation-name: shake;
112
114
  animation-iteration-count: 1;
113
115
  animation-duration: var(--commons-animations-durations-standard);
@@ -44,7 +44,8 @@
44
44
  content: var(--components-readMore-content-lastChild-content) / '';
45
45
  visibility: hidden;
46
46
  white-space: nowrap;
47
- font-weight: 600;
47
+ font: var(--pr-t-font-body-M);
48
+ font-weight: var(--pr-t-font-fontWeight-semibold);
48
49
  padding-inline-start: var(--components-readMore-link-paddingInlineStart);
49
50
  }
50
51
 
@@ -56,17 +57,32 @@
56
57
  padding: var(--pr-t-spacings-50);
57
58
  margin: calc(var(--pr-t-spacings-50) * -1);
58
59
 
59
- &:not(:has(> p)) {
60
+ $notPlainText: '> p, > ul, > ol, > h1, > h2, > h3, > h4, > h5, > h6';
61
+ $wrappingElements: 'ol, ul';
62
+
63
+ &:not(:has(#{$notPlainText})) {
60
64
  &::after {
61
65
  @extend %after;
62
66
  }
63
67
  }
64
68
 
65
- &:has(> p) {
69
+ &:has(#{$notPlainText}) {
66
70
  > * {
67
71
  &:last-child {
68
- &::after {
69
- @extend %after;
72
+ &:not(#{$wrappingElements}) {
73
+ &::after {
74
+ @extend %after;
75
+ }
76
+ }
77
+
78
+ &:is(#{$wrappingElements}) {
79
+ > * {
80
+ &:last-child {
81
+ &::after {
82
+ @extend %after;
83
+ }
84
+ }
85
+ }
70
86
  }
71
87
  }
72
88
  }
@@ -6,6 +6,8 @@
6
6
  }
7
7
 
8
8
  @mixin disabled {
9
+ --components-readMore-content-lastChild-content: none !important;
10
+
9
11
  .readMore-link.link {
10
12
  @include a11y.mask;
11
13
  }
@@ -131,9 +131,7 @@
131
131
  }
132
132
 
133
133
  .richTextField-toolbar-chips-item {
134
- @include reset.button;
135
-
136
- width: auto;
134
+ border: 0;
137
135
  }
138
136
 
139
137
  .richTextField-content {
@@ -4,7 +4,7 @@
4
4
  }
5
5
 
6
6
  @mixin square {
7
- border-radius: var(--pr-t-border-radius-structure);
7
+ border-radius: var(--pr-t-border-radius-small);
8
8
  block-size: var(--components-skeleton-shape-height);
9
9
  inline-size: var(--components-skeleton-shape-width);
10
10
  }
@@ -36,5 +36,11 @@
36
36
 
37
37
  & > :last-child {
38
38
  margin-block-end: 0;
39
+
40
+ &:is(ul, ol) {
41
+ > :last-child {
42
+ margin-block-end: 0;
43
+ }
44
+ }
39
45
  }
40
46
  }