@trilogy-ds/styles 0.0.1-beta.5 → 0.0.1-beta.50
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 +20 -37
- package/framework/src/base/_loading.scss +8 -1
- package/framework/src/base/_reset.scss +8 -3
- package/framework/src/components/_accordion.scss +40 -86
- package/framework/src/components/_all.scss +0 -6
- package/framework/src/components/_breadcrumb.scss +39 -34
- package/framework/src/components/_card.scss +7 -78
- package/framework/src/components/_countdown.scss +49 -47
- package/framework/src/components/_divider.scss +2 -2
- package/framework/src/components/_fab.scss +12 -26
- package/framework/src/components/_level.scss +1 -1
- package/framework/src/components/_media.scss +2 -2
- package/framework/src/components/_modal.scss +167 -166
- package/framework/src/components/_otp.scss +9 -28
- package/framework/src/components/_pagination.scss +104 -133
- package/framework/src/components/_plus-symbol.scss +1 -1
- package/framework/src/components/_popover.scss +255 -255
- package/framework/src/components/_price.scss +196 -166
- package/framework/src/components/_product-tour.scss +2 -4
- package/framework/src/components/_range.scss +73 -72
- package/framework/src/components/_segmented-control.scss +37 -51
- package/framework/src/components/_stepper.scss +18 -142
- package/framework/src/components/_tabs.scss +32 -59
- package/framework/src/components/_timeline.scss +52 -45
- package/framework/src/elements/_alert.scss +5 -8
- package/framework/src/elements/_all.scss +1 -3
- package/framework/src/elements/_autocomplete.scss +32 -0
- package/framework/src/elements/_badge.scss +54 -59
- package/framework/src/elements/_box.scss +8 -115
- package/framework/src/elements/_button.scss +15 -133
- package/framework/src/elements/_checkbox.scss +21 -27
- package/framework/src/elements/_chips.scss +74 -83
- package/framework/src/elements/_dot.scss +1 -1
- package/framework/src/elements/_entry.scss +76 -88
- package/framework/src/elements/_form.scss +17 -15
- package/framework/src/elements/_icon.scss +3 -3
- package/framework/src/elements/_input-gauge.scss +32 -33
- package/framework/src/elements/_input-icons.scss +33 -31
- package/framework/src/elements/_link.scss +38 -65
- package/framework/src/elements/_list.scss +38 -46
- package/framework/src/elements/_loader.scss +1 -1
- package/framework/src/elements/_other.scss +2 -2
- package/framework/src/elements/_paragraph.scss +4 -26
- package/framework/src/elements/_progress.scss +12 -21
- package/framework/src/elements/_radio.scss +2 -2
- package/framework/src/elements/_select.scss +84 -301
- package/framework/src/elements/_sticker.scss +12 -27
- package/framework/src/elements/_switch.scss +85 -88
- package/framework/src/elements/_table.scss +173 -226
- package/framework/src/elements/_tag.scss +104 -105
- package/framework/src/elements/_textarea.scss +95 -105
- package/framework/src/elements/_title.scss +89 -87
- package/framework/src/elements/_toaster.scss +3 -4
- package/framework/src/grid/_columns.scss +5 -5
- package/framework/src/layout/_all.scss +0 -1
- package/framework/src/layout/_hero.scss +109 -207
- package/framework/src/layout/_section.scss +7 -14
- package/framework/src/theming/_all.scss +3 -0
- package/framework/src/theming/buttons_partial.scss +30 -0
- package/framework/src/theming/common_partials.scss +9 -0
- package/framework/src/theming/links_partial.scss +20 -0
- package/framework/src/utilities/_all.scss +3 -0
- package/framework/src/utilities/_background.scss +15 -0
- package/framework/src/utilities/_controls.scss +37 -48
- package/framework/src/utilities/_derived-variables.scss +3 -14
- package/framework/src/utilities/_initial-variables.scss +22 -26
- package/framework/src/utilities/_mixins.scss +481 -593
- package/framework/src/utilities/_pre.scss +1 -0
- package/package.json +3 -2
- package/framework/src/components/_disclaimer.scss +0 -84
- package/framework/src/components/_dropdown.scss +0 -128
- 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/_slider.scss +0 -92
- package/framework/src/components/_switch.scss +0 -209
- package/framework/src/elements/_checkradio.scss +0 -173
- package/framework/src/elements/_notification.scss +0 -151
- package/framework/src/elements/_options.scss +0 -146
- package/framework/src/elements/_timeline.scss +0 -283
- package/framework/src/layout/_toolbar.scss +0 -100
|
@@ -1,133 +1,5 @@
|
|
|
1
1
|
@use "sass:math";
|
|
2
2
|
|
|
3
|
-
$step-width: 30px;
|
|
4
|
-
$step-font-size: 18px;
|
|
5
|
-
$step-gap: $step-width;
|
|
6
|
-
$step-gap-desktop: $step-width * 3;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
// old stepper , déprécié since ( v2 )
|
|
10
|
-
.stepper {
|
|
11
|
-
display: inline-flex;
|
|
12
|
-
position: relative;
|
|
13
|
-
|
|
14
|
-
@include mobile {
|
|
15
|
-
&::after {
|
|
16
|
-
content: attr(data-label-mobile);
|
|
17
|
-
position: absolute;
|
|
18
|
-
bottom: 0;
|
|
19
|
-
width: 100%;
|
|
20
|
-
font-weight: $weight-semibold;
|
|
21
|
-
color: getColor('alternate');
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.step {
|
|
26
|
-
position: relative;
|
|
27
|
-
z-index: zindex('void');
|
|
28
|
-
display: inline-flex;
|
|
29
|
-
justify-content: center;
|
|
30
|
-
align-items: center;
|
|
31
|
-
width: $step-width;
|
|
32
|
-
height: $step-width;
|
|
33
|
-
border-radius: 100%;
|
|
34
|
-
background: getColor('grey-disabled');
|
|
35
|
-
color: getColor('background');
|
|
36
|
-
font-size: $step-font-size;
|
|
37
|
-
transition: background .15s ease;
|
|
38
|
-
|
|
39
|
-
&.is-done {
|
|
40
|
-
background: getColor('font');
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&.is-current,
|
|
44
|
-
&.is-active {
|
|
45
|
-
background: getColor('alternate');
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.step + .step {
|
|
50
|
-
margin-left: $step-gap;
|
|
51
|
-
|
|
52
|
-
@include desktop {
|
|
53
|
-
margin-left: $step-gap-desktop;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&::before {
|
|
57
|
-
content: '';
|
|
58
|
-
height: 4px;
|
|
59
|
-
width: $step-gap;
|
|
60
|
-
display: block;
|
|
61
|
-
position: absolute;
|
|
62
|
-
z-index: zindex('subzero');
|
|
63
|
-
left: -$step-gap;
|
|
64
|
-
top: 50%;
|
|
65
|
-
transform: translateY(-50%);
|
|
66
|
-
transition: background .15s ease;
|
|
67
|
-
background-color: getColor('grey-disabled');
|
|
68
|
-
|
|
69
|
-
@include desktop {
|
|
70
|
-
width: $step-gap-desktop;
|
|
71
|
-
margin-left: -$step-gap-desktop + $step-width;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// done steps successively
|
|
77
|
-
.step.is-done + .step.is-done::before {
|
|
78
|
-
background: getColor('font');
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
// done step followed by current step
|
|
82
|
-
.step.is-done + .step.is-current::before {
|
|
83
|
-
background: linear-gradient(90deg, getColor('font'), getColor('alternate'));
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
// active step followed by done step(s)
|
|
87
|
-
.step.is-active + .step.is-done::before {
|
|
88
|
-
background: linear-gradient(90deg, getColor('alternate'), getColor('font'));
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
// current step followed by unvisited step(s)
|
|
92
|
-
.step.is-current + .step::before {
|
|
93
|
-
background: linear-gradient(90deg, getColor('alternate'), getColor('grey-disabled') 75%);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// labels
|
|
97
|
-
.step[data-label] {
|
|
98
|
-
margin-bottom: 40px;
|
|
99
|
-
|
|
100
|
-
&::after {
|
|
101
|
-
position: absolute;
|
|
102
|
-
left: -$step-gap-desktop * 0.5;
|
|
103
|
-
right: -$step-gap-desktop * 0.5;
|
|
104
|
-
color: getColor('grey');
|
|
105
|
-
font-size: $size-7;
|
|
106
|
-
font-weight: $weight-semibold;
|
|
107
|
-
top: 50px;
|
|
108
|
-
text-align: center;
|
|
109
|
-
|
|
110
|
-
@include desktop {
|
|
111
|
-
content: attr(data-label);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
// active or current step
|
|
116
|
-
&.is-current::after,
|
|
117
|
-
&.is-active::after {
|
|
118
|
-
color: getColor('alternate');
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
// back to grey label when going back in steps: the current step is followed by the active step
|
|
124
|
-
.step[data-label].is-active ~ .step[data-label].is-current::after {
|
|
125
|
-
color: getColor('grey');
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
// Nouveau stepper
|
|
130
|
-
|
|
131
3
|
.stepper-wrapper {
|
|
132
4
|
display: flex;
|
|
133
5
|
position: relative;
|
|
@@ -148,22 +20,24 @@ $step-gap-desktop: $step-width * 3;
|
|
|
148
20
|
width: 100%;
|
|
149
21
|
padding: $spacing-2;
|
|
150
22
|
|
|
151
|
-
&:before{
|
|
23
|
+
&:before {
|
|
152
24
|
content: "";
|
|
153
25
|
display: block;
|
|
154
26
|
height: 4px;
|
|
155
|
-
background:
|
|
156
|
-
border-radius:
|
|
27
|
+
background: getBGColor('font');
|
|
28
|
+
border-radius: var(--radius-small);
|
|
157
29
|
}
|
|
158
30
|
|
|
159
31
|
&.is-error {
|
|
160
32
|
|
|
161
|
-
&:before{
|
|
33
|
+
&:before {
|
|
162
34
|
background: getColor('error') !important;
|
|
163
35
|
}
|
|
36
|
+
|
|
164
37
|
.step-bars {
|
|
165
38
|
background: getColor('error') !important;
|
|
166
39
|
}
|
|
40
|
+
|
|
167
41
|
color: getColor('font');
|
|
168
42
|
|
|
169
43
|
.step-label {
|
|
@@ -176,9 +50,10 @@ $step-gap-desktop: $step-width * 3;
|
|
|
176
50
|
|
|
177
51
|
&::before {
|
|
178
52
|
content: "";
|
|
179
|
-
mask-image: url('./assets/icons/all/times
|
|
53
|
+
mask-image: url('./assets/icons/all/times.svg') !important;
|
|
180
54
|
background-color: getColor('error') !important;
|
|
181
55
|
border-width: 0;
|
|
56
|
+
mask-size: 20px;
|
|
182
57
|
width: 20px;
|
|
183
58
|
height: 20px;
|
|
184
59
|
margin: 2px 8px 0 -8px;
|
|
@@ -193,17 +68,17 @@ $step-gap-desktop: $step-width * 3;
|
|
|
193
68
|
|
|
194
69
|
&.is-done {
|
|
195
70
|
|
|
196
|
-
&:before{
|
|
71
|
+
&:before {
|
|
197
72
|
background: getColor('font');
|
|
198
73
|
transition: background-color 2s ease-in-out;
|
|
199
74
|
}
|
|
75
|
+
|
|
200
76
|
.step-bars {
|
|
201
77
|
background: getColor('font');
|
|
202
78
|
transition: background-color 2s ease-in-out;
|
|
203
79
|
}
|
|
204
80
|
|
|
205
81
|
.step-label {
|
|
206
|
-
color: getColor('font');
|
|
207
82
|
padding-left: $spacing-2;
|
|
208
83
|
|
|
209
84
|
&::before {
|
|
@@ -212,6 +87,7 @@ $step-gap-desktop: $step-width * 3;
|
|
|
212
87
|
background-color: getColor('success');
|
|
213
88
|
border-width: 0;
|
|
214
89
|
min-width: 20px;
|
|
90
|
+
mask-size: 20px;
|
|
215
91
|
height: 20px;
|
|
216
92
|
margin: 2px 8px 0 -8px;
|
|
217
93
|
align-self: baseline;
|
|
@@ -222,15 +98,16 @@ $step-gap-desktop: $step-width * 3;
|
|
|
222
98
|
&.is-current,
|
|
223
99
|
&.is-active {
|
|
224
100
|
|
|
225
|
-
&:before{
|
|
226
|
-
background: getColor('
|
|
101
|
+
&:before {
|
|
102
|
+
background: getColor('main');
|
|
227
103
|
animation: cssload-width 2s cubic-bezier(0.45, 0, 1, 1);
|
|
228
104
|
-o-animation: cssload-width 2s cubic-bezier(0.45, 0, 1, 1);
|
|
229
105
|
-webkit-animation: cssload-width 2s cubic-bezier(0.45, 0, 1, 1);
|
|
230
106
|
-moz-animation: cssload-width 2s cubic-bezier(0.45, 0, 1, 1);
|
|
231
107
|
}
|
|
108
|
+
|
|
232
109
|
.step-bars {
|
|
233
|
-
background: getColor('
|
|
110
|
+
background: getColor('main');
|
|
234
111
|
animation: cssload-width 2s cubic-bezier(0.45, 0, 1, 1);
|
|
235
112
|
-o-animation: cssload-width 2s cubic-bezier(0.45, 0, 1, 1);
|
|
236
113
|
-webkit-animation: cssload-width 2s cubic-bezier(0.45, 0, 1, 1);
|
|
@@ -242,7 +119,6 @@ $step-gap-desktop: $step-width * 3;
|
|
|
242
119
|
font-weight: 600;
|
|
243
120
|
font-size: 22px;
|
|
244
121
|
line-height: 24px;
|
|
245
|
-
color: getColor('font');
|
|
246
122
|
transition: color 1.45s ease;
|
|
247
123
|
width: max-content;
|
|
248
124
|
|
|
@@ -270,15 +146,15 @@ $step-gap-desktop: $step-width * 3;
|
|
|
270
146
|
|
|
271
147
|
.step-bars {
|
|
272
148
|
height: 4px;
|
|
273
|
-
background: getColor('
|
|
274
|
-
border-radius:
|
|
149
|
+
background: getColor('disabled');
|
|
150
|
+
border-radius: var(--radius-small);
|
|
275
151
|
display: none;
|
|
276
152
|
}
|
|
277
153
|
|
|
278
154
|
.step-label {
|
|
279
155
|
display: flex;
|
|
280
156
|
align-items: center;
|
|
281
|
-
color: getColor('
|
|
157
|
+
color: getColor('font');
|
|
282
158
|
font-style: normal;
|
|
283
159
|
font-weight: 400;
|
|
284
160
|
font-size: 16px;
|
|
@@ -24,33 +24,23 @@
|
|
|
24
24
|
|
|
25
25
|
&.is-inverted {
|
|
26
26
|
background-color: getColor('font');
|
|
27
|
+
|
|
27
28
|
.tabs > .tab {
|
|
28
|
-
|
|
29
|
+
color: getColor('background') !important;
|
|
29
30
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
width: calc(100% - 16px);
|
|
34
|
-
height: 2px;
|
|
35
|
-
border-radius: 2px;
|
|
36
|
-
font-size: 20px;
|
|
37
|
-
background-color: getColor('background');
|
|
38
|
-
bottom: -2px;
|
|
39
|
-
left: 8px;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
&:hover:not(.is-disabled) {
|
|
43
|
-
color: getColor('background') !important;
|
|
44
|
-
cursor: pointer;
|
|
45
|
-
}
|
|
31
|
+
&.is-active {
|
|
32
|
+
border-bottom-color: currentColor;
|
|
33
|
+
}
|
|
46
34
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
35
|
+
#{$hoverSelector} {
|
|
36
|
+
color: getColor('background') !important;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&:focus-visible {
|
|
41
|
+
border-color: getColor('background');
|
|
42
|
+
}
|
|
50
43
|
|
|
51
|
-
&.is-disabled {
|
|
52
|
-
color: getColor('grey-light');
|
|
53
|
-
}
|
|
54
44
|
}
|
|
55
45
|
}
|
|
56
46
|
|
|
@@ -68,15 +58,15 @@
|
|
|
68
58
|
display: inline-flex;
|
|
69
59
|
|
|
70
60
|
&.is-centered {
|
|
71
|
-
|
|
61
|
+
justify-content: center;
|
|
72
62
|
}
|
|
73
63
|
|
|
74
64
|
&.is-right {
|
|
75
|
-
|
|
65
|
+
justify-content: flex-end;
|
|
76
66
|
}
|
|
77
67
|
|
|
78
68
|
&.is-left {
|
|
79
|
-
|
|
69
|
+
justify-content: flex-start;
|
|
80
70
|
}
|
|
81
71
|
|
|
82
72
|
|
|
@@ -98,7 +88,7 @@
|
|
|
98
88
|
}
|
|
99
89
|
|
|
100
90
|
@include mobile {
|
|
101
|
-
justify-content: flex-start
|
|
91
|
+
justify-content: flex-start;
|
|
102
92
|
> .tab:first-child {
|
|
103
93
|
margin-left: 24px;
|
|
104
94
|
}
|
|
@@ -109,17 +99,12 @@
|
|
|
109
99
|
background-color: transparent;
|
|
110
100
|
border: none;
|
|
111
101
|
color: getColor('font');
|
|
112
|
-
font-family: $body-family;
|
|
113
102
|
text-decoration: none;
|
|
114
103
|
outline: none;
|
|
115
|
-
padding:
|
|
104
|
+
padding: 6px 14px;
|
|
116
105
|
font-size: $text-14;
|
|
117
|
-
border:
|
|
118
|
-
border-
|
|
119
|
-
|
|
120
|
-
&:not(:last-child) {
|
|
121
|
-
margin-right: 16px;
|
|
122
|
-
}
|
|
106
|
+
border: 0px solid transparent;
|
|
107
|
+
border-bottom: 2px solid transparent;
|
|
123
108
|
|
|
124
109
|
.tab-icon {
|
|
125
110
|
margin-top: 2px;
|
|
@@ -127,7 +112,7 @@
|
|
|
127
112
|
|
|
128
113
|
&:not(button) {
|
|
129
114
|
.tab-icon {
|
|
130
|
-
|
|
115
|
+
margin-top: 4px;
|
|
131
116
|
}
|
|
132
117
|
}
|
|
133
118
|
|
|
@@ -135,28 +120,14 @@
|
|
|
135
120
|
font-size: $text-14;
|
|
136
121
|
}
|
|
137
122
|
|
|
138
|
-
|
|
139
|
-
|
|
140
123
|
&.is-active {
|
|
141
|
-
color: getColor('
|
|
142
|
-
font-weight: $weight-semibold;
|
|
124
|
+
color: getColor('main');
|
|
143
125
|
position: relative;
|
|
144
|
-
|
|
145
|
-
&::after {
|
|
146
|
-
content: "";
|
|
147
|
-
width: calc(100% - 16px);
|
|
148
|
-
height: 2px;
|
|
149
|
-
border-radius: 2px;
|
|
150
|
-
font-size: 20px;
|
|
151
|
-
background-color: getColor('alternate');
|
|
152
|
-
position: absolute;
|
|
153
|
-
bottom: -2px;
|
|
154
|
-
left: 8px
|
|
155
|
-
}
|
|
126
|
+
border-bottom-color: getColor('main');
|
|
156
127
|
}
|
|
157
128
|
|
|
158
129
|
&:hover:not(.is-disabled) {
|
|
159
|
-
color: getColor('
|
|
130
|
+
color: getColor('main');
|
|
160
131
|
cursor: pointer;
|
|
161
132
|
|
|
162
133
|
.icon.is-small [class^=tri-]::before, .icon.is-small [class*=" tri-"]::before {
|
|
@@ -165,23 +136,23 @@
|
|
|
165
136
|
}
|
|
166
137
|
}
|
|
167
138
|
|
|
168
|
-
&:focus-visible{
|
|
139
|
+
&:focus-visible {
|
|
169
140
|
border-color: currentColor;
|
|
170
|
-
color: getColor('
|
|
141
|
+
color: getColor('main');
|
|
171
142
|
}
|
|
172
143
|
|
|
173
144
|
.icon {
|
|
174
145
|
height: 0;
|
|
175
146
|
}
|
|
176
147
|
|
|
177
|
-
.icon.is-small, .icon.is-small{
|
|
148
|
+
.icon.is-small, .icon.is-small {
|
|
178
149
|
font-size: 22px;
|
|
179
150
|
}
|
|
180
151
|
|
|
181
|
-
|
|
182
|
-
color:
|
|
183
|
-
cursor: default;
|
|
152
|
+
&[disabled], &[aria-disabled=true] {
|
|
153
|
+
background-color: transparent !important;
|
|
184
154
|
}
|
|
155
|
+
|
|
185
156
|
}
|
|
186
157
|
}
|
|
187
158
|
|
|
@@ -192,6 +163,7 @@
|
|
|
192
163
|
.tab-panel {
|
|
193
164
|
transition: opacity 2s ease-in-out;
|
|
194
165
|
transition-delay: 1s;
|
|
166
|
+
|
|
195
167
|
&:not(.is-active) {
|
|
196
168
|
display: none;
|
|
197
169
|
}
|
|
@@ -199,6 +171,7 @@
|
|
|
199
171
|
&.is-active {
|
|
200
172
|
animation: fade-in 250ms;
|
|
201
173
|
}
|
|
174
|
+
|
|
202
175
|
@keyframes fade-in {
|
|
203
176
|
from {
|
|
204
177
|
opacity: 0;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
@use 'sass:math';
|
|
2
2
|
@import "../utilities/spacing";
|
|
3
3
|
|
|
4
|
-
$timeline-marker-color:
|
|
4
|
+
$timeline-marker-color: getBGColor('neutral') !default;
|
|
5
5
|
$timeline-marker-icon-size: 2.85em !default;
|
|
6
|
-
$timeline-line-color:
|
|
6
|
+
$timeline-line-color: getBGColor('neutral') !default;
|
|
7
7
|
$timeline-marker-size: 0.8em !default;
|
|
8
8
|
$timeline-marker-border-size: 0.1em !default;
|
|
9
|
-
$timeline-marker-border: $timeline-marker-border-size solid
|
|
10
|
-
$timeline-marker-color !default;
|
|
9
|
+
$timeline-marker-border: $timeline-marker-border-size solid $timeline-marker-color !default;
|
|
11
10
|
$timeline-line-width: 0.125em !default;
|
|
12
11
|
$timeline-line-style: solid !default;
|
|
13
12
|
$timeline-line: $timeline-line-width $timeline-line-style $timeline-line-color !default;
|
|
@@ -32,6 +31,18 @@ $timeline-image-dimensions: 16 24 32 48 64 96 128 !default;
|
|
|
32
31
|
margin-left: 0;
|
|
33
32
|
}
|
|
34
33
|
|
|
34
|
+
&::before {
|
|
35
|
+
content: '';
|
|
36
|
+
display: block;
|
|
37
|
+
width: $timeline-line-width;
|
|
38
|
+
position: absolute;
|
|
39
|
+
top: 49.80px;
|
|
40
|
+
left: 3rem;
|
|
41
|
+
bottom: 8px;
|
|
42
|
+
height: auto;
|
|
43
|
+
border-radius: 2px;
|
|
44
|
+
}
|
|
45
|
+
|
|
35
46
|
.timeline-item,
|
|
36
47
|
.undone {
|
|
37
48
|
display: flex;
|
|
@@ -42,42 +53,32 @@ $timeline-image-dimensions: 16 24 32 48 64 96 128 !default;
|
|
|
42
53
|
padding-bottom: $spacing-2;
|
|
43
54
|
|
|
44
55
|
&::before {
|
|
45
|
-
|
|
46
|
-
background-color: getColor('grey-lighter');
|
|
47
|
-
display: block;
|
|
48
|
-
width: $timeline-line-width;
|
|
49
|
-
position: absolute;
|
|
50
|
-
top: 49.80px;
|
|
51
|
-
left: 3rem;
|
|
52
|
-
bottom: 8px;
|
|
53
|
-
height: auto;
|
|
54
|
-
border-radius: 2px;
|
|
56
|
+
background-color: getBGColor('neutral');
|
|
55
57
|
}
|
|
56
58
|
|
|
57
59
|
.timeline-marker.is-icon {
|
|
58
|
-
background-color: getColor('
|
|
59
|
-
|
|
60
|
-
color: aside;
|
|
61
|
-
}
|
|
60
|
+
background-color: getColor('main');
|
|
61
|
+
color: getColor('font');
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
|
|
65
|
-
|
|
66
64
|
&.active {
|
|
67
65
|
.timeline-marker.is-icon {
|
|
68
|
-
background-color: getColor('
|
|
66
|
+
background-color: getColor('main');
|
|
67
|
+
|
|
69
68
|
.icon {
|
|
70
69
|
color: getColor('background');
|
|
71
70
|
}
|
|
72
71
|
}
|
|
72
|
+
|
|
73
73
|
.timeline-content {
|
|
74
74
|
p.main-content {
|
|
75
75
|
font-weight: 800;
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
+
|
|
78
79
|
&::before {
|
|
79
80
|
content: '';
|
|
80
|
-
background-color: getColor('
|
|
81
|
+
background-color: getColor('main');
|
|
81
82
|
display: block;
|
|
82
83
|
width: $timeline-line-width;
|
|
83
84
|
position: absolute;
|
|
@@ -89,13 +90,16 @@ $timeline-image-dimensions: 16 24 32 48 64 96 128 !default;
|
|
|
89
90
|
}
|
|
90
91
|
|
|
91
92
|
}
|
|
93
|
+
|
|
92
94
|
&.done {
|
|
93
95
|
.timeline-marker.is-icon {
|
|
94
96
|
background-color: getColor('font');
|
|
97
|
+
|
|
95
98
|
.icon {
|
|
96
99
|
color: getColor('background')
|
|
97
100
|
}
|
|
98
101
|
}
|
|
102
|
+
|
|
99
103
|
&::before {
|
|
100
104
|
content: '';
|
|
101
105
|
background-color: getColor('font');
|
|
@@ -112,14 +116,13 @@ $timeline-image-dimensions: 16 24 32 48 64 96 128 !default;
|
|
|
112
116
|
|
|
113
117
|
&.cancel {
|
|
114
118
|
.timeline-marker.is-icon {
|
|
115
|
-
background-color: getColor('
|
|
116
|
-
|
|
117
|
-
color: getColor('grey-darker');
|
|
118
|
-
}
|
|
119
|
+
background-color: getColor('neutral-dark');
|
|
120
|
+
color: getBGColor('neutral');
|
|
119
121
|
}
|
|
122
|
+
|
|
120
123
|
&::before {
|
|
121
124
|
content: '';
|
|
122
|
-
background-color:
|
|
125
|
+
background-color: getBGColor('neutral-dark');
|
|
123
126
|
display: block;
|
|
124
127
|
width: $timeline-line-width;
|
|
125
128
|
position: absolute;
|
|
@@ -134,7 +137,7 @@ $timeline-image-dimensions: 16 24 32 48 64 96 128 !default;
|
|
|
134
137
|
.timeline-marker {
|
|
135
138
|
position: absolute;
|
|
136
139
|
background: $timeline-marker-color;
|
|
137
|
-
border-radius:
|
|
140
|
+
border-radius: 9999px;
|
|
138
141
|
content: '';
|
|
139
142
|
display: block;
|
|
140
143
|
height: $timeline-marker-size;
|
|
@@ -154,7 +157,7 @@ $timeline-image-dimensions: 16 24 32 48 64 96 128 !default;
|
|
|
154
157
|
}
|
|
155
158
|
|
|
156
159
|
background: $timeline-marker-color;
|
|
157
|
-
border-radius:
|
|
160
|
+
border-radius: 9999px;
|
|
158
161
|
display: block;
|
|
159
162
|
overflow: hidden;
|
|
160
163
|
}
|
|
@@ -170,7 +173,7 @@ $timeline-image-dimensions: 16 24 32 48 64 96 128 !default;
|
|
|
170
173
|
line-height: size(0.75rem);
|
|
171
174
|
padding: math.div($timeline-icon-size, 3);
|
|
172
175
|
background: $timeline-marker-color;
|
|
173
|
-
border-radius:
|
|
176
|
+
border-radius: 9999px;
|
|
174
177
|
|
|
175
178
|
> i {
|
|
176
179
|
color: getColor('background');
|
|
@@ -199,13 +202,12 @@ $timeline-image-dimensions: 16 24 32 48 64 96 128 !default;
|
|
|
199
202
|
|
|
200
203
|
.heading {
|
|
201
204
|
font-size: $text-12;
|
|
202
|
-
color: getColor('
|
|
205
|
+
color: getColor('font');
|
|
203
206
|
font-family: $family-sans-serif;
|
|
204
207
|
text-transform: none;
|
|
205
208
|
letter-spacing: 0;
|
|
206
209
|
line-height: 15px;
|
|
207
210
|
font-weight: 500;
|
|
208
|
-
color: #707070;
|
|
209
211
|
}
|
|
210
212
|
|
|
211
213
|
p {
|
|
@@ -314,6 +316,7 @@ $timeline-image-dimensions: 16 24 32 48 64 96 128 !default;
|
|
|
314
316
|
.timeline-item {
|
|
315
317
|
flex-direction: column;
|
|
316
318
|
width: 100%;
|
|
319
|
+
|
|
317
320
|
&:not(:last-child) {
|
|
318
321
|
margin-right: 16px;
|
|
319
322
|
}
|
|
@@ -330,32 +333,36 @@ $timeline-image-dimensions: 16 24 32 48 64 96 128 !default;
|
|
|
330
333
|
height: 2px;
|
|
331
334
|
border-radius: 2px;
|
|
332
335
|
}
|
|
333
|
-
|
|
334
|
-
|
|
336
|
+
|
|
337
|
+
&.active::before {
|
|
338
|
+
background-color: getColor('main');
|
|
335
339
|
}
|
|
336
|
-
|
|
337
|
-
{
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
&::before {
|
|
342
|
-
background-color: getColor('grey-lighter');
|
|
340
|
+
|
|
341
|
+
&.undone {
|
|
342
|
+
|
|
343
|
+
&::before {
|
|
344
|
+
background-color: getBGColor('neutral');
|
|
343
345
|
}
|
|
344
346
|
}
|
|
347
|
+
|
|
345
348
|
&.done::before {
|
|
346
349
|
background-color: getColor('font');
|
|
347
350
|
}
|
|
351
|
+
|
|
348
352
|
&.cancel::before {
|
|
349
|
-
background-color:
|
|
353
|
+
background-color: getBGColor('neutral-dark');
|
|
350
354
|
}
|
|
355
|
+
|
|
351
356
|
.timeline-marker {
|
|
352
|
-
position: static
|
|
353
|
-
margin-left:0
|
|
357
|
+
position: static;
|
|
358
|
+
margin-left: 0
|
|
354
359
|
}
|
|
360
|
+
|
|
355
361
|
.timeline-content {
|
|
356
362
|
margin-left: 0;
|
|
357
|
-
padding:0;
|
|
363
|
+
padding: 0;
|
|
358
364
|
margin-top: 8px;
|
|
365
|
+
|
|
359
366
|
.main-content {
|
|
360
367
|
margin-left: 0;
|
|
361
368
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* @todo validate a.alert exist */
|
|
1
2
|
a.alert {
|
|
2
3
|
cursor: pointer;
|
|
3
4
|
transition: box-shadow $animation-duration;
|
|
@@ -11,7 +12,7 @@ a.alert {
|
|
|
11
12
|
|
|
12
13
|
.alert {
|
|
13
14
|
|
|
14
|
-
border-radius:
|
|
15
|
+
border-radius: var(--radius);
|
|
15
16
|
margin-bottom: 16px;
|
|
16
17
|
position: relative;
|
|
17
18
|
display: flex;
|
|
@@ -22,7 +23,6 @@ a.alert {
|
|
|
22
23
|
.text:first-child,
|
|
23
24
|
.title:first-child {
|
|
24
25
|
line-height: normal;
|
|
25
|
-
font-size: $text-16 !important;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.title,
|
|
@@ -47,12 +47,10 @@ a.alert {
|
|
|
47
47
|
color: currentColor;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
@each $name
|
|
51
|
-
$bg-color: nth($pair, 1);
|
|
52
|
-
|
|
50
|
+
@each $name in $colors-feedback {
|
|
53
51
|
&.is-#{$name} {
|
|
54
|
-
background-color:
|
|
55
|
-
border:
|
|
52
|
+
background-color: getBGColor($name);
|
|
53
|
+
border: 1px solid getColor($name);
|
|
56
54
|
|
|
57
55
|
.icon {
|
|
58
56
|
color: getColor($name);
|
|
@@ -81,7 +79,6 @@ a.alert {
|
|
|
81
79
|
}
|
|
82
80
|
}
|
|
83
81
|
|
|
84
|
-
.title,
|
|
85
82
|
.text,
|
|
86
83
|
.paragraph {
|
|
87
84
|
font-size: $text-14;
|