@trilogy-ds/styles 0.0.1-beta.5 → 0.0.1-beta.50
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/README.md +47 -0
- package/dist/default/trilogy-mangled.css +1 -1
- package/dist/default/trilogy-partials.css +1 -1
- package/dist/default/trilogy.css +1 -1
- package/framework/src/base/_color.scss +14 -36
- package/framework/src/base/_generic.scss +4 -1
- package/framework/src/base/_helpers.scss +20 -37
- package/framework/src/base/_loading.scss +8 -1
- package/framework/src/base/_reset.scss +8 -3
- package/framework/src/components/_accordion.scss +40 -86
- package/framework/src/components/_all.scss +0 -6
- package/framework/src/components/_breadcrumb.scss +39 -34
- package/framework/src/components/_card.scss +7 -78
- package/framework/src/components/_countdown.scss +49 -47
- package/framework/src/components/_divider.scss +2 -2
- package/framework/src/components/_fab.scss +12 -26
- package/framework/src/components/_level.scss +1 -1
- package/framework/src/components/_media.scss +2 -2
- package/framework/src/components/_modal.scss +167 -166
- package/framework/src/components/_otp.scss +9 -28
- package/framework/src/components/_pagination.scss +104 -133
- package/framework/src/components/_plus-symbol.scss +1 -1
- package/framework/src/components/_popover.scss +255 -255
- package/framework/src/components/_price.scss +196 -166
- package/framework/src/components/_product-tour.scss +2 -4
- package/framework/src/components/_range.scss +73 -72
- package/framework/src/components/_segmented-control.scss +37 -51
- package/framework/src/components/_stepper.scss +18 -142
- package/framework/src/components/_tabs.scss +32 -59
- package/framework/src/components/_timeline.scss +52 -45
- package/framework/src/elements/_alert.scss +5 -8
- package/framework/src/elements/_all.scss +1 -3
- package/framework/src/elements/_autocomplete.scss +32 -0
- package/framework/src/elements/_badge.scss +54 -59
- package/framework/src/elements/_box.scss +8 -115
- package/framework/src/elements/_button.scss +15 -133
- package/framework/src/elements/_checkbox.scss +21 -27
- package/framework/src/elements/_chips.scss +74 -83
- package/framework/src/elements/_dot.scss +1 -1
- package/framework/src/elements/_entry.scss +76 -88
- package/framework/src/elements/_form.scss +17 -15
- package/framework/src/elements/_icon.scss +3 -3
- package/framework/src/elements/_input-gauge.scss +32 -33
- package/framework/src/elements/_input-icons.scss +33 -31
- package/framework/src/elements/_link.scss +38 -65
- package/framework/src/elements/_list.scss +38 -46
- package/framework/src/elements/_loader.scss +1 -1
- package/framework/src/elements/_other.scss +2 -2
- package/framework/src/elements/_paragraph.scss +4 -26
- package/framework/src/elements/_progress.scss +12 -21
- package/framework/src/elements/_radio.scss +2 -2
- package/framework/src/elements/_select.scss +84 -301
- package/framework/src/elements/_sticker.scss +12 -27
- package/framework/src/elements/_switch.scss +85 -88
- package/framework/src/elements/_table.scss +173 -226
- package/framework/src/elements/_tag.scss +104 -105
- package/framework/src/elements/_textarea.scss +95 -105
- package/framework/src/elements/_title.scss +89 -87
- package/framework/src/elements/_toaster.scss +3 -4
- package/framework/src/grid/_columns.scss +5 -5
- package/framework/src/layout/_all.scss +0 -1
- package/framework/src/layout/_hero.scss +109 -207
- package/framework/src/layout/_section.scss +7 -14
- package/framework/src/theming/_all.scss +3 -0
- package/framework/src/theming/buttons_partial.scss +30 -0
- package/framework/src/theming/common_partials.scss +9 -0
- package/framework/src/theming/links_partial.scss +20 -0
- package/framework/src/utilities/_all.scss +3 -0
- package/framework/src/utilities/_background.scss +15 -0
- package/framework/src/utilities/_controls.scss +37 -48
- package/framework/src/utilities/_derived-variables.scss +3 -14
- package/framework/src/utilities/_initial-variables.scss +22 -26
- package/framework/src/utilities/_mixins.scss +481 -593
- package/framework/src/utilities/_pre.scss +1 -0
- package/package.json +3 -2
- package/framework/src/components/_disclaimer.scss +0 -84
- package/framework/src/components/_dropdown.scss +0 -128
- package/framework/src/components/_menu.scss +0 -213
- package/framework/src/components/_search-modal.scss +0 -197
- package/framework/src/components/_slices.scss +0 -316
- package/framework/src/components/_slider.scss +0 -92
- package/framework/src/components/_switch.scss +0 -209
- package/framework/src/elements/_checkradio.scss +0 -173
- package/framework/src/elements/_notification.scss +0 -151
- package/framework/src/elements/_options.scss +0 -146
- package/framework/src/elements/_timeline.scss +0 -283
- package/framework/src/layout/_toolbar.scss +0 -100
|
@@ -1,79 +1,52 @@
|
|
|
1
|
-
.link
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
box-decoration-break: clone;
|
|
7
|
-
padding: $spacing-2;
|
|
8
|
-
margin: -8px;
|
|
9
|
-
text-decoration: underline;
|
|
10
|
-
cursor: pointer;
|
|
1
|
+
.link {
|
|
2
|
+
[disabled] {
|
|
3
|
+
@include disabledRulesWithoutBG;
|
|
4
|
+
}
|
|
5
|
+
}
|
|
11
6
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
text-decoration-style: solid;
|
|
15
|
-
text-decoration-thickness: 2px;
|
|
16
|
-
text-underline-offset: 4px;
|
|
17
|
-
}
|
|
7
|
+
.link:not([disabled]) {
|
|
8
|
+
@extend %link-states;
|
|
18
9
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
10
|
+
position: relative;
|
|
11
|
+
font-weight: $weight-normal;
|
|
12
|
+
color: getColor($link-colors);
|
|
13
|
+
box-decoration-break: clone;
|
|
14
|
+
text-decoration: underline 2px solid;
|
|
15
|
+
text-underline-offset: 4px;
|
|
16
|
+
cursor: pointer;
|
|
22
17
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
&:active,
|
|
27
|
-
&.is-active {
|
|
28
|
-
filter: brightness(50%);
|
|
29
|
-
}
|
|
18
|
+
&.has-icon {
|
|
19
|
+
display: inline-flex;
|
|
20
|
+
align-items: center;
|
|
30
21
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
border-bottom-width: 0;
|
|
35
|
-
}
|
|
22
|
+
&::after {
|
|
23
|
+
width: calc(100% - 48px);
|
|
24
|
+
bottom: 5.5px;
|
|
36
25
|
}
|
|
26
|
+
}
|
|
37
27
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
align-items: center;
|
|
41
|
-
|
|
42
|
-
&::after {
|
|
43
|
-
width: calc(100% - 48px);
|
|
44
|
-
bottom: 5.5px;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
28
|
+
&.is-inverted {
|
|
29
|
+
color: getColor('background');
|
|
47
30
|
|
|
48
|
-
&.
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&.is-inverted {
|
|
31
|
+
&.has-icon {
|
|
32
|
+
> .icon {
|
|
53
33
|
color: getColor('background');
|
|
54
|
-
|
|
55
|
-
&.has-icon {
|
|
56
|
-
> .icon {
|
|
57
|
-
color: getColor('background');
|
|
58
|
-
}
|
|
59
34
|
}
|
|
60
35
|
}
|
|
36
|
+
}
|
|
61
37
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
38
|
+
@include touch {
|
|
39
|
+
white-space: normal !important;
|
|
40
|
+
box-decoration-break: clone;
|
|
41
|
+
display: inline;
|
|
42
|
+
}
|
|
67
43
|
}
|
|
68
44
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
left: 0;
|
|
77
|
-
right: 100%;
|
|
78
|
-
}
|
|
45
|
+
.text .link:not([disabled]) {
|
|
46
|
+
text-underline-offset: 2px;
|
|
47
|
+
text-decoration: underline 1px solid;
|
|
48
|
+
&:hover {
|
|
49
|
+
font-weight: $weight-normal;
|
|
50
|
+
filter: brightness(0.8);
|
|
51
|
+
}
|
|
79
52
|
}
|
|
@@ -1,61 +1,53 @@
|
|
|
1
1
|
// Bullet list classiques
|
|
2
|
-
ul.list
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
ul.list,
|
|
3
|
+
ol.list {
|
|
4
|
+
list-style-type: none;
|
|
5
|
+
|
|
6
|
+
li {
|
|
7
|
+
padding: $spacing-4;
|
|
8
|
+
position: relative;
|
|
9
|
+
|
|
10
|
+
.list-item_content {
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
&_puce {
|
|
14
|
+
margin-right: $spacing-4;
|
|
15
|
+
}
|
|
6
16
|
}
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
ul.list {
|
|
10
|
-
list-style: disc;
|
|
11
17
|
|
|
12
|
-
ul.list {
|
|
13
|
-
list-style: circle;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
18
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
&.has-action {
|
|
20
|
+
display: flex;
|
|
21
|
+
justify-content: space-between;
|
|
22
|
+
align-items: center;
|
|
23
|
+
@include hover();
|
|
21
24
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
.list-item_action {
|
|
26
|
+
& >:first-child {
|
|
27
|
+
margin: 0px !important;
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
}
|
|
25
30
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
31
|
+
.radio label.radio-label:empty,
|
|
32
|
+
.checkbox label.checkbox-label:empty {
|
|
33
|
+
padding: $spacing-1 $spacing-1 $spacing-1 calc($spacing-1 + 10px);
|
|
34
|
+
}
|
|
30
35
|
|
|
31
|
-
|
|
32
|
-
dt {
|
|
33
|
-
font-weight: $weight-semibold;
|
|
34
|
-
margin-bottom: 5px;
|
|
36
|
+
}
|
|
35
37
|
|
|
36
|
-
&:not(:first-child) {
|
|
37
|
-
margin-top: 20px;
|
|
38
|
-
}
|
|
39
38
|
}
|
|
40
39
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
font-size: $size-7;
|
|
40
|
+
div b {
|
|
41
|
+
margin-bottom: $spacing-2 ;
|
|
44
42
|
}
|
|
45
43
|
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
.divider {
|
|
45
|
+
position: absolute;
|
|
46
|
+
bottom: calc(-1 * $spacing-4);
|
|
47
|
+
width: 100%;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
color: getColor('font');
|
|
53
|
-
font-size: $size-7;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
dd {
|
|
57
|
-
color: getColor('font');
|
|
58
|
-
font-size: $size-6;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
50
|
+
}
|
|
51
|
+
|
|
61
52
|
}
|
|
53
|
+
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
|
|
31
31
|
.number {
|
|
32
32
|
align-items: center;
|
|
33
|
-
background-color:
|
|
34
|
-
border-radius:
|
|
33
|
+
background-color: getBGColor('neutral-dark');
|
|
34
|
+
border-radius: 9999px;
|
|
35
35
|
display: inline-flex;
|
|
36
36
|
font-size: $size-medium;
|
|
37
37
|
height: 2em;
|
|
@@ -12,8 +12,7 @@ $text-levels-mobile: (
|
|
|
12
12
|
);
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
.
|
|
16
|
-
&.text {
|
|
15
|
+
.text {
|
|
17
16
|
@each $text-level in $text-levels {
|
|
18
17
|
$i: index($text-levels, $text-level);
|
|
19
18
|
$font-size: nth($text-level, 1);
|
|
@@ -26,10 +25,10 @@ $text-levels-mobile: (
|
|
|
26
25
|
font-family: $family-primary;
|
|
27
26
|
margin-bottom: $margin-bottom;
|
|
28
27
|
}
|
|
28
|
+
}
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
30
|
+
&.is-inverted {
|
|
31
|
+
color: getColor('background');
|
|
33
32
|
}
|
|
34
33
|
|
|
35
34
|
@include mobile {
|
|
@@ -51,28 +50,7 @@ $text-levels-mobile: (
|
|
|
51
50
|
font-weight: $weight-bold;
|
|
52
51
|
}
|
|
53
52
|
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
.paragraph,
|
|
58
|
-
.text {
|
|
59
|
-
& a.link:not([disabled]),
|
|
60
|
-
a {
|
|
61
|
-
padding: $spacing-1;
|
|
62
|
-
margin: -4px;
|
|
63
|
-
text-decoration: underline;
|
|
64
|
-
font-size: unset;
|
|
65
|
-
font-weight: $weight-medium;
|
|
66
|
-
|
|
67
|
-
&::after {
|
|
68
|
-
content: none;
|
|
69
|
-
}
|
|
70
53
|
|
|
71
|
-
&.is-static::after {
|
|
72
|
-
margin-bottom: 0;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
54
|
|
|
77
55
|
.paragraph:not(:last-child) {
|
|
78
56
|
margin-bottom: 10px;
|
|
@@ -9,7 +9,7 @@ $progressbar-small: 5px;
|
|
|
9
9
|
@include block;
|
|
10
10
|
|
|
11
11
|
border: none;
|
|
12
|
-
border-radius:
|
|
12
|
+
border-radius: 9999px;
|
|
13
13
|
display: block;
|
|
14
14
|
height: $progressbar-height;
|
|
15
15
|
overflow: hidden;
|
|
@@ -18,8 +18,10 @@ $progressbar-small: 5px;
|
|
|
18
18
|
-moz-appearance: none;
|
|
19
19
|
-webkit-appearance: none;
|
|
20
20
|
|
|
21
|
+
background-color: getBGColor('hovered');
|
|
22
|
+
|
|
21
23
|
&::-webkit-progress-bar {
|
|
22
|
-
background-color:
|
|
24
|
+
background-color: getBGColor('font');
|
|
23
25
|
border-radius: $progressbar-height;
|
|
24
26
|
}
|
|
25
27
|
|
|
@@ -33,12 +35,6 @@ $progressbar-small: 5px;
|
|
|
33
35
|
border-radius: $progressbar-height;
|
|
34
36
|
}
|
|
35
37
|
|
|
36
|
-
&::-ms-fill {
|
|
37
|
-
background-color: getColor('font');
|
|
38
|
-
border: none;
|
|
39
|
-
border-radius: $progressbar-height;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
38
|
&:not(:last-child) {
|
|
43
39
|
margin-bottom: 7.5px;
|
|
44
40
|
}
|
|
@@ -71,12 +67,11 @@ $progressbar-small: 5px;
|
|
|
71
67
|
|
|
72
68
|
.progress.is-stacked {
|
|
73
69
|
display: flex;
|
|
74
|
-
background-color: getColor('grey-light');
|
|
75
70
|
border-radius: $progressbar-height;
|
|
76
71
|
|
|
77
72
|
.progress-bar {
|
|
78
73
|
height: $progressbar-height;
|
|
79
|
-
background-color:
|
|
74
|
+
background-color: getColor('font');
|
|
80
75
|
|
|
81
76
|
&:first-child {
|
|
82
77
|
border-radius: $progressbar-height 0 0 $progressbar-height;
|
|
@@ -100,10 +95,10 @@ $progressbar-small: 5px;
|
|
|
100
95
|
|
|
101
96
|
// Progress Bar circle
|
|
102
97
|
$progress-circle-slices: (
|
|
103
|
-
secondary: getColor('
|
|
98
|
+
secondary: getColor('info'),
|
|
104
99
|
tertiary: getColor('font'),
|
|
105
100
|
warning: getColor('warning'),
|
|
106
|
-
empty:
|
|
101
|
+
empty: getBGColor('neutral-dark')
|
|
107
102
|
);
|
|
108
103
|
|
|
109
104
|
.progress-circle {
|
|
@@ -113,7 +108,7 @@ $progress-circle-slices: (
|
|
|
113
108
|
--progress-circle-spacing-color: 255, 255, 255;
|
|
114
109
|
--progress-circle-spacing-deg: calc(1deg * var(--progress-circle-spacing));
|
|
115
110
|
|
|
116
|
-
border-radius:
|
|
111
|
+
border-radius: 9999px;
|
|
117
112
|
height: var(--progress-circle-size);
|
|
118
113
|
margin: 40px;
|
|
119
114
|
position: relative;
|
|
@@ -151,8 +146,8 @@ $progress-circle-slices: (
|
|
|
151
146
|
|
|
152
147
|
.progress-circle-slice::before,
|
|
153
148
|
.progress-circle-slice::after {
|
|
154
|
-
border: var(--progress-circle-border-width) solid rgba(0,0,0,0);
|
|
155
|
-
border-radius:
|
|
149
|
+
border: var(--progress-circle-border-width) solid rgba(0, 0, 0, 0);
|
|
150
|
+
border-radius: 9999px;
|
|
156
151
|
content: '';
|
|
157
152
|
height: 100%;
|
|
158
153
|
left: 0;
|
|
@@ -181,9 +176,7 @@ $slides-concat: '';
|
|
|
181
176
|
|
|
182
177
|
clip-path: inset(0 calc(50% * (var(--#{$name}-check) / var(--#{$name}-check))) 0 0);
|
|
183
178
|
}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
@else {
|
|
179
|
+
} @else {
|
|
187
180
|
.progress-circle-background-#{$name} {
|
|
188
181
|
--#{$name}-start: 0;
|
|
189
182
|
}
|
|
@@ -204,9 +197,7 @@ $slides-concat: '';
|
|
|
204
197
|
|
|
205
198
|
@if $i == 1 {
|
|
206
199
|
$slides-concat: var(--#{$name});
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
@else {
|
|
200
|
+
} @else {
|
|
210
201
|
$slides-concat: $slides-concat + ' + ' + var(--#{$name});
|
|
211
202
|
}
|
|
212
203
|
}
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
label.radio-label {
|
|
37
37
|
&:before,
|
|
38
38
|
&:after {
|
|
39
|
-
border-radius:
|
|
39
|
+
border-radius: 9999px;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
|
|
60
60
|
input:checked:disabled ~ label.radio-label {
|
|
61
61
|
&:after {
|
|
62
|
-
background-color: getColor('
|
|
62
|
+
background-color: getColor('neutral');
|
|
63
63
|
top: 19px;
|
|
64
64
|
right: 19px;
|
|
65
65
|
}
|