@oruga-ui/theme-oruga 0.6.0 → 0.7.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/README.md +16 -20
- package/dist/oruga.css +2 -2
- package/dist/scss/components/_autocomplete.scss +1 -1
- package/dist/scss/components/_breadcrumb.scss +189 -0
- package/dist/scss/components/_button.scss +6 -1
- package/dist/scss/components/_datepicker.scss +1 -1
- package/dist/scss/components/_dropdown.scss +1 -1
- package/dist/scss/components/_field.scss +2 -2
- package/dist/scss/components/_menu.scss +2 -2
- package/dist/scss/components/_modal.scss +1 -1
- package/dist/scss/components/_select.scss +1 -1
- package/dist/scss/components/_switch.scss +1 -1
- package/dist/scss/components/_table.scss +12 -4
- package/dist/scss/components/_tag.scss +84 -0
- package/dist/scss/components/_taginput.scss +0 -44
- package/dist/scss/oruga.scss +2 -0
- package/dist/scss/utils/_base.scss +2 -2
- package/dist/scss/utils/_variables.scss +1 -0
- package/dist/theme.js +1 -1
- package/package.json +34 -28
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
@use "sass:list";
|
|
2
|
+
|
|
3
|
+
/* @docs */
|
|
4
|
+
$breadcrumb-list-line-height: 1.25em !default;
|
|
5
|
+
$breadcrumb-item-spacer: 0.25em !default;
|
|
6
|
+
$breadcrumb-item-font-size: $base-font-size !default;
|
|
7
|
+
$breadcrumb-item-padding: 0.3em !default;
|
|
8
|
+
$breadcrumb-list-border-radius: var(--#{$prefix}base-border-radius) !default;
|
|
9
|
+
$breadcrumb-item-color: var(--#{$prefix}grey-dark) !default;
|
|
10
|
+
$breadcrumb-item-background-color: transparent !default;
|
|
11
|
+
$breadcrumb-item-active-color: var(--#{$prefix}primary) !default;
|
|
12
|
+
$breadcrumb-item-active-background-color: transparent !default;
|
|
13
|
+
$breadcrumb-item-disabled-color: var(--#{$prefix}grey-light) !default;
|
|
14
|
+
$breadcrumb-item-hover-color: var(--#{$prefix}white) !default;
|
|
15
|
+
$breadcrumb-item-hover-background-color: var(--#{$prefix}secondary) !default;
|
|
16
|
+
$breadcrumb-seperator-color: inherit;
|
|
17
|
+
/* @docs */
|
|
18
|
+
|
|
19
|
+
.o-breadcrumb {
|
|
20
|
+
&__list {
|
|
21
|
+
list-style: none;
|
|
22
|
+
display: flex;
|
|
23
|
+
padding: unset;
|
|
24
|
+
line-height: var(
|
|
25
|
+
--#{$prefix}breadcrumb-list-line-height,
|
|
26
|
+
$breadcrumb-list-line-height
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&__item {
|
|
31
|
+
-moz-appearance: none;
|
|
32
|
+
-webkit-appearance: none;
|
|
33
|
+
display: block;
|
|
34
|
+
list-style: none;
|
|
35
|
+
border: transparent;
|
|
36
|
+
background-color: var(
|
|
37
|
+
--#{$prefix}breadcrumb-item-background-color,
|
|
38
|
+
$breadcrumb-item-background-color
|
|
39
|
+
);
|
|
40
|
+
color: var(--#{$prefix}breadcrumb-item-color, $breadcrumb-item-color);
|
|
41
|
+
font-size: var(
|
|
42
|
+
--#{$prefix}breadcrumb-item-size,
|
|
43
|
+
$breadcrumb-item-font-size
|
|
44
|
+
);
|
|
45
|
+
border-radius: var(
|
|
46
|
+
--#{$prefix}breadcrumb-list-border-radius,
|
|
47
|
+
$breadcrumb-list-border-radius
|
|
48
|
+
);
|
|
49
|
+
|
|
50
|
+
// define seprator
|
|
51
|
+
&:not(:first-child)::before {
|
|
52
|
+
float: left;
|
|
53
|
+
color: var(
|
|
54
|
+
--#{$prefix}breadcrumb-seperator-color,
|
|
55
|
+
$breadcrumb-seperator-color
|
|
56
|
+
);
|
|
57
|
+
content: var(--seperator, "/");
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// remove sperator when custom seperator is used
|
|
61
|
+
&:not(:has(.o-breadcrumb__item__link:first-child))::before {
|
|
62
|
+
content: unset;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&:focus-within:not(&--disabled),
|
|
66
|
+
&:focus:not(&--disabled),
|
|
67
|
+
&:hover:not(&--disabled) {
|
|
68
|
+
.o-breadcrumb__item__link {
|
|
69
|
+
color: var(
|
|
70
|
+
--#{$prefix}breadcrumb-item-hover-color,
|
|
71
|
+
$breadcrumb-item-hover-color
|
|
72
|
+
);
|
|
73
|
+
background-color: var(
|
|
74
|
+
--#{$prefix}breadcrumb-item-hover-background-color,
|
|
75
|
+
$breadcrumb-item-hover-background-color
|
|
76
|
+
);
|
|
77
|
+
border-radius: var(
|
|
78
|
+
--#{$prefix}breadcrumb-list-border-radius,
|
|
79
|
+
$breadcrumb-list-border-radius
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&--active .o-breadcrumb__item__link {
|
|
85
|
+
color: var(
|
|
86
|
+
--#{$prefix}breadcrumb-item-active-color,
|
|
87
|
+
$breadcrumb-item-active-color
|
|
88
|
+
);
|
|
89
|
+
background-color: var(
|
|
90
|
+
--#{$prefix}breadcrumb-item-active-background-color,
|
|
91
|
+
$breadcrumb-item-active-background-color
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&--disabled .o-breadcrumb__item__link {
|
|
96
|
+
cursor: unset;
|
|
97
|
+
pointer-events: none;
|
|
98
|
+
color: var(
|
|
99
|
+
--#{$prefix}breadcrumb-item-disabled-color,
|
|
100
|
+
$breadcrumb-item-disabled-color
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&__icon {
|
|
105
|
+
&--left {
|
|
106
|
+
padding-right: var(
|
|
107
|
+
--#{$prefix}breadcrumb-item-spacer,
|
|
108
|
+
$breadcrumb-item-spacer
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&--right {
|
|
113
|
+
padding-left: var(
|
|
114
|
+
--#{$prefix}breadcrumb-item-spacer,
|
|
115
|
+
$breadcrumb-item-spacer
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&__link {
|
|
121
|
+
margin: var(
|
|
122
|
+
--#{$prefix}breadcrumb-item-spacer,
|
|
123
|
+
$breadcrumb-item-spacer
|
|
124
|
+
);
|
|
125
|
+
padding: var(
|
|
126
|
+
--#{$prefix}breadcrumb-item-padding,
|
|
127
|
+
$breadcrumb-item-padding
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* size variants*/
|
|
133
|
+
@each $name, $value in $sizes {
|
|
134
|
+
&--#{$name} .o-breadcrumb__item {
|
|
135
|
+
font-size: var(--#{$prefix}button-font-size-#{$name}, $value);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/* color variants*/
|
|
140
|
+
@each $name, $pair in $colors {
|
|
141
|
+
$color: list.nth($pair, 1);
|
|
142
|
+
|
|
143
|
+
&--#{$name} {
|
|
144
|
+
--#{$prefix}focus: #{createFocus($color)};
|
|
145
|
+
|
|
146
|
+
.o-breadcrumb__item .o-breadcrumb__item__link {
|
|
147
|
+
color: var(--#{$prefix}variant-#{$name}, $color);
|
|
148
|
+
|
|
149
|
+
&:hover {
|
|
150
|
+
/* background-color: darken($color, 2.5%)*/
|
|
151
|
+
/* IE 11 needs polyfill*/
|
|
152
|
+
filter: brightness(97.5%);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/** alignment **/
|
|
159
|
+
&--left {
|
|
160
|
+
ol,
|
|
161
|
+
ul {
|
|
162
|
+
justify-content: flex-start;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
&--centered {
|
|
167
|
+
ol,
|
|
168
|
+
ul {
|
|
169
|
+
justify-content: center;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
&--right {
|
|
174
|
+
ol,
|
|
175
|
+
ul {
|
|
176
|
+
justify-content: flex-end;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// focus effect
|
|
181
|
+
&:focus,
|
|
182
|
+
&:focus-visible,
|
|
183
|
+
&:focus-within {
|
|
184
|
+
.o-breadcrumb__item {
|
|
185
|
+
box-shadow: 0 0 0 0.25rem var(--#{$prefix}focus);
|
|
186
|
+
outline: none;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
@@ -46,13 +46,13 @@ $button-outlined-border-color: var(--#{$prefix}grey-light) !default;
|
|
|
46
46
|
text-decoration: none;
|
|
47
47
|
-moz-appearance: none;
|
|
48
48
|
-webkit-appearance: none;
|
|
49
|
+
padding: unset;
|
|
49
50
|
|
|
50
51
|
background-color: var(
|
|
51
52
|
--#{$prefix}button-background-color,
|
|
52
53
|
$button-background-color
|
|
53
54
|
);
|
|
54
55
|
color: var(--#{$prefix}button-color, $button-color);
|
|
55
|
-
padding: var(--#{$prefix}button-padding, $button-padding);
|
|
56
56
|
border: var(--#{$prefix}button-border, $button-border);
|
|
57
57
|
border-radius: var(--#{$prefix}button-border-radius, $button-border-radius);
|
|
58
58
|
box-shadow: var(--#{$prefix}button-box-shadow, $button-box-shadow);
|
|
@@ -68,6 +68,7 @@ $button-outlined-border-color: var(--#{$prefix}grey-light) !default;
|
|
|
68
68
|
justify-content: center;
|
|
69
69
|
position: relative;
|
|
70
70
|
width: 100%;
|
|
71
|
+
padding: var(--#{$prefix}button-padding, $button-padding);
|
|
71
72
|
|
|
72
73
|
@include side-flex-gap($button-margin-icon-to-text);
|
|
73
74
|
}
|
|
@@ -228,4 +229,8 @@ $button-outlined-border-color: var(--#{$prefix}grey-light) !default;
|
|
|
228
229
|
.o-icon:not(:last-child) {
|
|
229
230
|
margin-right: var(--#{$prefix}button-spacer, $button-spacer);
|
|
230
231
|
}
|
|
232
|
+
|
|
233
|
+
&:has(.o-tag--badge) {
|
|
234
|
+
position: relative;
|
|
235
|
+
}
|
|
231
236
|
}
|
|
@@ -26,7 +26,7 @@ $datepicker-item-selected-within-background-color: rgb(
|
|
|
26
26
|
) !default;
|
|
27
27
|
$datepicker-item-hovered-background-color: var(--#{$prefix}grey) !default;
|
|
28
28
|
$datepicker-item-hovered-color: var(--#{$prefix}grey-lighter) !default;
|
|
29
|
-
$datepicker-item-hovered-background-color:
|
|
29
|
+
$datepicker-item-hovered-background-color: $control-brackground-color !default;
|
|
30
30
|
$datepicker-item-hovered-within-background-color: rgb(
|
|
31
31
|
from $datepicker-item-hovered-background-color r g b / 50%
|
|
32
32
|
) !default;
|
|
@@ -7,7 +7,7 @@ $dropdown-item-disabled-opacity: var(
|
|
|
7
7
|
--#{$prefix}base-disabled-opacity
|
|
8
8
|
) !default;
|
|
9
9
|
$dropdown-item-font-size: var(--#{$prefix}base-font-size) !default;
|
|
10
|
-
$dropdown-item-hover-background-color:
|
|
10
|
+
$dropdown-item-hover-background-color: $control-brackground-color !default;
|
|
11
11
|
$dropdown-item-hover-color: #000000 !default;
|
|
12
12
|
$dropdown-item-line-height: var(--#{$prefix}base-line-height) !default;
|
|
13
13
|
$dropdown-item-padding: 0.375rem 1rem !default;
|
|
@@ -30,7 +30,7 @@ $field-horizontal-spacer: 0 1.5rem 0 0 !default;
|
|
|
30
30
|
);
|
|
31
31
|
|
|
32
32
|
@each $name, $value in $sizes {
|
|
33
|
-
|
|
33
|
+
&--#{$name} {
|
|
34
34
|
font-size: var(--#{$prefix}field-font-size-#{$name}, $value);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -49,7 +49,7 @@ $field-horizontal-spacer: 0 1.5rem 0 0 !default;
|
|
|
49
49
|
|
|
50
50
|
@each $name, $pair in $colors {
|
|
51
51
|
$color: list.nth($pair, 1);
|
|
52
|
-
|
|
52
|
+
&--#{$name} {
|
|
53
53
|
color: var(--#{$prefix}variant-#{$name}, $color);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* @docs */
|
|
2
2
|
$menu-item-color: var(--#{$prefix}grey-dark) !default;
|
|
3
3
|
$menu-item-background-color: transparent !default;
|
|
4
|
-
$menu-item-hover-color: var(--#{$prefix}
|
|
5
|
-
$menu-item-hover-background-color: var(--#{$prefix}
|
|
4
|
+
$menu-item-hover-color: var(--#{$prefix}white) !default;
|
|
5
|
+
$menu-item-hover-background-color: var(--#{$prefix}secondary) !default;
|
|
6
6
|
$menu-item-active-color: var(--#{$prefix}primary-invert) !default;
|
|
7
7
|
$menu-item-active-background-color: var(--#{$prefix}primary) !default;
|
|
8
8
|
$menu-item-disabled-color: var(--#{$prefix}grey-light) !default;
|
|
@@ -9,7 +9,7 @@ $modal-close-right: 20px !default;
|
|
|
9
9
|
$modal-close-top: 20px !default;
|
|
10
10
|
$modal-close-size: 32px !default;
|
|
11
11
|
$modal-close-color: var(--#{$prefix}white) !default;
|
|
12
|
-
$modal-content-fullscreen-background-color:
|
|
12
|
+
$modal-content-fullscreen-background-color: $control-brackground-color !default;
|
|
13
13
|
$modal-content-max-height: calc(100vh - 160px) !default;
|
|
14
14
|
$modal-content-margin: 0 auto !default;
|
|
15
15
|
$modal-zindex: 40 !default;
|
|
@@ -111,7 +111,7 @@ $select-placeholder-opacity: var(--#{$prefix}base-disabled-opacity) !default;
|
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
// size
|
|
114
|
+
// size sizes
|
|
115
115
|
@each $name, $value in $sizes {
|
|
116
116
|
&--#{$name} .o-select__input {
|
|
117
117
|
font-size: var(--#{$prefix}select-font-size-#{$name}, $value);
|
|
@@ -6,7 +6,7 @@ $switch-spacer: 0.5em !default;
|
|
|
6
6
|
$switch-width: 2.75em !default;
|
|
7
7
|
$switch-height: 1.5em !default;
|
|
8
8
|
$switch-background: var(--#{$prefix}grey-light) !default;
|
|
9
|
-
$switch-toggle-background:
|
|
9
|
+
$switch-toggle-background: $control-brackground-color !default;
|
|
10
10
|
$switch-border: $control-border-width solid var(--#{$prefix}grey-lighter) !default;
|
|
11
11
|
$switch-border-radius: var(--#{$prefix}base-border-radius) !default;
|
|
12
12
|
$switch-border-radius-rounded: var(
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
/* @docs */
|
|
4
4
|
$table-background-color: #fff !default;
|
|
5
|
-
$table-background:
|
|
5
|
+
$table-background: $control-brackground-color !default;
|
|
6
6
|
$table-boder: 1px solid transparent !default;
|
|
7
7
|
$table-border-radius: var(--#{$prefix}base-border-radius) !default;
|
|
8
8
|
$table-card-box-shadow:
|
|
@@ -70,10 +70,9 @@ $table-pagination-padding: 0.5em 0 !default;
|
|
|
70
70
|
);
|
|
71
71
|
overflow-y: auto;
|
|
72
72
|
|
|
73
|
-
|
|
73
|
+
.o-table__th {
|
|
74
74
|
position: -webkit-sticky;
|
|
75
75
|
position: sticky;
|
|
76
|
-
left: 0;
|
|
77
76
|
top: 0;
|
|
78
77
|
background: var(
|
|
79
78
|
--#{$prefix}table-background-color,
|
|
@@ -83,6 +82,16 @@ $table-pagination-padding: 0.5em 0 !default;
|
|
|
83
82
|
var(--#{$prefix}table-sticky-zindex, $table-sticky-zindex) +
|
|
84
83
|
1
|
|
85
84
|
);
|
|
85
|
+
|
|
86
|
+
&--sticky {
|
|
87
|
+
z-index: calc(
|
|
88
|
+
var(
|
|
89
|
+
--#{$prefix}table-sticky-zindex,
|
|
90
|
+
$table-sticky-zindex
|
|
91
|
+
) +
|
|
92
|
+
2
|
|
93
|
+
);
|
|
94
|
+
}
|
|
86
95
|
}
|
|
87
96
|
}
|
|
88
97
|
|
|
@@ -267,7 +276,6 @@ $table-pagination-padding: 0.5em 0 !default;
|
|
|
267
276
|
position: -webkit-sticky;
|
|
268
277
|
position: sticky;
|
|
269
278
|
left: 0;
|
|
270
|
-
top: 0;
|
|
271
279
|
z-index: var(--#{$prefix}table-sticky-zindex, $table-sticky-zindex);
|
|
272
280
|
background: var(
|
|
273
281
|
--#{$prefix}table-background-color,
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
@use "sass:list";
|
|
2
|
+
|
|
3
|
+
/* @docs */
|
|
4
|
+
$tag-color: var(--#{$prefix}grey-dark) !default;
|
|
5
|
+
$tag-background-color: $control-brackground-color !default;
|
|
6
|
+
$tag-border-radius: var(--#{$prefix}base-border-radius) !default;
|
|
7
|
+
$tag-rounded-border-radius: var(
|
|
8
|
+
--#{$prefix}base-border-radius-rounded
|
|
9
|
+
) !default;
|
|
10
|
+
$tag-padding: 0 0.75em !default;
|
|
11
|
+
$tag-icon-margin: 0.5em !default;
|
|
12
|
+
/* @docs */
|
|
13
|
+
|
|
14
|
+
.o-tag {
|
|
15
|
+
display: inline-flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
line-height: 1.5;
|
|
19
|
+
white-space: nowrap;
|
|
20
|
+
color: var(--#{$prefix}tag-color, $tag-color);
|
|
21
|
+
background-color: var(
|
|
22
|
+
--#{$prefix}tag-background-color,
|
|
23
|
+
$tag-background-color
|
|
24
|
+
);
|
|
25
|
+
border-radius: var(--#{$prefix}tag-border-radius, $tag-border-radius);
|
|
26
|
+
padding: var(--#{$prefix}tag-padding, $tag-padding);
|
|
27
|
+
|
|
28
|
+
&:empty {
|
|
29
|
+
width: 1em;
|
|
30
|
+
height: 1em;
|
|
31
|
+
padding-right: 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&--rounded {
|
|
35
|
+
border-radius: var(
|
|
36
|
+
--#{$prefix}tag-rounded-border-radius,
|
|
37
|
+
$tag-rounded-border-radius
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&--badge {
|
|
42
|
+
position: absolute;
|
|
43
|
+
top: 0;
|
|
44
|
+
left: 100%;
|
|
45
|
+
transform: translate(-50%, -50%);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&__icon {
|
|
49
|
+
margin-right: var(--#{$prefix}tag-icon-margin, $tag-icon-margin);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&__close {
|
|
53
|
+
margin-left: var(--#{$prefix}tag-icon-margin, $tag-icon-margin);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// size variants
|
|
57
|
+
@each $name, $value in $sizes {
|
|
58
|
+
&--#{$name} {
|
|
59
|
+
font-size: var(--#{$prefix}tag-font-size-#{$name}, $value);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// color variants
|
|
64
|
+
@each $name, $pair in $colors {
|
|
65
|
+
$color: list.nth($pair, 1);
|
|
66
|
+
$color-invert: list.nth($pair, 2);
|
|
67
|
+
|
|
68
|
+
&--#{$name} {
|
|
69
|
+
background-color: var(--#{$prefix}variant-#{$name}, $color);
|
|
70
|
+
border-color: var(
|
|
71
|
+
--#{$prefix}variant-invert-#{$name},
|
|
72
|
+
$color-invert
|
|
73
|
+
);
|
|
74
|
+
color: var(--#{$prefix}variant-invert-#{$name}, $color-invert);
|
|
75
|
+
|
|
76
|
+
&:focus,
|
|
77
|
+
&:hover {
|
|
78
|
+
/* background-color: darken($color-invert, 5%)*/
|
|
79
|
+
/* IE 11 needs polyfill*/
|
|
80
|
+
filter: brightness(95%);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -3,12 +3,7 @@
|
|
|
3
3
|
/* @docs */
|
|
4
4
|
$taginput-counter-font-size: 0.75em !default;
|
|
5
5
|
$taginput-counter-margin: 0.25rem 0 0 0.5rem !default;
|
|
6
|
-
$taginput-item-background-color: var(--#{$prefix}primary) !default;
|
|
7
|
-
$taginput-item-color: var(--#{$prefix}primary-invert) !default;
|
|
8
|
-
$taginput-item-border-radius: var(--#{$prefix}base-border-radius) !default;
|
|
9
6
|
$taginput-item-margin: 0.275em !default;
|
|
10
|
-
$taginput-item-padding: 0 0.75em 0 0.75em !default;
|
|
11
|
-
$taginput-item-icon-margin: 0.5em !default;
|
|
12
7
|
/* @docs */
|
|
13
8
|
|
|
14
9
|
.o-taginput {
|
|
@@ -56,46 +51,7 @@ $taginput-item-icon-margin: 0.5em !default;
|
|
|
56
51
|
}
|
|
57
52
|
|
|
58
53
|
&__item {
|
|
59
|
-
display: inline-flex;
|
|
60
54
|
margin: var(--#{$prefix}taginput-item-margin, $taginput-item-margin);
|
|
61
|
-
padding: var(--#{$prefix}taginput-item-padding, $taginput-item-padding);
|
|
62
|
-
color: var(--#{$prefix}taginput-item-color, $taginput-item-color);
|
|
63
|
-
background-color: var(
|
|
64
|
-
--#{$prefix}taginput-item-background-color,
|
|
65
|
-
$taginput-item-background-color
|
|
66
|
-
);
|
|
67
|
-
border-radius: var(
|
|
68
|
-
--#{$prefix}taginput-item-border-radius,
|
|
69
|
-
$taginput-item-border-radius
|
|
70
|
-
);
|
|
71
|
-
|
|
72
|
-
// color variants
|
|
73
|
-
@each $name, $pair in $colors {
|
|
74
|
-
$color: list.nth($pair, 1);
|
|
75
|
-
$color-invert: list.nth($pair, 2);
|
|
76
|
-
|
|
77
|
-
&--#{$name} {
|
|
78
|
-
--#{$prefix}focus: #{createFocus($color)};
|
|
79
|
-
|
|
80
|
-
background-color: var(--#{$prefix}variant-#{$name}, $color);
|
|
81
|
-
color: var(--#{$prefix}variant-invert-#{$name}, $color-invert);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
// focus effect
|
|
86
|
-
&:focus,
|
|
87
|
-
&:focus-visible,
|
|
88
|
-
&:focus-within {
|
|
89
|
-
box-shadow: 0 0 0 0.25rem var(--#{$prefix}focus);
|
|
90
|
-
outline: 0;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
&__close {
|
|
94
|
-
margin-left: var(
|
|
95
|
-
--#{$prefix}taginput-item-icon-margin,
|
|
96
|
-
$taginput-item-icon-margin
|
|
97
|
-
);
|
|
98
|
-
}
|
|
99
55
|
}
|
|
100
56
|
|
|
101
57
|
&__counter {
|
package/dist/scss/oruga.scss
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
// import Oruga components
|
|
12
12
|
@import "components/autocomplete";
|
|
13
|
+
@import "components/breadcrumb";
|
|
13
14
|
@import "components/button";
|
|
14
15
|
@import "components/carousel";
|
|
15
16
|
@import "components/checkbox";
|
|
@@ -34,6 +35,7 @@
|
|
|
34
35
|
@import "components/switch";
|
|
35
36
|
@import "components/table";
|
|
36
37
|
@import "components/tabs";
|
|
38
|
+
@import "components/tag";
|
|
37
39
|
@import "components/taginput";
|
|
38
40
|
@import "components/timepicker";
|
|
39
41
|
@import "components/tooltip";
|
|
@@ -35,7 +35,7 @@ textarea {
|
|
|
35
35
|
line-height: inherit;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
.o-
|
|
38
|
+
.o-scroll-keep {
|
|
39
39
|
position: fixed;
|
|
40
40
|
width: 100%;
|
|
41
41
|
bottom: 0;
|
|
@@ -43,6 +43,6 @@ textarea {
|
|
|
43
43
|
overflow-y: scroll;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
.o-
|
|
46
|
+
.o-scroll-clip {
|
|
47
47
|
overflow: hidden;
|
|
48
48
|
}
|
|
@@ -40,6 +40,7 @@ $base-border-radius-rounded: 9999px !default;
|
|
|
40
40
|
$base-line-height: 1.5 !default;
|
|
41
41
|
$base-disabled-opacity: 0.5 !default;
|
|
42
42
|
|
|
43
|
+
$control-brackground-color: #f5f5f5 !default;
|
|
43
44
|
$control-border-width: 1px !default;
|
|
44
45
|
$control-height: 2.25em !default;
|
|
45
46
|
$control-padding-vertical: calc(0.25em - #{$control-border-width});
|
package/dist/theme.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! Oruga Default Theme v0.
|
|
1
|
+
/*! Oruga Default Theme v0.7.1 | MIT License | github.com/oruga-ui/theme-oruga */
|
|
2
2
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oruga-ui/theme-oruga",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Default theme for Oruga",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -25,39 +25,45 @@
|
|
|
25
25
|
"dev": "vite --force",
|
|
26
26
|
"serve": "vite preview",
|
|
27
27
|
"build": "vue-tsc --noEmit && vite build",
|
|
28
|
-
"lint": "eslint
|
|
29
|
-
"lint:
|
|
28
|
+
"lint": "run-s lint:eslint lint:prettier lint:stylelint",
|
|
29
|
+
"lint:eslint": "eslint . --fix",
|
|
30
|
+
"lint:prettier": "prettier --write .",
|
|
31
|
+
"lint:stylelint": "stylelint **/*.{css,scss} --fix --ignore-path .gitignore",
|
|
32
|
+
"test:lint": "run-s test:eslint test:prettier test:stylelint",
|
|
33
|
+
"test:eslint": "eslint .",
|
|
34
|
+
"test:prettier": "prettier --check .",
|
|
35
|
+
"test:stylelint": "stylelint **/*.{css,scss} --ignore-path .gitignore",
|
|
30
36
|
"update": "ncu -u"
|
|
31
37
|
},
|
|
32
38
|
"peerDependencies": {
|
|
33
|
-
"@oruga-ui/oruga-next": "^0.
|
|
39
|
+
"@oruga-ui/oruga-next": "^0.11.0"
|
|
34
40
|
},
|
|
35
41
|
"devDependencies": {
|
|
36
|
-
"@eslint/compat": "^1.
|
|
37
|
-
"@oruga-ui/examples": "0.
|
|
38
|
-
"@oruga-ui/oruga-next": "0.
|
|
39
|
-
"@
|
|
42
|
+
"@eslint/compat": "^1.3.1",
|
|
43
|
+
"@oruga-ui/examples": "0.11.3",
|
|
44
|
+
"@oruga-ui/oruga-next": "0.11.3",
|
|
45
|
+
"@tsconfig/node22": "^22.0.2",
|
|
46
|
+
"@types/node": "^24.0.14",
|
|
47
|
+
"@vitejs/plugin-vue": "6.0.0",
|
|
40
48
|
"@vue/eslint-config-prettier": "^10.2.0",
|
|
41
|
-
"@vue/eslint-config-typescript": "^14.
|
|
49
|
+
"@vue/eslint-config-typescript": "^14.6.0",
|
|
42
50
|
"@vue/tsconfig": "^0.7.0",
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"eslint
|
|
46
|
-
"eslint-plugin-vue": "^
|
|
47
|
-
"npm-check-updates": "^
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"stylelint
|
|
52
|
-
"stylelint-config-recommended-scss": "^
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"vite": "^
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"vue": "^3.
|
|
60
|
-
"vue-router": "4.5.0",
|
|
61
|
-
"vue-tsc": "^2.2.8"
|
|
51
|
+
"conventional-changelog-conventionalcommits": "^9.1.0",
|
|
52
|
+
"core-js": "3.44.0",
|
|
53
|
+
"eslint": "^9.31.0",
|
|
54
|
+
"eslint-plugin-vue": "^10.3.0",
|
|
55
|
+
"npm-check-updates": "^18.0.1",
|
|
56
|
+
"npm-run-all2": "^8.0.4",
|
|
57
|
+
"prettier": "^3.6.2",
|
|
58
|
+
"sass": "1.89.2",
|
|
59
|
+
"stylelint": "^16.22.0",
|
|
60
|
+
"stylelint-config-recommended-scss": "^15.0.1",
|
|
61
|
+
"typescript": "5.8.3",
|
|
62
|
+
"vite": "^7.0.5",
|
|
63
|
+
"vite-plugin-banner": "^0.8.1",
|
|
64
|
+
"vite-plugin-static-copy": "^3.1.1",
|
|
65
|
+
"vue": "^3.5.17",
|
|
66
|
+
"vue-router": "4.5.1",
|
|
67
|
+
"vue-tsc": "^3.0.2"
|
|
62
68
|
}
|
|
63
69
|
}
|