@trilogy-ds/styles 0.0.1-beta-3 → 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.
- 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 +10 -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 +522 -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
|
@@ -3,15 +3,17 @@
|
|
|
3
3
|
flex-wrap: nowrap;
|
|
4
4
|
|
|
5
5
|
.otp {
|
|
6
|
+
@include hover();
|
|
6
7
|
outline: none;
|
|
7
8
|
border: 1px solid currentColor;
|
|
8
|
-
border-radius:
|
|
9
|
+
border-radius: $radius-small;
|
|
9
10
|
background: transparent;
|
|
10
11
|
width: 33px;
|
|
11
12
|
height: 40px;
|
|
12
13
|
margin: 4px 4px 0 4px;
|
|
13
14
|
text-align: center;
|
|
14
|
-
color: getColor('
|
|
15
|
+
color: getColor('neutral');
|
|
16
|
+
|
|
15
17
|
&:first-child {
|
|
16
18
|
margin: 4px 4px 0 0;
|
|
17
19
|
}
|
|
@@ -24,13 +26,7 @@
|
|
|
24
26
|
|
|
25
27
|
&.is-danger {
|
|
26
28
|
.otp {
|
|
27
|
-
border:
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&.is-tertiary {
|
|
32
|
-
.otp {
|
|
33
|
-
border: 2px solid getColor('font');
|
|
29
|
+
border: 1px solid getColor('error');
|
|
34
30
|
}
|
|
35
31
|
}
|
|
36
32
|
|
|
@@ -42,7 +38,7 @@
|
|
|
42
38
|
|
|
43
39
|
&.is-focus {
|
|
44
40
|
.otp {
|
|
45
|
-
border:
|
|
41
|
+
border: 1px solid getColor('font');;
|
|
46
42
|
color: getColor('font')
|
|
47
43
|
}
|
|
48
44
|
}
|
|
@@ -50,38 +46,23 @@
|
|
|
50
46
|
|
|
51
47
|
&.is-error {
|
|
52
48
|
.otp {
|
|
53
|
-
border:
|
|
49
|
+
border: 1px solid getColor('error');
|
|
54
50
|
color: getColor('font')
|
|
55
51
|
}
|
|
56
52
|
}
|
|
57
53
|
|
|
58
|
-
&.is-tertiary {
|
|
59
|
-
.otp {
|
|
60
|
-
border: 2px solid getColor('font');
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&.is-disabled {
|
|
65
|
-
.otp {
|
|
66
|
-
border: none !important;
|
|
67
|
-
background: getColor('grey-disabled');
|
|
68
|
-
pointer-events: none;
|
|
69
|
-
color: getColor('grey');
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
54
|
}
|
|
74
55
|
|
|
75
56
|
.otp-list:focus-within {
|
|
76
57
|
.otp {
|
|
77
|
-
border:
|
|
58
|
+
border: 1px solid getColor('font');;
|
|
78
59
|
color: getColor('font');
|
|
79
60
|
}
|
|
80
61
|
}
|
|
81
62
|
|
|
82
63
|
.otp-list.is-error:focus-within {
|
|
83
64
|
.otp {
|
|
84
|
-
border:
|
|
65
|
+
border: 1px solid getColor('error');
|
|
85
66
|
color: getColor('font');
|
|
86
67
|
}
|
|
87
68
|
}
|
|
@@ -1,182 +1,160 @@
|
|
|
1
1
|
.pagination {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.pagination-link {
|
|
16
|
-
height: 35px;
|
|
17
|
-
border-radius: $radius-rounded;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.pagination-list {
|
|
21
|
-
flex: 0 0 auto;
|
|
22
|
-
|
|
23
|
-
.pagination-link {
|
|
24
|
-
&.is-current {
|
|
25
|
-
background: getColor('alternate');
|
|
26
|
-
border-color: currentColor;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
2
|
+
font-size: $size-normal;
|
|
3
|
+
margin: -2.5px;
|
|
4
|
+
|
|
5
|
+
&.is-rounded {
|
|
6
|
+
.pagination-previous,
|
|
7
|
+
.pagination-next {
|
|
8
|
+
padding-left: 1em;
|
|
9
|
+
padding-right: 1em;
|
|
10
|
+
height: 35px;
|
|
11
|
+
width: 35px;
|
|
12
|
+
border-radius: $radius-rounded;
|
|
30
13
|
}
|
|
14
|
+
|
|
15
|
+
.pagination-link {
|
|
16
|
+
height: 35px;
|
|
17
|
+
border-radius: $radius-rounded;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.pagination-list {
|
|
21
|
+
flex: 0 0 auto;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
31
24
|
}
|
|
32
25
|
|
|
33
26
|
.pagination,
|
|
34
27
|
.pagination-list {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
28
|
+
align-items: center;
|
|
29
|
+
display: flex;
|
|
30
|
+
justify-content: center;
|
|
31
|
+
text-align: center;
|
|
39
32
|
}
|
|
40
33
|
|
|
41
34
|
.pagination-previous,
|
|
42
35
|
.pagination-next,
|
|
43
36
|
.pagination-link,
|
|
44
37
|
.pagination-ellipsis {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
38
|
+
@include control;
|
|
39
|
+
@include unselectable;
|
|
40
|
+
|
|
41
|
+
font-size: 1em;
|
|
42
|
+
padding-left: 0.5em;
|
|
43
|
+
padding-right: 0.5em;
|
|
44
|
+
justify-content: center;
|
|
45
|
+
margin: 2.5px;
|
|
46
|
+
text-align: center;
|
|
54
47
|
}
|
|
55
48
|
|
|
56
49
|
.pagination-previous,
|
|
57
50
|
.pagination-next,
|
|
58
51
|
.pagination-link {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
min-width: 2.25em;
|
|
52
|
+
color: getColor('neutral-dark');
|
|
53
|
+
min-width: 2.25em;
|
|
62
54
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
&:focus {
|
|
68
|
-
border-color: getVariantColor('alternate',2);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&:active {
|
|
72
|
-
box-shadow: inset 0 1px 2px getColor('grey-dark');
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
&[disabled] {
|
|
76
|
-
background-color: getColor('grey-lighter');
|
|
77
|
-
border-color: currentColor;
|
|
78
|
-
box-shadow: none;
|
|
79
|
-
color: getColor('grey');
|
|
80
|
-
opacity: 0.5;
|
|
81
|
-
}
|
|
55
|
+
@include hover();
|
|
56
|
+
|
|
82
57
|
}
|
|
83
58
|
|
|
84
59
|
.pagination-previous,
|
|
85
60
|
.pagination-next {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
61
|
+
padding-left: 0.75em;
|
|
62
|
+
padding-right: 0.75em;
|
|
63
|
+
white-space: nowrap;
|
|
89
64
|
}
|
|
90
65
|
|
|
91
66
|
.pagination-link {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
67
|
+
&.is-current {
|
|
68
|
+
background-color: getColor('font');
|
|
69
|
+
color: getColor('background');
|
|
70
|
+
|
|
71
|
+
#{$hoverSelector}, &:focus, &:focus-within {
|
|
72
|
+
background-color: getColor('hovered');
|
|
96
73
|
}
|
|
74
|
+
}
|
|
97
75
|
}
|
|
98
76
|
|
|
99
77
|
.pagination-ellipsis {
|
|
100
|
-
|
|
101
|
-
|
|
78
|
+
color: getBGColor('neutral-dark');
|
|
79
|
+
pointer-events: none;
|
|
102
80
|
}
|
|
103
81
|
|
|
104
82
|
.pagination-list {
|
|
105
|
-
|
|
83
|
+
flex-wrap: wrap;
|
|
106
84
|
}
|
|
107
85
|
|
|
108
86
|
@include mobile {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}
|
|
87
|
+
.pagination {
|
|
88
|
+
flex-wrap: wrap;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.pagination-previous,
|
|
92
|
+
.pagination-next {
|
|
93
|
+
flex-grow: 1;
|
|
94
|
+
flex-shrink: 1;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.pagination-list {
|
|
98
|
+
li {
|
|
99
|
+
flex-grow: 1;
|
|
100
|
+
flex-shrink: 1;
|
|
124
101
|
}
|
|
102
|
+
}
|
|
125
103
|
}
|
|
126
104
|
|
|
127
105
|
@include tablet {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
106
|
+
.pagination-list {
|
|
107
|
+
flex-grow: 1;
|
|
108
|
+
flex-shrink: 1;
|
|
109
|
+
justify-content: flex-start;
|
|
110
|
+
order: 1;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.pagination-previous {
|
|
114
|
+
order: 2;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.pagination-next {
|
|
118
|
+
order: 3;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.pagination {
|
|
122
|
+
justify-content: space-between;
|
|
123
|
+
|
|
124
|
+
&.is-centered {
|
|
125
|
+
.pagination-previous {
|
|
132
126
|
order: 1;
|
|
133
|
-
|
|
127
|
+
}
|
|
134
128
|
|
|
135
|
-
|
|
129
|
+
.pagination-list {
|
|
130
|
+
justify-content: center;
|
|
136
131
|
order: 2;
|
|
137
|
-
|
|
132
|
+
}
|
|
138
133
|
|
|
139
|
-
|
|
134
|
+
.pagination-next {
|
|
140
135
|
order: 3;
|
|
136
|
+
}
|
|
141
137
|
}
|
|
142
138
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
.pagination-next {
|
|
157
|
-
order: 3;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
&.is-right {
|
|
162
|
-
.pagination-previous {
|
|
163
|
-
order: 1;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.pagination-next {
|
|
167
|
-
order: 2;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.pagination-list {
|
|
171
|
-
justify-content: flex-end;
|
|
172
|
-
order: 3;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
139
|
+
&.is-right {
|
|
140
|
+
.pagination-previous {
|
|
141
|
+
order: 1;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.pagination-next {
|
|
145
|
+
order: 2;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.pagination-list {
|
|
149
|
+
justify-content: flex-end;
|
|
150
|
+
order: 3;
|
|
151
|
+
}
|
|
175
152
|
}
|
|
153
|
+
}
|
|
176
154
|
}
|
|
177
155
|
|
|
178
156
|
@include desktop {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
157
|
+
.pagination {
|
|
158
|
+
justify-content: center;
|
|
159
|
+
}
|
|
182
160
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
$plus-symbol-size: 40px;
|
|
2
2
|
|
|
3
|
-
@mixin plus-symbol($color:
|
|
3
|
+
@mixin plus-symbol($color: getBGColor('neutral-dark'), $text-color: getColor('neutral-dark')) {
|
|
4
4
|
&::after {
|
|
5
5
|
content: "+";
|
|
6
6
|
display: inline-block;
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
|
|
69
69
|
.popover {
|
|
70
70
|
position: relative;
|
|
71
|
-
display: inline-
|
|
71
|
+
display: inline-flex;
|
|
72
72
|
|
|
73
73
|
.popover-content {
|
|
74
74
|
@include position-top();
|
|
@@ -79,7 +79,6 @@
|
|
|
79
79
|
color: getColor('background');
|
|
80
80
|
display: inline-block;
|
|
81
81
|
font-size: 12px;
|
|
82
|
-
opacity: 0.95;
|
|
83
82
|
visibility: hidden;
|
|
84
83
|
padding: $spacing-2;
|
|
85
84
|
font-weight: 500;
|
|
@@ -329,12 +328,10 @@
|
|
|
329
328
|
|
|
330
329
|
&.is-popover-active .popover-content,
|
|
331
330
|
&:hover .popover-content {
|
|
332
|
-
opacity: 1;
|
|
333
331
|
visibility: visible;
|
|
334
332
|
}
|
|
335
333
|
|
|
336
334
|
.popover-trigger:focus ~ .popover-content {
|
|
337
|
-
opacity: 1;
|
|
338
335
|
visibility: visible;
|
|
339
336
|
}
|
|
340
337
|
}
|