@trilogy-ds/styles 0.0.1-beta.9 → 0.0.2-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/dist/default/assets/icons/all/calendar.svg +1 -0
- package/dist/default/assets/icons/all/file-attached.svg +1 -0
- package/dist/default/assets/icons/all/micro.svg +1 -0
- package/dist/default/assets/icons/all/paperclip.svg +1 -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/_all.scss +2 -2
- package/framework/src/base/_all.scss +1 -1
- package/framework/src/base/_color.scss +1 -52
- package/framework/src/base/_elements.scss +1 -1
- package/framework/src/base/_generic.scss +9 -1
- package/framework/src/base/_helpers.scss +34 -44
- package/framework/src/base/_loading.scss +9 -2
- package/framework/src/base/_reset.scss +11 -1
- package/framework/src/components/_accordion.scss +55 -89
- 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 +29 -38
- package/framework/src/components/_button.scss +79 -0
- package/framework/src/components/_calendar.scss +129 -0
- package/framework/src/components/_card.scss +33 -87
- package/framework/src/components/_checkbox.scss +71 -0
- package/framework/src/components/_chips.scss +84 -0
- package/framework/src/{elements → components}/_container.scss +7 -46
- package/framework/src/components/_countdown.scss +49 -47
- package/framework/src/components/_date-picker.scss +58 -0
- package/framework/src/components/_divider.scss +48 -14
- package/framework/src/components/_dropdown.scss +166 -99
- package/framework/src/components/_fab.scss +25 -38
- package/framework/src/components/_flex-box.scss +994 -0
- package/framework/src/{elements → components}/_icon.scss +4 -4
- 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/{elements → components}/_loader.scss +2 -2
- package/framework/src/components/_modal.scss +182 -158
- package/framework/src/components/_otp.scss +11 -30
- package/framework/src/components/_pagination.scss +60 -159
- package/framework/src/components/_popover.scss +260 -260
- package/framework/src/components/_price.scss +140 -165
- package/framework/src/components/_product-tour.scss +2 -4
- package/framework/src/components/_prompt.scss +125 -0
- package/framework/src/components/_radio.scss +82 -0
- package/framework/src/components/_range.scss +73 -72
- package/framework/src/components/_segmented-control.scss +55 -53
- package/framework/src/components/_select.scss +131 -0
- package/framework/src/components/_stepper.scss +42 -222
- package/framework/src/{elements → components}/_sticker.scss +25 -28
- package/framework/src/components/_switch.scss +97 -191
- package/framework/src/components/_table.scss +244 -0
- package/framework/src/components/_tabs.scss +114 -98
- 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 +28 -113
- package/framework/src/components/_title.scss +151 -0
- package/framework/src/{elements → components/alert}/_alert.scss +13 -10
- package/framework/src/components/alert/_index.scss +2 -0
- package/framework/src/{elements → components/alert}/_toaster.scss +4 -8
- package/framework/src/components/input/_entry.scss +135 -0
- package/framework/src/{elements → components/input}/_form.scss +42 -33
- 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/{elements → components/progress}/_progress.scss +34 -23
- package/framework/src/elements/_index.scss +5 -0
- package/framework/src/elements/_other.scss +0 -41
- package/framework/src/{components → elements}/_plus-symbol.scss +1 -1
- package/framework/src/grid/_columns.scss +278 -763
- package/framework/src/grid/_rows.scss +45 -38
- package/framework/src/layout/_all.scss +0 -1
- package/framework/src/layout/_hero.scss +92 -214
- package/framework/src/layout/_section.scss +10 -29
- 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-mangled.scss +3 -3
- package/framework/src/trilogy.scss +2 -2
- package/framework/src/utilities/_a11y.scss +13 -0
- package/framework/src/utilities/_all.scss +4 -0
- package/framework/src/utilities/_background.scss +21 -0
- package/framework/src/utilities/_controls.scss +38 -49
- package/framework/src/utilities/_derived-variables.scss +0 -103
- package/framework/src/utilities/_initial-variables.scss +4 -144
- package/framework/src/utilities/_pre.scss +4 -1
- 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 +8 -3
- package/framework/src/components/_all.scss +0 -30
- package/framework/src/components/_autolayout2.scss +0 -38
- package/framework/src/components/_disclaimer.scss +0 -84
- package/framework/src/components/_level.scss +0 -120
- package/framework/src/components/_media.scss +0 -64
- package/framework/src/components/_menu.scss +0 -213
- package/framework/src/components/_progress-radial.scss +0 -23
- 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/elements/_all.scss +0 -35
- package/framework/src/elements/_badge.scss +0 -81
- package/framework/src/elements/_box.scss +0 -267
- package/framework/src/elements/_button.scss +0 -192
- package/framework/src/elements/_checkbox.scss +0 -39
- package/framework/src/elements/_checkradio.scss +0 -173
- package/framework/src/elements/_chips.scss +0 -100
- package/framework/src/elements/_dot.scss +0 -6
- package/framework/src/elements/_entry.scss +0 -109
- package/framework/src/elements/_image.scss +0 -59
- package/framework/src/elements/_input-gauge.scss +0 -37
- package/framework/src/elements/_input-icons.scss +0 -41
- package/framework/src/elements/_link.scss +0 -79
- package/framework/src/elements/_list.scss +0 -61
- package/framework/src/elements/_notification.scss +0 -151
- package/framework/src/elements/_options.scss +0 -146
- package/framework/src/elements/_paragraph.scss +0 -101
- package/framework/src/elements/_radio.scss +0 -67
- package/framework/src/elements/_select.scss +0 -315
- package/framework/src/elements/_switch.scss +0 -108
- package/framework/src/elements/_table.scss +0 -298
- package/framework/src/elements/_tag.scss +0 -131
- package/framework/src/elements/_textarea.scss +0 -125
- package/framework/src/elements/_timeline.scss +0 -283
- package/framework/src/elements/_title.scss +0 -139
- package/framework/src/layout/_toolbar.scss +0 -100
- package/framework/src/utilities/_mixins.scss +0 -744
|
@@ -1,209 +1,115 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
$paddle-height: $switch-height - $switch-paddle-offset * 2;
|
|
6
|
-
$paddle-width: $paddle-height;
|
|
7
|
-
|
|
8
|
-
.switch[type='checkbox'] {
|
|
9
|
-
outline: 0;
|
|
10
|
-
user-select: none;
|
|
11
|
-
display: inline-block;
|
|
12
|
-
position: absolute;
|
|
13
|
-
opacity: 0;
|
|
1
|
+
.switch {
|
|
2
|
+
position: relative;
|
|
3
|
+
margin: 8px;
|
|
4
|
+
width: fit-content;
|
|
14
5
|
|
|
15
|
-
|
|
16
|
-
|
|
6
|
+
&.is-fullwidth {
|
|
7
|
+
width: 100%;
|
|
8
|
+
}
|
|
17
9
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
&::after {
|
|
23
|
-
opacity: 0.5;
|
|
24
|
-
}
|
|
10
|
+
input {
|
|
11
|
+
opacity: 0;
|
|
12
|
+
position: absolute;
|
|
13
|
+
outline: none;
|
|
25
14
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
}
|
|
15
|
+
&:focus-visible ~ label:before{
|
|
16
|
+
outline: 2px solid;
|
|
30
17
|
}
|
|
18
|
+
&:disabled ~ label,
|
|
19
|
+
&:disabled:checked ~ label {
|
|
20
|
+
cursor: not-allowed;
|
|
31
21
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
&::before,
|
|
37
|
-
&::after {
|
|
38
|
-
content: '';
|
|
39
|
-
border: none;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&::before {
|
|
43
|
-
min-width: $switch-width;
|
|
44
|
-
flex-basis: $switch-width;
|
|
45
|
-
height: $switch-height;
|
|
46
|
-
background: getColor('grey-disabled');
|
|
47
|
-
border-radius: $radius * 4;
|
|
48
|
-
margin-right: 0;
|
|
49
|
-
margin-left: $switch-margin;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&::after {
|
|
53
|
-
content: '\f103';
|
|
54
|
-
margin-left: 0;
|
|
55
|
-
margin-right: 0;
|
|
56
|
-
display: inline-flex;
|
|
57
|
-
align-items: center;
|
|
58
|
-
justify-content: center;
|
|
59
|
-
width: $paddle-width;
|
|
60
|
-
height: $paddle-height;
|
|
61
|
-
color: getColor('grey-disabled');
|
|
62
|
-
left: auto;
|
|
63
|
-
right: $switch-width - $paddle-width - $switch-paddle-offset;
|
|
64
|
-
top: 50%;
|
|
65
|
-
transform: translateY(-50%);
|
|
66
|
-
background: getColor('background');
|
|
67
|
-
transition: all 0.25s ease-out;
|
|
68
|
-
border-radius: 100%;
|
|
69
|
-
}
|
|
22
|
+
&:before {
|
|
23
|
+
background-color: getColor('disabled');
|
|
24
|
+
}
|
|
70
25
|
}
|
|
71
26
|
|
|
72
|
-
&:
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
&::after {
|
|
79
|
-
right: $switch-paddle-offset;
|
|
80
|
-
content: '\f102';
|
|
81
|
-
color: getColor('alternate');
|
|
82
|
-
}
|
|
83
|
-
}
|
|
27
|
+
&:disabled ~ label {
|
|
28
|
+
&:after {
|
|
29
|
+
$colorSvg: encodecolor(getColor('disabled'));
|
|
30
|
+
content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-width="3.2" fill="none"><path d="M12.6 12.6L31.4 31.4M12.6 31.4L31.4 12.6"/></svg>');
|
|
31
|
+
}
|
|
84
32
|
}
|
|
85
33
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
&::after {
|
|
94
|
-
color: getColor('success');
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
34
|
+
&:disabled:checked ~ label {
|
|
35
|
+
&:after {
|
|
36
|
+
$colorSvg: encodecolor(getColor('disabled'));
|
|
37
|
+
content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" fill="none"><path d="M11.3 22.4L18.1 29.3L32.7 14.7"/></svg>');
|
|
38
|
+
}
|
|
98
39
|
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
label {
|
|
43
|
+
width: 100%;
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
padding: $spacing-1;
|
|
48
|
+
padding-right: 60px;
|
|
49
|
+
|
|
50
|
+
&:before {
|
|
51
|
+
content: '';
|
|
52
|
+
position: absolute;
|
|
53
|
+
top: 50%;
|
|
54
|
+
transform: translateY(-50%);
|
|
55
|
+
right: 0;
|
|
56
|
+
border-radius: 9999px;
|
|
57
|
+
width: 44px;
|
|
58
|
+
height: 22px;
|
|
59
|
+
background-color: getColor('neutral');
|
|
112
60
|
}
|
|
113
61
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
62
|
+
&:after {
|
|
63
|
+
$colorSvg: encodecolor(getColor('neutral'));
|
|
64
|
+
content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-width="3.2" fill="none"><path d="M12.6 12.6L31.4 31.4M12.6 31.4L31.4 12.6"/></svg>');
|
|
65
|
+
position: absolute;
|
|
66
|
+
top: 50%;
|
|
67
|
+
transform: translateY(-50%);
|
|
68
|
+
right: calc(44px - 18px - 2px);
|
|
69
|
+
border-radius: 9999px;
|
|
70
|
+
width: 18px;
|
|
71
|
+
height: 18px;
|
|
72
|
+
background-color: getColor('background');
|
|
73
|
+
transition: 0.3s;
|
|
126
74
|
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
input:checked {
|
|
78
|
+
& ~ label {
|
|
79
|
+
font-weight: bold;
|
|
80
|
+
|
|
81
|
+
&:before {
|
|
82
|
+
background-color: getColor('main');
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&:after {
|
|
86
|
+
right: 2px;
|
|
87
|
+
$colorSvg: encodecolor(getColor('main'));
|
|
88
|
+
content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" fill="none"><path d="M11.3 22.4L18.1 29.3L32.7 14.7"/></svg>');
|
|
89
|
+
background-color: getColor('background');
|
|
90
|
+
}
|
|
140
91
|
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
position: absolute;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&.is-reversed {
|
|
95
|
+
label {
|
|
96
|
+
flex-direction: row-reverse;
|
|
97
|
+
padding-right: 0;
|
|
98
|
+
padding-left: 60px;
|
|
99
|
+
|
|
100
|
+
&:before {
|
|
101
|
+
left: 0;
|
|
102
|
+
margin-left: 0;
|
|
103
|
+
margin-right: 16px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&:after {
|
|
107
|
+
left: 2px;
|
|
108
|
+
}
|
|
161
109
|
}
|
|
162
110
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
background: getColor('background');
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
+ label::after {
|
|
169
|
-
background: getColor('grey-disabled');
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
&:checked {
|
|
173
|
-
+ label {
|
|
174
|
-
&::before {
|
|
175
|
-
background: getColor('background');
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
&::after {
|
|
179
|
-
background: getColor('alternate');
|
|
180
|
-
color: getColor('background');
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
&.is-success {
|
|
186
|
-
&:checked + label::after {
|
|
187
|
-
background: getColor('success');
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
&.is-info {
|
|
192
|
-
&:checked + label::after {
|
|
193
|
-
background: getColor('info');
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
&.is-warning {
|
|
198
|
-
&:checked + label::after {
|
|
199
|
-
background: getColor('warning');
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
&.is-error {
|
|
204
|
-
&:checked + label::after {
|
|
205
|
-
background: getColor('error');
|
|
206
|
-
}
|
|
207
|
-
}
|
|
111
|
+
input:checked ~ label:after {
|
|
112
|
+
left: calc(44px - 18px - 2px);
|
|
208
113
|
}
|
|
114
|
+
}
|
|
209
115
|
}
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated "Use box.is-paddingless instead"
|
|
5
|
+
*/
|
|
6
|
+
.table-container.box {
|
|
7
|
+
padding: 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.table {
|
|
11
|
+
@include block;
|
|
12
|
+
|
|
13
|
+
background-color: transparent;
|
|
14
|
+
color: getColor('neutral');
|
|
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: getColor('neutral-fade');
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
td,
|
|
28
|
+
th {
|
|
29
|
+
border: var(--border);
|
|
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
|
+
}
|
|
40
|
+
|
|
41
|
+
&.is-selected {
|
|
42
|
+
background-color: getColor('main');
|
|
43
|
+
color: getColor('background');
|
|
44
|
+
|
|
45
|
+
a,
|
|
46
|
+
strong {
|
|
47
|
+
color: currentColor;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
th {
|
|
53
|
+
color: getColor('font');
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
tr {
|
|
57
|
+
@each $name in $colors-feedback {
|
|
58
|
+
&.is-#{$name} {
|
|
59
|
+
background-color: fadeColor($name);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
th {
|
|
64
|
+
background-color: getColor('background');
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
th,
|
|
68
|
+
td {
|
|
69
|
+
color: getColor('font');
|
|
70
|
+
vertical-align: middle;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
td {
|
|
74
|
+
border-bottom: var(--border);
|
|
75
|
+
|
|
76
|
+
> p {
|
|
77
|
+
margin: 0;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&.is-selected {
|
|
82
|
+
background-color: getColor('main');
|
|
83
|
+
color: getColor('background');
|
|
84
|
+
|
|
85
|
+
a,
|
|
86
|
+
strong {
|
|
87
|
+
color: currentColor;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
td,
|
|
91
|
+
th {
|
|
92
|
+
color: currentColor;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&.is-expanded,
|
|
97
|
+
&.is-expandable:hover {
|
|
98
|
+
td {
|
|
99
|
+
color: getColor('accent');
|
|
100
|
+
cursor: pointer;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&.is-expandable + .is-expansion {
|
|
105
|
+
display: none;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&.is-expanded + .is-expansion {
|
|
109
|
+
display: table-row;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&.is-expanded {
|
|
113
|
+
> td {
|
|
114
|
+
border-bottom: 0;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.toggle {
|
|
118
|
+
transform: rotate(180deg);
|
|
119
|
+
color: inherit;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
+ tr > td {
|
|
123
|
+
border-top: 0;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
thead {
|
|
129
|
+
td,
|
|
130
|
+
th {
|
|
131
|
+
border-width: 0 0 1px;
|
|
132
|
+
color: getColor('font');
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
tfoot {
|
|
137
|
+
td,
|
|
138
|
+
th {
|
|
139
|
+
border-width: 2px 0 0;
|
|
140
|
+
color: getColor('font');
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
tbody {
|
|
145
|
+
tr {
|
|
146
|
+
&:last-child {
|
|
147
|
+
td,
|
|
148
|
+
th {
|
|
149
|
+
border-bottom-width: 0;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
&.has-border-all {
|
|
156
|
+
border: var(--border);
|
|
157
|
+
|
|
158
|
+
th {
|
|
159
|
+
border-right: var(--border);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
td {
|
|
163
|
+
&:not(:last-child) {
|
|
164
|
+
border-right: var(--border);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
&.has-border-inner {
|
|
170
|
+
th {
|
|
171
|
+
&:not(:last-child) {
|
|
172
|
+
border-right: var(--border);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
td {
|
|
177
|
+
&:not(:last-child) {
|
|
178
|
+
border-right: var(--border);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
&.is-compact {
|
|
184
|
+
td,
|
|
185
|
+
th {
|
|
186
|
+
padding: math.div(20px, 3) math.div(20px, 3);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
&.is-fullwidth {
|
|
191
|
+
width: 100%;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
&.is-striped {
|
|
195
|
+
tbody {
|
|
196
|
+
tr:not(.is-selected) {
|
|
197
|
+
&:nth-child(even) {
|
|
198
|
+
background-color: getColor('neutral-fade');
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.subtable {
|
|
205
|
+
background-color: getColor('neutral-fade');
|
|
206
|
+
border-radius: var(--radius);
|
|
207
|
+
padding: 25px;
|
|
208
|
+
|
|
209
|
+
@include mobile() {
|
|
210
|
+
padding: 15px;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.table {
|
|
214
|
+
background: transparent;
|
|
215
|
+
|
|
216
|
+
tr:not(:first-child) {
|
|
217
|
+
td {
|
|
218
|
+
border-top: var(--border);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
td {
|
|
223
|
+
border: 0;
|
|
224
|
+
|
|
225
|
+
&:first-child {
|
|
226
|
+
padding-left: 0;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
&:last-child {
|
|
230
|
+
padding-right: 0;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.table-container {
|
|
238
|
+
@include block;
|
|
239
|
+
@include overflow-touch;
|
|
240
|
+
|
|
241
|
+
overflow: auto;
|
|
242
|
+
overflow-y: hidden;
|
|
243
|
+
max-width: 100%;
|
|
244
|
+
}
|