@trilogy-ds/styles 0.0.1-beta.9 → 0.0.1-calendar
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/_all.scss +2 -2
- package/framework/src/base/_all.scss +1 -1
- package/framework/src/base/_color.scss +1 -52
- package/framework/src/base/_elements.scss +1 -1
- package/framework/src/base/_generic.scss +9 -1
- package/framework/src/base/_helpers.scss +34 -44
- package/framework/src/base/_loading.scss +9 -2
- package/framework/src/base/_reset.scss +11 -1
- package/framework/src/components/_accordion.scss +55 -89
- package/framework/src/components/_autocomplete.scss +38 -0
- package/framework/src/components/_autolayout.scss +332 -0
- package/framework/src/components/_badge.scss +87 -0
- package/framework/src/components/_box.scss +168 -0
- package/framework/src/components/_breadcrumb.scss +29 -38
- package/framework/src/components/_button.scss +79 -0
- package/framework/src/components/_calendar.scss +125 -0
- package/framework/src/components/_card.scss +33 -87
- package/framework/src/components/_checkbox.scss +71 -0
- package/framework/src/components/_chips.scss +84 -0
- package/framework/src/{elements → components}/_container.scss +7 -39
- package/framework/src/components/_countdown.scss +49 -47
- package/framework/src/components/_divider.scss +25 -14
- package/framework/src/components/_fab.scss +25 -38
- package/framework/src/components/_flex-box.scss +457 -0
- package/framework/src/{elements → components}/_icon.scss +4 -4
- package/framework/src/components/_image.scss +69 -0
- package/framework/src/components/_index.scss +48 -0
- package/framework/src/components/_link.scss +58 -0
- package/framework/src/components/_list.scss +66 -0
- package/framework/src/{elements → components}/_loader.scss +2 -2
- package/framework/src/components/_modal.scss +182 -158
- package/framework/src/components/_otp.scss +11 -30
- package/framework/src/components/_pagination.scss +60 -159
- package/framework/src/components/_popover.scss +260 -260
- package/framework/src/components/_price.scss +140 -165
- package/framework/src/components/_product-tour.scss +2 -4
- package/framework/src/components/_radio.scss +82 -0
- package/framework/src/components/_range.scss +73 -72
- package/framework/src/components/_segmented-control.scss +55 -53
- package/framework/src/components/_select.scss +131 -0
- package/framework/src/components/_stepper.scss +42 -222
- package/framework/src/{elements → components}/_sticker.scss +25 -28
- package/framework/src/components/_switch.scss +97 -191
- package/framework/src/components/_table.scss +244 -0
- package/framework/src/components/_tabs.scss +101 -98
- package/framework/src/components/_tag.scss +114 -0
- package/framework/src/components/_text.scss +55 -0
- package/framework/src/components/_textarea.scss +46 -0
- package/framework/src/components/_timeline.scss +28 -113
- package/framework/src/components/_title.scss +151 -0
- package/framework/src/{elements → components/alert}/_alert.scss +13 -10
- package/framework/src/components/alert/_index.scss +2 -0
- package/framework/src/{elements → components/alert}/_toaster.scss +4 -8
- package/framework/src/components/input/_entry.scss +135 -0
- package/framework/src/{elements → components/input}/_form.scss +42 -33
- package/framework/src/components/input/_index.scss +4 -0
- package/framework/src/components/input/_input-gauge.scss +44 -0
- package/framework/src/components/input/_input-icons.scss +55 -0
- package/framework/src/components/progress/_index.scss +2 -0
- package/framework/src/components/progress/_progress-radial.scss +28 -0
- package/framework/src/{elements → components/progress}/_progress.scss +34 -23
- package/framework/src/elements/_index.scss +5 -0
- package/framework/src/elements/_other.scss +0 -41
- package/framework/src/{components → elements}/_plus-symbol.scss +1 -1
- package/framework/src/grid/_columns.scss +278 -763
- package/framework/src/grid/_rows.scss +45 -38
- package/framework/src/layout/_all.scss +0 -1
- package/framework/src/layout/_hero.scss +92 -214
- package/framework/src/layout/_section.scss +10 -29
- package/framework/src/theming/_all.scss +3 -0
- package/framework/src/theming/buttons_partial.scss +32 -0
- package/framework/src/theming/common_partials.scss +10 -0
- package/framework/src/theming/links_partial.scss +20 -0
- package/framework/src/trilogy-mangled.scss +3 -3
- package/framework/src/trilogy.scss +2 -2
- package/framework/src/utilities/_a11y.scss +13 -0
- package/framework/src/utilities/_all.scss +4 -0
- package/framework/src/utilities/_background.scss +21 -0
- package/framework/src/utilities/_controls.scss +38 -49
- package/framework/src/utilities/_derived-variables.scss +0 -103
- package/framework/src/utilities/_initial-variables.scss +4 -144
- package/framework/src/utilities/_pre.scss +4 -1
- package/framework/src/utilities/mixins/_arrow.scss +21 -0
- package/framework/src/utilities/mixins/_delete.scss +86 -0
- package/framework/src/utilities/mixins/_index.scss +11 -0
- package/framework/src/utilities/mixins/_markup-group.scss +27 -0
- package/framework/src/utilities/mixins/_mixins.scss +293 -0
- package/framework/src/utilities/mixins/_overlay.scss +7 -0
- package/framework/src/utilities/mixins/_pattern.scss +10 -0
- package/framework/src/utilities/mixins/_responsiveness.scss +84 -0
- package/framework/src/utilities/mixins/_spinner.scss +12 -0
- package/framework/src/utilities/mixins/_state.scss +25 -0
- package/framework/src/utilities/mixins/_unselectable.scss +10 -0
- package/framework/src/utilities/mixins/_utils.scss +24 -0
- package/framework/src/utilities/variables/_animation.scss +2 -0
- package/framework/src/utilities/variables/_color.scss +85 -0
- package/framework/src/utilities/variables/_font.scss +97 -0
- package/framework/src/utilities/variables/_index.scss +6 -0
- package/framework/src/utilities/variables/_responsiveness.scss +7 -0
- package/framework/src/utilities/variables/_shadow.scss +3 -0
- package/framework/src/utilities/variables/_zindex.scss +14 -0
- package/package.json +3 -3
- package/framework/src/components/_all.scss +0 -30
- package/framework/src/components/_autolayout2.scss +0 -38
- package/framework/src/components/_disclaimer.scss +0 -84
- package/framework/src/components/_dropdown.scss +0 -128
- package/framework/src/components/_level.scss +0 -120
- package/framework/src/components/_media.scss +0 -64
- package/framework/src/components/_menu.scss +0 -213
- package/framework/src/components/_progress-radial.scss +0 -23
- package/framework/src/components/_search-modal.scss +0 -197
- package/framework/src/components/_slices.scss +0 -316
- package/framework/src/components/_slider.scss +0 -92
- package/framework/src/elements/_all.scss +0 -35
- package/framework/src/elements/_badge.scss +0 -81
- package/framework/src/elements/_box.scss +0 -267
- package/framework/src/elements/_button.scss +0 -192
- package/framework/src/elements/_checkbox.scss +0 -39
- package/framework/src/elements/_checkradio.scss +0 -173
- package/framework/src/elements/_chips.scss +0 -100
- package/framework/src/elements/_dot.scss +0 -6
- package/framework/src/elements/_entry.scss +0 -109
- package/framework/src/elements/_image.scss +0 -59
- package/framework/src/elements/_input-gauge.scss +0 -37
- package/framework/src/elements/_input-icons.scss +0 -41
- package/framework/src/elements/_link.scss +0 -79
- package/framework/src/elements/_list.scss +0 -61
- package/framework/src/elements/_notification.scss +0 -151
- package/framework/src/elements/_options.scss +0 -146
- package/framework/src/elements/_paragraph.scss +0 -101
- package/framework/src/elements/_radio.scss +0 -67
- package/framework/src/elements/_select.scss +0 -315
- package/framework/src/elements/_switch.scss +0 -108
- package/framework/src/elements/_table.scss +0 -298
- package/framework/src/elements/_tag.scss +0 -131
- package/framework/src/elements/_textarea.scss +0 -125
- package/framework/src/elements/_timeline.scss +0 -283
- package/framework/src/elements/_title.scss +0 -139
- package/framework/src/layout/_toolbar.scss +0 -100
- package/framework/src/utilities/_mixins.scss +0 -744
|
@@ -71,7 +71,7 @@ $size: (
|
|
|
71
71
|
max-width: 100%;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
@each $name, $pair in $colors-brand-
|
|
74
|
+
@each $name, $pair in $colors-brand-functionnal {
|
|
75
75
|
$color: getColor($name);
|
|
76
76
|
$brandName: getColorBrandName($name);
|
|
77
77
|
|
|
@@ -85,13 +85,13 @@ $size: (
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
&.is-circled {
|
|
88
|
-
border-radius:
|
|
88
|
+
border-radius: 9999px;
|
|
89
89
|
text-align: center;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
&.is-stretched {
|
|
93
93
|
transform: skewX(-#{$icon-stretching-level});
|
|
94
|
-
border-top-right-radius:
|
|
94
|
+
border-top-right-radius: 9px;
|
|
95
95
|
background-color: getColor('font');
|
|
96
96
|
|
|
97
97
|
[class^="tri-"],
|
|
@@ -240,7 +240,7 @@ $size: (
|
|
|
240
240
|
right: 0;
|
|
241
241
|
width: $icon-dimensions-default;
|
|
242
242
|
height: $icon-dimensions-default;
|
|
243
|
-
border-radius:
|
|
243
|
+
border-radius: 9999px;
|
|
244
244
|
background-color: getColor('main');
|
|
245
245
|
}
|
|
246
246
|
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
.image {
|
|
2
|
+
display: block;
|
|
3
|
+
position: relative;
|
|
4
|
+
|
|
5
|
+
&.is-justified-start,
|
|
6
|
+
&.is-justified-center,
|
|
7
|
+
&.is-justified-end {
|
|
8
|
+
display: flex;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
img {
|
|
12
|
+
display: block;
|
|
13
|
+
max-width: 100%;
|
|
14
|
+
|
|
15
|
+
&.b-loaded {
|
|
16
|
+
height: auto;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&.is-circled {
|
|
20
|
+
border-radius: 50%;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.b-lazy {
|
|
26
|
+
transition: opacity 250ms ease-in-out;
|
|
27
|
+
opacity: 0;
|
|
28
|
+
|
|
29
|
+
&.b-loaded {
|
|
30
|
+
opacity: 1;
|
|
31
|
+
|
|
32
|
+
&.has-bg-image {
|
|
33
|
+
&.has-bg-gradient {
|
|
34
|
+
&::before {
|
|
35
|
+
opacity: 0;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&.has-bg-image {
|
|
42
|
+
background-repeat: no-repeat;
|
|
43
|
+
background-position: center center;
|
|
44
|
+
background-size: cover;
|
|
45
|
+
position: absolute;
|
|
46
|
+
top: 0;
|
|
47
|
+
bottom: 0;
|
|
48
|
+
left: 0;
|
|
49
|
+
right: 0;
|
|
50
|
+
height: 100%;
|
|
51
|
+
|
|
52
|
+
&.has-bg-gradient {
|
|
53
|
+
z-index: zindex('void');
|
|
54
|
+
opacity: 1;
|
|
55
|
+
|
|
56
|
+
&::before {
|
|
57
|
+
content: '';
|
|
58
|
+
opacity: 1;
|
|
59
|
+
position: absolute;
|
|
60
|
+
top: 0;
|
|
61
|
+
left: 0;
|
|
62
|
+
right: 0;
|
|
63
|
+
bottom: 0;
|
|
64
|
+
z-index: zindex('tiny');
|
|
65
|
+
transition: opacity 750ms ease-in-out;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
@charset "utf-8";
|
|
2
|
+
@import '../utilities/spacing';
|
|
3
|
+
|
|
4
|
+
@import 'accordion';
|
|
5
|
+
@import 'alert';
|
|
6
|
+
@import 'autocomplete';
|
|
7
|
+
@import 'autolayout';
|
|
8
|
+
@import 'badge';
|
|
9
|
+
@import 'box';
|
|
10
|
+
@import 'breadcrumb';
|
|
11
|
+
@import 'button';
|
|
12
|
+
@import 'calendar';
|
|
13
|
+
@import 'card';
|
|
14
|
+
@import 'checkbox';
|
|
15
|
+
@import 'chips';
|
|
16
|
+
@import 'container';
|
|
17
|
+
@import 'countdown';
|
|
18
|
+
@import 'divider';
|
|
19
|
+
@import 'fab';
|
|
20
|
+
@import 'flex-box';
|
|
21
|
+
@import 'icon';
|
|
22
|
+
@import 'image';
|
|
23
|
+
@import 'input';
|
|
24
|
+
@import 'link';
|
|
25
|
+
@import 'list';
|
|
26
|
+
@import 'loader';
|
|
27
|
+
@import 'modal';
|
|
28
|
+
@import 'otp';
|
|
29
|
+
@import 'pagination';
|
|
30
|
+
@import 'popover';
|
|
31
|
+
@import 'price';
|
|
32
|
+
@import 'product-tour';
|
|
33
|
+
@import 'progress';
|
|
34
|
+
@import 'radio';
|
|
35
|
+
@import 'range';
|
|
36
|
+
@import 'scroll-view';
|
|
37
|
+
@import 'segmented-control';
|
|
38
|
+
@import 'select';
|
|
39
|
+
@import 'stepper';
|
|
40
|
+
@import 'sticker';
|
|
41
|
+
@import 'switch';
|
|
42
|
+
@import 'table';
|
|
43
|
+
@import 'tabs';
|
|
44
|
+
@import 'tag';
|
|
45
|
+
@import 'text';
|
|
46
|
+
@import 'textarea';
|
|
47
|
+
@import 'timeline';
|
|
48
|
+
@import 'title';
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
.link {
|
|
2
|
+
[disabled] {
|
|
3
|
+
@include disabledRulesWithoutBG;
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.link:not([disabled]) {
|
|
8
|
+
@extend %link-states;
|
|
9
|
+
|
|
10
|
+
position: relative;
|
|
11
|
+
font-weight: $weight-normal;
|
|
12
|
+
color: getColor($link-colors);
|
|
13
|
+
box-decoration-break: clone;
|
|
14
|
+
text-decoration: underline;
|
|
15
|
+
text-decoration-thickness : 2px;
|
|
16
|
+
text-underline-offset: 4px;
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
|
|
19
|
+
&.has-icon {
|
|
20
|
+
display: inline-block;
|
|
21
|
+
align-items: center;
|
|
22
|
+
|
|
23
|
+
&::after {
|
|
24
|
+
width: calc(100% - 48px);
|
|
25
|
+
bottom: 5.5px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.icon {
|
|
29
|
+
vertical-align: middle;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&.is-inverted {
|
|
34
|
+
color: getColor('background');
|
|
35
|
+
|
|
36
|
+
&.has-icon {
|
|
37
|
+
> .icon {
|
|
38
|
+
color: getColor('background');
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@include touch {
|
|
44
|
+
white-space: normal !important;
|
|
45
|
+
box-decoration-break: clone;
|
|
46
|
+
display: inline;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.text .link:not([disabled]) {
|
|
51
|
+
text-underline-offset: 2px;
|
|
52
|
+
text-decoration: underline;
|
|
53
|
+
text-decoration-thickness : 1px;
|
|
54
|
+
&:hover {
|
|
55
|
+
font-weight: $weight-normal;
|
|
56
|
+
filter: brightness(0.8);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
// Bullet list classiques
|
|
2
|
+
ol.list {
|
|
3
|
+
counter-reset: customCounter;
|
|
4
|
+
|
|
5
|
+
& > li.list-item {
|
|
6
|
+
counter-increment: customCounter;
|
|
7
|
+
&:not(:has(.icon)) {
|
|
8
|
+
&::before{
|
|
9
|
+
content: counter(customCounter) ". ";
|
|
10
|
+
margin-right:$spacing-4;
|
|
11
|
+
font-weight: $weight-bold;
|
|
12
|
+
font-size: $text-14 !important;
|
|
13
|
+
font-family: $family-secondary;
|
|
14
|
+
line-height: 1.5 !important;
|
|
15
|
+
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
ul.list {
|
|
22
|
+
li.list-item {
|
|
23
|
+
&:not(:has(.icon)) {
|
|
24
|
+
&::before{
|
|
25
|
+
content:'.';
|
|
26
|
+
margin-right:$spacing-4;
|
|
27
|
+
font-weight: 900;
|
|
28
|
+
font-size: $text-24;
|
|
29
|
+
line-height: 8px;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
ul.list,
|
|
36
|
+
ol.list {
|
|
37
|
+
display: grid;
|
|
38
|
+
row-gap: $spacing-3;
|
|
39
|
+
|
|
40
|
+
li.list-item {
|
|
41
|
+
display: flex;
|
|
42
|
+
&:has(.icon) {
|
|
43
|
+
list-style: none;
|
|
44
|
+
display: flex;
|
|
45
|
+
}
|
|
46
|
+
.icon {
|
|
47
|
+
margin-right: $spacing-2;
|
|
48
|
+
justify-content: flex-start;
|
|
49
|
+
align-items: flex-start;
|
|
50
|
+
}
|
|
51
|
+
.list-item-content {
|
|
52
|
+
flex: 1;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&.has-divider {
|
|
57
|
+
li {
|
|
58
|
+
border-bottom: var(--border);
|
|
59
|
+
padding-bottom: $spacing-3;
|
|
60
|
+
&:last-child {
|
|
61
|
+
border-bottom: none;
|
|
62
|
+
padding-bottom: 0;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -16,12 +16,12 @@ $loader-items-bottom-offset: -40px;
|
|
|
16
16
|
display: block;
|
|
17
17
|
width: $loader-item-width;
|
|
18
18
|
height: $loader-item-height;
|
|
19
|
-
border-radius:
|
|
19
|
+
border-radius: 9999px;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
.loader-body {
|
|
23
23
|
visibility: hidden;
|
|
24
|
-
background-color: getColor('
|
|
24
|
+
background-color: getColor('accent');
|
|
25
25
|
animation: 2.5s linear 0s forwards infinite top_item;
|
|
26
26
|
}
|
|
27
27
|
|
|
@@ -2,207 +2,231 @@ $modal-content-width: 640px !default;
|
|
|
2
2
|
$modal-content-margin-mobile: 20px !default;
|
|
3
3
|
$modal-close-dimensions: 40px !default;
|
|
4
4
|
$modal-dimensions: (
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
'xsmall': 40vw,
|
|
6
|
+
'small': 50vw,
|
|
7
|
+
'medium': 60vw,
|
|
8
|
+
'large': 70vw,
|
|
9
|
+
'xlarge': 80vw
|
|
10
10
|
);
|
|
11
11
|
|
|
12
12
|
body:has(.modal.is-active) {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
height: 100%;
|
|
14
|
+
overflow: hidden
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.modal {
|
|
18
|
+
@include overlay;
|
|
19
|
+
|
|
20
|
+
position: fixed;
|
|
21
|
+
z-index: zindex('modal');
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: flex-end;
|
|
27
|
+
visibility: hidden;
|
|
28
|
+
opacity: 0;
|
|
29
|
+
transition: opacity 250ms ease-in-out,
|
|
30
|
+
visibility 0ms linear 250ms;
|
|
31
|
+
|
|
32
|
+
// overlay
|
|
33
|
+
&::after {
|
|
18
34
|
@include overlay;
|
|
19
35
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
transition:
|
|
30
|
-
opacity 250ms ease-in-out,
|
|
31
|
-
visibility 0ms linear 250ms;
|
|
32
|
-
|
|
33
|
-
// overlay
|
|
34
|
-
&::after {
|
|
35
|
-
@include overlay;
|
|
36
|
+
content: '';
|
|
37
|
+
background-color: rgba(#000, 0.86);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&.is-active {
|
|
41
|
+
opacity: 1;
|
|
42
|
+
visibility: inherit;
|
|
43
|
+
transition: opacity 250ms ease-in-out,
|
|
44
|
+
visibility 0ms linear;
|
|
36
45
|
|
|
37
|
-
|
|
38
|
-
|
|
46
|
+
.modal-content {
|
|
47
|
+
transform: translateY(0);
|
|
39
48
|
}
|
|
49
|
+
}
|
|
40
50
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
opacity 250ms ease-in-out,
|
|
46
|
-
visibility 0ms linear;
|
|
51
|
+
@include tablet {
|
|
52
|
+
justify-content: center;
|
|
53
|
+
@each $name, $dimension in $modal-dimensions {
|
|
54
|
+
&.is-#{$name} {
|
|
47
55
|
.modal-content {
|
|
48
|
-
|
|
56
|
+
width: $dimension;
|
|
49
57
|
}
|
|
58
|
+
}
|
|
50
59
|
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// spécificité pour le bouton en position: relative par défaut
|
|
63
|
+
.button {
|
|
64
|
+
position: static;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.modal-content {
|
|
68
|
+
background-color: getColor('background');
|
|
69
|
+
border-radius: var(--radius) var(--radius) 0 0;
|
|
70
|
+
color: getColor('font');
|
|
71
|
+
overflow: auto;
|
|
72
|
+
position: relative;
|
|
73
|
+
margin: 0 $modal-content-margin-mobile;
|
|
74
|
+
max-height: calc(100vh - 40px);
|
|
75
|
+
width: 100%;
|
|
76
|
+
z-index: zindex('tiny');
|
|
77
|
+
transition: transform ease-in-out 250ms;
|
|
78
|
+
transform: translateY(50%);
|
|
51
79
|
|
|
52
|
-
// gestion des tailles
|
|
53
80
|
@include tablet {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
.modal-content {
|
|
58
|
-
width: map-get($modal-dimensions, $dimension);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
81
|
+
max-height: calc(100vh - 120px);
|
|
82
|
+
width: $modal-content-width;
|
|
83
|
+
border-radius: $radius;
|
|
62
84
|
}
|
|
63
85
|
|
|
64
|
-
//
|
|
65
|
-
.
|
|
66
|
-
|
|
86
|
+
// Annulation des propriétés du composant box, se trouvant dans une modal
|
|
87
|
+
> .box {
|
|
88
|
+
background-color: transparent;
|
|
89
|
+
border-radius: 0;
|
|
90
|
+
box-shadow: none;
|
|
91
|
+
padding: 0;
|
|
92
|
+
max-height: inherit;
|
|
93
|
+
|
|
94
|
+
.box-content {
|
|
95
|
+
background-color: transparent;
|
|
96
|
+
border-radius: 0;
|
|
97
|
+
padding: 0;
|
|
98
|
+
padding-bottom: 30px;
|
|
99
|
+
margin: 0;
|
|
100
|
+
text-align: inherit;
|
|
101
|
+
}
|
|
67
102
|
}
|
|
68
103
|
|
|
69
|
-
//
|
|
70
|
-
.modal-
|
|
71
|
-
|
|
104
|
+
// If Close Icon Modal & Title Modal are sibling elements, override margin
|
|
105
|
+
.modal-close ~ .modal-title {
|
|
106
|
+
margin-top: -32px;
|
|
72
107
|
}
|
|
73
108
|
|
|
74
|
-
.modal-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
109
|
+
.modal-header {
|
|
110
|
+
padding: $spacing-5;
|
|
111
|
+
color: getColor('font');
|
|
112
|
+
font-family: $family-primary;
|
|
113
|
+
font-size: $size-3;
|
|
114
|
+
font-weight: $weight-semibold;
|
|
115
|
+
line-height: 1.1;
|
|
116
|
+
background-color: getColor('background');
|
|
117
|
+
z-index: zindex('medium');
|
|
118
|
+
position: sticky;
|
|
119
|
+
top: 0;
|
|
120
|
+
width: 100%;
|
|
121
|
+
word-wrap: break-word;
|
|
122
|
+
display: flex;
|
|
123
|
+
justify-content: space-between;
|
|
124
|
+
|
|
125
|
+
&:has(.modal-close) {
|
|
126
|
+
flex-direction: row-reverse;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&:has(.icon) {
|
|
83
130
|
text-align: center;
|
|
84
|
-
|
|
85
|
-
z-index: zindex('tiny');
|
|
86
|
-
transition: transform ease-in-out 250ms;
|
|
87
|
-
transform: translateY(100%);
|
|
88
|
-
|
|
89
|
-
&.is-fullwidth {
|
|
90
|
-
width: 100% !important;
|
|
91
|
-
}
|
|
131
|
+
}
|
|
92
132
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
border-radius: $radius;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
// Annulation des propriétés du composant box, se trouvant dans une modal
|
|
100
|
-
> .box {
|
|
101
|
-
background-color: transparent;
|
|
102
|
-
border-radius: 0;
|
|
103
|
-
box-shadow: none;
|
|
104
|
-
padding: 0;
|
|
105
|
-
max-height: inherit;
|
|
106
|
-
|
|
107
|
-
.box-content {
|
|
108
|
-
background-color: transparent;
|
|
109
|
-
border-radius: 0;
|
|
110
|
-
padding: 0;
|
|
111
|
-
padding-bottom: 30px;
|
|
112
|
-
margin: 0;
|
|
113
|
-
text-align: inherit;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.modal-footer {
|
|
118
|
-
position: sticky;
|
|
119
|
-
background: getColor('background');
|
|
120
|
-
bottom: -30px;
|
|
121
|
-
margin: 30px -30px -30px;
|
|
122
|
-
padding: 20px 30px;
|
|
123
|
-
}
|
|
133
|
+
@include desktop {
|
|
134
|
+
font-size: $size-3-desktop;
|
|
135
|
+
}
|
|
124
136
|
|
|
125
|
-
|
|
126
|
-
.modal-close ~ .modal-title {
|
|
127
|
-
margin-top: -32px;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.modal-close {
|
|
137
|
+
.modal-close {
|
|
132
138
|
@include delete;
|
|
133
139
|
|
|
134
140
|
background-color: getColor('background');
|
|
135
|
-
position: sticky;
|
|
136
|
-
top: 20px;
|
|
137
|
-
left: 100%;
|
|
138
141
|
display: block;
|
|
139
142
|
height: $modal-close-dimensions;
|
|
140
143
|
width: $modal-close-dimensions;
|
|
141
|
-
z-index: zindex('
|
|
144
|
+
z-index: zindex('large');
|
|
142
145
|
|
|
143
|
-
|
|
144
|
-
|
|
146
|
+
#{$hoverSelector} {
|
|
147
|
+
background-color: getColor('neutral-fade');
|
|
145
148
|
}
|
|
146
149
|
|
|
147
150
|
&::after,
|
|
148
151
|
&::before {
|
|
149
|
-
|
|
152
|
+
background-color: getColor('font');
|
|
150
153
|
}
|
|
151
|
-
}
|
|
152
154
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
z-index: zindex('small');
|
|
161
|
-
position: sticky;
|
|
162
|
-
top: 0;
|
|
163
|
-
padding: 20px 0;
|
|
164
|
-
width: 100%;
|
|
165
|
-
word-wrap: break-word;
|
|
166
|
-
|
|
167
|
-
@include desktop {
|
|
168
|
-
font-size: $size-3-desktop;
|
|
155
|
+
&:focus-visible,
|
|
156
|
+
&:focus:focus-visible {
|
|
157
|
+
outline: 2px solid getColor('font') !important;
|
|
158
|
+
outline-offset: 2px;
|
|
159
|
+
}
|
|
160
|
+
&:focus{
|
|
161
|
+
background-color: transparent !important;
|
|
169
162
|
}
|
|
163
|
+
}
|
|
170
164
|
}
|
|
171
165
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
166
|
+
.modal-body {
|
|
167
|
+
padding: 0 $spacing-5 $spacing-5 ;
|
|
168
|
+
}
|
|
169
|
+
&:has(>.modal-footer) > .modal-body {
|
|
170
|
+
padding-bottom: 0;
|
|
171
|
+
}
|
|
177
172
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
@include tablet {
|
|
194
|
-
max-width: 375px;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
.modal-footer {
|
|
198
|
-
margin-top: auto;
|
|
199
|
-
}
|
|
200
|
-
}
|
|
173
|
+
.modal-footer {
|
|
174
|
+
padding: $spacing-5;
|
|
175
|
+
position: sticky;
|
|
176
|
+
width: 100%;
|
|
177
|
+
background: getColor('background');
|
|
178
|
+
bottom: 0;
|
|
179
|
+
|
|
180
|
+
.buttons {
|
|
181
|
+
display: flex;
|
|
182
|
+
flex-direction: column-reverse;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
@include tablet {
|
|
186
|
+
display: flex;
|
|
187
|
+
justify-content: flex-end;
|
|
201
188
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
transform: translateX(0);
|
|
205
|
-
}
|
|
189
|
+
.buttons {
|
|
190
|
+
flex-direction: row;
|
|
206
191
|
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
// version "panel" de la modal
|
|
197
|
+
&.is-panel {
|
|
198
|
+
&::after {
|
|
199
|
+
position: fixed;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.modal-content {
|
|
203
|
+
border-radius: 0;
|
|
204
|
+
position: fixed;
|
|
205
|
+
right: 0;
|
|
206
|
+
top: 0;
|
|
207
|
+
min-height: 100%;
|
|
208
|
+
height: 100%;
|
|
209
|
+
max-height: none;
|
|
210
|
+
margin: 0;
|
|
211
|
+
text-align: left;
|
|
212
|
+
display: flex;
|
|
213
|
+
flex-direction: column;
|
|
214
|
+
align-items: flex-start;
|
|
215
|
+
transform: translateX(100%);
|
|
216
|
+
|
|
217
|
+
@include tablet {
|
|
218
|
+
max-width: 375px;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.modal-footer {
|
|
222
|
+
margin-top: auto;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
&.is-active {
|
|
227
|
+
.modal-content {
|
|
228
|
+
transform: translateX(0);
|
|
229
|
+
}
|
|
207
230
|
}
|
|
231
|
+
}
|
|
208
232
|
}
|