@trilogy-ds/styles 0.0.1-beta-4 → 0.0.1-beta.10

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.
Files changed (86) hide show
  1. package/README.md +47 -0
  2. package/dist/default/trilogy-mangled.css +1 -1
  3. package/dist/default/trilogy-partials.css +1 -1
  4. package/dist/default/trilogy.css +1 -1
  5. package/framework/src/base/_color.scss +14 -36
  6. package/framework/src/base/_generic.scss +4 -1
  7. package/framework/src/base/_helpers.scss +10 -29
  8. package/framework/src/base/_loading.scss +7 -0
  9. package/framework/src/components/_accordion.scss +10 -36
  10. package/framework/src/components/_all.scss +0 -3
  11. package/framework/src/components/_breadcrumb.scss +39 -34
  12. package/framework/src/components/_card.scss +6 -5
  13. package/framework/src/components/_countdown.scss +49 -47
  14. package/framework/src/components/_disclaimer.scss +6 -5
  15. package/framework/src/components/_divider.scss +2 -2
  16. package/framework/src/components/_dropdown.scss +95 -101
  17. package/framework/src/components/_fab.scss +6 -21
  18. package/framework/src/components/_media.scss +2 -2
  19. package/framework/src/components/_modal.scss +172 -166
  20. package/framework/src/components/_otp.scss +9 -28
  21. package/framework/src/components/_pagination.scss +109 -131
  22. package/framework/src/components/_plus-symbol.scss +1 -1
  23. package/framework/src/components/_popover.scss +1 -4
  24. package/framework/src/components/_price.scss +118 -169
  25. package/framework/src/components/_product-tour.scss +1 -3
  26. package/framework/src/components/_segmented-control.scss +39 -51
  27. package/framework/src/components/_slider.scss +70 -70
  28. package/framework/src/components/_stepper.scss +16 -140
  29. package/framework/src/components/_tabs.scss +32 -55
  30. package/framework/src/components/_timeline.scss +49 -42
  31. package/framework/src/elements/_alert.scss +4 -5
  32. package/framework/src/elements/_all.scss +0 -2
  33. package/framework/src/elements/_badge.scss +54 -59
  34. package/framework/src/elements/_box.scss +5 -23
  35. package/framework/src/elements/_button.scss +29 -129
  36. package/framework/src/elements/_checkbox.scss +21 -27
  37. package/framework/src/elements/_chips.scss +76 -81
  38. package/framework/src/elements/_entry.scss +73 -89
  39. package/framework/src/elements/_form.scss +15 -15
  40. package/framework/src/elements/_input-gauge.scss +36 -32
  41. package/framework/src/elements/_link.scss +47 -62
  42. package/framework/src/elements/_list.scss +0 -36
  43. package/framework/src/elements/_notification.scss +2 -3
  44. package/framework/src/elements/_other.scss +1 -1
  45. package/framework/src/elements/_paragraph.scss +4 -26
  46. package/framework/src/elements/_progress.scss +9 -18
  47. package/framework/src/elements/_radio.scss +1 -1
  48. package/framework/src/elements/_select.scss +209 -245
  49. package/framework/src/elements/_sticker.scss +8 -9
  50. package/framework/src/elements/_switch.scss +85 -88
  51. package/framework/src/elements/_table.scss +11 -72
  52. package/framework/src/elements/_tag.scss +104 -104
  53. package/framework/src/elements/_textarea.scss +92 -106
  54. package/framework/src/elements/_title.scss +86 -84
  55. package/framework/src/elements/_toaster.scss +2 -3
  56. package/framework/src/grid/_columns.scss +5 -5
  57. package/framework/src/layout/_hero.scss +129 -211
  58. package/framework/src/layout/_section.scss +3 -3
  59. package/framework/src/layout/_toolbar.scss +6 -6
  60. package/framework/src/utilities/_controls.scss +37 -39
  61. package/framework/src/utilities/_derived-variables.scss +3 -14
  62. package/framework/src/utilities/_initial-variables.scss +38 -23
  63. package/framework/src/utilities/_mixins.scss +522 -582
  64. package/package.json +4 -3
  65. package/framework/src/components/_menu.scss +0 -213
  66. package/framework/src/components/_search-modal.scss +0 -197
  67. package/framework/src/components/_slices.scss +0 -316
  68. package/framework/src/components/_switch.scss +0 -209
  69. package/framework/src/elements/_checkradio.scss +0 -173
  70. package/framework/src/elements/_options.scss +0 -146
  71. package/framework/src/elements/_timeline.scss +0 -283
  72. /package/dist/default/assets/icons/all/{all/alert.svg → alert.svg} +0 -0
  73. /package/dist/default/assets/icons/all/{all/arrow-down.svg → arrow-down.svg} +0 -0
  74. /package/dist/default/assets/icons/all/{all/arrow-left.svg → arrow-left.svg} +0 -0
  75. /package/dist/default/assets/icons/all/{all/arrow-right.svg → arrow-right.svg} +0 -0
  76. /package/dist/default/assets/icons/all/{all/arrow-up.svg → arrow-up.svg} +0 -0
  77. /package/dist/default/assets/icons/all/{all/bell.svg → bell.svg} +0 -0
  78. /package/dist/default/assets/icons/all/{all/check-circle.svg → check-circle.svg} +0 -0
  79. /package/dist/default/assets/icons/all/{all/check.svg → check.svg} +0 -0
  80. /package/dist/default/assets/icons/all/{all/exclamation-circle.svg → exclamation-circle.svg} +0 -0
  81. /package/dist/default/assets/icons/all/{all/eye-slash.svg → eye-slash.svg} +0 -0
  82. /package/dist/default/assets/icons/all/{all/eye.svg → eye.svg} +0 -0
  83. /package/dist/default/assets/icons/all/{all/infos-circle.svg → infos-circle.svg} +0 -0
  84. /package/dist/default/assets/icons/all/{all/search.svg → search.svg} +0 -0
  85. /package/dist/default/assets/icons/all/{all/times.svg → times.svg} +0 -0
  86. /package/dist/default/assets/icons/all/{all/trash.svg → trash.svg} +0 -0
