@trilogy-ds/styles 4.20.2 → 4.20.4-beta.1
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 -7
- package/framework/src/components/_box.scss +1 -0
- package/framework/src/components/_flex-box.scss +50 -0
- package/framework/src/layout/_section.scss +2 -2
- package/package.json +1 -1
|
@@ -791,18 +791,19 @@ $align-values: (
|
|
|
791
791
|
}
|
|
792
792
|
|
|
793
793
|
@each $alignment, $align-items in $align-values {
|
|
794
|
-
.
|
|
794
|
+
// FlexBox owns these breakpoints so container queries can override the viewport.
|
|
795
|
+
.is-aligned-#{$alignment}:not(:where(.flex-box)) {
|
|
795
796
|
align-items: #{$align-items} !important;
|
|
796
797
|
}
|
|
797
798
|
|
|
798
799
|
@include mobile {
|
|
799
|
-
.is-aligned-#{$alignment}-mobile {
|
|
800
|
+
.is-aligned-#{$alignment}-mobile:not(:where(.flex-box)) {
|
|
800
801
|
align-items: #{$align-items} !important;
|
|
801
802
|
}
|
|
802
803
|
}
|
|
803
804
|
|
|
804
805
|
@include tablet {
|
|
805
|
-
.is-aligned-#{$alignment}-tablet {
|
|
806
|
+
.is-aligned-#{$alignment}-tablet:not(:where(.flex-box)) {
|
|
806
807
|
align-items: #{$align-items} !important;
|
|
807
808
|
}
|
|
808
809
|
}
|
|
@@ -820,7 +821,7 @@ $align-values: (
|
|
|
820
821
|
}
|
|
821
822
|
|
|
822
823
|
@include desktop {
|
|
823
|
-
.is-aligned-#{$alignment}-desktop {
|
|
824
|
+
.is-aligned-#{$alignment}-desktop:not(:where(.flex-box)) {
|
|
824
825
|
align-items: #{$align-items} !important;
|
|
825
826
|
}
|
|
826
827
|
}
|
|
@@ -832,7 +833,7 @@ $align-values: (
|
|
|
832
833
|
}
|
|
833
834
|
|
|
834
835
|
@include widescreen {
|
|
835
|
-
.is-aligned-#{$alignment}-widescreen {
|
|
836
|
+
.is-aligned-#{$alignment}-widescreen:not(:where(.flex-box)) {
|
|
836
837
|
align-items: #{$align-items} !important;
|
|
837
838
|
}
|
|
838
839
|
}
|
|
@@ -844,7 +845,7 @@ $align-values: (
|
|
|
844
845
|
}
|
|
845
846
|
|
|
846
847
|
@include fullhd {
|
|
847
|
-
.is-aligned-#{$alignment}-fullhd {
|
|
848
|
+
.is-aligned-#{$alignment}-fullhd:not(:where(.flex-box)) {
|
|
848
849
|
align-items: #{$align-items} !important;
|
|
849
850
|
}
|
|
850
851
|
}
|
|
@@ -856,7 +857,7 @@ $align-values: (
|
|
|
856
857
|
}
|
|
857
858
|
|
|
858
859
|
// FIXME : à supprimer car double-emploi avec .is-aligned-center (et même pas de spécificité par breakpoint)
|
|
859
|
-
.is-aligned-center {
|
|
860
|
+
.is-aligned-center:not(:where(.flex-box)) {
|
|
860
861
|
align-items: center !important;
|
|
861
862
|
}
|
|
862
863
|
|
|
@@ -2,6 +2,8 @@
|
|
|
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;
|
|
5
7
|
--ColumnGap : 8px;
|
|
6
8
|
gap: var(--ColumnGap);
|
|
7
9
|
flex-direction: row;
|
|
@@ -248,18 +250,22 @@
|
|
|
248
250
|
|
|
249
251
|
// ALIGN ITEMS
|
|
250
252
|
&.is-aligned-start {
|
|
253
|
+
--flex-box-align: flex-start;
|
|
251
254
|
align-items: flex-start;
|
|
252
255
|
}
|
|
253
256
|
|
|
254
257
|
&.is-aligned-end {
|
|
258
|
+
--flex-box-align: flex-end;
|
|
255
259
|
align-items: flex-end;
|
|
256
260
|
}
|
|
257
261
|
|
|
258
262
|
&.is-aligned-center {
|
|
263
|
+
--flex-box-align: center;
|
|
259
264
|
align-items: center;
|
|
260
265
|
}
|
|
261
266
|
|
|
262
267
|
&.is-aligned-stretch {
|
|
268
|
+
--flex-box-align: stretch;
|
|
263
269
|
align-items: stretch;
|
|
264
270
|
}
|
|
265
271
|
|
|
@@ -349,6 +355,14 @@
|
|
|
349
355
|
}
|
|
350
356
|
}
|
|
351
357
|
|
|
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
|
+
|
|
352
366
|
@include container-mobile {
|
|
353
367
|
&.is-aligned-start-mobile {
|
|
354
368
|
align-items: flex-start;
|
|
@@ -401,6 +415,42 @@
|
|
|
401
415
|
}
|
|
402
416
|
}
|
|
403
417
|
|
|
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
|
+
|
|
404
454
|
// JUSTIFY CONTENT
|
|
405
455
|
&.is-justified-start {
|
|
406
456
|
justify-content: flex-start;
|