@trilogy-ds/styles 0.0.1-beta-77 → 0.0.1-beta-80
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/_helpers.scss +1 -4
- package/framework/src/components/_accordion.scss +0 -1
- package/framework/src/components/_all.scss +1 -0
- package/framework/src/components/_autolayout.scss +272 -0
- package/framework/src/components/_divider.scss +1 -2
- package/framework/src/components/_modal.scss +1 -1
- package/framework/src/components/_plus-symbol.scss +1 -1
- package/framework/src/components/_price.scss +31 -26
- package/framework/src/components/_segmented-control.scss +2 -2
- package/framework/src/components/_stepper.scss +2 -2
- package/framework/src/components/_timeline.scss +9 -9
- package/framework/src/elements/_alert.scss +1 -3
- package/framework/src/elements/_autocomplete.scss +2 -2
- 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 +3 -3
- package/framework/src/elements/_icon.scss +1 -1
- package/framework/src/elements/_loader.scss +1 -1
- package/framework/src/elements/_progress.scss +5 -5
- package/framework/src/elements/_sticker.scss +1 -1
- package/framework/src/elements/_switch.scss +2 -2
- package/framework/src/elements/_table.scss +9 -9
- package/framework/src/elements/_tag.scss +3 -3
- package/framework/src/elements/_textarea.scss +1 -1
- package/framework/src/elements/_toaster.scss +2 -2
- package/framework/src/grid/_columns.scss +1 -1
- package/framework/src/layout/_section.scss +1 -1
- package/framework/src/theming/buttons_partial.scss +2 -2
- package/framework/src/theming/common_partials.scss +1 -1
- package/framework/src/utilities/_all.scss +1 -1
- 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/_mixins.scss +7 -15
- package/package.json +2 -2
- package/framework/src/components/_autolayout2.scss +0 -38
|
@@ -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
|
}
|
|
@@ -228,7 +228,7 @@ $label-weight: $weight-bold;
|
|
|
228
228
|
@each $name, $pair in $colors-feedback {
|
|
229
229
|
&.is-#{$name} {
|
|
230
230
|
~ .icon {
|
|
231
|
-
color:
|
|
231
|
+
color: fadeColor($name);
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
234
|
}
|
|
@@ -242,7 +242,7 @@ $label-weight: $weight-bold;
|
|
|
242
242
|
@each $name, $pair in $colors-feedback {
|
|
243
243
|
&.is-#{$name} {
|
|
244
244
|
~ .icon {
|
|
245
|
-
color:
|
|
245
|
+
color: fadeColor($name);
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
248
|
}
|
|
@@ -593,7 +593,7 @@ $label-weight: $weight-bold;
|
|
|
593
593
|
font-size: $help-size;
|
|
594
594
|
margin-top: 2.5px;
|
|
595
595
|
|
|
596
|
-
@each $name, $pair in $colors-brand-
|
|
596
|
+
@each $name, $pair in $colors-brand-functionnal {
|
|
597
597
|
$color: getColor($name);
|
|
598
598
|
$brandName: getColorBrandName($name);
|
|
599
599
|
|
|
@@ -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 {
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
border-radius: 9999px;
|
|
46
46
|
width: 44px;
|
|
47
47
|
height: 22px;
|
|
48
|
-
background-color:
|
|
48
|
+
background-color: getColor('main-fade');
|
|
49
49
|
margin-left: 16px;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
&:after {
|
|
53
|
-
$colorSvg: encodecolor(
|
|
53
|
+
$colorSvg: encodecolor(getColorValue('main-fade'));
|
|
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%;
|
|
@@ -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
|
|
|
@@ -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);
|
|
@@ -13,7 +13,7 @@ a.toaster {
|
|
|
13
13
|
@include apply-shadow-box();
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
background-color: getColor('fade
|
|
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 {
|
|
@@ -7,9 +7,9 @@ Colors for buttons
|
|
|
7
7
|
@color-text The name of the color in the color map for the text
|
|
8
8
|
*/
|
|
9
9
|
$button-colors: (
|
|
10
|
-
'accent':['conversion', '
|
|
10
|
+
'accent':['conversion', 'accent', 'background'],
|
|
11
11
|
'primary': ['primary', 'main', 'background'],
|
|
12
|
-
'secondary': ['secondary', 'fade
|
|
12
|
+
'secondary': ['secondary', 'main-fade', 'main'],
|
|
13
13
|
'ghost': ['ghost', 'background', 'main'],
|
|
14
14
|
) !default;
|
|
15
15
|
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
.is-inverted {
|
|
2
|
-
color:
|
|
2
|
+
color: getColor('background');
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
-
.is-inverted
|
|
6
|
-
|
|
5
|
+
.is-inverted {
|
|
6
|
+
.box, .section, .container, .view, .hero {
|
|
7
|
+
&:not(.is-inverted) {
|
|
8
|
+
color: getColor('font');
|
|
9
|
+
}
|
|
10
|
+
}
|
|
7
11
|
}
|
|
8
12
|
|
|
9
13
|
.has-background {
|
|
@@ -10,14 +10,31 @@ $suffix: '';
|
|
|
10
10
|
@background A valid css color value (a variant color for background) -- optional
|
|
11
11
|
*/
|
|
12
12
|
$colors: (
|
|
13
|
-
'background': [#fff,
|
|
14
|
-
'main':[ #3d5d7e,
|
|
15
|
-
'
|
|
16
|
-
'
|
|
17
|
-
'
|
|
18
|
-
'
|
|
19
|
-
'
|
|
20
|
-
'
|
|
21
|
-
'
|
|
22
|
-
'
|
|
13
|
+
'background': [#fff, 'white', 'main'],
|
|
14
|
+
'main':[ #3d5d7e, 'main', 'white'],
|
|
15
|
+
'main-fade':[ #eff2f8, 'main-fade', 'white'],
|
|
16
|
+
'accent':[ #da641b,'accent', 'white'],
|
|
17
|
+
'font':[ #3d5d7e, 'font', 'white'],
|
|
18
|
+
'success':[ #007B52, 'success', 'white'],
|
|
19
|
+
'success-fade':[ #cae8ca,'success-fade', 'white'],
|
|
20
|
+
'info':[ #1A688A, 'info', 'white'],
|
|
21
|
+
'info-fade':[ #c8dbec, 'info-fade', 'white'],
|
|
22
|
+
'warning':[ #FFBB33, 'warning', 'white'],
|
|
23
|
+
'warning-fade':[ #ecdbc6, 'warning-fade', 'white'],
|
|
24
|
+
'error':[ #D42D02,'error', 'white'],
|
|
25
|
+
'error-fade':[ #eecccc, 'error-fade', 'white'],
|
|
26
|
+
'disabled':[ #646464, 'disabled', 'white'],
|
|
27
|
+
'disabled-fade':[ #D1D1D1,'disabled-fade', 'white'],
|
|
28
|
+
'neutral':[ #707070, 'grey', 'white' ],
|
|
29
|
+
'neutral-fade':[#F4F4F4, 'grey-fade', 'white' ],
|
|
30
|
+
) !default;
|
|
31
|
+
|
|
32
|
+
$fade-colors: (
|
|
33
|
+
'main': 'main-fade',
|
|
34
|
+
'success': 'success-fade',
|
|
35
|
+
'info':'info-fade',
|
|
36
|
+
'warning':'warning-fade',
|
|
37
|
+
'error':'error-fade',
|
|
38
|
+
'disabled': 'disabled-fade',
|
|
39
|
+
'neutral': 'neutral-fade',
|
|
23
40
|
) !default;
|
|
@@ -14,12 +14,12 @@ $size-large: $text-24 !default;
|
|
|
14
14
|
|
|
15
15
|
// Brand Color
|
|
16
16
|
$colors-brand: (
|
|
17
|
-
'background', 'main', '
|
|
17
|
+
'background', 'main', 'accent'
|
|
18
18
|
);
|
|
19
19
|
|
|
20
20
|
// Brand Color Functionnal
|
|
21
|
-
$colors-brand-
|
|
22
|
-
'background', 'main', '
|
|
21
|
+
$colors-brand-functionnal: (
|
|
22
|
+
'background', 'main', 'accent', 'info', 'success', 'error', 'warning', 'neutral'
|
|
23
23
|
);
|
|
24
24
|
|
|
25
25
|
$colors-feedback: (
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
|
|
148
148
|
@mixin spinner {
|
|
149
149
|
animation: spinAround 500ms infinite linear;
|
|
150
|
-
border: 2px solid
|
|
150
|
+
border: 2px solid getColor('neutral-fade');
|
|
151
151
|
border-radius: 290486px;
|
|
152
152
|
border-right-color: transparent;
|
|
153
153
|
border-top-color: transparent;
|
|
@@ -340,7 +340,7 @@
|
|
|
340
340
|
}
|
|
341
341
|
|
|
342
342
|
@mixin apply-colors($property: 'color') {
|
|
343
|
-
@each $name, $pair in $colors-brand-
|
|
343
|
+
@each $name, $pair in $colors-brand-functionnal {
|
|
344
344
|
$color: getColor($name);
|
|
345
345
|
$brandName: getColorBrandName($name);
|
|
346
346
|
&.is-#{$brandName} {
|
|
@@ -355,7 +355,7 @@
|
|
|
355
355
|
}
|
|
356
356
|
|
|
357
357
|
@mixin pattern-dark($size, $x-pos: top, $y-pos: center) {
|
|
358
|
-
background: linear-gradient(#1b3650, getColor('
|
|
358
|
+
background: linear-gradient(#1b3650, getColor('accent'));
|
|
359
359
|
background-size: auto, $size, auto;
|
|
360
360
|
background-position: top left, $x-pos $y-pos, top left;
|
|
361
361
|
}
|
|
@@ -365,7 +365,7 @@
|
|
|
365
365
|
@include control;
|
|
366
366
|
height: 56px;
|
|
367
367
|
background-color: getColor('background');
|
|
368
|
-
border-color:
|
|
368
|
+
border-color: getColor('main-fade');
|
|
369
369
|
color: getColor('font');
|
|
370
370
|
|
|
371
371
|
@include placeholder {
|
|
@@ -419,7 +419,7 @@
|
|
|
419
419
|
&:disabled:checked {
|
|
420
420
|
& ~ label.#{$type}-label {
|
|
421
421
|
&:after {
|
|
422
|
-
background-color:
|
|
422
|
+
background-color: getColor('disabled-fade');
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
425
|
}
|
|
@@ -606,15 +606,7 @@
|
|
|
606
606
|
}
|
|
607
607
|
|
|
608
608
|
@mixin hoverRules {
|
|
609
|
-
background-color:
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
@mixin hoverRulesOnOdd {
|
|
613
|
-
background: linear-gradient(
|
|
614
|
-
to top,
|
|
615
|
-
rgba(0, 0, 0, 0.25),
|
|
616
|
-
rgba(0, 0, 0, 0.25)
|
|
617
|
-
) getFadeColor('neutral');
|
|
609
|
+
background-color: getColor('main-fade');
|
|
618
610
|
}
|
|
619
611
|
|
|
620
612
|
@mixin hover {
|
|
@@ -635,6 +627,6 @@
|
|
|
635
627
|
}
|
|
636
628
|
|
|
637
629
|
@mixin disabledRules {
|
|
638
|
-
background-color:
|
|
630
|
+
background-color: getColor('disabled-fade') !important;
|
|
639
631
|
@include disabledRulesWithoutBG;
|
|
640
632
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trilogy-ds/styles",
|
|
3
|
-
"version": "0.0.1-beta-
|
|
3
|
+
"version": "0.0.1-beta-80",
|
|
4
4
|
"author": "Bouygues Telecom",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"files": [
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"create:autolayout": "node scripts/dist/autolayout.cjs",
|
|
17
17
|
"create:spacing": "node scripts/dist/spacing.cjs",
|
|
18
18
|
"prebuild": "npm run copy:icons",
|
|
19
|
-
"build": "vite --config vite.config.js build",
|
|
19
|
+
"build": "npm run build:autolayout && npm run create:autolayout && vite --config vite.config.js build",
|
|
20
20
|
"watch:css": "vite --config vite.config.js watch",
|
|
21
21
|
"copy:icons": "mkdir -p ./dist/default/assets/icons && cp -R ../assets/lib/icons/all ./dist/default/assets/icons/."
|
|
22
22
|
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
body:not(.is-tight) {
|
|
2
|
-
.box {
|
|
3
|
-
margin-top: 16px;
|
|
4
|
-
}
|
|
5
|
-
.box:not(:first-child) + * {
|
|
6
|
-
margin-top: 16px;
|
|
7
|
-
}
|
|
8
|
-
* + .box {
|
|
9
|
-
margin-top: 8px;
|
|
10
|
-
}
|
|
11
|
-
.text {
|
|
12
|
-
margin-top: 8px;
|
|
13
|
-
}
|
|
14
|
-
.card {
|
|
15
|
-
margin-top: 16px;
|
|
16
|
-
}
|
|
17
|
-
.button {
|
|
18
|
-
margin-top: 16px;
|
|
19
|
-
}
|
|
20
|
-
.accordions {
|
|
21
|
-
margin-top: 16px;
|
|
22
|
-
}
|
|
23
|
-
.alert {
|
|
24
|
-
margin-top: 16px;
|
|
25
|
-
}
|
|
26
|
-
.field {
|
|
27
|
-
margin-top: 8px;
|
|
28
|
-
}
|
|
29
|
-
.chips-list {
|
|
30
|
-
margin-top: 16px;
|
|
31
|
-
}
|
|
32
|
-
.tags {
|
|
33
|
-
margin-top: 16px;
|
|
34
|
-
}
|
|
35
|
-
.chips-list {
|
|
36
|
-
margin-top: 16px;
|
|
37
|
-
}
|
|
38
|
-
}
|