@oruga-ui/theme-oruga 0.0.1 → 0.2.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-full.css +530 -388
- package/dist/oruga-full.min.css +1 -1
- package/dist/oruga.css +364 -225
- package/dist/oruga.min.css +1 -1
- package/dist/scss/components/_autocomplete.scss +0 -62
- package/dist/scss/components/_carousel.scss +10 -6
- package/dist/scss/components/_checkbox.scss +4 -4
- package/dist/scss/components/_datepicker.scss +11 -11
- package/dist/scss/components/_dropdown.scss +144 -31
- package/dist/scss/components/_field.scss +8 -8
- package/dist/scss/components/_icon.scss +3 -1
- package/dist/scss/components/_input.scss +38 -40
- package/dist/scss/components/_menu.scss +68 -68
- package/dist/scss/components/_pagination.scss +22 -22
- package/dist/scss/components/_radio.scss +8 -10
- package/dist/scss/components/_sidebar.scss +147 -42
- package/dist/scss/components/_switch.scss +4 -2
- package/dist/scss/components/_table.scss +14 -10
- package/dist/scss/components/_taginput.scss +163 -0
- package/dist/scss/components/_tooltip.scss +422 -218
- package/dist/scss/oruga-common.scss +1 -1
- package/dist/scss/oruga.scss +15 -20
- package/dist/scss/utils/_helpers.scss +3 -7
- package/dist/scss/utils/_variables.scss +0 -1
- package/package.json +28 -28
- package/src/App.vue +1 -0
- package/src/assets/scss/components/_autocomplete.scss +0 -62
- package/src/assets/scss/components/_carousel.scss +10 -6
- package/src/assets/scss/components/_checkbox.scss +4 -4
- package/src/assets/scss/components/_datepicker.scss +11 -11
- package/src/assets/scss/components/_dropdown.scss +144 -31
- package/src/assets/scss/components/_field.scss +8 -8
- package/src/assets/scss/components/_icon.scss +3 -1
- package/src/assets/scss/components/_input.scss +38 -40
- package/src/assets/scss/components/_menu.scss +68 -68
- package/src/assets/scss/components/_pagination.scss +22 -22
- package/src/assets/scss/components/_radio.scss +8 -10
- package/src/assets/scss/components/_sidebar.scss +147 -42
- package/src/assets/scss/components/_switch.scss +4 -2
- package/src/assets/scss/components/_table.scss +14 -10
- package/src/assets/scss/components/_taginput.scss +163 -0
- package/src/assets/scss/components/_tooltip.scss +422 -218
- package/src/assets/scss/oruga-common.scss +1 -1
- package/src/assets/scss/oruga.scss +15 -20
- package/src/assets/scss/utils/_helpers.scss +3 -7
- package/src/assets/scss/utils/_variables.scss +0 -1
- package/src/components/Autocomplete.vue +7 -7
- package/src/components/Button.vue +28 -28
- package/src/components/Carousel.vue +19 -20
- package/src/components/Checkbox.vue +43 -42
- package/src/components/Collapse.vue +3 -1
- package/src/components/Datepicker.vue +7 -10
- package/src/components/Datetimepicker.vue +4 -4
- package/src/components/Dropdown.vue +146 -101
- package/src/components/Field.vue +35 -43
- package/src/components/Icon.vue +1 -1
- package/src/components/Input.vue +9 -1
- package/src/components/Loading.vue +13 -14
- package/src/components/Menu.vue +42 -0
- package/src/components/Modal.vue +59 -0
- package/src/components/Notification.vue +6 -6
- package/src/components/Pagination.vue +5 -6
- package/src/components/Radio.vue +55 -39
- package/src/components/Sidebar.vue +34 -17
- package/src/components/Skeleton.vue +43 -25
- package/src/components/Slider.vue +2 -2
- package/src/components/Steps.vue +13 -14
- package/src/components/Switch.vue +22 -19
- package/src/components/Table.vue +30 -37
- package/src/components/Tabs.vue +3 -2
- package/src/components/Taginput.vue +14 -14
- package/src/components/Timepicker.vue +4 -6
- package/src/components/Tooltip.vue +54 -16
- package/dist/scss/components/_inputitems.scss +0 -175
- package/src/assets/scss/components/_inputitems.scss +0 -175
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
@use "sass:list";
|
|
2
|
+
|
|
3
|
+
/* @docs */
|
|
4
|
+
$taginput-background-color: $input-background-color !default;
|
|
5
|
+
$taginput-height: calc(2em - 1px) !default;
|
|
6
|
+
$taginput-padding: calc(0.275em - 1px) 0 0 !default;
|
|
7
|
+
$taginput-border-color: $grey-lighter !default;
|
|
8
|
+
$taginput-border-style: solid !default;
|
|
9
|
+
$taginput-border-width: 1px !default;
|
|
10
|
+
$taginput-border-radius: $base-border-radius !default;
|
|
11
|
+
$taginput-color: #363636 !default;
|
|
12
|
+
$taginput-line-height: $base-line-height !default;
|
|
13
|
+
$taginput-box-shadow: inset 0 1px 2px hsla(0, 0%, 4%, 0.1) !default;
|
|
14
|
+
$taginput-max-width: 100% !default;
|
|
15
|
+
$taginput-width: 100% !default;
|
|
16
|
+
$taginput-counter-font-size: 0.75rem !default;
|
|
17
|
+
$taginput-counter-margin: 0.25rem 0 0 0.5rem !default;
|
|
18
|
+
$taginput-item-background-color: $primary !default;
|
|
19
|
+
$taginput-item-color: $primary-invert !default;
|
|
20
|
+
$taginput-item-border-radius: $base-border-radius !default;
|
|
21
|
+
$taginput-item-margin: 0 0 0 0.275em !default;
|
|
22
|
+
$taginput-item-padding: 0 0.75em 0 0.75em !default;
|
|
23
|
+
$taginput-margin-icon-to-text: 0.1875em !default;
|
|
24
|
+
/* @docs */
|
|
25
|
+
|
|
26
|
+
.o-taginput {
|
|
27
|
+
display: block;
|
|
28
|
+
|
|
29
|
+
&__container {
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: flex-start;
|
|
33
|
+
position: relative;
|
|
34
|
+
vertical-align: top;
|
|
35
|
+
flex-wrap: wrap;
|
|
36
|
+
|
|
37
|
+
@include avariable("max-width", "taginput-max-width", $taginput-max-width);
|
|
38
|
+
@include avariable("width", "taginput-width", $taginput-width);
|
|
39
|
+
@include avariable("padding", "taginput-padding", $taginput-padding);
|
|
40
|
+
@include avariable(
|
|
41
|
+
"background-color",
|
|
42
|
+
"taginput-background-color",
|
|
43
|
+
$taginput-background-color
|
|
44
|
+
);
|
|
45
|
+
@include avariable(
|
|
46
|
+
"border-color",
|
|
47
|
+
"taginput-border-color",
|
|
48
|
+
$taginput-border-color
|
|
49
|
+
);
|
|
50
|
+
@include avariable(
|
|
51
|
+
"border-style",
|
|
52
|
+
"taginput-border-style",
|
|
53
|
+
$taginput-border-style
|
|
54
|
+
);
|
|
55
|
+
@include avariable(
|
|
56
|
+
"border-width",
|
|
57
|
+
"taginput-border-width",
|
|
58
|
+
$taginput-border-width
|
|
59
|
+
);
|
|
60
|
+
@include avariable(
|
|
61
|
+
"border-radius",
|
|
62
|
+
"taginput-border-radius",
|
|
63
|
+
$taginput-border-radius
|
|
64
|
+
);
|
|
65
|
+
@include avariable("color", "taginput-color", $taginput-color);
|
|
66
|
+
@include avariable("font-size", "base-font-size", $base-font-size);
|
|
67
|
+
@include avariable(
|
|
68
|
+
"line-height",
|
|
69
|
+
"taginput-line-height",
|
|
70
|
+
$taginput-line-height
|
|
71
|
+
);
|
|
72
|
+
@include avariable(
|
|
73
|
+
"box-shadow",
|
|
74
|
+
"taginput-box-shadow",
|
|
75
|
+
$taginput-box-shadow
|
|
76
|
+
);
|
|
77
|
+
|
|
78
|
+
@each $name, $value in $sizes {
|
|
79
|
+
&--#{$name} {
|
|
80
|
+
@include avariable(
|
|
81
|
+
"font-size",
|
|
82
|
+
("taginput-font-size-" + #{$name}),
|
|
83
|
+
$value
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&__autocomplete {
|
|
90
|
+
position: static;
|
|
91
|
+
flex: 1;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&__input {
|
|
95
|
+
border: none;
|
|
96
|
+
box-shadow: none;
|
|
97
|
+
|
|
98
|
+
&:focus {
|
|
99
|
+
box-shadow: none;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&__item {
|
|
104
|
+
display: inline-flex;
|
|
105
|
+
justify-content: center;
|
|
106
|
+
align-items: center;
|
|
107
|
+
position: relative;
|
|
108
|
+
|
|
109
|
+
@include side-flex-gap($taginput-margin-icon-to-text);
|
|
110
|
+
@include avariable(
|
|
111
|
+
"background-color",
|
|
112
|
+
"taginput-item-background-color",
|
|
113
|
+
$taginput-item-background-color
|
|
114
|
+
);
|
|
115
|
+
@include avariable("color", "taginput-item-color", $taginput-item-color);
|
|
116
|
+
@include avariable(
|
|
117
|
+
"border-radius",
|
|
118
|
+
"taginput-item-border-radius",
|
|
119
|
+
$taginput-item-border-radius
|
|
120
|
+
);
|
|
121
|
+
@include avariable("margin", "taginput-item-margin", $taginput-item-margin);
|
|
122
|
+
@include avariable(
|
|
123
|
+
"padding",
|
|
124
|
+
"taginput-item-padding",
|
|
125
|
+
$taginput-item-padding
|
|
126
|
+
);
|
|
127
|
+
|
|
128
|
+
@each $name, $pair in $colors {
|
|
129
|
+
$color: list.nth($pair, 1);
|
|
130
|
+
$color-invert: list.nth($pair, 2);
|
|
131
|
+
&--#{$name} {
|
|
132
|
+
@include avariable("background-color", ("variant-" + #{$name}), $color);
|
|
133
|
+
@include avariable(
|
|
134
|
+
"color",
|
|
135
|
+
("variant-invert-" + #{$name}),
|
|
136
|
+
$color-invert
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&__counter {
|
|
143
|
+
display: block;
|
|
144
|
+
float: right;
|
|
145
|
+
|
|
146
|
+
@include avariable(
|
|
147
|
+
"font-size",
|
|
148
|
+
"taginput-counter-font-size",
|
|
149
|
+
$taginput-counter-font-size
|
|
150
|
+
);
|
|
151
|
+
@include avariable(
|
|
152
|
+
"margin",
|
|
153
|
+
"taginput-counter-margin",
|
|
154
|
+
$taginput-counter-margin
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
&--expanded {
|
|
159
|
+
width: 100%;
|
|
160
|
+
flex-grow: 1;
|
|
161
|
+
flex-shrink: 1;
|
|
162
|
+
}
|
|
163
|
+
}
|