@oruga-ui/theme-oruga 0.4.2 → 0.5.0
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/oruga.css +2 -4046
- package/dist/scss/components/_button.scss +30 -38
- package/dist/scss/components/_datepicker.scss +15 -8
- package/dist/scss/components/_dropdown.scss +1 -1
- package/dist/scss/components/_menu.scss +8 -3
- package/dist/scss/components/_pagination.scss +10 -10
- package/dist/scss/components/_slider.scss +9 -4
- package/dist/scss/components/_steps.scss +56 -123
- package/dist/scss/components/_tabs.scss +220 -232
- package/dist/scss/utils/_variables.scss +2 -2
- package/dist/theme.js +1 -8
- package/package.json +26 -33
- package/dist/oruga.min.css +0 -1
- package/src/assets/scss/components/_autocomplete.scss +0 -23
- package/src/assets/scss/components/_button.scss +0 -226
- package/src/assets/scss/components/_carousel.scss +0 -233
- package/src/assets/scss/components/_checkbox.scss +0 -171
- package/src/assets/scss/components/_collapse.scss +0 -15
- package/src/assets/scss/components/_datepicker.scss +0 -494
- package/src/assets/scss/components/_datetimepicker.scss +0 -13
- package/src/assets/scss/components/_dropdown.scss +0 -268
- package/src/assets/scss/components/_field.scss +0 -132
- package/src/assets/scss/components/_icon.scss +0 -53
- package/src/assets/scss/components/_input.scss +0 -149
- package/src/assets/scss/components/_loading.scss +0 -37
- package/src/assets/scss/components/_menu.scss +0 -92
- package/src/assets/scss/components/_modal.scss +0 -94
- package/src/assets/scss/components/_notification.scss +0 -175
- package/src/assets/scss/components/_pagination.scss +0 -213
- package/src/assets/scss/components/_radio.scss +0 -112
- package/src/assets/scss/components/_select.scss +0 -156
- package/src/assets/scss/components/_sidebar.scss +0 -139
- package/src/assets/scss/components/_skeleton.scss +0 -80
- package/src/assets/scss/components/_slider.scss +0 -199
- package/src/assets/scss/components/_steps.scss +0 -427
- package/src/assets/scss/components/_switch.scss +0 -150
- package/src/assets/scss/components/_table.scss +0 -424
- package/src/assets/scss/components/_tabs.scss +0 -348
- package/src/assets/scss/components/_taginput.scss +0 -117
- package/src/assets/scss/components/_timepicker.scss +0 -92
- package/src/assets/scss/components/_tooltip.scss +0 -453
- package/src/assets/scss/components/_upload.scss +0 -69
- package/src/assets/scss/oruga-build.scss +0 -9
- package/src/assets/scss/oruga.scss +0 -41
- package/src/assets/scss/utils/_animations.scss +0 -233
- package/src/assets/scss/utils/_base.scss +0 -31
- package/src/assets/scss/utils/_helpers.scss +0 -113
- package/src/assets/scss/utils/_root.scss +0 -54
- package/src/assets/scss/utils/_variables.scss +0 -103
|
@@ -1,424 +0,0 @@
|
|
|
1
|
-
@use "sass:list";
|
|
2
|
-
|
|
3
|
-
/* @docs */
|
|
4
|
-
$table-background-color: #fff !default;
|
|
5
|
-
$table-background: #f5f5f5 !default;
|
|
6
|
-
$table-boder: 1px solid transparent !default;
|
|
7
|
-
$table-border-radius: var(--#{$prefix}base-border-radius) !default;
|
|
8
|
-
$table-card-box-shadow:
|
|
9
|
-
0 2px 3px rgba(var(--#{$prefix}black), 0.1),
|
|
10
|
-
0 0 0 1px rgba(var(--#{$prefix}black), 0.1) !default;
|
|
11
|
-
$table-card-cell-font-weight: 600 !default;
|
|
12
|
-
$table-card-cell-padding: 0 0.5em 0 0 !default;
|
|
13
|
-
$table-card-cell-text-align: left !default;
|
|
14
|
-
$table-card-detail-margin: -1rem 0 0 0;
|
|
15
|
-
$table-card-margin: 0 0 1rem 0;
|
|
16
|
-
$table-color: black !default;
|
|
17
|
-
$table-current-sort-border-color: var(--#{$prefix}grey) !default;
|
|
18
|
-
$table-current-sort-font-weight: 700 !default;
|
|
19
|
-
$table-current-sort-hover-border-color: var(--#{$prefix}grey) !default;
|
|
20
|
-
$table-detail-background: #fafafa !default;
|
|
21
|
-
$table-detail-box-shadow: inset 0 1px 3px var(--#{$prefix}grey) !default;
|
|
22
|
-
$table-detail-chevron-color: var(--#{$prefix}primary) !default;
|
|
23
|
-
$table-detail-chevron-width: 40px !default;
|
|
24
|
-
$table-detail-padding: 1rem !default;
|
|
25
|
-
$table-focus-border-color: var(--#{$prefix}primary) !default;
|
|
26
|
-
$table-focus-box-shadow: 0 0 0 0.125em rgba(var(--#{$prefix}primary), 0.25) !default;
|
|
27
|
-
$table-hoverable-background-color: #fafafa !default;
|
|
28
|
-
$table-narrow-padding: 0.25em 0.5em !default;
|
|
29
|
-
$table-row-active-background-color: var(--#{$prefix}primary) !default;
|
|
30
|
-
$table-row-active-color: var(--#{$prefix}primary-invert) !default;
|
|
31
|
-
$table-sticky-header-height: 300px !default;
|
|
32
|
-
$table-sticky-zindex: 1 !default;
|
|
33
|
-
$table-striped-background-color: #fafafa !default;
|
|
34
|
-
$table-td-border: 1px solid var(--#{$prefix}grey-lighter) !default;
|
|
35
|
-
$table-td-padding: 0.5em 0.75em !default;
|
|
36
|
-
$table-th-border: 2px solid var(--#{$prefix}grey-lighter) !default;
|
|
37
|
-
$table-th-checkbox-width: 40px !default;
|
|
38
|
-
$table-th-color: #363636 !default;
|
|
39
|
-
$table-th-detail-width: 14px !default;
|
|
40
|
-
$table-th-font-weight: 600 !default;
|
|
41
|
-
$table-th-padding: 0.5em 0.75em !default;
|
|
42
|
-
/* @docs */
|
|
43
|
-
|
|
44
|
-
.o-table {
|
|
45
|
-
display: table;
|
|
46
|
-
width: 100%;
|
|
47
|
-
border-collapse: separate;
|
|
48
|
-
border-spacing: 0;
|
|
49
|
-
border: var(--#{$prefix}table-boder, $table-boder);
|
|
50
|
-
border-radius: var(--#{$prefix}table-border-radius, $table-border-radius);
|
|
51
|
-
background-color: var(
|
|
52
|
-
--#{$prefix}table-background-color,
|
|
53
|
-
$table-background-color
|
|
54
|
-
);
|
|
55
|
-
color: var(--#{$prefix}table-color, $table-color);
|
|
56
|
-
|
|
57
|
-
&__root {
|
|
58
|
-
position: relative;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
&__wrapper {
|
|
62
|
-
transition: opacity $animation-speed-fast $animation-timing;
|
|
63
|
-
position: relative;
|
|
64
|
-
|
|
65
|
-
&--sticky-header {
|
|
66
|
-
height: var(
|
|
67
|
-
--#{$prefix}table-sticky-header-height,
|
|
68
|
-
$table-sticky-header-height
|
|
69
|
-
);
|
|
70
|
-
overflow-y: auto;
|
|
71
|
-
|
|
72
|
-
th {
|
|
73
|
-
position: -webkit-sticky;
|
|
74
|
-
position: sticky;
|
|
75
|
-
left: 0;
|
|
76
|
-
top: 0;
|
|
77
|
-
background: var(
|
|
78
|
-
--#{$prefix}table-background-color,
|
|
79
|
-
$table-background-color
|
|
80
|
-
);
|
|
81
|
-
z-index: calc(
|
|
82
|
-
var(--#{$prefix}table-sticky-zindex, $table-sticky-zindex) + 1
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
&--scrollable {
|
|
88
|
-
-webkit-overflow-scrolling: touch;
|
|
89
|
-
overflow-x: auto;
|
|
90
|
-
max-width: 100%;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
&--mobile {
|
|
94
|
-
overflow-x: auto;
|
|
95
|
-
|
|
96
|
-
.o-table__mobile-sort {
|
|
97
|
-
display: block;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
// cards
|
|
101
|
-
.o-table {
|
|
102
|
-
background-color: transparent;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
thead {
|
|
106
|
-
tr {
|
|
107
|
-
box-shadow: none;
|
|
108
|
-
border-width: 0;
|
|
109
|
-
|
|
110
|
-
th {
|
|
111
|
-
display: none;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.o-table-th-checkbox {
|
|
115
|
-
display: block;
|
|
116
|
-
width: 100%;
|
|
117
|
-
text-align: right;
|
|
118
|
-
border: 0;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
tfoot {
|
|
124
|
-
th {
|
|
125
|
-
border: 0;
|
|
126
|
-
display: inherit;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
tr {
|
|
131
|
-
box-shadow: var(
|
|
132
|
-
--#{$prefix}table-card-box-shadow,
|
|
133
|
-
$table-card-box-shadow
|
|
134
|
-
);
|
|
135
|
-
max-width: 100%;
|
|
136
|
-
position: relative;
|
|
137
|
-
display: block;
|
|
138
|
-
|
|
139
|
-
td {
|
|
140
|
-
border: 0;
|
|
141
|
-
display: inherit;
|
|
142
|
-
|
|
143
|
-
&:last-child {
|
|
144
|
-
border-bottom: 0;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
&:not(:last-child) {
|
|
149
|
-
margin: var(--#{$prefix}table-card-margin, $table-card-margin);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
&:not(.o-table__tr--selected) {
|
|
153
|
-
background: inherit;
|
|
154
|
-
background: $table-background-color;
|
|
155
|
-
|
|
156
|
-
&:hover {
|
|
157
|
-
background-color: inherit;
|
|
158
|
-
background-color: $table-background-color;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
&.o-table--detailed {
|
|
163
|
-
margin: var(
|
|
164
|
-
--#{$prefix}table-card-detail-margin,
|
|
165
|
-
$table-card-detail-margin
|
|
166
|
-
);
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
tr:not(.o-table--detailed):not(.o-table--empty):not(.o-table__footer) {
|
|
171
|
-
td {
|
|
172
|
-
display: flex;
|
|
173
|
-
width: auto;
|
|
174
|
-
justify-content: space-between;
|
|
175
|
-
text-align: right;
|
|
176
|
-
border-bottom: var(
|
|
177
|
-
--#{$prefix}table-background,
|
|
178
|
-
($table-background 1px solid)
|
|
179
|
-
);
|
|
180
|
-
|
|
181
|
-
&:before {
|
|
182
|
-
content: attr(data-label);
|
|
183
|
-
font-weight: var(
|
|
184
|
-
--#{$prefix}table-card-cell-font-weight,
|
|
185
|
-
$table-card-cell-font-weight
|
|
186
|
-
);
|
|
187
|
-
padding-right: var(
|
|
188
|
-
--#{$prefix}table-card-cell-padding,
|
|
189
|
-
$table-card-cell-padding
|
|
190
|
-
);
|
|
191
|
-
text-align: var(
|
|
192
|
-
--#{$prefix}table-card-cell-text-align,
|
|
193
|
-
$table-card-cell-text-align
|
|
194
|
-
);
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
&__mobile-sort {
|
|
202
|
-
display: none;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
&__th {
|
|
206
|
-
vertical-align: top;
|
|
207
|
-
text-align: left;
|
|
208
|
-
position: relative;
|
|
209
|
-
font-weight: var(--#{$prefix}table-th-font-weight, $table-th-font-weight);
|
|
210
|
-
color: var(--#{$prefix}table-th-color, $table-th-color);
|
|
211
|
-
border-bottom: var(--#{$prefix}table-th-border, $table-th-border);
|
|
212
|
-
padding: var(--#{$prefix}table-th-padding, $table-th-padding);
|
|
213
|
-
|
|
214
|
-
&--centered {
|
|
215
|
-
text-align: center;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
&--right {
|
|
219
|
-
text-align: right;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
&__sort-icon {
|
|
223
|
-
position: absolute;
|
|
224
|
-
right: 0;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
&-checkbox {
|
|
228
|
-
width: var(--#{$prefix}table-th-checkbox-width, $table-th-checkbox-width);
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
&-current-sort {
|
|
232
|
-
border-color: var(
|
|
233
|
-
--#{$prefix}table-current-sort-border-color,
|
|
234
|
-
$table-current-sort-border-color
|
|
235
|
-
);
|
|
236
|
-
font-weight: var(
|
|
237
|
-
--#{$prefix}table-current-sort-font-weight,
|
|
238
|
-
$table-current-sort-font-weight
|
|
239
|
-
);
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
&--sortable {
|
|
243
|
-
cursor: pointer;
|
|
244
|
-
|
|
245
|
-
&:hover {
|
|
246
|
-
border-color: var(
|
|
247
|
-
--#{$prefix}table-current-sort-hover-border-color,
|
|
248
|
-
$table-current-sort-hover-border-color
|
|
249
|
-
);
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
&--sticky {
|
|
254
|
-
position: -webkit-sticky;
|
|
255
|
-
position: sticky;
|
|
256
|
-
left: 0;
|
|
257
|
-
top: 0;
|
|
258
|
-
z-index: var(--#{$prefix}table-sticky-zindex, $table-sticky-zindex);
|
|
259
|
-
background: var(
|
|
260
|
-
--#{$prefix}table-background-color,
|
|
261
|
-
$table-background-color
|
|
262
|
-
);
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
&--unselectable {
|
|
266
|
-
@include unselectable;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
&--detailed {
|
|
270
|
-
width: var(--#{$prefix}table-th-detail-width, $table-th-detail-width);
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
&__td {
|
|
275
|
-
vertical-align: top;
|
|
276
|
-
text-align: left;
|
|
277
|
-
border-bottom: var(--#{$prefix}table-td-border, $table-td-border);
|
|
278
|
-
padding: var(--#{$prefix}table-td-padding, $table-td-padding);
|
|
279
|
-
|
|
280
|
-
&--sticky {
|
|
281
|
-
position: -webkit-sticky;
|
|
282
|
-
position: sticky;
|
|
283
|
-
left: 0;
|
|
284
|
-
z-index: var(--#{$prefix}table-sticky-zindex, $table-sticky-zindex);
|
|
285
|
-
background: var(
|
|
286
|
-
--#{$prefix}table-background-color,
|
|
287
|
-
$table-background-color
|
|
288
|
-
);
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
&--right {
|
|
292
|
-
text-align: right;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
&--centered {
|
|
296
|
-
text-align: center;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
&-chevron {
|
|
300
|
-
vertical-align: middle;
|
|
301
|
-
width: var(
|
|
302
|
-
--#{$prefix}table-detail-chevron-width,
|
|
303
|
-
$table-detail-chevron-width
|
|
304
|
-
);
|
|
305
|
-
color: var(
|
|
306
|
-
--#{$prefix}table-detail-chevron-color,
|
|
307
|
-
$table-detail-chevron-color
|
|
308
|
-
);
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
&:focus {
|
|
313
|
-
border-color: var(
|
|
314
|
-
--#{$prefix}table-focus-border-color,
|
|
315
|
-
$table-focus-border-color
|
|
316
|
-
);
|
|
317
|
-
box-shadow: var(
|
|
318
|
-
--#{$prefix}table-focus-box-shadow,
|
|
319
|
-
$table-focus-box-shadow
|
|
320
|
-
);
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
&--bordered {
|
|
324
|
-
tr:last-child {
|
|
325
|
-
td,
|
|
326
|
-
th {
|
|
327
|
-
border: var(--#{$prefix}table-td-border, $table-td-border);
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
td,
|
|
332
|
-
th {
|
|
333
|
-
border: var(--#{$prefix}table-td-border, $table-td-border);
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
&--striped {
|
|
338
|
-
tbody tr:not(.o-table__tr--selected):nth-child(2n) {
|
|
339
|
-
background-color: var(
|
|
340
|
-
--#{$prefix}table-striped-background-color,
|
|
341
|
-
$table-striped-background-color
|
|
342
|
-
);
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
&--narrowed {
|
|
347
|
-
td,
|
|
348
|
-
th {
|
|
349
|
-
padding: var(--#{$prefix}table-narrow-padding, $table-narrow-padding);
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
&--hoverable {
|
|
354
|
-
tbody tr:not(.o-table__tr--selected):hover {
|
|
355
|
-
background-color: var(
|
|
356
|
-
--#{$prefix}table-hoverable-background-color,
|
|
357
|
-
$table-hoverable-background-color
|
|
358
|
-
);
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
&__detail {
|
|
363
|
-
box-shadow: var(
|
|
364
|
-
--#{$prefix}table-detail-box-shadow,
|
|
365
|
-
$table-detail-box-shadow
|
|
366
|
-
);
|
|
367
|
-
background: var(
|
|
368
|
-
--#{$prefix}table-detail-background,
|
|
369
|
-
$table-detail-background
|
|
370
|
-
);
|
|
371
|
-
|
|
372
|
-
td {
|
|
373
|
-
padding: var(--#{$prefix}table-detail-padding, $table-detail-padding);
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
&__tr--selected {
|
|
378
|
-
background-color: $table-row-active-background-color;
|
|
379
|
-
color: $table-row-active-color;
|
|
380
|
-
|
|
381
|
-
@each $name, $pair in $colors {
|
|
382
|
-
$color: list.nth($pair, 1);
|
|
383
|
-
$color-invert: list.nth($pair, 2);
|
|
384
|
-
&-#{$name} {
|
|
385
|
-
background-color: $color;
|
|
386
|
-
color: $color-invert;
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
&__pagination {
|
|
392
|
-
align-items: center;
|
|
393
|
-
justify-content: space-between;
|
|
394
|
-
display: flex;
|
|
395
|
-
|
|
396
|
-
// left - right
|
|
397
|
-
> div {
|
|
398
|
-
flex-basis: auto;
|
|
399
|
-
flex-grow: 0;
|
|
400
|
-
flex-shrink: 0;
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
// left
|
|
404
|
-
> div:first-child {
|
|
405
|
-
align-items: center;
|
|
406
|
-
justify-content: flex-start;
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
// right
|
|
410
|
-
> div:last-child {
|
|
411
|
-
align-items: center;
|
|
412
|
-
justify-content: flex-end;
|
|
413
|
-
|
|
414
|
-
> div {
|
|
415
|
-
align-items: center;
|
|
416
|
-
display: flex;
|
|
417
|
-
flex-basis: auto;
|
|
418
|
-
flex-grow: 0;
|
|
419
|
-
flex-shrink: 0;
|
|
420
|
-
justify-content: center;
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
}
|