@oruga-ui/theme-oruga 0.8.1 → 0.8.3
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/scss/components/_button.scss +1 -1
- package/dist/scss/components/_dialog.scss +1 -1
- package/dist/scss/components/_dropdown.scss +1 -1
- package/dist/scss/components/_input.scss +2 -1
- package/dist/scss/components/_listbox.scss +10 -12
- package/dist/scss/components/_modal.scss +1 -1
- package/dist/scss/components/_pagination.scss +3 -2
- package/dist/scss/components/_select.scss +1 -1
- package/dist/scss/components/_sidebar.scss +1 -1
- package/dist/scss/components/_slider.scss +2 -2
- package/dist/scss/components/_steps.scss +1 -1
- package/dist/scss/components/_switch.scss +1 -1
- package/dist/scss/components/_table.scss +2 -2
- package/dist/scss/components/_tree.scss +135 -0
- package/dist/scss/theme.scss +1 -0
- package/dist/scss/utils/_helpers.scss +1 -1
- package/dist/scss/utils/_root.scss +6 -2
- package/dist/scss/utils/_variables.scss +1 -1
- package/dist/theme.css +2 -2
- package/dist/theme.js +1 -1
- package/package.json +5 -5
|
@@ -20,7 +20,7 @@ $button-border-width: h.useVar("control-border-width") !default;
|
|
|
20
20
|
$button-border-style: solid !default;
|
|
21
21
|
$button-border-color: h.useVar("control-border-color") !default;
|
|
22
22
|
$button-border-radius: h.useVar("border-radius") !default;
|
|
23
|
-
$button-background-color: h.useVar("control-
|
|
23
|
+
$button-background-color: h.useVar("control-background-color") !default;
|
|
24
24
|
|
|
25
25
|
$button-hover-color: $button-color;
|
|
26
26
|
$button-hover-background-color: $button-background-color;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
$dialog-spacer: calc(2 * h.useVar("control-spacer")) !default;
|
|
7
7
|
$dialog-zindex: map.get(vars.$zindex, "fixed") !default;
|
|
8
8
|
$dialog-box-shadow: h.useVar("overlay-box-shadow") !default;
|
|
9
|
-
$dialog-background-color: h.useVar("control-
|
|
9
|
+
$dialog-background-color: h.useVar("control-background-color") !default;
|
|
10
10
|
$dialog-border-width: h.useVar("control-border-width") !default;
|
|
11
11
|
$dialog-border-style: solid !default;
|
|
12
12
|
$dialog-border-color: h.useVar("control-border-color") !default;
|
|
@@ -11,7 +11,7 @@ $dropdown-menu-padding: h.useVar("control-spacer") 0 !default;
|
|
|
11
11
|
$dropdown-menu-box-shadow:
|
|
12
12
|
0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1),
|
|
13
13
|
0 0 0 1px rgba(10, 10, 10, 0.02) !default;
|
|
14
|
-
$dropdown-menu-background-color: h.useVar("control-
|
|
14
|
+
$dropdown-menu-background-color: h.useVar("control-background-color") !default;
|
|
15
15
|
$dropdown-menu-border-color: h.useVar("control-border-color") !default;
|
|
16
16
|
$dropdown-menu-border-style: solid !default;
|
|
17
17
|
$dropdown-menu-border-width: h.useVar("control-border-width") !default;
|
|
@@ -19,7 +19,7 @@ $input-border-style: solid !default;
|
|
|
19
19
|
$input-border-color: h.useVar("control-border-color") !default;
|
|
20
20
|
$input-border-radius: h.useVar("border-radius") !default;
|
|
21
21
|
$input-border-radius-rounded: h.useVar("border-radius-rounded") !default;
|
|
22
|
-
$input-background-color: h.useVar("control-
|
|
22
|
+
$input-background-color: h.useVar("control-background-color") !default;
|
|
23
23
|
|
|
24
24
|
$input-textarea-min-height: 120px !default;
|
|
25
25
|
$input-textarea-max-height: 600px !default;
|
|
@@ -167,6 +167,7 @@ $input-counter-padding: 0.25rem 0.5rem !default;
|
|
|
167
167
|
top: 0;
|
|
168
168
|
height: 100%;
|
|
169
169
|
width: h.useVar("input-height");
|
|
170
|
+
z-index: 1;
|
|
170
171
|
}
|
|
171
172
|
|
|
172
173
|
&__icon-right {
|
|
@@ -3,10 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
/* @docs */
|
|
5
5
|
$listbox-disabled-opacity: h.useVar("control-disabled-opacity") !default;
|
|
6
|
-
$listbox-
|
|
7
|
-
0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1),
|
|
8
|
-
0 0 0 1px rgba(10, 10, 10, 0.02) !default;
|
|
9
|
-
$listbox-background-color: h.useVar("control-brackground-color") !default;
|
|
6
|
+
$listbox-background-color: h.useVar("control-background-color") !default;
|
|
10
7
|
$listbox-border-color: h.useVar("control-border-color") !default;
|
|
11
8
|
$listbox-border-style: solid !default;
|
|
12
9
|
$listbox-border-width: h.useVar("control-border-width") !default;
|
|
@@ -28,7 +25,6 @@ $listbox-item-hover-color: h.useVar("font-color") !default;
|
|
|
28
25
|
|
|
29
26
|
.o-listbox {
|
|
30
27
|
@include h.defineVar("listbox-disabled-opacity", $listbox-disabled-opacity);
|
|
31
|
-
@include h.defineVar("listbox-box-shadow", $listbox-box-shadow);
|
|
32
28
|
|
|
33
29
|
@include h.defineVar("listbox-background-color", $listbox-background-color);
|
|
34
30
|
@include h.defineVar("listbox-border-style", $listbox-border-style);
|
|
@@ -66,7 +62,6 @@ $listbox-item-hover-color: h.useVar("font-color") !default;
|
|
|
66
62
|
position: relative;
|
|
67
63
|
overflow: hidden;
|
|
68
64
|
|
|
69
|
-
box-shadow: h.useVar("listbox-box-shadow");
|
|
70
65
|
background-color: h.useVar("listbox-background-color");
|
|
71
66
|
border-color: h.useVar("listbox-border-color");
|
|
72
67
|
border-style: h.useVar("listbox-border-style");
|
|
@@ -92,10 +87,13 @@ $listbox-item-hover-color: h.useVar("font-color") !default;
|
|
|
92
87
|
}
|
|
93
88
|
|
|
94
89
|
&__list {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
90
|
+
&,
|
|
91
|
+
> ul {
|
|
92
|
+
outline: none;
|
|
93
|
+
list-style: none;
|
|
94
|
+
padding: 0;
|
|
95
|
+
margin: 0;
|
|
96
|
+
}
|
|
99
97
|
|
|
100
98
|
&:only-child {
|
|
101
99
|
border-radius: h.useVar("listbox-border-radius");
|
|
@@ -151,11 +149,11 @@ $listbox-item-hover-color: h.useVar("font-color") !default;
|
|
|
151
149
|
);
|
|
152
150
|
}
|
|
153
151
|
|
|
154
|
-
&--
|
|
152
|
+
&--selectable {
|
|
155
153
|
@include h.clickable;
|
|
156
154
|
}
|
|
157
155
|
|
|
158
|
-
&--
|
|
156
|
+
&--selectable:not(&--active) {
|
|
159
157
|
&:hover,
|
|
160
158
|
&.o-listbox__item--focused {
|
|
161
159
|
@include h.defineVar(
|
|
@@ -13,7 +13,7 @@ $modal-content-max-height: calc(100vh - 160px) !default;
|
|
|
13
13
|
$modal-content-max-width: calc(100vw - 160px) !default;
|
|
14
14
|
$modal-content-box-shadow: h.useVar("overlay-box-shadow") !default;
|
|
15
15
|
$modal-content-border-radius: h.useVar("border-radius") !default;
|
|
16
|
-
$modal-content-background-color: h.useVar("control-
|
|
16
|
+
$modal-content-background-color: h.useVar("control-background-color") !default;
|
|
17
17
|
|
|
18
18
|
$modal-close-top: 20px !default;
|
|
19
19
|
$modal-close-right: 20px !default;
|
|
@@ -24,7 +24,7 @@ $pagination-button-border-radius-rounded: h.useVar(
|
|
|
24
24
|
"border-radius-rounded"
|
|
25
25
|
) !default;
|
|
26
26
|
$pagination-button-background-color: h.useVar(
|
|
27
|
-
"control-
|
|
27
|
+
"control-background-color"
|
|
28
28
|
) !default;
|
|
29
29
|
|
|
30
30
|
$pagination-button-hover-color: $pagination-button-color;
|
|
@@ -178,6 +178,7 @@ $pagination-button-current-border-color: h.useVar("primary") !default;
|
|
|
178
178
|
padding: h.useVar("pagination-button-padding");
|
|
179
179
|
margin: h.useVar("pagination-spacer");
|
|
180
180
|
|
|
181
|
+
&:focus,
|
|
181
182
|
&:hover {
|
|
182
183
|
color: h.useVar("pagination-button-hover-color");
|
|
183
184
|
border-color: h.useVar("pagination-button-hover-border-color");
|
|
@@ -194,7 +195,7 @@ $pagination-button-current-border-color: h.useVar("primary") !default;
|
|
|
194
195
|
}
|
|
195
196
|
|
|
196
197
|
&--disabled {
|
|
197
|
-
@include h.disabled(h.useVar("
|
|
198
|
+
@include h.disabled(h.useVar("control-disabled-opacity"));
|
|
198
199
|
}
|
|
199
200
|
|
|
200
201
|
&--current {
|
|
@@ -14,7 +14,7 @@ $select-font-weight: h.useVar("font-weight") !default;
|
|
|
14
14
|
$select-line-height: h.useVar("line-height") !default;
|
|
15
15
|
|
|
16
16
|
$select-box-shadow: h.useVar("control-box-shadow-inset") !default;
|
|
17
|
-
$select-background-color: h.useVar("control-
|
|
17
|
+
$select-background-color: h.useVar("control-background-color") !default;
|
|
18
18
|
$select-border-color: h.useVar("control-border-color") !default;
|
|
19
19
|
$select-border-style: solid !default;
|
|
20
20
|
$select-border-width: h.useVar("control-border-width") !default;
|
|
@@ -15,7 +15,7 @@ $sidebar-content-max-width: 50vw !default;
|
|
|
15
15
|
$sidebar-content-max-height: 50vh !default;
|
|
16
16
|
$sidebar-content-box-shadow: h.useVar("overlay-box-shadow") !default;
|
|
17
17
|
$sidebar-content-background-color: h.useVar(
|
|
18
|
-
"control-
|
|
18
|
+
"control-background-color"
|
|
19
19
|
) !default;
|
|
20
20
|
$sidebar-content-border-radius: h.useVar("border-radius") !default;
|
|
21
21
|
$sidebar-content-border-width: h.useVar("control-border-width") !default;
|
|
@@ -33,7 +33,7 @@ $slider-thumb-border-style: solid !default;
|
|
|
33
33
|
$slider-thumb-border-color: h.useVar("grey-light") !default;
|
|
34
34
|
$slider-thumb-border-radius: h.useVar("border-radius") !default;
|
|
35
35
|
$slider-thumb-border-radius-rounded: h.useVar("border-radius-rounded") !default;
|
|
36
|
-
$slider-thumb-background-color: h.useVar("control-
|
|
36
|
+
$slider-thumb-background-color: h.useVar("control-background-color") !default;
|
|
37
37
|
$slider-thumb-transform: scale(1.25) !default;
|
|
38
38
|
|
|
39
39
|
$slider-tick-to-track-ratio: 0.5 !default;
|
|
@@ -265,7 +265,7 @@ $slider-tick-radius: h.useVar("border-radius") !default;
|
|
|
265
265
|
color: h.useVar("slider-tick-color");
|
|
266
266
|
font-size: h.useVar("slider-tick-font-size");
|
|
267
267
|
font-weight: h.useVar("slider-tick-font-weight");
|
|
268
|
-
line-height: h.useVar("
|
|
268
|
+
line-height: h.useVar("slider-tick-line-height");
|
|
269
269
|
}
|
|
270
270
|
|
|
271
271
|
&--disabled {
|
|
@@ -12,7 +12,7 @@ $steps-step-font-weight: 500 !default;
|
|
|
12
12
|
$steps-step-line-height: h.useVar("line-height") !default;
|
|
13
13
|
|
|
14
14
|
$steps-step-border-color: h.useVar(
|
|
15
|
-
"control-
|
|
15
|
+
"control-background-color"
|
|
16
16
|
) !default; // color scheme is inverted for steps
|
|
17
17
|
$steps-step-background-color: h.useVar(
|
|
18
18
|
"control-border-color"
|
|
@@ -20,7 +20,7 @@ $switch-border-width: h.useVar("control-border-width") !default;
|
|
|
20
20
|
$switch-border-radius: h.useVar("border-radius") !default;
|
|
21
21
|
$switch-border-radius-rounded: h.useVar("border-radius-rounded") !default;
|
|
22
22
|
$switch-background-color: h.useVar("grey-light") !default;
|
|
23
|
-
$switch-toggle-background-color: vars.$control-
|
|
23
|
+
$switch-toggle-background-color: vars.$control-background-color !default;
|
|
24
24
|
|
|
25
25
|
$switch-checked-background-color: h.useVar("primary") !default;
|
|
26
26
|
$switch-checked-border-color: h.useVar("primary") !default;
|
|
@@ -363,7 +363,7 @@ $table-card-margin: 0 0 1rem 0;
|
|
|
363
363
|
|
|
364
364
|
&-detail {
|
|
365
365
|
box-shadow: h.useVar("table-tr-detail-box-shadow");
|
|
366
|
-
background-color: h.useVar("table-tr-detail-background");
|
|
366
|
+
background-color: h.useVar("table-tr-detail-background-color");
|
|
367
367
|
|
|
368
368
|
& > td {
|
|
369
369
|
padding: h.useVar("table-tr-detail-padding");
|
|
@@ -449,7 +449,7 @@ $table-card-margin: 0 0 1rem 0;
|
|
|
449
449
|
}
|
|
450
450
|
|
|
451
451
|
&-detailed {
|
|
452
|
-
width: h.useVar("table-
|
|
452
|
+
width: h.useVar("table-td-detail-chevron-width");
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
455
|
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
@use "../utils/helpers" as h;
|
|
2
|
+
@use "../utils/variables" as vars;
|
|
3
|
+
|
|
4
|
+
/* @docs */
|
|
5
|
+
$tree-spacer: 0.25rem !default;
|
|
6
|
+
$tree-border: 1px solid h.useVar("secondary") !default;
|
|
7
|
+
$tree-disabled-opacity: h.useVar("control-disabled-opacity") !default;
|
|
8
|
+
|
|
9
|
+
$tree-item-padding: 0.5em 0.75em !default;
|
|
10
|
+
$tree-item-color: h.useVar("font-color") !default;
|
|
11
|
+
$tree-item-font-size: h.useVar("font-size") !default;
|
|
12
|
+
$tree-item-font-weight: h.useVar("font-weight") !default;
|
|
13
|
+
$tree-item-line-heigth: h.useVar("line-height") !default;
|
|
14
|
+
|
|
15
|
+
$tree-item-border: unset !default;
|
|
16
|
+
$tree-item-border-radius: h.useVar("border-radius") !default;
|
|
17
|
+
$tree-item-background-color: transparent !default;
|
|
18
|
+
|
|
19
|
+
$tree-item-hover-color: h.useVar("black") !default;
|
|
20
|
+
$tree-item-hover-background-color: h.useVar("grey-lightest") !default;
|
|
21
|
+
$tree-item-active-color: h.useVar("primary-invert") !default;
|
|
22
|
+
$tree-item-active-background-color: h.useVar("primary") !default;
|
|
23
|
+
/* @docs */
|
|
24
|
+
|
|
25
|
+
.o-tree {
|
|
26
|
+
@include h.defineVar("tree-spacer", $tree-spacer);
|
|
27
|
+
@include h.defineVar("tree-border", $tree-border);
|
|
28
|
+
@include h.defineVar("tree-item-padding", $tree-item-padding);
|
|
29
|
+
@include h.defineVar("tree-item-color", $tree-item-color);
|
|
30
|
+
@include h.defineVar("tree-item-font-size", $tree-item-font-size);
|
|
31
|
+
@include h.defineVar("tree-item-font-weight", $tree-item-font-weight);
|
|
32
|
+
@include h.defineVar("tree-item-line-heigth", $tree-item-line-heigth);
|
|
33
|
+
@include h.defineVar("tree-item-border", $tree-item-border);
|
|
34
|
+
@include h.defineVar("tree-item-border-radius", $tree-item-border-radius);
|
|
35
|
+
@include h.defineVar(
|
|
36
|
+
"tree-item-background-color",
|
|
37
|
+
$tree-item-background-color
|
|
38
|
+
);
|
|
39
|
+
@include h.defineVar("tree-item-hover-color", $tree-item-hover-color);
|
|
40
|
+
@include h.defineVar(
|
|
41
|
+
"tree-item-hover-background-color",
|
|
42
|
+
$tree-item-hover-background-color
|
|
43
|
+
);
|
|
44
|
+
@include h.defineVar("tree-item-active-color", $tree-item-active-color);
|
|
45
|
+
@include h.defineVar(
|
|
46
|
+
"tree-item-active-background-color",
|
|
47
|
+
$tree-item-active-background-color
|
|
48
|
+
);
|
|
49
|
+
@include h.defineVar("tree-disabled-opacity", $tree-disabled-opacity);
|
|
50
|
+
|
|
51
|
+
&__list,
|
|
52
|
+
&__item {
|
|
53
|
+
list-style: none;
|
|
54
|
+
padding: unset;
|
|
55
|
+
margin: unset;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&__subtree {
|
|
59
|
+
border-left: h.useVar("tree-border");
|
|
60
|
+
padding-left: calc(2 * h.useVar("tree-spacer"));
|
|
61
|
+
margin-left: calc(5 * h.useVar("tree-spacer"));
|
|
62
|
+
margin-top: h.useVar("tree-spacer");
|
|
63
|
+
margin-bottom: h.useVar("tree-spacer");
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&__item {
|
|
67
|
+
& + & {
|
|
68
|
+
margin-top: h.useVar("tree-spacer");
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&-icon {
|
|
72
|
+
margin-right: h.useVar("tree-spacer");
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&-label {
|
|
76
|
+
// add clickable cursor
|
|
77
|
+
@include h.clickable;
|
|
78
|
+
|
|
79
|
+
// disable default appearance
|
|
80
|
+
appearance: none;
|
|
81
|
+
-moz-appearance: none;
|
|
82
|
+
-webkit-appearance: none;
|
|
83
|
+
|
|
84
|
+
display: block;
|
|
85
|
+
padding: h.useVar("tree-item-padding");
|
|
86
|
+
|
|
87
|
+
color: h.useVar("tree-item-color");
|
|
88
|
+
font-size: h.useVar("tree-item-font-size");
|
|
89
|
+
font-weight: h.useVar("tree-item-font-weight");
|
|
90
|
+
line-height: h.useVar("tree-item-line-height");
|
|
91
|
+
background-color: h.useVar("tree-item-background-color");
|
|
92
|
+
border: h.useVar("tree-item-border");
|
|
93
|
+
border-radius: h.useVar("tree-item-border-radius");
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&:focus-visible,
|
|
97
|
+
&--focused {
|
|
98
|
+
& > .o-tree__item-label {
|
|
99
|
+
@include h.defineVar(
|
|
100
|
+
"tree-item-color",
|
|
101
|
+
h.useVar("tree-item-hover-color")
|
|
102
|
+
);
|
|
103
|
+
@include h.defineVar(
|
|
104
|
+
"tree-item-background-color",
|
|
105
|
+
h.useVar("tree-item-hover-background-color")
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&--selected > .o-tree__item-label {
|
|
111
|
+
@include h.defineVar(
|
|
112
|
+
"tree-item-color",
|
|
113
|
+
h.useVar("tree-item-active-color")
|
|
114
|
+
);
|
|
115
|
+
@include h.defineVar(
|
|
116
|
+
"tree-item-background-color",
|
|
117
|
+
h.useVar("tree-item-active-background-color")
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&--disabled {
|
|
122
|
+
@include h.disabled(h.useVar("tree-disabled-opacity"));
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// size variants
|
|
127
|
+
@each $name, $value in vars.$sizes {
|
|
128
|
+
&--#{$name} {
|
|
129
|
+
@include h.defineVar(
|
|
130
|
+
"tree-item-font-size",
|
|
131
|
+
h.useVar("size-#{$name}")
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
package/dist/scss/theme.scss
CHANGED
|
@@ -75,8 +75,12 @@ $host-selector: if(vars.$enable-host, ":root, :host", ":root");
|
|
|
75
75
|
vars.$control-box-shadow-inset
|
|
76
76
|
);
|
|
77
77
|
@include h.defineVar(
|
|
78
|
-
"control-
|
|
79
|
-
vars.$control-
|
|
78
|
+
"control-focus-box-shadow",
|
|
79
|
+
vars.$control-focus-box-shadow
|
|
80
|
+
);
|
|
81
|
+
@include h.defineVar(
|
|
82
|
+
"control-background-color",
|
|
83
|
+
vars.$control-background-color
|
|
80
84
|
);
|
|
81
85
|
@include h.defineVar("control-border-color", vars.$control-border-color);
|
|
82
86
|
@include h.defineVar("control-border-width", vars.$control-border-width);
|
|
@@ -110,7 +110,7 @@ $border-radius: 4px !default;
|
|
|
110
110
|
$border-radius-rounded: 9999px !default;
|
|
111
111
|
|
|
112
112
|
$control-spacer: 0.5em !default;
|
|
113
|
-
$control-
|
|
113
|
+
$control-background-color: $white !default;
|
|
114
114
|
$control-border-color: $grey-lighter !default;
|
|
115
115
|
$control-border-width: 1px !default;
|
|
116
116
|
$control-height: 2.25em !default;
|