@oruga-ui/theme-oruga 0.5.1 → 0.7.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/README.md +5 -4
- package/dist/oruga.css +2 -2
- package/dist/scss/components/_autocomplete.scss +16 -16
- package/dist/scss/components/_breadcrumb.scss +189 -0
- package/dist/scss/components/_button.scss +180 -166
- package/dist/scss/components/_carousel.scss +199 -177
- package/dist/scss/components/_checkbox.scss +130 -122
- package/dist/scss/components/_collapse.scss +11 -9
- package/dist/scss/components/_datepicker.scss +409 -417
- package/dist/scss/components/_datetimepicker.scss +8 -8
- package/dist/scss/components/_dropdown.scss +225 -207
- package/dist/scss/components/_field.scss +107 -106
- package/dist/scss/components/_icon.scss +44 -40
- package/dist/scss/components/_input.scss +127 -112
- package/dist/scss/components/_loading.scss +27 -24
- package/dist/scss/components/_menu.scss +102 -65
- package/dist/scss/components/_modal.scss +67 -67
- package/dist/scss/components/_notification.scss +146 -134
- package/dist/scss/components/_pagination.scss +227 -198
- package/dist/scss/components/_radio.scss +95 -74
- package/dist/scss/components/_select.scss +143 -120
- package/dist/scss/components/_sidebar.scss +120 -104
- package/dist/scss/components/_skeleton.scss +55 -55
- package/dist/scss/components/_slider.scss +166 -151
- package/dist/scss/components/_steps.scss +300 -287
- package/dist/scss/components/_switch.scss +115 -128
- package/dist/scss/components/_table.scss +364 -331
- package/dist/scss/components/_tabs.scss +295 -280
- package/dist/scss/components/_tag.scss +84 -0
- package/dist/scss/components/_taginput.scss +55 -97
- package/dist/scss/components/_timepicker.scss +74 -68
- package/dist/scss/components/_tooltip.scss +522 -424
- package/dist/scss/components/_upload.scss +51 -48
- package/dist/scss/oruga.scss +2 -1
- package/dist/scss/utils/_animations.scss +97 -97
- package/dist/scss/utils/_base.scss +33 -16
- package/dist/scss/utils/_helpers.scss +65 -65
- package/dist/scss/utils/_root.scss +37 -44
- package/dist/scss/utils/_variables.scss +45 -44
- package/dist/theme.js +1 -1
- package/package.json +29 -26
|
@@ -4,66 +4,69 @@
|
|
|
4
4
|
$upload-draggable-border: 1px dashed var(--#{$prefix}grey-light) !default;
|
|
5
5
|
$upload-draggable-border-radius: var(--#{$prefix}base-border-radius) !default;
|
|
6
6
|
$upload-draggable-disabled-opacity: var(
|
|
7
|
-
|
|
7
|
+
--#{$prefix}base-disabled-opacity
|
|
8
8
|
) !default;
|
|
9
9
|
$upload-draggable-hover-border-color: var(--#{$prefix}grey) !default;
|
|
10
|
-
$upload-draggable-padding:
|
|
10
|
+
$upload-draggable-padding: 2em !default;
|
|
11
11
|
/* @docs */
|
|
12
12
|
|
|
13
|
-
.o-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
.o-upload {
|
|
14
|
+
position: relative;
|
|
15
|
+
display: inline-flex;
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
&--disabled {
|
|
18
|
+
opacity: var(
|
|
19
|
+
--#{$prefix}upload-draggable-disabled-opacity,
|
|
20
|
+
$upload-draggable-disabled-opacity
|
|
21
|
+
);
|
|
22
|
+
cursor: not-allowed;
|
|
23
|
+
}
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
&--expanded {
|
|
26
|
+
width: 100%;
|
|
27
|
+
}
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
&__draggable {
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
width: 100%;
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
33
|
+
padding: var(
|
|
34
|
+
--#{$prefix}upload-draggable-padding,
|
|
35
|
+
$upload-draggable-padding
|
|
36
|
+
);
|
|
37
|
+
border: var(
|
|
38
|
+
--#{$prefix}upload-draggable-border,
|
|
39
|
+
$upload-draggable-border
|
|
40
|
+
);
|
|
41
|
+
border-radius: var(
|
|
42
|
+
--#{$prefix}upload-draggable-border-radius,
|
|
43
|
+
$upload-draggable-border-radius
|
|
44
|
+
);
|
|
42
45
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
&--hovered {
|
|
47
|
+
border-color: var(
|
|
48
|
+
--#{$prefix}upload-draggable-hover-border-color,
|
|
49
|
+
$upload-draggable-hover-border-color
|
|
50
|
+
);
|
|
48
51
|
|
|
49
|
-
|
|
50
|
-
|
|
52
|
+
@each $name, $pair in $colors {
|
|
53
|
+
$color: list.nth($pair, 1);
|
|
51
54
|
|
|
52
|
-
|
|
53
|
-
|
|
55
|
+
&-#{$name} {
|
|
56
|
+
border-color: var(--#{$prefix}variant-#{$name}, $color);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
54
59
|
}
|
|
55
|
-
}
|
|
56
60
|
}
|
|
57
|
-
}
|
|
58
61
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
62
|
+
input[type="file"] {
|
|
63
|
+
position: absolute;
|
|
64
|
+
top: 0;
|
|
65
|
+
left: 0;
|
|
66
|
+
width: 100%;
|
|
67
|
+
height: 100%;
|
|
68
|
+
opacity: 0;
|
|
69
|
+
cursor: pointer;
|
|
70
|
+
z-index: -1;
|
|
71
|
+
}
|
|
69
72
|
}
|
package/dist/scss/oruga.scss
CHANGED
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
@import "utils/animations";
|
|
7
7
|
@import "utils/helpers";
|
|
8
8
|
@import "utils/root";
|
|
9
|
-
|
|
10
9
|
@import "utils/base";
|
|
11
10
|
|
|
12
11
|
// import Oruga components
|
|
13
12
|
@import "components/autocomplete";
|
|
13
|
+
@import "components/breadcrumb";
|
|
14
14
|
@import "components/button";
|
|
15
15
|
@import "components/carousel";
|
|
16
16
|
@import "components/checkbox";
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
@import "components/switch";
|
|
36
36
|
@import "components/table";
|
|
37
37
|
@import "components/tabs";
|
|
38
|
+
@import "components/tag";
|
|
38
39
|
@import "components/taginput";
|
|
39
40
|
@import "components/timepicker";
|
|
40
41
|
@import "components/tooltip";
|
|
@@ -2,106 +2,106 @@
|
|
|
2
2
|
|
|
3
3
|
// Fade out
|
|
4
4
|
@keyframes fadeOut {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
from {
|
|
6
|
+
opacity: 1;
|
|
7
|
+
}
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
to {
|
|
10
|
+
opacity: 0;
|
|
11
|
+
}
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.fadeOut {
|
|
15
|
-
|
|
15
|
+
animation-name: fadeOut;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
@keyframes fadeOutDown {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
from {
|
|
20
|
+
opacity: 1;
|
|
21
|
+
}
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
to {
|
|
24
|
+
opacity: 0;
|
|
25
|
+
transform: translate3d(0, 100%, 0);
|
|
26
|
+
}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.fadeOutDown {
|
|
30
|
-
|
|
30
|
+
animation-name: fadeOutDown;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
@keyframes fadeOutUp {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
from {
|
|
35
|
+
opacity: 1;
|
|
36
|
+
}
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
to {
|
|
39
|
+
opacity: 0;
|
|
40
|
+
transform: translate3d(0, -100%, 0);
|
|
41
|
+
}
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
.fadeOutUp {
|
|
45
|
-
|
|
45
|
+
animation-name: fadeOutUp;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
// Fade In
|
|
49
49
|
@keyframes fadeIn {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
from {
|
|
51
|
+
opacity: 0;
|
|
52
|
+
}
|
|
53
53
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
to {
|
|
55
|
+
opacity: 1;
|
|
56
|
+
}
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
.fadeIn {
|
|
60
|
-
|
|
60
|
+
animation-name: fadeIn;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
@keyframes fadeInDown {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
64
|
+
from {
|
|
65
|
+
opacity: 0;
|
|
66
|
+
transform: translate3d(0, -100%, 0);
|
|
67
|
+
}
|
|
68
68
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
to {
|
|
70
|
+
opacity: 1;
|
|
71
|
+
transform: none;
|
|
72
|
+
}
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
.fadeInDown {
|
|
76
|
-
|
|
76
|
+
animation-name: fadeInDown;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
@keyframes fadeInUp {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
from {
|
|
81
|
+
opacity: 0;
|
|
82
|
+
transform: translate3d(0, 100%, 0);
|
|
83
|
+
}
|
|
84
84
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
85
|
+
to {
|
|
86
|
+
opacity: 1;
|
|
87
|
+
transform: none;
|
|
88
|
+
}
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
.fadeInUp {
|
|
92
|
-
|
|
92
|
+
animation-name: fadeInUp;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
@keyframes append-animate {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
96
|
+
from {
|
|
97
|
+
transform: scale(0);
|
|
98
|
+
opacity: 0;
|
|
99
|
+
}
|
|
100
100
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
101
|
+
to {
|
|
102
|
+
transform: scale(1);
|
|
103
|
+
opacity: 1;
|
|
104
|
+
}
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
/**
|
|
@@ -111,53 +111,53 @@
|
|
|
111
111
|
// Fade
|
|
112
112
|
.fade-enter-active,
|
|
113
113
|
.fade-leave-active {
|
|
114
|
-
|
|
114
|
+
transition: opacity $animation-speed $animation-timing;
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
.fade-enter,
|
|
118
118
|
.fade-enter-from,
|
|
119
119
|
.fade-leave-to {
|
|
120
|
-
|
|
120
|
+
opacity: 0;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
// Zoom In
|
|
124
124
|
.zoom-in-enter-active,
|
|
125
125
|
.zoom-in-leave-active {
|
|
126
|
-
|
|
126
|
+
transition: opacity $animation-speed $animation-timing;
|
|
127
127
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
128
|
+
.animation-content {
|
|
129
|
+
transition: transform $animation-speed $animation-timing;
|
|
130
|
+
}
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
.zoom-in-enter,
|
|
134
134
|
.zoom-in-enter-from,
|
|
135
135
|
.zoom-in-leave-active {
|
|
136
|
-
|
|
136
|
+
opacity: 0;
|
|
137
137
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
138
|
+
.animation-content {
|
|
139
|
+
transform: scale(0.95);
|
|
140
|
+
}
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
// Zoom Out
|
|
144
144
|
.zoom-out-enter-active,
|
|
145
145
|
.zoom-out-leave-active {
|
|
146
|
-
|
|
146
|
+
transition: opacity $animation-speed $animation-timing;
|
|
147
147
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
148
|
+
.animation-content {
|
|
149
|
+
transition: transform $animation-speed $animation-timing;
|
|
150
|
+
}
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
.zoom-out-enter,
|
|
154
154
|
.zoom-out-enter-from,
|
|
155
155
|
.zoom-out-leave-active {
|
|
156
|
-
|
|
156
|
+
opacity: 0;
|
|
157
157
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
158
|
+
.animation-content {
|
|
159
|
+
transform: scale(1.05);
|
|
160
|
+
}
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
// Slide
|
|
@@ -165,69 +165,69 @@
|
|
|
165
165
|
.slide-next-leave-active,
|
|
166
166
|
.slide-prev-enter-active,
|
|
167
167
|
.slide-prev-leave-active {
|
|
168
|
-
|
|
169
|
-
|
|
168
|
+
transition: transform $animation-speed-fast
|
|
169
|
+
cubic-bezier(0.785, 0.135, 0.15, 0.86);
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
.slide-prev-leave-to,
|
|
173
173
|
.slide-next-enter,
|
|
174
174
|
.slide-next-enter-from {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
175
|
+
transform: translate3d(-100%, 0, 0);
|
|
176
|
+
position: absolute;
|
|
177
|
+
width: 100%;
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
.slide-prev-enter,
|
|
181
181
|
.slide-prev-enter-from,
|
|
182
182
|
.slide-next-leave-to {
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
183
|
+
transform: translate3d(100%, 0, 0);
|
|
184
|
+
position: absolute;
|
|
185
|
+
width: 100%;
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
.slide-down-enter-active,
|
|
189
189
|
.slide-down-leave-active,
|
|
190
190
|
.slide-up-enter-active,
|
|
191
191
|
.slide-up-leave-active {
|
|
192
|
-
|
|
193
|
-
|
|
192
|
+
transition: transform $animation-speed-fast
|
|
193
|
+
cubic-bezier(0.785, 0.135, 0.15, 0.86);
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
.slide-down-enter,
|
|
197
197
|
.slide-up-leave-to,
|
|
198
198
|
.slide-down-enter-from {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
199
|
+
transform: translate3d(0, -100%, 0);
|
|
200
|
+
position: absolute;
|
|
201
|
+
height: 100%;
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
.slide-up-enter,
|
|
205
205
|
.slide-up-enter-from,
|
|
206
206
|
.slide-down-leave-to {
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
207
|
+
transform: translate3d(0, 100%, 0);
|
|
208
|
+
position: absolute;
|
|
209
|
+
height: 100%;
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
.slide-enter-active {
|
|
213
|
-
|
|
213
|
+
transition: $animation-speed $animation-timing;
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
.slide-leave-active {
|
|
217
|
-
|
|
218
|
-
|
|
217
|
+
transition: $animation-speed $animation-timing;
|
|
218
|
+
transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
.slide-leave,
|
|
222
222
|
.slide-enter-to,
|
|
223
223
|
.slide-leave-from {
|
|
224
|
-
|
|
225
|
-
|
|
224
|
+
max-height: 100px;
|
|
225
|
+
overflow: hidden;
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
.slide-enter,
|
|
229
229
|
.slide-enter-from,
|
|
230
230
|
.slide-leave-to {
|
|
231
|
-
|
|
232
|
-
|
|
231
|
+
overflow: hidden;
|
|
232
|
+
max-height: 0;
|
|
233
233
|
}
|
|
@@ -1,31 +1,48 @@
|
|
|
1
1
|
*,
|
|
2
2
|
:after,
|
|
3
3
|
:before {
|
|
4
|
-
|
|
4
|
+
box-sizing: inherit;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
html {
|
|
8
|
-
|
|
8
|
+
box-sizing: border-box;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
body {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
margin: 0;
|
|
13
|
+
padding: 0;
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
font-family: var(--#{$prefix}base-font-family, $base-font-family);
|
|
16
|
+
font-size: var(--#{$prefix}base-font-size, $base-font-size);
|
|
17
|
+
font-weight: var(--#{$prefix}base-font-weight, $base-font-weight);
|
|
18
|
+
line-height: var(--#{$prefix}base-line-height, $base-line-height);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
overflow-x: hidden;
|
|
26
|
-
overflow-y: scroll;
|
|
21
|
+
img,
|
|
22
|
+
video {
|
|
23
|
+
max-width: 100%;
|
|
24
|
+
height: auto;
|
|
27
25
|
}
|
|
28
26
|
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
input,
|
|
28
|
+
button,
|
|
29
|
+
select,
|
|
30
|
+
optgroup,
|
|
31
|
+
textarea {
|
|
32
|
+
margin: 0;
|
|
33
|
+
font-family: inherit;
|
|
34
|
+
font-size: inherit;
|
|
35
|
+
line-height: inherit;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.o-scroll-keep {
|
|
39
|
+
position: fixed;
|
|
40
|
+
width: 100%;
|
|
41
|
+
bottom: 0;
|
|
42
|
+
overflow-x: hidden;
|
|
43
|
+
overflow-y: scroll;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.o-scroll-clip {
|
|
47
|
+
overflow: hidden;
|
|
31
48
|
}
|