@trilogy-ds/styles 0.0.1-beta-112 → 0.0.1-beta-117
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/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 +9 -17
- package/framework/src/base/_generic.scss +1 -1
- package/framework/src/base/_helpers.scss +2 -5
- package/framework/src/components/_accordion.scss +13 -6
- package/framework/src/components/_all.scss +1 -1
- package/framework/src/components/_autolayout.scss +290 -0
- package/framework/src/components/_card.scss +1 -1
- package/framework/src/components/_divider.scss +11 -15
- package/framework/src/components/_fab.scss +20 -19
- package/framework/src/components/_modal.scss +7 -3
- package/framework/src/components/_pagination.scss +48 -121
- package/framework/src/components/_plus-symbol.scss +1 -1
- package/framework/src/components/_price.scss +32 -27
- package/framework/src/components/_segmented-control.scss +2 -2
- package/framework/src/components/_stepper.scss +2 -2
- package/framework/src/components/_tabs.scss +2 -1
- package/framework/src/components/_timeline.scss +26 -118
- package/framework/src/elements/_alert.scss +1 -3
- package/framework/src/elements/_all.scss +0 -1
- package/framework/src/elements/_autocomplete.scss +3 -3
- package/framework/src/elements/_badge.scss +10 -7
- package/framework/src/elements/_box.scss +2 -2
- package/framework/src/elements/_button.scss +2 -2
- package/framework/src/elements/_chips.scss +3 -3
- package/framework/src/elements/_entry.scss +1 -1
- package/framework/src/elements/_form.scss +16 -15
- package/framework/src/elements/_icon.scss +1 -1
- package/framework/src/elements/_loader.scss +1 -1
- package/framework/src/elements/_other.scss +0 -37
- package/framework/src/elements/_progress.scss +5 -5
- package/framework/src/elements/_sticker.scss +1 -1
- package/framework/src/elements/_switch.scss +4 -4
- package/framework/src/elements/_table.scss +11 -11
- package/framework/src/elements/_tag.scss +3 -3
- package/framework/src/elements/_textarea.scss +20 -2
- package/framework/src/elements/_toaster.scss +2 -2
- package/framework/src/grid/_columns.scss +284 -751
- package/framework/src/grid/_rows.scss +44 -42
- package/framework/src/layout/_section.scss +1 -18
- package/framework/src/theming/buttons_partial.scss +2 -2
- package/framework/src/theming/common_partials.scss +1 -1
- package/framework/src/utilities/_a11y.scss +13 -0
- package/framework/src/utilities/_all.scss +1 -0
- package/framework/src/utilities/_background.scss +7 -3
- package/framework/src/utilities/_colors.scss +27 -10
- package/framework/src/utilities/_derived-variables.scss +3 -3
- package/framework/src/utilities/_initial-variables.scss +1 -29
- package/framework/src/utilities/_mixins.scss +10 -10
- package/package.json +3 -3
- package/framework/src/components/_autolayout2.scss +0 -38
- package/framework/src/components/_level.scss +0 -120
- package/framework/src/components/_media.scss +0 -64
- package/framework/src/elements/_dot.scss +0 -6
|
@@ -55,20 +55,20 @@
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
#{$hoverSelector} {
|
|
58
|
-
background-color:
|
|
58
|
+
background-color: getColor('neutral-fade');
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
&.is-inverted {
|
|
63
63
|
background-color: white;
|
|
64
|
-
color: getColor('
|
|
64
|
+
color: getColor('accent');
|
|
65
65
|
|
|
66
66
|
&:active,
|
|
67
67
|
&:hover,
|
|
68
68
|
&:focus,
|
|
69
69
|
&:focus-visible,
|
|
70
70
|
&.is-active {
|
|
71
|
-
background-color: getColor('
|
|
71
|
+
background-color: getColor('accent') !important;
|
|
72
72
|
color: getColor('background') !important;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
@@ -5,20 +5,21 @@ $help-size: $size-small;
|
|
|
5
5
|
$label-weight: $weight-bold;
|
|
6
6
|
|
|
7
7
|
.field {
|
|
8
|
-
&:not(:first-child) {
|
|
9
|
-
margin-top: $field-margin;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
&:not(:last-child) {
|
|
13
|
-
margin-bottom: 7.5px;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
8
|
&.is-fullwidth {
|
|
17
9
|
div.control {
|
|
18
10
|
flex: 1;
|
|
19
11
|
}
|
|
20
12
|
}
|
|
21
13
|
|
|
14
|
+
.input-label {
|
|
15
|
+
display: inline-block;
|
|
16
|
+
margin-bottom: 6px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.input-sample {
|
|
20
|
+
margin-bottom: 10px !important;
|
|
21
|
+
}
|
|
22
|
+
|
|
22
23
|
@include mobile {
|
|
23
24
|
&.is-very-short,
|
|
24
25
|
&.is-short {
|
|
@@ -219,7 +220,7 @@ $label-weight: $weight-bold;
|
|
|
219
220
|
@each $name, $pair in $colors-feedback {
|
|
220
221
|
&.is-#{$name} {
|
|
221
222
|
~ .icon {
|
|
222
|
-
color:
|
|
223
|
+
color: fadeColor($name);
|
|
223
224
|
}
|
|
224
225
|
}
|
|
225
226
|
}
|
|
@@ -233,7 +234,7 @@ $label-weight: $weight-bold;
|
|
|
233
234
|
@each $name, $pair in $colors-feedback {
|
|
234
235
|
&.is-#{$name} {
|
|
235
236
|
~ .icon {
|
|
236
|
-
color:
|
|
237
|
+
color: fadeColor($name);
|
|
237
238
|
}
|
|
238
239
|
}
|
|
239
240
|
}
|
|
@@ -328,7 +329,8 @@ $label-weight: $weight-bold;
|
|
|
328
329
|
left: 16px;
|
|
329
330
|
border-left: transparent 1px solid;
|
|
330
331
|
font-size: $text-12;
|
|
331
|
-
color: getColor('
|
|
332
|
+
color: getColor('font');
|
|
333
|
+
filter: grayscale(1);
|
|
332
334
|
transform: translateY(0);
|
|
333
335
|
transition: all 0.2s ease-out;
|
|
334
336
|
z-index: zindex('small');
|
|
@@ -396,14 +398,13 @@ $label-weight: $weight-bold;
|
|
|
396
398
|
|
|
397
399
|
&:hover,
|
|
398
400
|
&:focus {
|
|
399
|
-
color: getColor('neutral
|
|
401
|
+
color: getColor('neutral');
|
|
400
402
|
}
|
|
401
403
|
}
|
|
402
404
|
}
|
|
403
405
|
}
|
|
404
406
|
|
|
405
407
|
+ .help {
|
|
406
|
-
margin: 4px 0;
|
|
407
408
|
font-size: $text-12;
|
|
408
409
|
font-weight: $weight-medium;
|
|
409
410
|
}
|
|
@@ -560,7 +561,7 @@ $label-weight: $weight-bold;
|
|
|
560
561
|
}
|
|
561
562
|
|
|
562
563
|
.label {
|
|
563
|
-
color: getColor('neutral
|
|
564
|
+
color: getColor('neutral');
|
|
564
565
|
display: block;
|
|
565
566
|
font-size: $size-normal;
|
|
566
567
|
font-weight: $label-weight;
|
|
@@ -584,7 +585,7 @@ $label-weight: $weight-bold;
|
|
|
584
585
|
font-size: $help-size;
|
|
585
586
|
margin-top: 2.5px;
|
|
586
587
|
|
|
587
|
-
@each $name, $pair in $colors-brand-
|
|
588
|
+
@each $name, $pair in $colors-brand-functionnal {
|
|
588
589
|
$color: getColor($name);
|
|
589
590
|
$brandName: getColorBrandName($name);
|
|
590
591
|
|
|
@@ -5,40 +5,3 @@
|
|
|
5
5
|
.delete {
|
|
6
6
|
@include delete;
|
|
7
7
|
}
|
|
8
|
-
|
|
9
|
-
.heading {
|
|
10
|
-
display: block;
|
|
11
|
-
font-size: 11px;
|
|
12
|
-
letter-spacing: 1px;
|
|
13
|
-
margin-bottom: 5px;
|
|
14
|
-
text-transform: uppercase;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.highlight {
|
|
18
|
-
@include block;
|
|
19
|
-
|
|
20
|
-
font-weight: $weight-normal;
|
|
21
|
-
max-width: 100%;
|
|
22
|
-
overflow: hidden;
|
|
23
|
-
padding: 0;
|
|
24
|
-
|
|
25
|
-
pre {
|
|
26
|
-
overflow: auto;
|
|
27
|
-
max-width: 100%;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.number {
|
|
32
|
-
align-items: center;
|
|
33
|
-
background-color: getBGColor('neutral-dark');
|
|
34
|
-
border-radius: 9999px;
|
|
35
|
-
display: inline-flex;
|
|
36
|
-
font-size: $size-medium;
|
|
37
|
-
height: 2em;
|
|
38
|
-
justify-content: center;
|
|
39
|
-
margin-right: 15px;
|
|
40
|
-
min-width: 2.5em;
|
|
41
|
-
padding: 2.5px 5px;
|
|
42
|
-
text-align: center;
|
|
43
|
-
vertical-align: top;
|
|
44
|
-
}
|
|
@@ -18,10 +18,10 @@ $progressbar-small: 5px;
|
|
|
18
18
|
-moz-appearance: none;
|
|
19
19
|
-webkit-appearance: none;
|
|
20
20
|
|
|
21
|
-
background-color:
|
|
21
|
+
background-color: getColor('neutral-fade');
|
|
22
22
|
|
|
23
23
|
&::-webkit-progress-bar {
|
|
24
|
-
background-color:
|
|
24
|
+
background-color: getColor('main-fade');
|
|
25
25
|
border-radius: $progressbar-height;
|
|
26
26
|
}
|
|
27
27
|
|
|
@@ -40,7 +40,7 @@ $progressbar-small: 5px;
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
// Colors
|
|
43
|
-
@each $name in $colors-brand-
|
|
43
|
+
@each $name in $colors-brand-functionnal {
|
|
44
44
|
$brandName: getColorBrandName($name);
|
|
45
45
|
$color: getColor($name);
|
|
46
46
|
|
|
@@ -81,7 +81,7 @@ $progressbar-small: 5px;
|
|
|
81
81
|
border-radius: 0 $progressbar-height $progressbar-height 0;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
@each $name in $colors-brand-
|
|
84
|
+
@each $name in $colors-brand-functionnal {
|
|
85
85
|
$color: getColor($name);
|
|
86
86
|
$color-invert: invertColor($name);
|
|
87
87
|
$brandName: getColorBrandName($name);
|
|
@@ -98,7 +98,7 @@ $progress-circle-slices: (
|
|
|
98
98
|
secondary: getColor('info'),
|
|
99
99
|
tertiary: getColor('font'),
|
|
100
100
|
warning: getColor('warning'),
|
|
101
|
-
empty:
|
|
101
|
+
empty: getColor('neutral-fade')
|
|
102
102
|
);
|
|
103
103
|
|
|
104
104
|
.progress-circle {
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
|
|
16
16
|
&:disabled ~ label {
|
|
17
17
|
&:after {
|
|
18
|
-
$colorSvg: encodecolor(getColorValue('
|
|
18
|
+
$colorSvg: encodecolor(getColorValue('disabled'));
|
|
19
19
|
content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-width="3.2" fill="none"><path d="M12.6 12.6L31.4 31.4M12.6 31.4L31.4 12.6"/></svg>');
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
&:disabled:checked ~ label {
|
|
24
24
|
&:after {
|
|
25
|
-
$colorSvg: encodecolor(getColorValue('
|
|
25
|
+
$colorSvg: encodecolor(getColorValue('disabled'));
|
|
26
26
|
content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" fill="none"><path d="M11.3 22.4L18.1 29.3L32.7 14.7"/></svg>');
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
border-radius: 9999px;
|
|
46
46
|
width: 44px;
|
|
47
47
|
height: 22px;
|
|
48
|
-
background-color:
|
|
48
|
+
background-color: getColor('neutral');
|
|
49
49
|
margin-left: 16px;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
&:after {
|
|
53
|
-
$colorSvg: encodecolor(
|
|
53
|
+
$colorSvg: encodecolor(getColorValue('neutral'));
|
|
54
54
|
content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-width="3.2" fill="none"><path d="M12.6 12.6L31.4 31.4M12.6 31.4L31.4 12.6"/></svg>');
|
|
55
55
|
position: absolute;
|
|
56
56
|
top: 50%;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
@include block;
|
|
12
12
|
|
|
13
13
|
background-color: transparent;
|
|
14
|
-
color: getColor('neutral
|
|
14
|
+
color: getColor('neutral');
|
|
15
15
|
|
|
16
16
|
&:not(:last-child) {
|
|
17
17
|
margin-bottom: 30px;
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
* @deprecated "Use multiples <tr><th> instead"
|
|
22
22
|
*/
|
|
23
23
|
tbody .is-body-header {
|
|
24
|
-
background-color:
|
|
24
|
+
background-color: getColor('neutral-fade');
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
td,
|
|
28
28
|
th {
|
|
29
|
-
border: 1px solid
|
|
29
|
+
border: 1px solid getColor('neutral-fade');
|
|
30
30
|
border-width: 0;
|
|
31
31
|
padding: 20px;
|
|
32
32
|
vertical-align: top;
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
tr {
|
|
57
57
|
@each $name in $colors-feedback {
|
|
58
58
|
&.is-#{$name} {
|
|
59
|
-
background-color:
|
|
59
|
+
background-color: fadeColor($name);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
td {
|
|
74
|
-
border-bottom: 1px solid
|
|
74
|
+
border-bottom: 1px solid getColor('neutral-fade');
|
|
75
75
|
|
|
76
76
|
> p {
|
|
77
77
|
margin: 0;
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
&.is-expanded,
|
|
98
98
|
&.is-expandable:hover {
|
|
99
99
|
td {
|
|
100
|
-
color: getColor('
|
|
100
|
+
color: getColor('accent');
|
|
101
101
|
cursor: pointer;
|
|
102
102
|
}
|
|
103
103
|
}
|
|
@@ -155,12 +155,12 @@
|
|
|
155
155
|
|
|
156
156
|
&:not(.is-bordered).is-comparative {
|
|
157
157
|
th {
|
|
158
|
-
border-right: 1px solid
|
|
158
|
+
border-right: 1px solid getColor('neutral-fade');
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
td {
|
|
162
162
|
&:not(:last-child) {
|
|
163
|
-
border-right: 1px solid
|
|
163
|
+
border-right: 1px solid getColor('neutral-fade');
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
}
|
|
@@ -196,14 +196,14 @@
|
|
|
196
196
|
tbody {
|
|
197
197
|
tr:not(.is-selected) {
|
|
198
198
|
&:nth-child(even) {
|
|
199
|
-
background-color:
|
|
199
|
+
background-color: getColor('neutral-fade');
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
.subtable {
|
|
206
|
-
background-color:
|
|
206
|
+
background-color: getColor('neutral-fade');
|
|
207
207
|
border-radius: var(--radius);
|
|
208
208
|
padding: $box-padding * 2;
|
|
209
209
|
|
|
@@ -216,7 +216,7 @@
|
|
|
216
216
|
|
|
217
217
|
tr:not(:first-child) {
|
|
218
218
|
td {
|
|
219
|
-
border-top: 1px solid getColor('neutral
|
|
219
|
+
border-top: 1px solid getColor('neutral');
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
|
|
@@ -85,7 +85,7 @@ $tag-delete-margin: 1px !default;
|
|
|
85
85
|
|
|
86
86
|
&.is-inverted {
|
|
87
87
|
.tag {
|
|
88
|
-
background-color: getColor(
|
|
88
|
+
background-color: getColor('background');
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
|
|
@@ -94,7 +94,7 @@ $tag-delete-margin: 1px !default;
|
|
|
94
94
|
|
|
95
95
|
.tag {
|
|
96
96
|
align-items: center;
|
|
97
|
-
background-color:
|
|
97
|
+
background-color: getColor('neutral-fade');
|
|
98
98
|
border-radius: 9999px;
|
|
99
99
|
color: getColor('font');
|
|
100
100
|
display: inline-flex;
|
|
@@ -120,7 +120,7 @@ $tag-delete-margin: 1px !default;
|
|
|
120
120
|
|
|
121
121
|
@each $name in $colors-feedback {
|
|
122
122
|
&.is-#{$name}:not(.is-inverted) {
|
|
123
|
-
background-color:
|
|
123
|
+
background-color: fadeColor($name);
|
|
124
124
|
}
|
|
125
125
|
&.is-inverted.is-#{$name} {
|
|
126
126
|
color: getColor($name);
|
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
position: relative;
|
|
3
3
|
margin: 16px 0;
|
|
4
4
|
|
|
5
|
+
.textarea-label {
|
|
6
|
+
display: inline-block;
|
|
7
|
+
margin-bottom: 6px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.textarea-sample {
|
|
11
|
+
margin-bottom: 10px !important;
|
|
12
|
+
}
|
|
13
|
+
|
|
5
14
|
textarea.textarea {
|
|
6
15
|
padding: $spacing-4;
|
|
7
16
|
border-radius: var(--radius-small);
|
|
@@ -31,7 +40,8 @@
|
|
|
31
40
|
padding-top: $spacing-2;
|
|
32
41
|
width: calc(100% - 28px - 2px);
|
|
33
42
|
font-size: 12px;
|
|
34
|
-
color: getColor('
|
|
43
|
+
color: getColor('font');
|
|
44
|
+
filter: grayscale(100%);
|
|
35
45
|
transition: top 0.2s ease-out;
|
|
36
46
|
}
|
|
37
47
|
|
|
@@ -65,6 +75,14 @@
|
|
|
65
75
|
font-size: 16px;
|
|
66
76
|
}
|
|
67
77
|
|
|
78
|
+
.textarea-label + .textarea-sample ~ span.icon {
|
|
79
|
+
top: 72px !important;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.textarea-label ~ span.icon {
|
|
83
|
+
top: 45px !important;
|
|
84
|
+
}
|
|
85
|
+
|
|
68
86
|
span.icon {
|
|
69
87
|
position: absolute;
|
|
70
88
|
top: $spacing-4;
|
|
@@ -79,7 +97,7 @@
|
|
|
79
97
|
}
|
|
80
98
|
|
|
81
99
|
// Colors
|
|
82
|
-
@each $name, $pair in $colors-brand-
|
|
100
|
+
@each $name, $pair in $colors-brand-functionnal {
|
|
83
101
|
$color: getColor($name);
|
|
84
102
|
$color-invert: invertColor($name);
|
|
85
103
|
$brandName: getColorBrandName($name);
|
|
@@ -13,7 +13,7 @@ a.toaster {
|
|
|
13
13
|
@include apply-shadow-box();
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
background-color: getColor('
|
|
16
|
+
background-color: getColor('info-fade');
|
|
17
17
|
border-radius: var(--radius);
|
|
18
18
|
margin-bottom: 16px;
|
|
19
19
|
position: relative;
|
|
@@ -64,7 +64,7 @@ a.toaster {
|
|
|
64
64
|
|
|
65
65
|
@each $name in $colors-feedback {
|
|
66
66
|
&.is-#{$name} {
|
|
67
|
-
background-color:
|
|
67
|
+
background-color: fadeColor($name);
|
|
68
68
|
border: 2px solid getColor($name);
|
|
69
69
|
|
|
70
70
|
.icon {
|