@trilogy-ds/styles 4.20.4-beta.1 → 4.20.4-beta.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/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 +8 -9
- package/framework/src/components/_accordion.scss +1 -1
- package/framework/src/components/_autocomplete.scss +1 -1
- package/framework/src/components/_box.scss +2 -2
- package/framework/src/components/_card.scss +1 -1
- package/framework/src/components/_chips.scss +2 -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
|
@@ -429,7 +429,7 @@ $displays: 'block' 'flex' 'inline' 'inline-block' 'inline-flex';
|
|
|
429
429
|
}
|
|
430
430
|
|
|
431
431
|
.is-bordered {
|
|
432
|
-
border:
|
|
432
|
+
border: getBorder();
|
|
433
433
|
}
|
|
434
434
|
|
|
435
435
|
.is-vertical-paddingless {
|
|
@@ -791,19 +791,18 @@ $align-values: (
|
|
|
791
791
|
}
|
|
792
792
|
|
|
793
793
|
@each $alignment, $align-items in $align-values {
|
|
794
|
-
|
|
795
|
-
.is-aligned-#{$alignment}:not(:where(.flex-box)) {
|
|
794
|
+
.is-aligned-#{$alignment} {
|
|
796
795
|
align-items: #{$align-items} !important;
|
|
797
796
|
}
|
|
798
797
|
|
|
799
798
|
@include mobile {
|
|
800
|
-
.is-aligned-#{$alignment}-mobile
|
|
799
|
+
.is-aligned-#{$alignment}-mobile {
|
|
801
800
|
align-items: #{$align-items} !important;
|
|
802
801
|
}
|
|
803
802
|
}
|
|
804
803
|
|
|
805
804
|
@include tablet {
|
|
806
|
-
.is-aligned-#{$alignment}-tablet
|
|
805
|
+
.is-aligned-#{$alignment}-tablet {
|
|
807
806
|
align-items: #{$align-items} !important;
|
|
808
807
|
}
|
|
809
808
|
}
|
|
@@ -821,7 +820,7 @@ $align-values: (
|
|
|
821
820
|
}
|
|
822
821
|
|
|
823
822
|
@include desktop {
|
|
824
|
-
.is-aligned-#{$alignment}-desktop
|
|
823
|
+
.is-aligned-#{$alignment}-desktop {
|
|
825
824
|
align-items: #{$align-items} !important;
|
|
826
825
|
}
|
|
827
826
|
}
|
|
@@ -833,7 +832,7 @@ $align-values: (
|
|
|
833
832
|
}
|
|
834
833
|
|
|
835
834
|
@include widescreen {
|
|
836
|
-
.is-aligned-#{$alignment}-widescreen
|
|
835
|
+
.is-aligned-#{$alignment}-widescreen {
|
|
837
836
|
align-items: #{$align-items} !important;
|
|
838
837
|
}
|
|
839
838
|
}
|
|
@@ -845,7 +844,7 @@ $align-values: (
|
|
|
845
844
|
}
|
|
846
845
|
|
|
847
846
|
@include fullhd {
|
|
848
|
-
.is-aligned-#{$alignment}-fullhd
|
|
847
|
+
.is-aligned-#{$alignment}-fullhd {
|
|
849
848
|
align-items: #{$align-items} !important;
|
|
850
849
|
}
|
|
851
850
|
}
|
|
@@ -857,7 +856,7 @@ $align-values: (
|
|
|
857
856
|
}
|
|
858
857
|
|
|
859
858
|
// FIXME : à supprimer car double-emploi avec .is-aligned-center (et même pas de spécificité par breakpoint)
|
|
860
|
-
.is-aligned-center
|
|
859
|
+
.is-aligned-center {
|
|
861
860
|
align-items: center !important;
|
|
862
861
|
}
|
|
863
862
|
|
|
@@ -65,7 +65,7 @@ a.box {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
&.is-active {
|
|
68
|
-
outline:
|
|
68
|
+
outline: getBorder('active');
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
&.is-offset-header {
|
|
@@ -193,7 +193,7 @@ a.box {
|
|
|
193
193
|
.box-footer:not(.is-borderless):not([class*="has-background"])::before {
|
|
194
194
|
content: '';
|
|
195
195
|
display: block;
|
|
196
|
-
border-top:
|
|
196
|
+
border-top: getBorder();
|
|
197
197
|
position: relative;
|
|
198
198
|
top: calc(var(--padding-box) * -1);
|
|
199
199
|
}
|
|
@@ -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');
|
|
@@ -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
|
}
|