@trilogy-ds/styles 0.0.1-beta-4 → 0.0.1-beta.11
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/README.md +47 -0
- 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 +14 -36
- package/framework/src/base/_generic.scss +4 -1
- package/framework/src/base/_helpers.scss +10 -29
- package/framework/src/base/_loading.scss +7 -0
- package/framework/src/components/_accordion.scss +15 -36
- package/framework/src/components/_all.scss +0 -3
- package/framework/src/components/_breadcrumb.scss +39 -34
- package/framework/src/components/_card.scss +6 -5
- package/framework/src/components/_countdown.scss +49 -47
- package/framework/src/components/_disclaimer.scss +6 -5
- package/framework/src/components/_divider.scss +2 -2
- package/framework/src/components/_dropdown.scss +95 -101
- package/framework/src/components/_fab.scss +6 -21
- package/framework/src/components/_media.scss +2 -2
- package/framework/src/components/_modal.scss +172 -166
- package/framework/src/components/_otp.scss +9 -28
- package/framework/src/components/_pagination.scss +109 -131
- package/framework/src/components/_plus-symbol.scss +1 -1
- package/framework/src/components/_popover.scss +1 -4
- package/framework/src/components/_price.scss +118 -169
- package/framework/src/components/_product-tour.scss +1 -3
- package/framework/src/components/_segmented-control.scss +39 -51
- package/framework/src/components/_slider.scss +70 -70
- package/framework/src/components/_stepper.scss +16 -140
- package/framework/src/components/_tabs.scss +32 -55
- package/framework/src/components/_timeline.scss +49 -42
- package/framework/src/elements/_alert.scss +4 -5
- package/framework/src/elements/_all.scss +0 -2
- package/framework/src/elements/_badge.scss +54 -59
- package/framework/src/elements/_box.scss +5 -23
- package/framework/src/elements/_button.scss +29 -129
- package/framework/src/elements/_checkbox.scss +21 -27
- package/framework/src/elements/_chips.scss +76 -81
- package/framework/src/elements/_entry.scss +73 -89
- package/framework/src/elements/_form.scss +15 -15
- package/framework/src/elements/_input-gauge.scss +36 -32
- package/framework/src/elements/_link.scss +47 -62
- package/framework/src/elements/_list.scss +0 -36
- package/framework/src/elements/_notification.scss +2 -3
- package/framework/src/elements/_other.scss +1 -1
- package/framework/src/elements/_paragraph.scss +4 -26
- package/framework/src/elements/_progress.scss +9 -18
- package/framework/src/elements/_radio.scss +1 -1
- package/framework/src/elements/_select.scss +209 -245
- package/framework/src/elements/_sticker.scss +8 -9
- package/framework/src/elements/_switch.scss +85 -88
- package/framework/src/elements/_table.scss +11 -72
- package/framework/src/elements/_tag.scss +104 -104
- package/framework/src/elements/_textarea.scss +92 -106
- package/framework/src/elements/_title.scss +86 -84
- package/framework/src/elements/_toaster.scss +2 -3
- package/framework/src/grid/_columns.scss +5 -5
- package/framework/src/layout/_hero.scss +129 -211
- package/framework/src/layout/_section.scss +3 -3
- package/framework/src/layout/_toolbar.scss +6 -6
- package/framework/src/utilities/_controls.scss +37 -39
- package/framework/src/utilities/_derived-variables.scss +3 -14
- package/framework/src/utilities/_initial-variables.scss +38 -23
- package/framework/src/utilities/_mixins.scss +523 -582
- package/package.json +4 -3
- package/framework/src/components/_menu.scss +0 -213
- package/framework/src/components/_search-modal.scss +0 -197
- package/framework/src/components/_slices.scss +0 -316
- package/framework/src/components/_switch.scss +0 -209
- package/framework/src/elements/_checkradio.scss +0 -173
- package/framework/src/elements/_options.scss +0 -146
- package/framework/src/elements/_timeline.scss +0 -283
- /package/dist/default/assets/icons/all/{all/alert.svg → alert.svg} +0 -0
- /package/dist/default/assets/icons/all/{all/arrow-down.svg → arrow-down.svg} +0 -0
- /package/dist/default/assets/icons/all/{all/arrow-left.svg → arrow-left.svg} +0 -0
- /package/dist/default/assets/icons/all/{all/arrow-right.svg → arrow-right.svg} +0 -0
- /package/dist/default/assets/icons/all/{all/arrow-up.svg → arrow-up.svg} +0 -0
- /package/dist/default/assets/icons/all/{all/bell.svg → bell.svg} +0 -0
- /package/dist/default/assets/icons/all/{all/check-circle.svg → check-circle.svg} +0 -0
- /package/dist/default/assets/icons/all/{all/check.svg → check.svg} +0 -0
- /package/dist/default/assets/icons/all/{all/exclamation-circle.svg → exclamation-circle.svg} +0 -0
- /package/dist/default/assets/icons/all/{all/eye-slash.svg → eye-slash.svg} +0 -0
- /package/dist/default/assets/icons/all/{all/eye.svg → eye.svg} +0 -0
- /package/dist/default/assets/icons/all/{all/infos-circle.svg → infos-circle.svg} +0 -0
- /package/dist/default/assets/icons/all/{all/search.svg → search.svg} +0 -0
- /package/dist/default/assets/icons/all/{all/times.svg → times.svg} +0 -0
- /package/dist/default/assets/icons/all/{all/trash.svg → trash.svg} +0 -0
|
@@ -1,128 +1,122 @@
|
|
|
1
1
|
.dropdown {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
&.is-active,
|
|
7
|
-
&.is-hoverable:hover {
|
|
8
|
-
.dropdown-menu {
|
|
9
|
-
display: block;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
position: relative;
|
|
4
|
+
vertical-align: top;
|
|
5
|
+
width: 100%;
|
|
12
6
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
height: 97% !important;
|
|
17
|
-
margin-left: 16px;
|
|
18
|
-
-moz-appearance:none; /* Firefox */
|
|
19
|
-
-webkit-appearance:none; /* Safari and Chrome */
|
|
20
|
-
appearance:none;
|
|
7
|
+
#{$hoverSelector}, &:active {
|
|
8
|
+
.dropdown-menu {
|
|
9
|
+
display: block;
|
|
21
10
|
}
|
|
11
|
+
}
|
|
22
12
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
13
|
+
select {
|
|
14
|
+
width: 95% !important;
|
|
15
|
+
border: none;
|
|
16
|
+
height: 97% !important;
|
|
17
|
+
margin-left: 16px;
|
|
18
|
+
-moz-appearance: none; /* Firefox */
|
|
19
|
+
-webkit-appearance: none; /* Safari and Chrome */
|
|
20
|
+
appearance: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&.is-active {
|
|
24
|
+
.dropdown-menu {
|
|
25
|
+
z-index: zindex('dropdown');
|
|
31
26
|
}
|
|
27
|
+
}
|
|
32
28
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
29
|
+
&.is-right {
|
|
30
|
+
.dropdown-menu {
|
|
31
|
+
left: auto;
|
|
32
|
+
right: 0;
|
|
38
33
|
}
|
|
34
|
+
}
|
|
39
35
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
36
|
+
&.is-up {
|
|
37
|
+
.dropdown-menu {
|
|
38
|
+
bottom: 100%;
|
|
39
|
+
padding-bottom: $spacing-1;
|
|
40
|
+
padding-top: initial;
|
|
41
|
+
top: auto;
|
|
47
42
|
}
|
|
43
|
+
}
|
|
48
44
|
|
|
49
|
-
|
|
50
|
-
|
|
45
|
+
.react-autosuggest__container {
|
|
46
|
+
width: 100%;
|
|
51
47
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
.dropdown-menu .dropdown-content {
|
|
49
|
+
overflow-y: auto;
|
|
50
|
+
max-height: 25vh;
|
|
55
51
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
52
|
+
.dropdown-item {
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
}
|
|
60
55
|
}
|
|
56
|
+
}
|
|
61
57
|
|
|
62
|
-
|
|
63
|
-
|
|
58
|
+
.dropdown-trigger {
|
|
59
|
+
width: 100%;
|
|
64
60
|
|
|
65
|
-
|
|
66
|
-
|
|
61
|
+
.select {
|
|
62
|
+
cursor: pointer;
|
|
67
63
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
64
|
+
select {
|
|
65
|
+
pointer-events: none;
|
|
66
|
+
}
|
|
72
67
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.dropdown-menu {
|
|
71
|
+
display: none;
|
|
72
|
+
left: 0;
|
|
73
|
+
min-width: 120px;
|
|
74
|
+
padding-top: $spacing-1;
|
|
75
|
+
position: absolute;
|
|
76
|
+
top: 100%;
|
|
77
|
+
width: 100%;
|
|
78
|
+
z-index: 20;
|
|
79
|
+
|
|
80
|
+
.dropdown-content {
|
|
81
|
+
border-radius: $radius;
|
|
82
|
+
box-shadow: 0 2px 3px rgba(#000, 0.1),
|
|
83
|
+
0 0 0 1px rgba(#000, 0.1);
|
|
84
|
+
font-size: inherit;
|
|
85
|
+
|
|
86
|
+
.dropdown-item {
|
|
87
|
+
display: block;
|
|
88
|
+
font-size: inherit;
|
|
89
|
+
line-height: 1.5;
|
|
90
|
+
padding: 3.75px 10px;
|
|
91
|
+
position: relative;
|
|
92
|
+
}
|
|
99
93
|
}
|
|
94
|
+
}
|
|
100
95
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
96
|
+
.control.has-dynamic-placeholder .select > select:active ~ label,
|
|
97
|
+
.control.has-dynamic-placeholder .select > select:focus ~ label {
|
|
98
|
+
display: flex;
|
|
99
|
+
}
|
|
105
100
|
}
|
|
106
101
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
102
|
+
.dropdown-item {
|
|
103
|
+
@include hover();
|
|
104
|
+
}
|
|
110
105
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
}
|
|
106
|
+
a.dropdown-item {
|
|
107
|
+
padding-right: 30px;
|
|
108
|
+
white-space: nowrap;
|
|
115
109
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
110
|
+
&.is-active {
|
|
111
|
+
background-color: getColor('main');
|
|
112
|
+
color: invertColor('main');
|
|
113
|
+
}
|
|
120
114
|
}
|
|
121
115
|
|
|
122
116
|
.dropdown-divider {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
117
|
+
background-color: rgba(getColor('neutral'), 0.5);
|
|
118
|
+
border: none;
|
|
119
|
+
display: block;
|
|
120
|
+
height: 1px;
|
|
121
|
+
margin: 5px 0;
|
|
128
122
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
.fab {
|
|
2
|
-
background-color: getColor('
|
|
3
|
-
border: 1px getColor('alternate');
|
|
2
|
+
background-color: getColor('font');
|
|
4
3
|
border-radius: 16px;
|
|
5
4
|
cursor: pointer;
|
|
6
5
|
height: 56px;
|
|
@@ -10,9 +9,8 @@
|
|
|
10
9
|
align-items: center;
|
|
11
10
|
box-sizing: border-box;
|
|
12
11
|
transition: 0.4s;
|
|
13
|
-
|
|
14
|
-
box-shadow:
|
|
15
|
-
|
|
12
|
+
border: 0;
|
|
13
|
+
box-shadow: 0px 3px 6px 0px #00000033;
|
|
16
14
|
font-style: normal;
|
|
17
15
|
font-weight: 600;
|
|
18
16
|
font-size: 0;
|
|
@@ -20,9 +18,8 @@
|
|
|
20
18
|
|
|
21
19
|
z-index: 9;
|
|
22
20
|
|
|
23
|
-
|
|
24
|
-
background-color:
|
|
25
|
-
border-color:getVariantColor('alternate',2);
|
|
21
|
+
#{$hoverSelector}, &.is-extended, &:focus, &:focus-visible, &:focus-within {
|
|
22
|
+
background-color: getColor('hovered');
|
|
26
23
|
transition: 0.5s;
|
|
27
24
|
font-size: initial;
|
|
28
25
|
|
|
@@ -34,20 +31,8 @@
|
|
|
34
31
|
}
|
|
35
32
|
}
|
|
36
33
|
|
|
37
|
-
&:focus, &:focus-visible, &:focus-within {
|
|
38
|
-
background-color:getVariantColor('alternate', 4);
|
|
39
|
-
border-color: getVariantColor('alternate', 4);
|
|
40
|
-
outline: 1px auto getVariantColor('alternate', 4);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
34
|
&:active {
|
|
44
|
-
background-color:
|
|
45
|
-
border-color: getVariantColor('alternate', 5);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.disabled {
|
|
49
|
-
background-color: getColor('bg-disabled');
|
|
50
|
-
color: getColor('grey-disabled');
|
|
35
|
+
background-color: getColor('hovered');
|
|
51
36
|
}
|
|
52
37
|
|
|
53
38
|
.icon {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.media {
|
|
11
|
-
border-top: 1px solid
|
|
11
|
+
border-top: 1px solid getBGColor('neutral');
|
|
12
12
|
display: flex;
|
|
13
13
|
padding-top: 7.5px;
|
|
14
14
|
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
& + .media {
|
|
30
|
-
border-top: 1px solid
|
|
30
|
+
border-top: 1px solid getBGColor('neutral');
|
|
31
31
|
margin-top: 10px;
|
|
32
32
|
padding-top: 10px;
|
|
33
33
|
}
|
|
@@ -2,200 +2,206 @@ $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
|
-
|
|
46
|
-
visibility 0ms linear;
|
|
51
|
+
// gestion des tailles
|
|
52
|
+
@include tablet {
|
|
53
|
+
justify-content: center;
|
|
54
|
+
@each $dimension in $dimensions-extended {
|
|
55
|
+
&.is-#{$dimension} {
|
|
47
56
|
.modal-content {
|
|
48
|
-
|
|
57
|
+
width: map-get($modal-dimensions, $dimension);
|
|
49
58
|
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// spécificité pour le bouton en position: relative par défaut
|
|
64
|
+
.button {
|
|
65
|
+
position: static;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// ancien overlay : n'a plus d'utilité mais conservée pour rétrocompatibilité
|
|
69
|
+
.modal-background {
|
|
70
|
+
display: none;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.modal-content {
|
|
74
|
+
background-color: getColor('background');
|
|
75
|
+
border-radius: $radius $radius 0 0;
|
|
76
|
+
color: getColor('font');
|
|
77
|
+
overflow: auto;
|
|
78
|
+
position: relative;
|
|
79
|
+
padding: 0 30px 30px;
|
|
80
|
+
margin: 0 $modal-content-margin-mobile;
|
|
81
|
+
max-height: calc(100vh - 40px);
|
|
82
|
+
text-align: center;
|
|
83
|
+
width: 100%;
|
|
84
|
+
z-index: zindex('tiny');
|
|
85
|
+
transition: transform ease-in-out 250ms;
|
|
86
|
+
transform: translateY(100%);
|
|
87
|
+
|
|
88
|
+
&.is-fullwidth {
|
|
89
|
+
width: 100% !important;
|
|
50
90
|
}
|
|
51
91
|
|
|
52
|
-
// gestion des tailles
|
|
53
92
|
@include tablet {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
.modal-content {
|
|
58
|
-
width: map-get($modal-dimensions, $dimension);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
93
|
+
max-height: calc(100vh - 120px);
|
|
94
|
+
width: $modal-content-width;
|
|
95
|
+
border-radius: $radius;
|
|
62
96
|
}
|
|
63
97
|
|
|
64
|
-
//
|
|
65
|
-
.
|
|
66
|
-
|
|
98
|
+
// Annulation des propriétés du composant box, se trouvant dans une modal
|
|
99
|
+
> .box {
|
|
100
|
+
background-color: transparent;
|
|
101
|
+
border-radius: 0;
|
|
102
|
+
box-shadow: none;
|
|
103
|
+
padding: 0;
|
|
104
|
+
max-height: inherit;
|
|
105
|
+
|
|
106
|
+
.box-content {
|
|
107
|
+
background-color: transparent;
|
|
108
|
+
border-radius: 0;
|
|
109
|
+
padding: 0;
|
|
110
|
+
padding-bottom: 30px;
|
|
111
|
+
margin: 0;
|
|
112
|
+
text-align: inherit;
|
|
113
|
+
}
|
|
67
114
|
}
|
|
68
115
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
116
|
+
.modal-footer {
|
|
117
|
+
position: sticky;
|
|
118
|
+
background: getColor('background');
|
|
119
|
+
bottom: -30px;
|
|
120
|
+
margin: 30px -30px -30px;
|
|
121
|
+
padding: 20px 30px;
|
|
72
122
|
}
|
|
73
123
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
max-height: calc(100vh - 120px);
|
|
95
|
-
width: $modal-content-width;
|
|
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
|
-
}
|
|
124
|
-
|
|
125
|
-
// If Close Icon Modal & Title Modal are sibling elements, override margin
|
|
126
|
-
.modal-close ~ .modal-title {
|
|
127
|
-
margin-top: -32px;
|
|
128
|
-
}
|
|
124
|
+
// If Close Icon Modal & Title Modal are sibling elements, override margin
|
|
125
|
+
.modal-close ~ .modal-title {
|
|
126
|
+
margin-top: -32px;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.modal-close {
|
|
131
|
+
@include delete;
|
|
132
|
+
|
|
133
|
+
background-color: getColor('background');
|
|
134
|
+
position: sticky;
|
|
135
|
+
top: 20px;
|
|
136
|
+
left: 100%;
|
|
137
|
+
display: block;
|
|
138
|
+
height: $modal-close-dimensions;
|
|
139
|
+
width: $modal-close-dimensions;
|
|
140
|
+
z-index: zindex('medium');
|
|
141
|
+
|
|
142
|
+
#{$hoverSelector} {
|
|
143
|
+
background-color: getBGColor('neutral');
|
|
129
144
|
}
|
|
130
145
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
background-color: getColor('background');
|
|
135
|
-
position: sticky;
|
|
136
|
-
top: 20px;
|
|
137
|
-
left: 100%;
|
|
138
|
-
display: block;
|
|
139
|
-
height: $modal-close-dimensions;
|
|
140
|
-
width: $modal-close-dimensions;
|
|
141
|
-
z-index: zindex('medium');
|
|
142
|
-
|
|
143
|
-
&:hover {
|
|
144
|
-
background-color: getColor('grey-light');
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
&::after,
|
|
148
|
-
&::before {
|
|
149
|
-
background-color: getColor('font');
|
|
150
|
-
}
|
|
146
|
+
&::after,
|
|
147
|
+
&::before {
|
|
148
|
+
background-color: getColor('font');
|
|
151
149
|
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.modal-title {
|
|
153
|
+
color: getColor('font');
|
|
154
|
+
font-family: $family-sans-serif;
|
|
155
|
+
font-size: $size-3;
|
|
156
|
+
font-weight: $weight-semibold;
|
|
157
|
+
line-height: 1.1;
|
|
158
|
+
background-color: getColor('background');
|
|
159
|
+
z-index: zindex('small');
|
|
160
|
+
position: sticky;
|
|
161
|
+
top: 0;
|
|
162
|
+
padding: 20px 0;
|
|
163
|
+
width: 100%;
|
|
164
|
+
word-wrap: break-word;
|
|
165
|
+
|
|
166
|
+
@include desktop {
|
|
167
|
+
font-size: $size-3-desktop;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
152
170
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
font-weight: $weight-semibold;
|
|
158
|
-
line-height: 1.1;
|
|
159
|
-
background-color: getColor('background');
|
|
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;
|
|
169
|
-
}
|
|
171
|
+
// version "panel" de la modal
|
|
172
|
+
&.is-panel {
|
|
173
|
+
&::after {
|
|
174
|
+
position: fixed;
|
|
170
175
|
}
|
|
171
176
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
+
.modal-content {
|
|
178
|
+
border-radius: 0;
|
|
179
|
+
position: fixed;
|
|
180
|
+
right: 0;
|
|
181
|
+
top: 0;
|
|
182
|
+
min-height: 100%;
|
|
183
|
+
height: 100%;
|
|
184
|
+
max-height: none;
|
|
185
|
+
margin: 0;
|
|
186
|
+
text-align: left;
|
|
187
|
+
display: flex;
|
|
188
|
+
flex-direction: column;
|
|
189
|
+
align-items: flex-start;
|
|
190
|
+
transform: translateX(100%);
|
|
191
|
+
|
|
192
|
+
@include tablet {
|
|
193
|
+
max-width: 375px;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.modal-footer {
|
|
197
|
+
margin-top: auto;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
177
200
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
top: 0;
|
|
183
|
-
min-height: 100%;
|
|
184
|
-
height: 100%;
|
|
185
|
-
max-height: none;
|
|
186
|
-
margin: 0;
|
|
187
|
-
text-align: left;
|
|
188
|
-
display: flex;
|
|
189
|
-
flex-direction: column;
|
|
190
|
-
align-items: flex-start;
|
|
191
|
-
|
|
192
|
-
@include tablet {
|
|
193
|
-
max-width: 375px;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
.modal-footer {
|
|
197
|
-
margin-top: auto;
|
|
198
|
-
}
|
|
199
|
-
}
|
|
201
|
+
&.is-active {
|
|
202
|
+
.modal-content {
|
|
203
|
+
transform: translateX(0);
|
|
204
|
+
}
|
|
200
205
|
}
|
|
206
|
+
}
|
|
201
207
|
}
|