@@ -1,128 +1,122 @@
1
1
  .dropdown {
2
- display: inline-flex;
3
- position: relative;
4
- vertical-align: top;
5
- width: 100%;
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
- 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;
7
+ #{$hoverSelector}, &:active {
8
+ .dropdown-menu {
9
+ display: block;
21
10
  }
11
+ }
22
12
 
23
- &.is-active {
24
- .dropdown-menu {
25
- z-index: zindex('dropdown');
26
-
27
- .dropdown-content {
28
- border: 1px solid getColor('alternate');;
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
- &.is-right {
34
- .dropdown-menu {
35
- left: auto;
36
- right: 0;
37
- }
29
+ &.is-right {
30
+ .dropdown-menu {
31
+ left: auto;
32
+ right: 0;
38
33
  }
34
+ }
39
35
 
40
- &.is-up {
41
- .dropdown-menu {
42
- bottom: 100%;
43
- padding-bottom: $spacing-1;
44
- padding-top: initial;
45
- top: auto;
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
- .react-autosuggest__container {
50
- width: 100%;
45
+ .react-autosuggest__container {
46
+ width: 100%;
51
47
 
52
- .dropdown-menu .dropdown-content {
53
- overflow-y: auto;
54
- max-height: 25vh;
48
+ .dropdown-menu .dropdown-content {
49
+ overflow-y: auto;
50
+ max-height: 25vh;
55
51
 
56
- .dropdown-item {
57
- cursor: pointer;
58
- }
59
- }
52
+ .dropdown-item {
53
+ cursor: pointer;
54
+ }
60
55
  }
56
+ }
61
57
 
62
- .dropdown-trigger {
63
- width: 100%;
58
+ .dropdown-trigger {
59
+ width: 100%;
64
60
 
65
- .select {
66
- cursor: pointer;
61
+ .select {
62
+ cursor: pointer;
67
63
 
68
- select {
69
- pointer-events: none;
70
- }
71
- }
64
+ select {
65
+ pointer-events: none;
66
+ }
72
67
  }
73
-
74
- .dropdown-menu {
75
- display: none;
76
- left: 0;
77
- min-width: 120px;
78
- padding-top: $spacing-1;
79
- position: absolute;
80
- top: 100%;
81
- width: 100%;
82
- z-index: 20;
83
-
84
- .dropdown-content {
85
- border-radius: 8px;
86
- box-shadow: 0 2px 3px rgba(#000, 0.1),
87
- 0 0 0 1px rgba(#000, 0.1);
88
- font-size: inherit;
89
- padding: 5px 10px;
90
-
91
- .dropdown-item {
92
- display: block;
93
- font-size: inherit;
94
- line-height: 1.5;
95
- padding: 3.75px 10px;
96
- position: relative;
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
- .control.has-dynamic-placeholder .select > select:active ~ label,
102
- .control.has-dynamic-placeholder .select > select:focus ~ label {
103
- display: flex;
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
- a.dropdown-item {
108
- padding-right: 30px;
109
- white-space: nowrap;
102
+ .dropdown-item {
103
+ @include hover();
104
+ }
110
105
 
111
- &:hover {
112
- background-color: getColor('background');
113
- color: invertColor('background');;
114
- }
106
+ a.dropdown-item {
107
+ padding-right: 30px;
108
+ white-space: nowrap;
115
109
 
116
- &.is-active {
117
- background-color: getColor('alternate');
118
- color: invertColor('alternate');
119
- }
110
+ &.is-active {
111
+ background-color: getColor('main');
112
+ color: invertColor('main');
113
+ }
120
114
  }
121
115
 
122
116
  .dropdown-divider {
123
- background-color: rgba(getColor('grey'), 0.5);
124
- border: none;
125
- display: block;
126
- height: 1px;
127
- margin: 5px 0;
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('alternate');
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: 0 3px 6px rgba(0, 0, 0, 0.2);
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
- &:hover, &.is-extended {
24
- background-color: getVariantColor('alternate',1);
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: getVariantColor('alternate', 5);
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 getColor('grey-lighter');
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 getColor('grey-lighter');
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
- 'xsmall': 40vw,
6
- 'small': 50vw,
7
- 'medium': 60vw,
8
- 'large': 70vw,
9
- 'xlarge': 80vw
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
- height: 100%;
14
- overflow: hidden
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
- 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:
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
- content: '';
38
- background-color: rgba(#000, 0.86);
46
+ .modal-content {
47
+ transform: translateY(0);
39
48
  }
49
+ }
40
50
 
41
- &.is-active {
42
- opacity: 1;
43
- visibility: inherit;
44
- transition:
45
- opacity 250ms ease-in-out,
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
- transform: translateY(0);
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
- justify-content: center;
55
- @each $dimension in $dimensions-extended {
56
- &.is-#{$dimension} {
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
- // spécificité pour le bouton en position: relative par défaut
65
- .button {
66
- position: static;
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
- // ancien overlay : n'a plus d'utilité mais conservée pour rétrocompatibilité
70
- .modal-background {
71
- display: none;
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
- .modal-content {
75
- background-color: getColor('background');
76
- border-radius: $radius $radius 0 0;
77
- color: getColor('font');
78
- overflow: auto;
79
- position: relative;
80
- padding: 0 30px 30px;
81
- margin: 0 $modal-content-margin-mobile;
82
- max-height: calc(100vh - 40px);
83
- text-align: center;
84
- width: 100%;
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
- }
92
-
93
- @include tablet {
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
- .modal-close {
132
- @include delete;
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
- .modal-title {
154
- color: getColor('font');
155
- font-family: $family-sans-serif;
156
- font-size: $size-3;
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
- // version "panel" de la modal
173
- &.is-panel {
174
- &::after {
175
- position: fixed;
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
- .modal-content {
179
- border-radius: 0;
180
- position: fixed;
181
- right: 0;
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
  }