@trilogy-ds/styles 4.20.4-beta.1 → 4.20.4
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/_helpers.scss +14 -10
- package/framework/src/components/_accordion.scss +1 -1
- package/framework/src/components/_autocomplete.scss +1 -1
- package/framework/src/components/_box.scss +3 -4
- package/framework/src/components/_card.scss +1 -1
- package/framework/src/components/_chips.scss +2 -2
- package/framework/src/components/_divider.scss +4 -2
- package/framework/src/components/_flex-box.scss +0 -50
- package/framework/src/components/_list.scss +1 -1
- package/framework/src/components/_otp.scss +1 -1
- package/framework/src/components/input/_input-icons.scss +1 -1
- package/framework/src/utilities/mixins/_mixins.scss +3 -3
- package/framework/src/utilities/variables/_color.scss +16 -0
- package/package.json +1 -1
|
@@ -114,10 +114,15 @@ $alignments: (
|
|
|
114
114
|
|
|
115
115
|
// Typography
|
|
116
116
|
@mixin typography-size($target: '') {
|
|
117
|
+
$suffix: '';
|
|
118
|
+
@if $target != '' {
|
|
119
|
+
$suffix: '-' + $target;
|
|
120
|
+
}
|
|
121
|
+
|
|
117
122
|
@each $size in $sizes {
|
|
118
123
|
$i: index($sizes, $size);
|
|
119
124
|
|
|
120
|
-
.is-size-#{$i}#{
|
|
125
|
+
.is-size-#{$i}#{$suffix} {
|
|
121
126
|
font-size: $size !important;
|
|
122
127
|
}
|
|
123
128
|
}
|
|
@@ -429,7 +434,7 @@ $displays: 'block' 'flex' 'inline' 'inline-block' 'inline-flex';
|
|
|
429
434
|
}
|
|
430
435
|
|
|
431
436
|
.is-bordered {
|
|
432
|
-
border:
|
|
437
|
+
border: getBorder();
|
|
433
438
|
}
|
|
434
439
|
|
|
435
440
|
.is-vertical-paddingless {
|
|
@@ -791,19 +796,18 @@ $align-values: (
|
|
|
791
796
|
}
|
|
792
797
|
|
|
793
798
|
@each $alignment, $align-items in $align-values {
|
|
794
|
-
|
|
795
|
-
.is-aligned-#{$alignment}:not(:where(.flex-box)) {
|
|
799
|
+
.is-aligned-#{$alignment} {
|
|
796
800
|
align-items: #{$align-items} !important;
|
|
797
801
|
}
|
|
798
802
|
|
|
799
803
|
@include mobile {
|
|
800
|
-
.is-aligned-#{$alignment}-mobile
|
|
804
|
+
.is-aligned-#{$alignment}-mobile {
|
|
801
805
|
align-items: #{$align-items} !important;
|
|
802
806
|
}
|
|
803
807
|
}
|
|
804
808
|
|
|
805
809
|
@include tablet {
|
|
806
|
-
.is-aligned-#{$alignment}-tablet
|
|
810
|
+
.is-aligned-#{$alignment}-tablet {
|
|
807
811
|
align-items: #{$align-items} !important;
|
|
808
812
|
}
|
|
809
813
|
}
|
|
@@ -821,7 +825,7 @@ $align-values: (
|
|
|
821
825
|
}
|
|
822
826
|
|
|
823
827
|
@include desktop {
|
|
824
|
-
.is-aligned-#{$alignment}-desktop
|
|
828
|
+
.is-aligned-#{$alignment}-desktop {
|
|
825
829
|
align-items: #{$align-items} !important;
|
|
826
830
|
}
|
|
827
831
|
}
|
|
@@ -833,7 +837,7 @@ $align-values: (
|
|
|
833
837
|
}
|
|
834
838
|
|
|
835
839
|
@include widescreen {
|
|
836
|
-
.is-aligned-#{$alignment}-widescreen
|
|
840
|
+
.is-aligned-#{$alignment}-widescreen {
|
|
837
841
|
align-items: #{$align-items} !important;
|
|
838
842
|
}
|
|
839
843
|
}
|
|
@@ -845,7 +849,7 @@ $align-values: (
|
|
|
845
849
|
}
|
|
846
850
|
|
|
847
851
|
@include fullhd {
|
|
848
|
-
.is-aligned-#{$alignment}-fullhd
|
|
852
|
+
.is-aligned-#{$alignment}-fullhd {
|
|
849
853
|
align-items: #{$align-items} !important;
|
|
850
854
|
}
|
|
851
855
|
}
|
|
@@ -857,7 +861,7 @@ $align-values: (
|
|
|
857
861
|
}
|
|
858
862
|
|
|
859
863
|
// FIXME : à supprimer car double-emploi avec .is-aligned-center (et même pas de spécificité par breakpoint)
|
|
860
|
-
.is-aligned-center
|
|
864
|
+
.is-aligned-center {
|
|
861
865
|
align-items: center !important;
|
|
862
866
|
}
|
|
863
867
|
|
|
@@ -65,7 +65,8 @@ a.box {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
&.is-active {
|
|
68
|
-
outline:
|
|
68
|
+
outline: getBorder('active');
|
|
69
|
+
outline-offset: -2px;
|
|
69
70
|
}
|
|
70
71
|
|
|
71
72
|
&.is-offset-header {
|
|
@@ -97,8 +98,6 @@ a.box {
|
|
|
97
98
|
|
|
98
99
|
&.is-highlighted {
|
|
99
100
|
border-left: $highlighted-border-width solid transparent;
|
|
100
|
-
border-top-left-radius: calc(var(--box-radius) + 3px);
|
|
101
|
-
border-bottom-left-radius: calc(var(--box-radius) + 3px);
|
|
102
101
|
border-left-color: getColor('main');
|
|
103
102
|
@each $name, $pair in $colors-brand-functionnal {
|
|
104
103
|
$color: getColor($name);
|
|
@@ -193,7 +192,7 @@ a.box {
|
|
|
193
192
|
.box-footer:not(.is-borderless):not([class*="has-background"])::before {
|
|
194
193
|
content: '';
|
|
195
194
|
display: block;
|
|
196
|
-
border-top:
|
|
195
|
+
border-top: getBorder();
|
|
197
196
|
position: relative;
|
|
198
197
|
top: calc(var(--padding-box) * -1);
|
|
199
198
|
}
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
padding: 6px $spacing-4;
|
|
51
51
|
white-space: nowrap;
|
|
52
52
|
cursor: pointer;
|
|
53
|
-
border:
|
|
53
|
+
border: getBorder();
|
|
54
54
|
&:not(.is-disabled) {
|
|
55
55
|
&.is-active {
|
|
56
56
|
background-color: getColor('main');
|
|
57
57
|
color: white;
|
|
58
|
-
border:
|
|
58
|
+
border: getBorder('active');
|
|
59
59
|
padding: 5px ($spacing-4 - 1px);
|
|
60
60
|
#{$hoverSelector} {
|
|
61
61
|
background-color: getColor('main');
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
@mixin divider {
|
|
2
2
|
content:'';
|
|
3
3
|
flex: 1;
|
|
4
|
-
height: 1px;
|
|
5
4
|
background-color: getColor('neutral');
|
|
6
5
|
border: 1px solid #{getColor('stroke-fade')};
|
|
7
6
|
border-radius: var(--radius-full);
|
|
8
7
|
}
|
|
9
8
|
|
|
10
9
|
.divider {
|
|
11
|
-
height: 1px;
|
|
12
10
|
display: flex;
|
|
13
11
|
justify-content: center;
|
|
14
12
|
align-items: center;
|
|
@@ -34,6 +32,10 @@
|
|
|
34
32
|
margin-left: $spacing-4;
|
|
35
33
|
}
|
|
36
34
|
}
|
|
35
|
+
.icon{
|
|
36
|
+
height: auto;
|
|
37
|
+
width: auto;
|
|
38
|
+
}
|
|
37
39
|
}
|
|
38
40
|
|
|
39
41
|
&:not(.is-marginless) {
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
.flex-box {
|
|
4
4
|
display: flex;
|
|
5
|
-
// Reset on each FlexBox to avoid inheriting a nested parent's base alignment.
|
|
6
|
-
--flex-box-align: normal;
|
|
7
5
|
--ColumnGap : 8px;
|
|
8
6
|
gap: var(--ColumnGap);
|
|
9
7
|
flex-direction: row;
|
|
@@ -250,22 +248,18 @@
|
|
|
250
248
|
|
|
251
249
|
// ALIGN ITEMS
|
|
252
250
|
&.is-aligned-start {
|
|
253
|
-
--flex-box-align: flex-start;
|
|
254
251
|
align-items: flex-start;
|
|
255
252
|
}
|
|
256
253
|
|
|
257
254
|
&.is-aligned-end {
|
|
258
|
-
--flex-box-align: flex-end;
|
|
259
255
|
align-items: flex-end;
|
|
260
256
|
}
|
|
261
257
|
|
|
262
258
|
&.is-aligned-center {
|
|
263
|
-
--flex-box-align: center;
|
|
264
259
|
align-items: center;
|
|
265
260
|
}
|
|
266
261
|
|
|
267
262
|
&.is-aligned-stretch {
|
|
268
|
-
--flex-box-align: stretch;
|
|
269
263
|
align-items: stretch;
|
|
270
264
|
}
|
|
271
265
|
|
|
@@ -355,14 +349,6 @@
|
|
|
355
349
|
}
|
|
356
350
|
}
|
|
357
351
|
|
|
358
|
-
// A query container replaces viewport alignment, even when none of the
|
|
359
|
-
// responsive classes matches its width. Preserve any non-responsive value.
|
|
360
|
-
@container (min-width: 0px) {
|
|
361
|
-
&[class] {
|
|
362
|
-
align-items: var(--flex-box-align);
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
|
|
366
352
|
@include container-mobile {
|
|
367
353
|
&.is-aligned-start-mobile {
|
|
368
354
|
align-items: flex-start;
|
|
@@ -415,42 +401,6 @@
|
|
|
415
401
|
}
|
|
416
402
|
}
|
|
417
403
|
|
|
418
|
-
@include container-widescreen {
|
|
419
|
-
&.is-aligned-start-widescreen {
|
|
420
|
-
align-items: flex-start;
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
&.is-aligned-end-widescreen {
|
|
424
|
-
align-items: flex-end;
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
&.is-aligned-center-widescreen {
|
|
428
|
-
align-items: center;
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
&.is-aligned-stretch-widescreen {
|
|
432
|
-
align-items: stretch;
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
@include container-fullhd {
|
|
437
|
-
&.is-aligned-start-fullhd {
|
|
438
|
-
align-items: flex-start;
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
&.is-aligned-end-fullhd {
|
|
442
|
-
align-items: flex-end;
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
&.is-aligned-center-fullhd {
|
|
446
|
-
align-items: center;
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
&.is-aligned-stretch-fullhd {
|
|
450
|
-
align-items: stretch;
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
|
|
454
404
|
// JUSTIFY CONTENT
|
|
455
405
|
&.is-justified-start {
|
|
456
406
|
justify-content: flex-start;
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
@include control;
|
|
27
27
|
height: $size-inputs;
|
|
28
28
|
background-color: getColor('background');
|
|
29
|
-
border:
|
|
29
|
+
border: getBorder();
|
|
30
30
|
color: getColor('font');
|
|
31
31
|
|
|
32
32
|
@include placeholder {
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
&:before {
|
|
122
|
-
border:
|
|
122
|
+
border: getBorder();
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
|
|
@@ -249,7 +249,7 @@
|
|
|
249
249
|
display: block;
|
|
250
250
|
position: relative;
|
|
251
251
|
padding: 40px 16px 16px;
|
|
252
|
-
border:
|
|
252
|
+
border: getBorder();
|
|
253
253
|
border-radius: var(--radius-md);
|
|
254
254
|
box-sizing: border-box;
|
|
255
255
|
background-color: getColor('background');
|
|
@@ -57,6 +57,22 @@ $fade-colors: (
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
@function getBorder( $active: '' ) {
|
|
61
|
+
@if global-variable-exists(suffix-theme) {
|
|
62
|
+
@if $active == 'active' {
|
|
63
|
+
@return var(--border-active-#{$suffix-theme});
|
|
64
|
+
} @else {
|
|
65
|
+
@return var(--border-#{$suffix-theme});
|
|
66
|
+
}
|
|
67
|
+
} @else {
|
|
68
|
+
@if $active == 'active' {
|
|
69
|
+
@return var(--border-active);
|
|
70
|
+
} @else {
|
|
71
|
+
@return var(--border);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
60
76
|
@function getColorValue( $name ) {
|
|
61
77
|
@return #{nth(map-get($colors,$name),1)}
|
|
62
78
|
}
|