@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
|
@@ -4,295 +4,242 @@
|
|
|
4
4
|
* @deprecated "Use box.is-paddingless instead"
|
|
5
5
|
*/
|
|
6
6
|
.table-container.box {
|
|
7
|
-
|
|
7
|
+
padding: 0;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.table {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
@include block;
|
|
12
|
+
|
|
13
|
+
background-color: transparent;
|
|
14
|
+
color: getColor('neutral-dark');
|
|
15
|
+
|
|
16
|
+
&:not(:last-child) {
|
|
17
|
+
margin-bottom: 30px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated "Use multiples <tr><th> instead"
|
|
22
|
+
*/
|
|
23
|
+
tbody .is-body-header {
|
|
24
|
+
background-color: getBGColor('neutral-dark');
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
td,
|
|
28
|
+
th {
|
|
29
|
+
border: 1px solid getBGColor('neutral-dark');
|
|
30
|
+
border-width: 0;
|
|
31
|
+
padding: 20px;
|
|
32
|
+
vertical-align: top;
|
|
33
|
+
text-align: left;
|
|
34
|
+
|
|
35
|
+
// Modifiers
|
|
36
|
+
&.is-narrow {
|
|
37
|
+
white-space: nowrap;
|
|
38
|
+
width: 1%;
|
|
18
39
|
}
|
|
19
40
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
41
|
+
&.is-selected {
|
|
42
|
+
background-color: getColor('main');
|
|
43
|
+
color: getColor('background');
|
|
44
|
+
|
|
45
|
+
a,
|
|
46
|
+
strong {
|
|
47
|
+
color: currentColor;
|
|
48
|
+
}
|
|
25
49
|
}
|
|
50
|
+
}
|
|
26
51
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
border-width: 0;
|
|
31
|
-
padding: 20px;
|
|
32
|
-
vertical-align: top;
|
|
33
|
-
text-align: left;
|
|
34
|
-
|
|
35
|
-
// Modifiers
|
|
36
|
-
&.is-narrow {
|
|
37
|
-
white-space: nowrap;
|
|
38
|
-
width: 1%;
|
|
39
|
-
}
|
|
52
|
+
th {
|
|
53
|
+
color: getColor('font');
|
|
54
|
+
}
|
|
40
55
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
color: currentColor;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
56
|
+
tr {
|
|
57
|
+
@each $name in $colors-feedback {
|
|
58
|
+
&.is-#{$name} {
|
|
59
|
+
background-color: getBGColor($name);
|
|
60
|
+
}
|
|
49
61
|
}
|
|
50
62
|
|
|
51
63
|
th {
|
|
52
|
-
|
|
64
|
+
background-color: getColor('background');
|
|
53
65
|
}
|
|
54
66
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
}
|
|
67
|
+
th,
|
|
68
|
+
td {
|
|
69
|
+
color: getColor('font');
|
|
70
|
+
vertical-align: middle;
|
|
71
|
+
}
|
|
62
72
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
73
|
+
td {
|
|
74
|
+
border-bottom: 1px solid getBGColor('neutral-dark');
|
|
66
75
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
td {
|
|
74
|
-
border-bottom: 1px solid getColor('grey-light');
|
|
76
|
+
> p {
|
|
77
|
+
margin: 0;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
75
80
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
81
|
+
&.is-selected {
|
|
82
|
+
background-color: getColor('main');
|
|
83
|
+
color: getColor('background');
|
|
80
84
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
85
|
+
a,
|
|
86
|
+
strong {
|
|
87
|
+
color: currentColor;
|
|
88
|
+
}
|
|
84
89
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
90
|
+
td,
|
|
91
|
+
th {
|
|
92
|
+
border-color: currentColor;
|
|
93
|
+
color: currentColor;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
89
96
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
97
|
+
&.is-expanded,
|
|
98
|
+
&.is-expandable:hover {
|
|
99
|
+
td {
|
|
100
|
+
color: getColor('alternate');
|
|
101
|
+
cursor: pointer;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
96
104
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
color: getColor('alternate');
|
|
101
|
-
cursor: pointer;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
105
|
+
&.is-expandable + .is-expansion {
|
|
106
|
+
display: none;
|
|
107
|
+
}
|
|
104
108
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
109
|
+
&.is-expanded + .is-expansion {
|
|
110
|
+
display: table-row;
|
|
111
|
+
}
|
|
108
112
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
113
|
+
&.is-expanded {
|
|
114
|
+
> td {
|
|
115
|
+
border-bottom: 0;
|
|
116
|
+
}
|
|
112
117
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
118
|
+
.toggle {
|
|
119
|
+
transform: rotate(180deg);
|
|
120
|
+
color: inherit;
|
|
121
|
+
}
|
|
117
122
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
123
|
+
+ tr > td {
|
|
124
|
+
border-top: 0;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
122
128
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
129
|
+
thead {
|
|
130
|
+
td,
|
|
131
|
+
th {
|
|
132
|
+
border-width: 0 0 1px;
|
|
133
|
+
color: getColor('font');
|
|
127
134
|
}
|
|
135
|
+
}
|
|
128
136
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
}
|
|
137
|
+
tfoot {
|
|
138
|
+
td,
|
|
139
|
+
th {
|
|
140
|
+
border-width: 2px 0 0;
|
|
141
|
+
color: getColor('font');
|
|
135
142
|
}
|
|
143
|
+
}
|
|
136
144
|
|
|
137
|
-
|
|
145
|
+
tbody {
|
|
146
|
+
tr {
|
|
147
|
+
&:last-child {
|
|
138
148
|
td,
|
|
139
149
|
th {
|
|
140
|
-
|
|
141
|
-
color: getColor('font');
|
|
150
|
+
border-bottom-width: 0;
|
|
142
151
|
}
|
|
152
|
+
}
|
|
143
153
|
}
|
|
154
|
+
}
|
|
144
155
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
td,
|
|
149
|
-
th {
|
|
150
|
-
border-bottom-width: 0;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
}
|
|
156
|
+
&:not(.is-bordered).is-comparative {
|
|
157
|
+
th {
|
|
158
|
+
border-right: 1px solid getBGColor('neutral');
|
|
154
159
|
}
|
|
155
160
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
td {
|
|
162
|
-
&:not(:last-child) {
|
|
163
|
-
border-right: 1px solid getColor('grey-light');
|
|
164
|
-
}
|
|
165
|
-
}
|
|
161
|
+
td {
|
|
162
|
+
&:not(:last-child) {
|
|
163
|
+
border-right: 1px solid getBGColor('neutral-dark');
|
|
164
|
+
}
|
|
166
165
|
}
|
|
166
|
+
}
|
|
167
167
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
}
|
|
168
|
+
&.is-compact {
|
|
169
|
+
td,
|
|
170
|
+
th {
|
|
171
|
+
padding: math.div(20px, 3) math.div(20px, 3);
|
|
173
172
|
}
|
|
173
|
+
}
|
|
174
174
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
th {
|
|
180
|
-
color: getVariantColor('alternate',2);
|
|
181
|
-
font-weight: 600;
|
|
182
|
-
text-transform: uppercase;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
tbody {
|
|
187
|
-
border-top: 1px solid #d8d8d8;
|
|
188
|
-
|
|
189
|
-
tr {
|
|
190
|
-
td {
|
|
191
|
-
height: 40px;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
&:not(.is-body-header) td {
|
|
195
|
-
height: 96px;
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
}
|
|
175
|
+
&.is-bordered {
|
|
176
|
+
td,
|
|
177
|
+
th {
|
|
178
|
+
border-width: 1px;
|
|
199
179
|
}
|
|
200
180
|
|
|
201
|
-
|
|
181
|
+
tr {
|
|
182
|
+
&:last-child {
|
|
202
183
|
td,
|
|
203
184
|
th {
|
|
204
|
-
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
tr {
|
|
208
|
-
&:last-child {
|
|
209
|
-
td,
|
|
210
|
-
th {
|
|
211
|
-
border-bottom-width: 1px;
|
|
212
|
-
}
|
|
213
|
-
}
|
|
185
|
+
border-bottom-width: 1px;
|
|
214
186
|
}
|
|
187
|
+
}
|
|
215
188
|
}
|
|
189
|
+
}
|
|
216
190
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
191
|
+
&.is-fullwidth {
|
|
192
|
+
width: 100%;
|
|
193
|
+
}
|
|
220
194
|
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
&.is-striped {
|
|
231
|
-
tbody {
|
|
232
|
-
tr:not(.is-selected) {
|
|
233
|
-
&:hover {
|
|
234
|
-
background-color: getColor('grey-light');
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
}
|
|
195
|
+
&.is-striped {
|
|
196
|
+
tbody {
|
|
197
|
+
tr:not(.is-selected) {
|
|
198
|
+
&:nth-child(even) {
|
|
199
|
+
background-color: getBGColor('neutral');
|
|
238
200
|
}
|
|
201
|
+
}
|
|
239
202
|
}
|
|
203
|
+
}
|
|
240
204
|
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
}
|
|
246
|
-
}
|
|
205
|
+
.subtable {
|
|
206
|
+
background-color: getBGColor('neutral');
|
|
207
|
+
border-radius: var(--radius);
|
|
208
|
+
padding: $box-padding * 2;
|
|
247
209
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
tr:not(.is-selected) {
|
|
251
|
-
&:nth-child(even) {
|
|
252
|
-
background-color: getColor('grey-lighter');
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
}
|
|
210
|
+
@include mobile() {
|
|
211
|
+
padding: 15px;
|
|
256
212
|
}
|
|
257
213
|
|
|
258
|
-
.
|
|
259
|
-
|
|
260
|
-
border-radius: $radius;
|
|
261
|
-
padding: $box-padding * 2;
|
|
214
|
+
.table {
|
|
215
|
+
background: transparent;
|
|
262
216
|
|
|
263
|
-
|
|
264
|
-
|
|
217
|
+
tr:not(:first-child) {
|
|
218
|
+
td {
|
|
219
|
+
border-top: 1px solid getColor('neutral-dark');
|
|
265
220
|
}
|
|
221
|
+
}
|
|
266
222
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
tr:not(:first-child) {
|
|
271
|
-
td {
|
|
272
|
-
border-top: 1px solid getColor('grey-dark');
|
|
273
|
-
}
|
|
274
|
-
}
|
|
223
|
+
td {
|
|
224
|
+
border: 0;
|
|
275
225
|
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
&:first-child {
|
|
280
|
-
padding-left: 0;
|
|
281
|
-
}
|
|
226
|
+
&:first-child {
|
|
227
|
+
padding-left: 0;
|
|
228
|
+
}
|
|
282
229
|
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
}
|
|
286
|
-
}
|
|
230
|
+
&:last-child {
|
|
231
|
+
padding-right: 0;
|
|
287
232
|
}
|
|
233
|
+
}
|
|
288
234
|
}
|
|
235
|
+
}
|
|
289
236
|
}
|
|
290
237
|
|
|
291
238
|
.table-container {
|
|
292
|
-
|
|
293
|
-
|
|
239
|
+
@include block;
|
|
240
|
+
@include overflow-touch;
|
|
294
241
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
242
|
+
overflow: auto;
|
|
243
|
+
overflow-y: hidden;
|
|
244
|
+
max-width: 100%;
|
|
298
245
|
}
|
|
@@ -1,131 +1,130 @@
|
|
|
1
|
-
$tag-radius: $radius-rounded !default;
|
|
2
1
|
$tag-delete-margin: 1px !default;
|
|
3
2
|
|
|
4
3
|
// container pour multi-tags ou tags avec actions
|
|
5
4
|
.tags {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.tag {
|
|
19
|
-
margin-bottom: 10px;
|
|
20
|
-
}
|
|
5
|
+
align-items: center;
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
flex-wrap: wrap;
|
|
8
|
+
justify-content: flex-start;
|
|
9
|
+
margin-bottom: 16px;
|
|
10
|
+
|
|
11
|
+
// multi-tags : ajout d'une marge bottom, supprimable par facette
|
|
12
|
+
&:not(.is-gapless) {
|
|
13
|
+
&:not(:last-child) {
|
|
14
|
+
margin-right: 8px;
|
|
21
15
|
}
|
|
22
16
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
margin-right: 8px;
|
|
17
|
+
.tag {
|
|
18
|
+
margin-bottom: 10px;
|
|
26
19
|
}
|
|
20
|
+
}
|
|
27
21
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
22
|
+
// multi-tags : ajout d'une marge à droite de chaque tag
|
|
23
|
+
.tag:not(:last-child) {
|
|
24
|
+
margin-right: 8px;
|
|
25
|
+
}
|
|
32
26
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
.tag {
|
|
38
|
-
margin-right: 0;
|
|
39
|
-
|
|
40
|
-
&:not(:first-child) {
|
|
41
|
-
border-bottom-left-radius: 0;
|
|
42
|
-
border-top-left-radius: 0;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&:not(:last-child) {
|
|
46
|
-
border-bottom-right-radius: 0;
|
|
47
|
-
border-top-right-radius: 0;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
&:first-child {
|
|
51
|
-
padding-right: 5px;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
+ .tag {
|
|
55
|
-
padding: 0;
|
|
56
|
-
position: relative;
|
|
57
|
-
width: 25px;
|
|
58
|
-
border-width: 0;
|
|
59
|
-
|
|
60
|
-
// fixme : cette règle ne devrait-elle pas s'appliquer à TOUS les buttons ?
|
|
61
|
-
cursor: inherit;
|
|
62
|
-
|
|
63
|
-
// affichage d'une fausse croix avec 2 traits penchés
|
|
64
|
-
&:empty {
|
|
65
|
-
&::before,
|
|
66
|
-
&::after {
|
|
67
|
-
position: absolute;
|
|
68
|
-
content: '';
|
|
69
|
-
height: 10px;
|
|
70
|
-
width: 2px;
|
|
71
|
-
background-color: currentColor;
|
|
72
|
-
top: 50%;
|
|
73
|
-
left: 30%;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
&::before {
|
|
77
|
-
transform: translate(50%, -50%) rotate(45deg);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
&::after {
|
|
81
|
-
transform: translate(50%, -50%) rotate(-45deg);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
27
|
+
// centrage des tags
|
|
28
|
+
&.is-centered {
|
|
29
|
+
justify-content: center;
|
|
30
|
+
}
|
|
86
31
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
32
|
+
// tags avec actions
|
|
33
|
+
&.has-addons {
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
|
|
36
|
+
.tag {
|
|
37
|
+
margin-right: 0;
|
|
38
|
+
|
|
39
|
+
&:not(:first-child) {
|
|
40
|
+
border-bottom-left-radius: 0;
|
|
41
|
+
border-top-left-radius: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&:not(:last-child) {
|
|
45
|
+
border-bottom-right-radius: 0;
|
|
46
|
+
border-top-right-radius: 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&:first-child {
|
|
50
|
+
padding-right: 5px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
+ .tag {
|
|
54
|
+
padding: 0;
|
|
55
|
+
position: relative;
|
|
56
|
+
width: 25px;
|
|
57
|
+
border-width: 0;
|
|
58
|
+
|
|
59
|
+
// fixme : cette règle ne devrait-elle pas s'appliquer à TOUS les buttons ?
|
|
60
|
+
cursor: inherit;
|
|
61
|
+
|
|
62
|
+
// affichage d'une fausse croix avec 2 traits penchés
|
|
63
|
+
&:empty {
|
|
64
|
+
&::before,
|
|
65
|
+
&::after {
|
|
66
|
+
position: absolute;
|
|
67
|
+
content: '';
|
|
68
|
+
height: 10px;
|
|
69
|
+
width: 2px;
|
|
70
|
+
background-color: currentColor;
|
|
71
|
+
top: 50%;
|
|
72
|
+
left: 30%;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&::before {
|
|
76
|
+
transform: translate(50%, -50%) rotate(45deg);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&::after {
|
|
80
|
+
transform: translate(50%, -50%) rotate(-45deg);
|
|
81
|
+
}
|
|
91
82
|
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
92
85
|
|
|
86
|
+
&.is-inverted {
|
|
87
|
+
.tag {
|
|
88
|
+
background-color: getColor(getColor('background'));
|
|
89
|
+
}
|
|
93
90
|
}
|
|
91
|
+
|
|
92
|
+
}
|
|
94
93
|
}
|
|
95
94
|
|
|
96
95
|
.tag {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
96
|
+
align-items: center;
|
|
97
|
+
background-color: getBGColor('neutral-dark');
|
|
98
|
+
border-radius: 9999px;
|
|
99
|
+
color: getColor('font');
|
|
100
|
+
display: inline-flex;
|
|
101
|
+
font-size: $size-medium;
|
|
102
|
+
font-weight: $weight-medium;
|
|
103
|
+
height: 28px;
|
|
104
|
+
justify-content: center;
|
|
105
|
+
line-height: 20px;
|
|
106
|
+
padding: $spacing-1 $spacing-2;
|
|
107
|
+
white-space: nowrap;
|
|
108
|
+
|
|
109
|
+
&.is-small {
|
|
110
|
+
font-size: $text-12;
|
|
111
|
+
line-height: 15px;
|
|
112
|
+
height: 23px;
|
|
113
|
+
}
|
|
115
114
|
|
|
116
115
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
116
|
+
@include mobile {
|
|
117
|
+
font-size: 12px;
|
|
118
|
+
line-height: 15px;
|
|
119
|
+
}
|
|
121
120
|
|
|
122
|
-
@each $name
|
|
123
|
-
$bg-color: nth($pair, 1);
|
|
121
|
+
@each $name in $colors-feedback {
|
|
124
122
|
&.is-#{$name}:not(.is-inverted) {
|
|
125
|
-
background-color:
|
|
123
|
+
background-color: getBGColor($name);
|
|
126
124
|
}
|
|
127
125
|
&.is-inverted.is-#{$name} {
|
|
128
126
|
color: getColor($name);
|
|
127
|
+
background-color: invertColor($name);
|
|
129
128
|
}
|
|
130
129
|
}
|
|
131
130
|
}
|