@trilogy-ds/styles 0.0.1-alpha-prompt
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/assets/icons/all/alert.svg +1 -0
- package/dist/default/assets/icons/all/arrow-down.svg +1 -0
- package/dist/default/assets/icons/all/arrow-left.svg +1 -0
- package/dist/default/assets/icons/all/arrow-right.svg +1 -0
- package/dist/default/assets/icons/all/arrow-up.svg +1 -0
- package/dist/default/assets/icons/all/attachment.svg +1 -0
- package/dist/default/assets/icons/all/bell.svg +1 -0
- package/dist/default/assets/icons/all/calendar.svg +1 -0
- package/dist/default/assets/icons/all/check-circle.svg +1 -0
- package/dist/default/assets/icons/all/check.svg +1 -0
- package/dist/default/assets/icons/all/exclamation-circle.svg +1 -0
- package/dist/default/assets/icons/all/eye-slash.svg +1 -0
- package/dist/default/assets/icons/all/eye.svg +1 -0
- package/dist/default/assets/icons/all/file-attached.svg +1 -0
- package/dist/default/assets/icons/all/infos-circle.svg +1 -0
- package/dist/default/assets/icons/all/micro.svg +1 -0
- package/dist/default/assets/icons/all/search.svg +1 -0
- package/dist/default/assets/icons/all/times.svg +1 -0
- package/dist/default/assets/icons/all/trash.svg +1 -0
- package/dist/default/trilogy-mangled.css +1 -0
- package/dist/default/trilogy-partials.css +1 -0
- package/dist/default/trilogy.css +1 -0
- package/framework/src/_all.scss +8 -0
- package/framework/src/base/_all.scss +9 -0
- package/framework/src/base/_color.scss +7 -0
- package/framework/src/base/_elements.scss +34 -0
- package/framework/src/base/_fonts.scss +2 -0
- package/framework/src/base/_generic.scss +76 -0
- package/framework/src/base/_helpers.scss +875 -0
- package/framework/src/base/_loading.scss +109 -0
- package/framework/src/base/_reset.scss +148 -0
- package/framework/src/components/_accordion.scss +144 -0
- 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 +36 -0
- package/framework/src/components/_button.scss +79 -0
- package/framework/src/components/_calendar.scss +129 -0
- package/framework/src/components/_card.scss +244 -0
- package/framework/src/components/_checkbox.scss +71 -0
- package/framework/src/components/_chips.scss +84 -0
- package/framework/src/components/_container.scss +69 -0
- package/framework/src/components/_countdown.scss +57 -0
- package/framework/src/components/_date-picker.scss +58 -0
- package/framework/src/components/_divider.scss +52 -0
- package/framework/src/components/_dropdown.scss +195 -0
- package/framework/src/components/_fab.scss +47 -0
- package/framework/src/components/_flex-box.scss +994 -0
- package/framework/src/components/_icon.scss +384 -0
- package/framework/src/components/_image.scss +69 -0
- package/framework/src/components/_index.scss +51 -0
- package/framework/src/components/_link.scss +58 -0
- package/framework/src/components/_list.scss +66 -0
- package/framework/src/components/_loader.scss +126 -0
- package/framework/src/components/_modal.scss +232 -0
- package/framework/src/components/_otp.scss +73 -0
- package/framework/src/components/_pagination.scss +83 -0
- package/framework/src/components/_popover.scss +340 -0
- package/framework/src/components/_price.scss +184 -0
- package/framework/src/components/_product-tour.scss +129 -0
- package/framework/src/components/_prompt.scss +125 -0
- package/framework/src/components/_radio.scss +82 -0
- package/framework/src/components/_range.scss +85 -0
- package/framework/src/components/_scroll-view.scss +19 -0
- package/framework/src/components/_segmented-control.scss +62 -0
- package/framework/src/components/_select.scss +131 -0
- package/framework/src/components/_stepper.scss +217 -0
- package/framework/src/components/_sticker.scss +148 -0
- package/framework/src/components/_switch.scss +115 -0
- package/framework/src/components/_table.scss +244 -0
- package/framework/src/components/_tabs.scss +228 -0
- 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 +282 -0
- package/framework/src/components/_title.scss +151 -0
- package/framework/src/components/alert/_alert.scss +94 -0
- package/framework/src/components/alert/_index.scss +2 -0
- package/framework/src/components/alert/_toaster.scss +124 -0
- package/framework/src/components/input/_entry.scss +135 -0
- package/framework/src/components/input/_form.scss +602 -0
- 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/components/progress/_progress.scss +223 -0
- package/framework/src/elements/_index.scss +5 -0
- package/framework/src/elements/_other.scss +3 -0
- package/framework/src/elements/_plus-symbol.scss +32 -0
- package/framework/src/grid/_all.scss +3 -0
- package/framework/src/grid/_columns.scss +467 -0
- package/framework/src/grid/_rows.scss +54 -0
- package/framework/src/grid/_tiles.scss +78 -0
- package/framework/src/layout/_all.scss +5 -0
- package/framework/src/layout/_hero.scss +146 -0
- package/framework/src/layout/_main.scss +36 -0
- package/framework/src/layout/_section.scss +46 -0
- 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-core.scss +16 -0
- package/framework/src/trilogy-mangled.scss +14 -0
- package/framework/src/trilogy-namespaced.scss +14 -0
- package/framework/src/trilogy.scss +8 -0
- package/framework/src/utilities/_a11y.scss +13 -0
- package/framework/src/utilities/_all.scss +13 -0
- package/framework/src/utilities/_animations.scss +71 -0
- package/framework/src/utilities/_background.scss +21 -0
- package/framework/src/utilities/_controls.scss +56 -0
- package/framework/src/utilities/_derived-variables.scss +1 -0
- package/framework/src/utilities/_functions.scss +94 -0
- package/framework/src/utilities/_initial-variables.scss +10 -0
- package/framework/src/utilities/_post.scss +6 -0
- package/framework/src/utilities/_pre.scss +8 -0
- package/framework/src/utilities/_spacing.scss +10 -0
- package/framework/src/utilities/_tools.scss +3 -0
- 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 +294 -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 +174 -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 +28 -0
- package/themes/default/src/_all.scss +1 -0
- package/themes/default/src/assets.scss +11 -0
- package/themes/default/src/utilities/_all.scss +0 -0
- package/themes/default/src/utilities/_post.scss +0 -0
- package/themes/default/src/utilities/_pre.scss +3 -0
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
$loader-item-width: 60px;
|
|
2
|
+
$loader-item-height: 30px;
|
|
3
|
+
$loader-items-lateral-offset: -25px;
|
|
4
|
+
$loader-items-bottom-offset: -40px;
|
|
5
|
+
|
|
6
|
+
.loader {
|
|
7
|
+
width: $loader-item-width;
|
|
8
|
+
height: $loader-item-height;
|
|
9
|
+
background-color: transparent;
|
|
10
|
+
position: relative;
|
|
11
|
+
|
|
12
|
+
&::after,
|
|
13
|
+
&::before,
|
|
14
|
+
.loader-body {
|
|
15
|
+
content: '';
|
|
16
|
+
display: block;
|
|
17
|
+
width: $loader-item-width;
|
|
18
|
+
height: $loader-item-height;
|
|
19
|
+
border-radius: 9999px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.loader-body {
|
|
23
|
+
visibility: hidden;
|
|
24
|
+
background-color: getColor('accent');
|
|
25
|
+
animation: 2.5s linear 0s forwards infinite top_item;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&::after,
|
|
29
|
+
&::before {
|
|
30
|
+
position: absolute;
|
|
31
|
+
bottom: $loader-items-bottom-offset;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&::before {
|
|
35
|
+
width: 20px;
|
|
36
|
+
height: 20px;
|
|
37
|
+
left: calc(50% - 10px);
|
|
38
|
+
z-index: zindex('small');
|
|
39
|
+
background-color: getColor('font');
|
|
40
|
+
animation: 2.5s linear 0s forwards infinite left_item;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&::after {
|
|
44
|
+
width: 20px;
|
|
45
|
+
height: 20px;
|
|
46
|
+
right: calc(50% - 20px);
|
|
47
|
+
background-color: getColor('main');
|
|
48
|
+
animation: 2.5s linear 0s forwards infinite right_item;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@keyframes top_item {
|
|
52
|
+
0% {
|
|
53
|
+
visibility: visible;
|
|
54
|
+
transform: scale(0, 0);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
50% {
|
|
58
|
+
visibility: visible;
|
|
59
|
+
transform: scale(1, 0);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
65%,
|
|
63
|
+
100% {
|
|
64
|
+
visibility: visible;
|
|
65
|
+
transform: scale(1);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@keyframes left_item {
|
|
70
|
+
0% {
|
|
71
|
+
transform: rotate(55deg) scale(1);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
45% {
|
|
75
|
+
width: $loader-item-width;
|
|
76
|
+
height: $loader-item-height;
|
|
77
|
+
transform: rotate(55deg) scale(1);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
50%,
|
|
81
|
+
54% {
|
|
82
|
+
transform: rotate(55deg) scale(1.5);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
60% {
|
|
86
|
+
transform: rotate(55deg) scale(1);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
65%,
|
|
90
|
+
100% {
|
|
91
|
+
transform: rotate(55deg) scale(1);
|
|
92
|
+
width: $loader-item-width;
|
|
93
|
+
height: $loader-item-height;
|
|
94
|
+
left: $loader-items-lateral-offset;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@keyframes right_item {
|
|
99
|
+
0% {
|
|
100
|
+
transform: rotate(-55deg) scale(1);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
45% {
|
|
104
|
+
width: $loader-item-width;
|
|
105
|
+
height: $loader-item-height;
|
|
106
|
+
transform: rotate(-55deg) scale(1);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
50%,
|
|
110
|
+
54% {
|
|
111
|
+
transform: rotate(-55deg) scale(1.5);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
60% {
|
|
115
|
+
transform: rotate(-55deg) scale(1);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
65%,
|
|
119
|
+
100% {
|
|
120
|
+
transform: rotate(-55deg) scale(1);
|
|
121
|
+
width: $loader-item-width;
|
|
122
|
+
height: $loader-item-height;
|
|
123
|
+
right: $loader-items-lateral-offset;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
$modal-content-width: 640px !default;
|
|
2
|
+
$modal-content-margin-mobile: 20px !default;
|
|
3
|
+
$modal-close-dimensions: 40px !default;
|
|
4
|
+
$modal-dimensions: (
|
|
5
|
+
'xsmall': 40vw,
|
|
6
|
+
'small': 50vw,
|
|
7
|
+
'medium': 60vw,
|
|
8
|
+
'large': 70vw,
|
|
9
|
+
'xlarge': 80vw
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
body:has(.modal.is-active) {
|
|
13
|
+
height: 100%;
|
|
14
|
+
overflow: hidden
|
|
15
|
+
}
|
|
16
|
+
|
|
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 {
|
|
34
|
+
@include overlay;
|
|
35
|
+
|
|
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;
|
|
45
|
+
|
|
46
|
+
.modal-content {
|
|
47
|
+
transform: translateY(0);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@include tablet {
|
|
52
|
+
justify-content: center;
|
|
53
|
+
@each $name, $dimension in $modal-dimensions {
|
|
54
|
+
&.is-#{$name} {
|
|
55
|
+
.modal-content {
|
|
56
|
+
width: $dimension;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
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%);
|
|
79
|
+
|
|
80
|
+
@include tablet {
|
|
81
|
+
max-height: calc(100vh - 120px);
|
|
82
|
+
width: $modal-content-width;
|
|
83
|
+
border-radius: $radius;
|
|
84
|
+
}
|
|
85
|
+
|
|
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
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// If Close Icon Modal & Title Modal are sibling elements, override margin
|
|
105
|
+
.modal-close ~ .modal-title {
|
|
106
|
+
margin-top: -32px;
|
|
107
|
+
}
|
|
108
|
+
|
|
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) {
|
|
130
|
+
text-align: center;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
@include desktop {
|
|
134
|
+
font-size: $size-3-desktop;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.modal-close {
|
|
138
|
+
@include delete;
|
|
139
|
+
|
|
140
|
+
background-color: getColor('background');
|
|
141
|
+
display: block;
|
|
142
|
+
height: $modal-close-dimensions;
|
|
143
|
+
width: $modal-close-dimensions;
|
|
144
|
+
z-index: zindex('large');
|
|
145
|
+
|
|
146
|
+
#{$hoverSelector} {
|
|
147
|
+
background-color: getColor('neutral-fade');
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&::after,
|
|
151
|
+
&::before {
|
|
152
|
+
background-color: getColor('font');
|
|
153
|
+
}
|
|
154
|
+
|
|
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;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.modal-body {
|
|
167
|
+
padding: 0 $spacing-5 $spacing-5 ;
|
|
168
|
+
}
|
|
169
|
+
&:has(>.modal-footer) > .modal-body {
|
|
170
|
+
padding-bottom: 0;
|
|
171
|
+
}
|
|
172
|
+
|
|
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;
|
|
188
|
+
|
|
189
|
+
.buttons {
|
|
190
|
+
flex-direction: row;
|
|
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
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
.otp-list {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-wrap: nowrap;
|
|
4
|
+
|
|
5
|
+
.otp {
|
|
6
|
+
@include hover();
|
|
7
|
+
outline: none;
|
|
8
|
+
border: var(--border);
|
|
9
|
+
border-radius: var(--radius-small);
|
|
10
|
+
background: transparent;
|
|
11
|
+
width: 33px;
|
|
12
|
+
height: 40px;
|
|
13
|
+
margin: 4px 4px 0 4px;
|
|
14
|
+
text-align: center;
|
|
15
|
+
color: getColor('main');
|
|
16
|
+
|
|
17
|
+
&:first-child {
|
|
18
|
+
margin: 4px 4px 0 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&:last-child {
|
|
22
|
+
margin: 4px 0 0 4px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&.is-danger {
|
|
28
|
+
.otp {
|
|
29
|
+
border: 1px solid getColor('error');
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&.is-filled {
|
|
34
|
+
.otp {
|
|
35
|
+
color: getColor('font')
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&.is-focus {
|
|
40
|
+
.otp {
|
|
41
|
+
border: 1px solid getColor('font');;
|
|
42
|
+
color: getColor('font')
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
&.is-error {
|
|
48
|
+
.otp {
|
|
49
|
+
border: 1px solid getColor('error');
|
|
50
|
+
color: getColor('font')
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.otp-list:focus-within {
|
|
57
|
+
.otp {
|
|
58
|
+
border: 1px solid getColor('font');;
|
|
59
|
+
color: getColor('font');
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.otp-list.is-error:focus-within {
|
|
64
|
+
.otp {
|
|
65
|
+
border: 1px solid getColor('error');
|
|
66
|
+
color: getColor('font');
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.help {
|
|
71
|
+
font-size: $text-12;
|
|
72
|
+
margin-top: 4px;
|
|
73
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
.pagination {
|
|
2
|
+
font-size: $size-normal;
|
|
3
|
+
margin: -2.5px;
|
|
4
|
+
align-items: center;
|
|
5
|
+
display: flex;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
text-align: center;
|
|
8
|
+
|
|
9
|
+
.pagination-previous,
|
|
10
|
+
.pagination-next,
|
|
11
|
+
.pagination-link,
|
|
12
|
+
.pagination-ellipsis {
|
|
13
|
+
@include control;
|
|
14
|
+
@include unselectable;
|
|
15
|
+
font-size: 1em;
|
|
16
|
+
padding-left: 0.5em;
|
|
17
|
+
padding-right: 0.5em;
|
|
18
|
+
justify-content: center;
|
|
19
|
+
margin: 2.5px;
|
|
20
|
+
text-align: center;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.pagination-previous,
|
|
24
|
+
.pagination-next,
|
|
25
|
+
.pagination-link,
|
|
26
|
+
.pagination-ellipsis {
|
|
27
|
+
@include hover();
|
|
28
|
+
color: getColor('font');
|
|
29
|
+
min-width: 2.25em;
|
|
30
|
+
height: 35px;
|
|
31
|
+
width: 35px;
|
|
32
|
+
border-radius: 9999px;
|
|
33
|
+
padding-left: 0.75em;
|
|
34
|
+
padding-right: 0.75em;
|
|
35
|
+
white-space: nowrap;
|
|
36
|
+
|
|
37
|
+
&[aria-disabled=true]{
|
|
38
|
+
border-color: transparent !important;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.pagination-list {
|
|
43
|
+
flex: 0 0 auto;
|
|
44
|
+
flex-wrap: wrap;
|
|
45
|
+
align-items: center;
|
|
46
|
+
display: flex;
|
|
47
|
+
justify-content: center;
|
|
48
|
+
text-align: center;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.pagination-previous {
|
|
52
|
+
order: 1;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.pagination-list {
|
|
56
|
+
order: 2;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.pagination-next {
|
|
60
|
+
order: 3;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.pagination-link {
|
|
64
|
+
&[aria-current] {
|
|
65
|
+
background-color: getColor('font');
|
|
66
|
+
color: getColor('background');
|
|
67
|
+
#{$hoverSelector}, &:focus, &:focus-within {
|
|
68
|
+
background: linear-gradient(
|
|
69
|
+
to top,
|
|
70
|
+
rgba(0, 0, 0, 0.25),
|
|
71
|
+
rgba(0, 0, 0, 0.25)
|
|
72
|
+
) getColor('font') !important;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.pagination-ellipsis {
|
|
78
|
+
pointer-events: none;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
|