@lucca-front/scss 20.3.0 → 20.3.1-rc.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/dist/lucca-front.min.css +1 -1
- package/package.json +2 -2
- package/src/commons/config.scss +0 -3
- package/src/commons/index.scss +4 -0
- package/src/commons/utils/index.scss +28 -1
- package/src/components/chip/component.scss +2 -2
- package/src/components/chip/states.scss +2 -2
- package/src/components/chip/vars.scss +2 -0
- package/src/components/dataTable/component.scss +8 -0
- package/src/components/dialog/component.scss +1 -0
- package/src/components/inputFramed/component.scss +0 -1
- package/src/components/navside/component.scss +0 -10
- package/src/components/navside/index.scss +4 -2
- package/src/components/navside/mods.scss +6 -0
- package/src/components/richText/component.scss +6 -0
- package/src/components/richText/states.scss +1 -0
- package/src/components/richText/vars.scss +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lucca-front/scss",
|
|
3
|
-
"version": "20.3.
|
|
3
|
+
"version": "20.3.1-rc.2",
|
|
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.3.
|
|
26
|
+
"@lucca-front/icons": "20.3.1-rc.2"
|
|
27
27
|
}
|
|
28
28
|
}
|
package/src/commons/config.scss
CHANGED
|
@@ -5,9 +5,6 @@
|
|
|
5
5
|
|
|
6
6
|
$layers: 'reset, base, components, mods, product, utils' !default;
|
|
7
7
|
|
|
8
|
-
/* stylelint-disable-next-line layer-name-pattern */
|
|
9
|
-
@layer #{$layers};
|
|
10
|
-
|
|
11
8
|
$isNamespaced: false !default;
|
|
12
9
|
$deprecatedSpacings: false !default;
|
|
13
10
|
$deprecatedCardBoxMargin: false !default;
|
package/src/commons/index.scss
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
@use "sass:meta";
|
|
2
2
|
@use '@lucca-front/scss/src/commons/utils/namespace';
|
|
3
|
+
@use '@lucca-front/scss/src/commons/config';
|
|
3
4
|
@use 'exports' as *;
|
|
4
5
|
|
|
6
|
+
/* stylelint-disable-next-line layer-name-pattern */
|
|
7
|
+
@layer #{config.$layers};
|
|
8
|
+
|
|
5
9
|
@layer reset {
|
|
6
10
|
@include meta.load-css('normalize.css/normalize');
|
|
7
11
|
}
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
@use '@lucca-front/scss/src/commons/utils/reset';
|
|
9
9
|
@use '@lucca-front/scss/src/commons/utils/text';
|
|
10
10
|
@use '@lucca-front/scss/src/commons/utils/a11y';
|
|
11
|
-
|
|
11
|
+
@use '@lucca-front/scss/src/commons/utils/media';
|
|
12
|
+
@use '@lucca-front/scss/src/commons/utils/container';
|
|
12
13
|
@use '@lucca-front/scss/src/components/title/exports' as title;
|
|
13
14
|
|
|
14
15
|
@layer utils {
|
|
@@ -489,6 +490,32 @@
|
|
|
489
490
|
}
|
|
490
491
|
}
|
|
491
492
|
|
|
493
|
+
@each $breakpoint, $value in config.$breakpoints {
|
|
494
|
+
@include media.min($breakpoint) {
|
|
495
|
+
.pr-u-displayNoneAtMediaMin#{$breakpoint} {
|
|
496
|
+
display: none !important;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
@include media.max($breakpoint) {
|
|
501
|
+
.pr-u-displayNoneAtMediaMax#{$breakpoint} {
|
|
502
|
+
display: none !important;
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
@include container.min($breakpoint) {
|
|
507
|
+
.pr-u-displayNoneAtContainerMin#{$breakpoint} {
|
|
508
|
+
display: none !important;
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
@include container.max($breakpoint) {
|
|
513
|
+
.pr-u-displayNoneAtContainerMax#{$breakpoint} {
|
|
514
|
+
display: none !important;
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
|
|
492
519
|
%inset0 {
|
|
493
520
|
inset: 0 !important;
|
|
494
521
|
}
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
@use '@lucca-front/scss/src/commons/utils/namespace';
|
|
5
5
|
|
|
6
6
|
@mixin component($atRoot: namespace.$defaultAtRoot) {
|
|
7
|
-
background-color: var(--
|
|
7
|
+
background-color: var(--components-chip-backgroundColor);
|
|
8
8
|
border-radius: var(--components-chip-borderRadius);
|
|
9
|
-
color: var(--
|
|
9
|
+
color: var(--components-chip-color);
|
|
10
10
|
display: inline-flex;
|
|
11
11
|
align-items: center;
|
|
12
12
|
gap: var(--pr-t-spacings-100);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@mixin disabled {
|
|
2
|
-
|
|
3
|
-
color: var(--pr-t-color-text-disabled);
|
|
2
|
+
--components-chip-backgroundColor: var(--commons-disabled-background);
|
|
3
|
+
--components-chip-color: var(--pr-t-color-text-disabled);
|
|
4
4
|
|
|
5
5
|
.chip-kill {
|
|
6
6
|
display: none;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
@mixin vars {
|
|
2
2
|
--components-chip-font: var(--pr-t-font-body-S);
|
|
3
|
+
--components-chip-backgroundColor: var(--palettes-700, var(--palettes-neutral-200));
|
|
4
|
+
--components-chip-color: var(--palettes-0, var(--palettes-text, var(--pr-t-color-text)));
|
|
3
5
|
--components-chip-borderRadius: var(--pr-t-border-radius-default);
|
|
4
6
|
--components-chip-kill-size: 0.75rem;
|
|
5
7
|
--components-chip-kill-background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='16' width='16' fill='none'%3E%3Cpath d='M5.80473 4.86192C5.54438 4.60157 5.12227 4.60157 4.86192 4.86192C4.60157 5.12227 4.60157 5.54438 4.86192 5.80473L7.05718 7.99999L4.86192 10.1953C4.60157 10.4556 4.60157 10.8777 4.86192 11.1381C5.12227 11.3984 5.54438 11.3984 5.80473 11.1381L7.99999 8.9428L10.1953 11.1381C10.4556 11.3984 10.8777 11.3984 11.1381 11.1381C11.3984 10.8777 11.3984 10.4556 11.1381 10.1953L8.9428 7.99999L11.1381 5.80473C11.3984 5.54438 11.3984 5.12227 11.1381 4.86192C10.8777 4.60157 10.4556 4.60157 10.1953 4.86192L7.99999 7.05718L5.80473 4.86192Z' fill='currentColor'/%3E%3C/svg%3E");
|
|
@@ -29,6 +29,14 @@
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
.dataTableWrapper-pagination {
|
|
33
|
+
border-block-start: 1px solid var(--commons-border-200);
|
|
34
|
+
|
|
35
|
+
&:empty {
|
|
36
|
+
display: none;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
32
40
|
.dataTable-head-row-cell {
|
|
33
41
|
color: var(--pr-t-color-text-subtle);
|
|
34
42
|
padding: var(--components-dataTable-cell-padding);
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
position: fixed !important;
|
|
20
20
|
max-inline-size: var(--components-dialog-maxWidth) !important;
|
|
21
21
|
max-block-size: var(--components-dialog-maxHeight) !important;
|
|
22
|
+
overflow: hidden;
|
|
22
23
|
|
|
23
24
|
@supports not (height: 1dvh) {
|
|
24
25
|
--components-dialog-maxHeight: var(--components-dialog-maxHeightFallback);
|
|
@@ -19,16 +19,6 @@
|
|
|
19
19
|
inline-size: var(--commons-navSide-width);
|
|
20
20
|
scroll-margin-block-start: var(--commons-banner-height);
|
|
21
21
|
|
|
22
|
-
.appLayout-navSide & {
|
|
23
|
-
position: relative;
|
|
24
|
-
padding-block-start: 0;
|
|
25
|
-
block-size: var(--commons-navSide-mobile-toggle-height);
|
|
26
|
-
|
|
27
|
-
@include media.min('S') {
|
|
28
|
-
block-size: 100%;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
22
|
.numericBadge {
|
|
33
23
|
@include numericBadge.S;
|
|
34
24
|
@include numericBadge.brand;
|
|
@@ -6,8 +6,12 @@
|
|
|
6
6
|
@layer components {
|
|
7
7
|
@include vars;
|
|
8
8
|
@include component;
|
|
9
|
+
}
|
|
9
10
|
|
|
11
|
+
@layer mods {
|
|
10
12
|
.appLayout-navSide & {
|
|
13
|
+
@include inAppLayout;
|
|
14
|
+
|
|
11
15
|
@include media.min('S') {
|
|
12
16
|
@include inAppLayoutWide;
|
|
13
17
|
}
|
|
@@ -16,9 +20,7 @@
|
|
|
16
20
|
@include inAppLayoutNarrow;
|
|
17
21
|
}
|
|
18
22
|
}
|
|
19
|
-
}
|
|
20
23
|
|
|
21
|
-
@layer mods {
|
|
22
24
|
&.mod-withBanner {
|
|
23
25
|
@include banner;
|
|
24
26
|
}
|
|
@@ -64,6 +64,7 @@
|
|
|
64
64
|
|
|
65
65
|
@at-root ($atRoot) {
|
|
66
66
|
.richTextField-toolbar {
|
|
67
|
+
display: var(--components-richTextField-toolbar-display);
|
|
67
68
|
background-color: var(--components-richTextField-toolbar-backgroundColor);
|
|
68
69
|
border-radius: 0 0 var(--pr-t-border-radius-input) var(--pr-t-border-radius-input);
|
|
69
70
|
padding: var(--pr-t-spacings-100);
|
|
@@ -148,6 +149,11 @@
|
|
|
148
149
|
&:focus-visible {
|
|
149
150
|
@include a11y.focusVisible;
|
|
150
151
|
}
|
|
152
|
+
|
|
153
|
+
&.is-disabled {
|
|
154
|
+
--components-chip-backgroundColor: var(--palettes-neutral-200);
|
|
155
|
+
--components-chip-color: var(--pr-t-color-input-text-disabled);
|
|
156
|
+
}
|
|
151
157
|
}
|
|
152
158
|
|
|
153
159
|
.richTextField-content-placeholder {
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
@mixin disabled {
|
|
6
6
|
--components-richTextField-backgroundColor: var(--pr-t-color-input-background-disabled);
|
|
7
7
|
--components-richTextField-toolbar-backgroundColor: var(--pr-t-color-input-background-disabled);
|
|
8
|
+
--components-richTextField-toolbar-display: none;
|
|
8
9
|
--components-richTextField-color: var(--pr-t-color-input-text-disabled);
|
|
9
10
|
--components-richTextField-borderColor: var(--pr-t-color-input-border);
|
|
10
11
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
--components-richTextField-backgroundColor: var(--pr-t-color-input-background);
|
|
4
4
|
--components-richTextField-color: var(--pr-t-color-input-text);
|
|
5
5
|
--components-richTextField-toolbar-backgroundColor: var(--palettes-neutral-25);
|
|
6
|
+
--components-richTextField-toolbar-display: block;
|
|
6
7
|
--components-richTextField-resize: vertical;
|
|
7
8
|
--components-richTextField-height: 3lh;
|
|
8
9
|
--components-richTextField-minHeight: 2lh;
|