@trilogy-ds/styles 0.0.1-beta-1
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/framework/src/_all.scss +8 -0
- package/framework/src/base/_all.scss +9 -0
- package/framework/src/base/_color.scss +58 -0
- package/framework/src/base/_elements.scss +34 -0
- package/framework/src/base/_fonts.scss +2 -0
- package/framework/src/base/_generic.scss +68 -0
- package/framework/src/base/_helpers.scss +880 -0
- package/framework/src/base/_loading.scss +102 -0
- package/framework/src/base/_reset.scss +138 -0
- package/framework/src/components/_accordion.scss +178 -0
- package/framework/src/components/_all.scss +30 -0
- package/framework/src/components/_autolayout2.scss +38 -0
- package/framework/src/components/_breadcrumb.scss +45 -0
- package/framework/src/components/_card.scss +298 -0
- package/framework/src/components/_countdown.scss +55 -0
- package/framework/src/components/_disclaimer.scss +84 -0
- package/framework/src/components/_divider.scss +18 -0
- package/framework/src/components/_dropdown.scss +128 -0
- package/framework/src/components/_fab.scss +60 -0
- package/framework/src/components/_level.scss +120 -0
- package/framework/src/components/_media.scss +64 -0
- package/framework/src/components/_menu.scss +213 -0
- package/framework/src/components/_modal.scss +201 -0
- package/framework/src/components/_otp.scss +92 -0
- package/framework/src/components/_pagination.scss +182 -0
- package/framework/src/components/_plus-symbol.scss +32 -0
- package/framework/src/components/_popover.scss +340 -0
- package/framework/src/components/_price.scss +209 -0
- package/framework/src/components/_product-tour.scss +131 -0
- package/framework/src/components/_progress-radial.scss +23 -0
- package/framework/src/components/_range.scss +84 -0
- package/framework/src/components/_scroll-view.scss +19 -0
- package/framework/src/components/_search-modal.scss +197 -0
- package/framework/src/components/_segmented-control.scss +60 -0
- package/framework/src/components/_slices.scss +316 -0
- package/framework/src/components/_slider.scss +92 -0
- package/framework/src/components/_stepper.scss +397 -0
- package/framework/src/components/_switch.scss +209 -0
- package/framework/src/components/_tabs.scss +212 -0
- package/framework/src/components/_timeline.scss +367 -0
- package/framework/src/elements/_alert.scss +91 -0
- package/framework/src/elements/_all.scss +35 -0
- package/framework/src/elements/_badge.scss +81 -0
- package/framework/src/elements/_box.scss +267 -0
- package/framework/src/elements/_button.scss +192 -0
- package/framework/src/elements/_checkbox.scss +39 -0
- package/framework/src/elements/_checkradio.scss +173 -0
- package/framework/src/elements/_chips.scss +100 -0
- package/framework/src/elements/_container.scss +108 -0
- package/framework/src/elements/_dot.scss +6 -0
- package/framework/src/elements/_entry.scss +109 -0
- package/framework/src/elements/_form.scss +593 -0
- package/framework/src/elements/_icon.scss +384 -0
- package/framework/src/elements/_image.scss +59 -0
- package/framework/src/elements/_input-gauge.scss +37 -0
- package/framework/src/elements/_input-icons.scss +41 -0
- package/framework/src/elements/_link.scss +79 -0
- package/framework/src/elements/_list.scss +61 -0
- package/framework/src/elements/_loader.scss +126 -0
- package/framework/src/elements/_notification.scss +151 -0
- package/framework/src/elements/_options.scss +146 -0
- package/framework/src/elements/_other.scss +44 -0
- package/framework/src/elements/_paragraph.scss +101 -0
- package/framework/src/elements/_progress.scss +212 -0
- package/framework/src/elements/_radio.scss +67 -0
- package/framework/src/elements/_select.scss +315 -0
- package/framework/src/elements/_sticker.scss +151 -0
- package/framework/src/elements/_switch.scss +108 -0
- package/framework/src/elements/_table.scss +298 -0
- package/framework/src/elements/_tag.scss +131 -0
- package/framework/src/elements/_textarea.scss +125 -0
- package/framework/src/elements/_timeline.scss +283 -0
- package/framework/src/elements/_title.scss +139 -0
- package/framework/src/elements/_toaster.scss +128 -0
- package/framework/src/grid/_all.scss +3 -0
- package/framework/src/grid/_columns.scss +952 -0
- package/framework/src/grid/_rows.scss +47 -0
- package/framework/src/grid/_tiles.scss +78 -0
- package/framework/src/layout/_all.scss +6 -0
- package/framework/src/layout/_hero.scss +268 -0
- package/framework/src/layout/_main.scss +36 -0
- package/framework/src/layout/_section.scss +65 -0
- package/framework/src/layout/_toolbar.scss +100 -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/_all.scss +9 -0
- package/framework/src/utilities/_animations.scss +71 -0
- package/framework/src/utilities/_controls.scss +67 -0
- package/framework/src/utilities/_derived-variables.scss +104 -0
- package/framework/src/utilities/_functions.scss +94 -0
- package/framework/src/utilities/_initial-variables.scss +150 -0
- package/framework/src/utilities/_mixins.scss +745 -0
- package/framework/src/utilities/_post.scss +6 -0
- package/framework/src/utilities/_pre.scss +5 -0
- package/framework/src/utilities/_spacing.scss +10 -0
- package/framework/src/utilities/_tools.scss +3 -0
- package/package.json +22 -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,125 @@
|
|
|
1
|
+
.textarea-wrapper {
|
|
2
|
+
position: relative;
|
|
3
|
+
margin: 16px 0;
|
|
4
|
+
|
|
5
|
+
textarea.textarea {
|
|
6
|
+
padding: $spacing-4;
|
|
7
|
+
border-radius: 4px;
|
|
8
|
+
outline: none;
|
|
9
|
+
|
|
10
|
+
&::placeholder {
|
|
11
|
+
font-size: 16px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&.has-dynamic-label {
|
|
15
|
+
&.has-icon ~ label {
|
|
16
|
+
left: $spacing-9;
|
|
17
|
+
margin-right: 2px;
|
|
18
|
+
width: calc(100% - 96px - 2px);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
~ label {
|
|
22
|
+
visibility: visible;
|
|
23
|
+
position: absolute;
|
|
24
|
+
top: 2px;
|
|
25
|
+
left: $spacing-4;
|
|
26
|
+
padding-top: $spacing-2;
|
|
27
|
+
width: calc(100% - 28px - 2px);
|
|
28
|
+
font-size: 12px;
|
|
29
|
+
color: getColor('grey');
|
|
30
|
+
transition: top 0.2s ease-out;
|
|
31
|
+
background-color: getColor('background');
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:placeholder-shown {
|
|
35
|
+
~ label {
|
|
36
|
+
visibility: hidden;
|
|
37
|
+
top: $spacing-4;
|
|
38
|
+
background-color: getColor('background');
|
|
39
|
+
transition: none;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&:not(:placeholder-shown) {
|
|
44
|
+
padding-top: $spacing-5;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:disabled {
|
|
49
|
+
background-color: getColor('grey-disabled');
|
|
50
|
+
border-color: getColor('grey-disabled');
|
|
51
|
+
color: getColor('grey-dark');
|
|
52
|
+
|
|
53
|
+
&::placeholder {
|
|
54
|
+
color: black;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
& ~ span.icon {
|
|
58
|
+
color: getColor('grey');
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&.has-icon {
|
|
63
|
+
padding-left: $spacing-9;
|
|
64
|
+
padding-right: $spacing-9;
|
|
65
|
+
|
|
66
|
+
&:hover,
|
|
67
|
+
&:focus,
|
|
68
|
+
&:focus-visible {
|
|
69
|
+
padding-left: 55px;
|
|
70
|
+
padding-right: 55px;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
label {
|
|
76
|
+
font-size: 16px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
span.icon {
|
|
80
|
+
position: absolute;
|
|
81
|
+
top: $spacing-4;
|
|
82
|
+
|
|
83
|
+
&:first-of-type {
|
|
84
|
+
left: $spacing-4;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&:nth-of-type(2) {
|
|
88
|
+
right: $spacing-4;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// Colors
|
|
93
|
+
@each $name, $pair in $colors-brand-funcionnal {
|
|
94
|
+
$color: getColor($name);
|
|
95
|
+
$color-invert: invertColor($name);
|
|
96
|
+
$brandName: getColorBrandName($name);
|
|
97
|
+
&.is-#{$brandName} {
|
|
98
|
+
textarea.textarea {
|
|
99
|
+
border-color: $color;
|
|
100
|
+
&:active,
|
|
101
|
+
&:focus,
|
|
102
|
+
&:focus-visible {
|
|
103
|
+
&:not(:placeholder-shown) {
|
|
104
|
+
padding-top: 29px;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
span.icon:nth-of-type(2) {
|
|
110
|
+
color: $color;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.counter {
|
|
116
|
+
position: absolute;
|
|
117
|
+
bottom: $spacing-2;
|
|
118
|
+
right: $spacing-4;
|
|
119
|
+
font-size: 10px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.help ~ .counter {
|
|
123
|
+
bottom: $spacing-6;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
|
|
3
|
+
$timeline-marker-icon-size: 2.85em !default;
|
|
4
|
+
$timeline-marker-size: 0.8em !default;
|
|
5
|
+
$timeline-marker-border-size: 0.1em !default;
|
|
6
|
+
$timeline-line-width: 0.1em !default;
|
|
7
|
+
$timeline-line-style: solid !default;
|
|
8
|
+
$timeline-content-padding: 1em 0 0 16px !default;
|
|
9
|
+
$timeline-rtl-content-padding: 1em 2em 0 0 !default;
|
|
10
|
+
$timeline-icon-size: $size-small !default;
|
|
11
|
+
$timeline-header-width: 4em !default;
|
|
12
|
+
$timeline-item-padding-bottom: 8px !default;
|
|
13
|
+
$timeline-image-dimensions: 16 24 32 48 64 96 128 !default;
|
|
14
|
+
|
|
15
|
+
.timeline {
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
.timeline-header {
|
|
21
|
+
width: $timeline-header-width;
|
|
22
|
+
min-width: $timeline-header-width;
|
|
23
|
+
max-width: $timeline-header-width * 2;
|
|
24
|
+
word-wrap: normal;
|
|
25
|
+
text-align: center;
|
|
26
|
+
display: flex;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
margin-left: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.timeline-item,
|
|
32
|
+
.undone {
|
|
33
|
+
display: flex;
|
|
34
|
+
display: -ms-flexbox;
|
|
35
|
+
display: -webkit-flex;
|
|
36
|
+
position: relative;
|
|
37
|
+
margin-left: 0;
|
|
38
|
+
padding-bottom: $spacing-2;
|
|
39
|
+
|
|
40
|
+
.icon {
|
|
41
|
+
background-color: getColor('font');
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&::before {
|
|
45
|
+
content: '';
|
|
46
|
+
background-color: getColor('grey-disabled');
|
|
47
|
+
display: block;
|
|
48
|
+
width: $timeline-line-width;
|
|
49
|
+
position: absolute;
|
|
50
|
+
top: 43.89px;
|
|
51
|
+
left: 3rem;
|
|
52
|
+
bottom: 8px;
|
|
53
|
+
height: auto;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&.active{
|
|
57
|
+
.timeline-marker.is-icon {
|
|
58
|
+
background-color: getColor('alternate');
|
|
59
|
+
|
|
60
|
+
.icon {
|
|
61
|
+
color: getColor('background') !important;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.timeline-content {
|
|
66
|
+
p.main-content {
|
|
67
|
+
font-weight: 800;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&::before {
|
|
72
|
+
content: '';
|
|
73
|
+
background-color: getColor('alternate');
|
|
74
|
+
display: block;
|
|
75
|
+
width: $timeline-line-width;
|
|
76
|
+
position: absolute;
|
|
77
|
+
top: 43.89px;
|
|
78
|
+
left: 3rem;
|
|
79
|
+
bottom: 8px;
|
|
80
|
+
height: auto;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&.done {
|
|
85
|
+
.timeline-marker.is-icon {
|
|
86
|
+
background-color: getColor('font');
|
|
87
|
+
|
|
88
|
+
.icon {
|
|
89
|
+
color: getColor('background') !important;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&::before {
|
|
94
|
+
content: '';
|
|
95
|
+
background-color: getColor('font');
|
|
96
|
+
display: block;
|
|
97
|
+
width: $timeline-line-width;
|
|
98
|
+
position: absolute;
|
|
99
|
+
top: 43.89px;
|
|
100
|
+
left: 3rem;
|
|
101
|
+
bottom: 8px;
|
|
102
|
+
height: auto;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.timeline-marker {
|
|
107
|
+
position: absolute;
|
|
108
|
+
background: getColor('grey-light');
|
|
109
|
+
border-radius: 100%;
|
|
110
|
+
content: '';
|
|
111
|
+
display: block;
|
|
112
|
+
height: $timeline-marker-size;
|
|
113
|
+
left: -($timeline-marker-size * 0.5 - $timeline-marker-border-size *
|
|
114
|
+
0.5);
|
|
115
|
+
top: 0;
|
|
116
|
+
width: $timeline-marker-size;
|
|
117
|
+
margin-left: 30px;
|
|
118
|
+
|
|
119
|
+
&.is-image {
|
|
120
|
+
@each $dimension in $timeline-image-dimensions {
|
|
121
|
+
&.is-#{$dimension}x#{$dimension} {
|
|
122
|
+
height: $dimension * 1px;
|
|
123
|
+
width: $dimension * 1px;
|
|
124
|
+
left: $dimension * 0.5 * -1px;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
background: getColor('grey-light');
|
|
129
|
+
border-radius: 100%;
|
|
130
|
+
display: block;
|
|
131
|
+
overflow: hidden;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
&.is-icon {
|
|
135
|
+
display: flex;
|
|
136
|
+
align-items: center;
|
|
137
|
+
justify-content: center;
|
|
138
|
+
height: $timeline-marker-icon-size;
|
|
139
|
+
width: $timeline-marker-icon-size;
|
|
140
|
+
left: -($timeline-marker-icon-size * 0.5 -
|
|
141
|
+
$timeline-marker-border-size * 0.5);
|
|
142
|
+
line-height: size(0.75rem);
|
|
143
|
+
padding: math.div($timeline-icon-size, 3);
|
|
144
|
+
background: getColor('grey-lighter');
|
|
145
|
+
border-radius: 100%;
|
|
146
|
+
|
|
147
|
+
> i {
|
|
148
|
+
color: getColor('font');
|
|
149
|
+
font-size: $timeline-icon-size !important;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
&.is-outlined {
|
|
154
|
+
.image {
|
|
155
|
+
background: getColor('background');
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
&.is-icon {
|
|
159
|
+
background: getColor('background');
|
|
160
|
+
|
|
161
|
+
> i {
|
|
162
|
+
color: getColor('grey-light');
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.timeline-content {
|
|
171
|
+
margin-left: 3.7em;
|
|
172
|
+
padding: $spacing-3 0 $spacing-4 $spacing-4;
|
|
173
|
+
|
|
174
|
+
.heading {
|
|
175
|
+
font-size: $text-12;
|
|
176
|
+
color: getColor('grey');
|
|
177
|
+
font-family: $family-sans-serif;
|
|
178
|
+
text-transform: none;
|
|
179
|
+
letter-spacing: 0;
|
|
180
|
+
line-height: 15px;
|
|
181
|
+
font-weight: 500;
|
|
182
|
+
color: #707070;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
p {
|
|
186
|
+
margin-bottom: 4px;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
@each $name, $pair in $colors-brand-funcionnal {
|
|
191
|
+
$color: getColor($name);
|
|
192
|
+
$brandName: getColorBrandName($name);
|
|
193
|
+
|
|
194
|
+
&.is-#{$brandName} {
|
|
195
|
+
&::before {
|
|
196
|
+
background-color: $color;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
&.is-centered {
|
|
203
|
+
.timeline-header {
|
|
204
|
+
display: flex;
|
|
205
|
+
width: 100%;
|
|
206
|
+
align-self: center;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.timeline-item {
|
|
210
|
+
width: 50%;
|
|
211
|
+
align-self: flex-end;
|
|
212
|
+
|
|
213
|
+
&:nth-of-type(2n) {
|
|
214
|
+
align-self: flex-start;
|
|
215
|
+
margin-left: 0;
|
|
216
|
+
margin-right: $timeline-header-width * 0.5;
|
|
217
|
+
|
|
218
|
+
&::before {
|
|
219
|
+
right: -$timeline-line-width;
|
|
220
|
+
left: auto;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.timeline-marker {
|
|
224
|
+
left: auto;
|
|
225
|
+
right: -(
|
|
226
|
+
$timeline-marker-size * 0.5 -
|
|
227
|
+
$timeline-marker-border-size * 0.5
|
|
228
|
+
) - $timeline-line-width;
|
|
229
|
+
|
|
230
|
+
&.is-image {
|
|
231
|
+
@each $dimension in $timeline-image-dimensions {
|
|
232
|
+
&.is-#{$dimension}x#{$dimension} {
|
|
233
|
+
left: auto;
|
|
234
|
+
right: $dimension * 0.5 * -1px;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
&.is-icon {
|
|
240
|
+
left: auto;
|
|
241
|
+
right: -(
|
|
242
|
+
$timeline-marker-icon-size * 0.5 -
|
|
243
|
+
$timeline-marker-border-size * 0.5
|
|
244
|
+
) - $timeline-line-width;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.timeline-content {
|
|
249
|
+
padding: $timeline-rtl-content-padding;
|
|
250
|
+
text-align: right;
|
|
251
|
+
display: flex;
|
|
252
|
+
flex-direction: column;
|
|
253
|
+
align-items: flex-end;
|
|
254
|
+
flex-basis: 100%;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
&:nth-of-type(2n + 1) {
|
|
259
|
+
&::before {
|
|
260
|
+
content: '';
|
|
261
|
+
background-color: getColor('grey-disabled');
|
|
262
|
+
display: block;
|
|
263
|
+
width: $timeline-line-width;
|
|
264
|
+
height: 100%;
|
|
265
|
+
position: absolute;
|
|
266
|
+
top: 0;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
@each $name, $pair in $colors-brand-funcionnal {
|
|
271
|
+
$color: getColor($name);
|
|
272
|
+
$color-invert: invertColor($name);
|
|
273
|
+
$brandName: getColorBrandName($name);
|
|
274
|
+
|
|
275
|
+
&.is-#{$brandName} {
|
|
276
|
+
&::before {
|
|
277
|
+
background-color: $color;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
|
|
3
|
+
$title-weight: $weight-semibold;
|
|
4
|
+
$title-line-height: 1.1;
|
|
5
|
+
$title-strong-color: inherit;
|
|
6
|
+
$title-strong-weight: inherit;
|
|
7
|
+
$title-sub-size: 0.5em;
|
|
8
|
+
$title-sup-size: 0.5em;
|
|
9
|
+
|
|
10
|
+
$subtitle-size: $text-15;
|
|
11
|
+
$subtitle-weight: $weight-semibold;
|
|
12
|
+
$subtitle-size-tablet: $text-15;
|
|
13
|
+
$subtitle-line-height: 1.2;
|
|
14
|
+
$subtitle-strong-weight: $weight-semibold;
|
|
15
|
+
|
|
16
|
+
$overline-size: $text-15;
|
|
17
|
+
$overline-weight: $weight-semibold;
|
|
18
|
+
$overline-line-height: 1.2;
|
|
19
|
+
$overline-size-tablet: $text-15;
|
|
20
|
+
|
|
21
|
+
$title-levels: (
|
|
22
|
+
($text-48, $text-58, $family-secondary),
|
|
23
|
+
($text-36, $text-44, $family-secondary),
|
|
24
|
+
($text-28, $text-32, $family-primary),
|
|
25
|
+
($text-24, $text-28, $family-primary),
|
|
26
|
+
($text-20, $text-24, $family-primary),
|
|
27
|
+
($text-16, $text-20, $family-primary)
|
|
28
|
+
);
|
|
29
|
+
$title-levels-mobile: (
|
|
30
|
+
($text-32, $text-38),
|
|
31
|
+
($text-28, $text-34),
|
|
32
|
+
($text-22, $text-26),
|
|
33
|
+
($text-20, $text-24),
|
|
34
|
+
($text-18, $text-22),
|
|
35
|
+
($text-16, $text-20)
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
.title,
|
|
39
|
+
.subtitle,
|
|
40
|
+
.overline {
|
|
41
|
+
word-break: break-word;
|
|
42
|
+
|
|
43
|
+
em,
|
|
44
|
+
span {
|
|
45
|
+
font-weight: inherit;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.tag {
|
|
49
|
+
vertical-align: middle;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.title {
|
|
54
|
+
font-size: $text-32;
|
|
55
|
+
font-weight: $title-weight;
|
|
56
|
+
line-height: $title-line-height;
|
|
57
|
+
|
|
58
|
+
// new typography
|
|
59
|
+
@each $title-level in $title-levels {
|
|
60
|
+
$i: index($title-levels, $title-level);
|
|
61
|
+
$font-size: nth($title-level, 1);
|
|
62
|
+
$line-height: nth($title-level, 2);
|
|
63
|
+
$font-family: nth($title-level, 3);
|
|
64
|
+
|
|
65
|
+
&.is-level-#{$i} {
|
|
66
|
+
font-size: $font-size;
|
|
67
|
+
line-height: $line-height;
|
|
68
|
+
font-family: $font-family;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&.is-medium {
|
|
72
|
+
font-weight: $weight-medium;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&.is-inverted {
|
|
76
|
+
color: getColor('background');
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.details {
|
|
80
|
+
font-size: 80%;
|
|
81
|
+
color: getColor('grey');
|
|
82
|
+
font-weight: $weight-normal;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&.is-section-title {
|
|
86
|
+
text-align: center;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@include tablet {
|
|
90
|
+
font-size: $text-40;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
sup {
|
|
94
|
+
top: -0.5em;
|
|
95
|
+
font-size: $title-sup-size;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
sub {
|
|
99
|
+
bottom: -0.5em;
|
|
100
|
+
font-size: $title-sub-size;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&.is-centered {
|
|
104
|
+
text-align: center;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@include mobile {
|
|
109
|
+
@each $title-level-mobile in $title-levels-mobile {
|
|
110
|
+
$i: index($title-levels-mobile, $title-level-mobile);
|
|
111
|
+
$font-size-mobile: nth($title-level-mobile, 1);
|
|
112
|
+
$line-height-mobile: nth($title-level-mobile, 2);
|
|
113
|
+
&.is-level-#{$i} {
|
|
114
|
+
font-size: $font-size-mobile;
|
|
115
|
+
line-height: $line-height-mobile;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.subtitle {
|
|
122
|
+
color: getColor('alternate');
|
|
123
|
+
font-size: $subtitle-size;
|
|
124
|
+
font-weight: $subtitle-weight;
|
|
125
|
+
line-height: $subtitle-line-height;
|
|
126
|
+
&.is-inverted {
|
|
127
|
+
color: getColor('background');
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.overline {
|
|
132
|
+
color: getColor('alternate');
|
|
133
|
+
font-size: $overline-size;
|
|
134
|
+
font-weight: $overline-weight;
|
|
135
|
+
line-height: $overline-line-height;
|
|
136
|
+
&.is-inverted {
|
|
137
|
+
color: getColor('background');
|
|
138
|
+
}
|
|
139
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
a.toaster {
|
|
2
|
+
cursor: pointer;
|
|
3
|
+
transition: box-shadow $animation-duration;
|
|
4
|
+
|
|
5
|
+
&:hover,
|
|
6
|
+
&:active,
|
|
7
|
+
&:focus {
|
|
8
|
+
box-shadow: $shadow;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.toaster {
|
|
13
|
+
@include apply-shadow-box();
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
background-color: getColor('bg-info');
|
|
17
|
+
border-radius: $radius;
|
|
18
|
+
margin-bottom: 16px;
|
|
19
|
+
position: relative;
|
|
20
|
+
margin-left: 24px;
|
|
21
|
+
margin-right: 24px;
|
|
22
|
+
|
|
23
|
+
.toaster-close {
|
|
24
|
+
padding-right: 0 !important ;
|
|
25
|
+
color: getColor('font') !important;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.text:first-child,
|
|
29
|
+
.title:first-child {
|
|
30
|
+
font-size: $text-16 !important;
|
|
31
|
+
line-height: normal;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.title,
|
|
35
|
+
.text {
|
|
36
|
+
margin-bottom: 0 !important ;
|
|
37
|
+
padding-bottom: $spacing-1;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.text:last-child {
|
|
41
|
+
padding-bottom: 0 !important;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.icon {
|
|
45
|
+
padding: 0;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@include mobile {
|
|
49
|
+
flex-wrap: wrap;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
strong {
|
|
53
|
+
color: currentColor;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
code,
|
|
57
|
+
pre {
|
|
58
|
+
background: getColor('background');
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
pre code {
|
|
62
|
+
background: transparent;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@each $name, $pair in $colors-feedback {
|
|
66
|
+
$bg-color: nth($pair, 1);
|
|
67
|
+
&.is-#{$name} {
|
|
68
|
+
background-color: getColor($bg-color);
|
|
69
|
+
border: 2px solid getColor($name);
|
|
70
|
+
|
|
71
|
+
.icon {
|
|
72
|
+
color: getColor($name);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&:not(.has-description) > .icon {
|
|
78
|
+
align-self: flex-start;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&.has-description {
|
|
82
|
+
@include mobile {
|
|
83
|
+
justify-content: center;
|
|
84
|
+
text-align: center;
|
|
85
|
+
|
|
86
|
+
.icon {
|
|
87
|
+
padding: 0;
|
|
88
|
+
margin-bottom: 30px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.body {
|
|
92
|
+
flex: 0 1 auto;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
display: flex;
|
|
98
|
+
|
|
99
|
+
> .icon {
|
|
100
|
+
flex: none;
|
|
101
|
+
align-self: flex-start;
|
|
102
|
+
margin-top: -5.4px;
|
|
103
|
+
font-size: 20px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
> .body {
|
|
107
|
+
align-self: center;
|
|
108
|
+
color: getColor('font');
|
|
109
|
+
margin-bottom: 0;
|
|
110
|
+
flex-grow: 1;
|
|
111
|
+
padding: 1px $spacing-2; /* Fixes flex behavior on Safari mobile */
|
|
112
|
+
|
|
113
|
+
@include mobile {
|
|
114
|
+
flex: 1;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
box-shadow: none;
|
|
119
|
+
padding: $spacing-4;
|
|
120
|
+
|
|
121
|
+
.title,
|
|
122
|
+
.text,
|
|
123
|
+
.paragraph {
|
|
124
|
+
font-size: $text-14;
|
|
125
|
+
text-align: left;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
}
|