@oruga-ui/theme-oruga 0.0.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/LICENSE +21 -0
- package/README.md +115 -0
- package/dist/oruga-full.css +3778 -0
- package/dist/oruga-full.min.css +1 -0
- package/dist/oruga.css +2209 -0
- package/dist/oruga.min.css +1 -0
- package/dist/scss/components/_autocomplete.scss +130 -0
- package/dist/scss/components/_button.scss +242 -0
- package/dist/scss/components/_carousel.scss +256 -0
- package/dist/scss/components/_checkbox.scss +183 -0
- package/dist/scss/components/_collapse.scss +12 -0
- package/dist/scss/components/_datepicker.scss +592 -0
- package/dist/scss/components/_datetimepicker.scss +10 -0
- package/dist/scss/components/_dropdown.scss +241 -0
- package/dist/scss/components/_field.scss +154 -0
- package/dist/scss/components/_icon.scss +53 -0
- package/dist/scss/components/_input.scss +153 -0
- package/dist/scss/components/_inputitems.scss +175 -0
- package/dist/scss/components/_loading.scss +45 -0
- package/dist/scss/components/_menu.scss +124 -0
- package/dist/scss/components/_modal.scss +103 -0
- package/dist/scss/components/_notification.scss +212 -0
- package/dist/scss/components/_pagination.scss +256 -0
- package/dist/scss/components/_radio.scss +121 -0
- package/dist/scss/components/_select.scss +168 -0
- package/dist/scss/components/_sidebar.scss +112 -0
- package/dist/scss/components/_skeleton.scss +93 -0
- package/dist/scss/components/_slider.scss +241 -0
- package/dist/scss/components/_steps.scss +599 -0
- package/dist/scss/components/_switch.scss +171 -0
- package/dist/scss/components/_table.scss +481 -0
- package/dist/scss/components/_tabs.scss +385 -0
- package/dist/scss/components/_timepicker.scss +116 -0
- package/dist/scss/components/_tooltip.scss +345 -0
- package/dist/scss/components/_upload.scss +74 -0
- package/dist/scss/oruga-common.scss +37 -0
- package/dist/scss/oruga-full.scss +9 -0
- package/dist/scss/oruga.scss +197 -0
- package/dist/scss/utils/_animations.scss +231 -0
- package/dist/scss/utils/_base.scss +31 -0
- package/dist/scss/utils/_helpers.scss +211 -0
- package/dist/scss/utils/_root.scss +28 -0
- package/dist/scss/utils/_variables.scss +105 -0
- package/dist/theme.js +8 -0
- package/package.json +72 -0
- package/src/App.vue +104 -0
- package/src/assets/scss/components/_autocomplete.scss +130 -0
- package/src/assets/scss/components/_button.scss +242 -0
- package/src/assets/scss/components/_carousel.scss +256 -0
- package/src/assets/scss/components/_checkbox.scss +183 -0
- package/src/assets/scss/components/_collapse.scss +12 -0
- package/src/assets/scss/components/_datepicker.scss +592 -0
- package/src/assets/scss/components/_datetimepicker.scss +10 -0
- package/src/assets/scss/components/_dropdown.scss +241 -0
- package/src/assets/scss/components/_field.scss +154 -0
- package/src/assets/scss/components/_icon.scss +53 -0
- package/src/assets/scss/components/_input.scss +153 -0
- package/src/assets/scss/components/_inputitems.scss +175 -0
- package/src/assets/scss/components/_loading.scss +45 -0
- package/src/assets/scss/components/_menu.scss +124 -0
- package/src/assets/scss/components/_modal.scss +103 -0
- package/src/assets/scss/components/_notification.scss +212 -0
- package/src/assets/scss/components/_pagination.scss +256 -0
- package/src/assets/scss/components/_radio.scss +121 -0
- package/src/assets/scss/components/_select.scss +168 -0
- package/src/assets/scss/components/_sidebar.scss +112 -0
- package/src/assets/scss/components/_skeleton.scss +93 -0
- package/src/assets/scss/components/_slider.scss +241 -0
- package/src/assets/scss/components/_steps.scss +599 -0
- package/src/assets/scss/components/_switch.scss +171 -0
- package/src/assets/scss/components/_table.scss +481 -0
- package/src/assets/scss/components/_tabs.scss +385 -0
- package/src/assets/scss/components/_timepicker.scss +116 -0
- package/src/assets/scss/components/_tooltip.scss +345 -0
- package/src/assets/scss/components/_upload.scss +74 -0
- package/src/assets/scss/oruga-common.scss +37 -0
- package/src/assets/scss/oruga-full.scss +9 -0
- package/src/assets/scss/oruga.scss +197 -0
- package/src/assets/scss/utils/_animations.scss +231 -0
- package/src/assets/scss/utils/_base.scss +31 -0
- package/src/assets/scss/utils/_helpers.scss +211 -0
- package/src/assets/scss/utils/_root.scss +28 -0
- package/src/assets/scss/utils/_variables.scss +105 -0
- package/src/components/Autocomplete.vue +606 -0
- package/src/components/Button.vue +80 -0
- package/src/components/Carousel.vue +296 -0
- package/src/components/Checkbox.vue +134 -0
- package/src/components/Collapse.vue +132 -0
- package/src/components/Datepicker.vue +285 -0
- package/src/components/Datetimepicker.vue +127 -0
- package/src/components/Dropdown.vue +284 -0
- package/src/components/Field.vue +243 -0
- package/src/components/Icon.vue +66 -0
- package/src/components/Input.vue +121 -0
- package/src/components/Loading.vue +71 -0
- package/src/components/Modal.vue +171 -0
- package/src/components/Notification.vue +136 -0
- package/src/components/Pagination.vue +97 -0
- package/src/components/Radio.vue +95 -0
- package/src/components/Select.vue +155 -0
- package/src/components/Sidebar.vue +56 -0
- package/src/components/Skeleton.vue +57 -0
- package/src/components/Slider.vue +226 -0
- package/src/components/Steps.vue +234 -0
- package/src/components/Switch.vue +134 -0
- package/src/components/Table.vue +285 -0
- package/src/components/Tabs.vue +208 -0
- package/src/components/Taginput.vue +507 -0
- package/src/components/Timepicker.vue +124 -0
- package/src/components/Tooltip.vue +149 -0
- package/src/components/Upload.vue +66 -0
- package/src/main.ts +29 -0
- package/src/plugins/theme.ts +1 -0
- package/src/router/index.ts +39 -0
- package/src/views/Home.vue +24 -0
- package/types/index.d.ts +1 -0
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
/* @docs */
|
|
2
|
+
$dropdown-disabled-opacity: $base-disabled-opacity !default;
|
|
3
|
+
$dropdown-item-active-background-color: $primary !default;
|
|
4
|
+
$dropdown-item-active-color: $primary-invert !default;
|
|
5
|
+
$dropdown-item-color: #000000 !default;
|
|
6
|
+
$dropdown-item-disabled-opacity: $base-disabled-opacity !default;
|
|
7
|
+
$dropdown-item-font-size: $base-font-size !default;
|
|
8
|
+
$dropdown-item-hover-background-color: #f5f5f5 !default;
|
|
9
|
+
$dropdown-item-hover-color: #000000 !default;
|
|
10
|
+
$dropdown-item-line-height: $base-line-height !default;
|
|
11
|
+
$dropdown-item-padding: 0.375rem 1rem !default;
|
|
12
|
+
$dropdown-item-font-weight: 400 !default;
|
|
13
|
+
$dropdown-menu-background: #ffffff !default;
|
|
14
|
+
$dropdown-menu-border-radius: $base-border-radius !default;
|
|
15
|
+
$dropdown-menu-box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1),
|
|
16
|
+
0 0 0 1px rgba(10, 10, 10, 0.02) !default;
|
|
17
|
+
$dropdown-menu-margin: 0 !default;
|
|
18
|
+
$dropdown-menu-padding: 0.5rem 0 0.5rem 0 !default;
|
|
19
|
+
$dropdown-menu-width: 12rem !default;
|
|
20
|
+
$dropdown-menu-zindex: 20 !default;
|
|
21
|
+
$dropdown-mobile-max-height: calc(100vh - 120px) !default;
|
|
22
|
+
$dropdown-mobile-max-width: 460px !default;
|
|
23
|
+
$dropdown-mobile-overlay-color: rgba(#000000, 0.86) !default;
|
|
24
|
+
$dropdown-mobile-overlay-zindex: 40 !default;
|
|
25
|
+
$dropdown-mobile-width: calc(100vw - 40px) !default;
|
|
26
|
+
$dropdown-mobile-zindex: 50 !default;
|
|
27
|
+
/* @docs */
|
|
28
|
+
|
|
29
|
+
.o-drop {
|
|
30
|
+
display: inline-flex;
|
|
31
|
+
position: relative;
|
|
32
|
+
vertical-align: top;
|
|
33
|
+
|
|
34
|
+
&--inline {
|
|
35
|
+
display: inline;
|
|
36
|
+
|
|
37
|
+
.o-drop__menu {
|
|
38
|
+
position: static;
|
|
39
|
+
display: inline-block;
|
|
40
|
+
padding: 0;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&__overlay {
|
|
45
|
+
position: fixed;
|
|
46
|
+
bottom: 0;
|
|
47
|
+
left: 0;
|
|
48
|
+
right: 0;
|
|
49
|
+
top: 0;
|
|
50
|
+
cursor: pointer;
|
|
51
|
+
display: none;
|
|
52
|
+
|
|
53
|
+
@include avariable(
|
|
54
|
+
"background-color",
|
|
55
|
+
"dropdown-mobile-overlay-color",
|
|
56
|
+
$dropdown-mobile-overlay-color
|
|
57
|
+
);
|
|
58
|
+
@include avariable(
|
|
59
|
+
"z-index",
|
|
60
|
+
"dropdown-mobile-overlay-zindex",
|
|
61
|
+
$dropdown-mobile-overlay-zindex
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&__trigger {
|
|
66
|
+
width: 100%;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&__menu {
|
|
70
|
+
position: absolute;
|
|
71
|
+
left: 0;
|
|
72
|
+
top: 100%;
|
|
73
|
+
display: block;
|
|
74
|
+
|
|
75
|
+
@include avariable(
|
|
76
|
+
"min-width",
|
|
77
|
+
"dropdown-menu-width",
|
|
78
|
+
$dropdown-menu-width
|
|
79
|
+
);
|
|
80
|
+
@include avariable(
|
|
81
|
+
"z-index",
|
|
82
|
+
"dropdown-menu-zindex",
|
|
83
|
+
$dropdown-menu-zindex
|
|
84
|
+
);
|
|
85
|
+
@include avariable(
|
|
86
|
+
"background-color",
|
|
87
|
+
"dropdown-menu-background",
|
|
88
|
+
$dropdown-menu-background
|
|
89
|
+
);
|
|
90
|
+
@include avariable(
|
|
91
|
+
"border-radius",
|
|
92
|
+
"dropdown-menu-border-radius",
|
|
93
|
+
$dropdown-menu-border-radius
|
|
94
|
+
);
|
|
95
|
+
@include avariable(
|
|
96
|
+
"box-shadow",
|
|
97
|
+
"dropdown-menu-box-shadow",
|
|
98
|
+
$dropdown-menu-box-shadow
|
|
99
|
+
);
|
|
100
|
+
@include avariable(
|
|
101
|
+
"padding",
|
|
102
|
+
"dropdown-menu-padding",
|
|
103
|
+
$dropdown-menu-padding
|
|
104
|
+
);
|
|
105
|
+
@include avariable("margin", "dropdown-menu-margin", $dropdown-menu-margin);
|
|
106
|
+
|
|
107
|
+
&--top-left {
|
|
108
|
+
top: auto;
|
|
109
|
+
bottom: 100%;
|
|
110
|
+
right: 0;
|
|
111
|
+
left: auto;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&--bottom-left {
|
|
115
|
+
right: 0;
|
|
116
|
+
left: auto;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&--top-right {
|
|
120
|
+
top: auto;
|
|
121
|
+
bottom: 100%;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&__item {
|
|
126
|
+
display: block;
|
|
127
|
+
position: relative;
|
|
128
|
+
cursor: pointer;
|
|
129
|
+
|
|
130
|
+
@include avariable("color", "dropdown-item-color", $dropdown-item-color);
|
|
131
|
+
@include avariable(
|
|
132
|
+
"font-size",
|
|
133
|
+
"dropdown-item-font-size",
|
|
134
|
+
$dropdown-item-font-size
|
|
135
|
+
);
|
|
136
|
+
@include avariable(
|
|
137
|
+
"font-weight",
|
|
138
|
+
"dropdown-item-font-weight",
|
|
139
|
+
$dropdown-item-font-weight
|
|
140
|
+
);
|
|
141
|
+
@include avariable(
|
|
142
|
+
"line-height",
|
|
143
|
+
"dropdown-item-line-height",
|
|
144
|
+
$dropdown-item-line-height
|
|
145
|
+
);
|
|
146
|
+
@include avariable(
|
|
147
|
+
"padding",
|
|
148
|
+
"dropdown-item-padding",
|
|
149
|
+
$dropdown-item-padding
|
|
150
|
+
);
|
|
151
|
+
|
|
152
|
+
&--disabled {
|
|
153
|
+
@include avariable(
|
|
154
|
+
"opacity",
|
|
155
|
+
"dropdown-item-disabled-opacity",
|
|
156
|
+
$dropdown-item-disabled-opacity
|
|
157
|
+
);
|
|
158
|
+
pointer-events: none;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&--active {
|
|
162
|
+
@include avariable(
|
|
163
|
+
"background-color",
|
|
164
|
+
"dropdown-item-active-background-color",
|
|
165
|
+
$dropdown-item-active-background-color
|
|
166
|
+
);
|
|
167
|
+
@include avariable(
|
|
168
|
+
"color",
|
|
169
|
+
"dropdown-item-active-color",
|
|
170
|
+
$dropdown-item-active-color
|
|
171
|
+
);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
&:hover:not(&--active) {
|
|
175
|
+
@include avariable(
|
|
176
|
+
"background-color",
|
|
177
|
+
"dropdown-item-hover-background-color",
|
|
178
|
+
$dropdown-item-hover-background-color
|
|
179
|
+
);
|
|
180
|
+
@include avariable(
|
|
181
|
+
"color",
|
|
182
|
+
"dropdown-item-hover-color",
|
|
183
|
+
$dropdown-item-hover-color
|
|
184
|
+
);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
&--expanded {
|
|
189
|
+
width: 100%;
|
|
190
|
+
|
|
191
|
+
.o-drop__menu {
|
|
192
|
+
width: 100%;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
&--disabled {
|
|
197
|
+
@include avariable(
|
|
198
|
+
"opacity",
|
|
199
|
+
"dropdown-disabled-opacity",
|
|
200
|
+
$dropdown-disabled-opacity
|
|
201
|
+
);
|
|
202
|
+
pointer-events: none;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
&--mobile {
|
|
206
|
+
> .o-drop__menu {
|
|
207
|
+
position: fixed;
|
|
208
|
+
top: 25%;
|
|
209
|
+
left: 50%;
|
|
210
|
+
bottom: auto;
|
|
211
|
+
right: auto;
|
|
212
|
+
transform: translate3d(-50%, -25%, 0);
|
|
213
|
+
overflow-y: auto;
|
|
214
|
+
|
|
215
|
+
@include avariable(
|
|
216
|
+
"width",
|
|
217
|
+
"dropdown-mobile-width",
|
|
218
|
+
$dropdown-mobile-width
|
|
219
|
+
);
|
|
220
|
+
@include avariable(
|
|
221
|
+
"max-width",
|
|
222
|
+
"dropdown-mobile-max-width",
|
|
223
|
+
$dropdown-mobile-max-width
|
|
224
|
+
);
|
|
225
|
+
@include avariable(
|
|
226
|
+
"max-height",
|
|
227
|
+
"dropdown-mobile-max-height",
|
|
228
|
+
$dropdown-mobile-max-height
|
|
229
|
+
);
|
|
230
|
+
@include avariable(
|
|
231
|
+
"z-index",
|
|
232
|
+
"dropdown-mobile-zindex",
|
|
233
|
+
$dropdown-mobile-zindex
|
|
234
|
+
);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
> .o-drop__overlay {
|
|
238
|
+
display: block;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
@use "sass:list";
|
|
2
|
+
|
|
3
|
+
/* @docs */
|
|
4
|
+
$field-label-color: #363636 !default;
|
|
5
|
+
$field-label-font-weight: 600 !default;
|
|
6
|
+
$field-margin-bottom: 0.75rem !default;
|
|
7
|
+
$field-message-font-size: 0.75rem !default;
|
|
8
|
+
$field-message-margin-top: 0.25rem !default;
|
|
9
|
+
$field-margin-right: 0.37rem !default;
|
|
10
|
+
$field-horizontal-label-margin: 0 1.5rem 0 0 !default;
|
|
11
|
+
/* @docs */
|
|
12
|
+
|
|
13
|
+
.o-field {
|
|
14
|
+
flex-grow: 1;
|
|
15
|
+
|
|
16
|
+
&:not(:last-child) {
|
|
17
|
+
@include avariable(
|
|
18
|
+
"margin-bottom",
|
|
19
|
+
"field-margin-bottom",
|
|
20
|
+
$field-margin-bottom
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&__label {
|
|
25
|
+
display: block;
|
|
26
|
+
|
|
27
|
+
@include avariable("color", "field-label-color", $field-label-color);
|
|
28
|
+
@include avariable("font-size", "base-font-size", $base-font-size);
|
|
29
|
+
@include avariable(
|
|
30
|
+
"font-weight",
|
|
31
|
+
"field-label-font-weight",
|
|
32
|
+
$field-label-font-weight
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
@each $name, $value in $sizes {
|
|
36
|
+
&-#{$name} {
|
|
37
|
+
@include avariable(
|
|
38
|
+
"font-size",
|
|
39
|
+
("field-font-size-" + #{$name}),
|
|
40
|
+
$value
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&__message {
|
|
47
|
+
display: block;
|
|
48
|
+
|
|
49
|
+
@include avariable(
|
|
50
|
+
"font-size",
|
|
51
|
+
"field-message-font-size",
|
|
52
|
+
$field-message-font-size
|
|
53
|
+
);
|
|
54
|
+
@include avariable(
|
|
55
|
+
"margin-top",
|
|
56
|
+
"field-message-margin-top",
|
|
57
|
+
$field-message-margin-top
|
|
58
|
+
);
|
|
59
|
+
|
|
60
|
+
@each $name, $pair in $colors {
|
|
61
|
+
$color: list.nth($pair, 1);
|
|
62
|
+
&-#{$name} {
|
|
63
|
+
@include avariable("color", ("variant-" + #{$name}), $color);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&--addons {
|
|
69
|
+
display: flex;
|
|
70
|
+
justify-content: flex-start;
|
|
71
|
+
|
|
72
|
+
> *:first-child:not(:only-child) button,
|
|
73
|
+
> button:first-child,
|
|
74
|
+
> *:first-child:not(:only-child) input,
|
|
75
|
+
> input:first-child,
|
|
76
|
+
> *:first-child:not(:only-child) select,
|
|
77
|
+
> select:first-child {
|
|
78
|
+
border-bottom-right-radius: 0;
|
|
79
|
+
border-top-right-radius: 0;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
> *:last-child:not(:only-child) button,
|
|
83
|
+
> button:last-child,
|
|
84
|
+
> *:last-child:not(:only-child) input,
|
|
85
|
+
> input:last-child,
|
|
86
|
+
> *:last-child:not(:only-child) select,
|
|
87
|
+
> select:last-child {
|
|
88
|
+
border-bottom-left-radius: 0;
|
|
89
|
+
border-top-left-radius: 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
> *:not(:first-child):not(:last-child) button,
|
|
93
|
+
> button:not(:first-child):not(:last-child),
|
|
94
|
+
> *:not(:first-child):not(:last-child) input,
|
|
95
|
+
> input:not(:first-child):not(:last-child),
|
|
96
|
+
> *:not(:first-child):not(:last-child) select,
|
|
97
|
+
> select:not(:first-child):not(:last-child) {
|
|
98
|
+
border-radius: 0;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&--grouped {
|
|
103
|
+
display: flex;
|
|
104
|
+
|
|
105
|
+
@include side-flex-gap($field-margin-right);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&--grouped-multiline {
|
|
109
|
+
flex-wrap: wrap;
|
|
110
|
+
|
|
111
|
+
&:last-child {
|
|
112
|
+
@include avariable(
|
|
113
|
+
"margin-bottom",
|
|
114
|
+
"field-margin-bottom",
|
|
115
|
+
-$field-margin-bottom
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&__horizontal-body {
|
|
121
|
+
display: flex;
|
|
122
|
+
flex-basis: 0;
|
|
123
|
+
flex-grow: 5;
|
|
124
|
+
flex-shrink: 1;
|
|
125
|
+
|
|
126
|
+
@include side-flex-gap($field-margin-right);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&--horizontal {
|
|
130
|
+
display: flex;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&__horizontal-label {
|
|
134
|
+
flex-basis: 0;
|
|
135
|
+
flex-grow: 1;
|
|
136
|
+
flex-shrink: 0;
|
|
137
|
+
margin: $field-horizontal-label-margin;
|
|
138
|
+
text-align: right;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
&--mobile {
|
|
142
|
+
.o-field__horizontal-body {
|
|
143
|
+
all: unset;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&.o-field--horizontal {
|
|
147
|
+
all: unset;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.o-field__horizontal-label {
|
|
151
|
+
all: unset;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
@use "sass:list";
|
|
2
|
+
|
|
3
|
+
/* @docs */
|
|
4
|
+
$icon-spin-duration: 2s !default;
|
|
5
|
+
/* @docs */
|
|
6
|
+
|
|
7
|
+
@keyframes icon-spin {
|
|
8
|
+
0% {
|
|
9
|
+
-webkit-transform: rotate(0deg);
|
|
10
|
+
transform: rotate(0deg);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
100% {
|
|
14
|
+
-webkit-transform: rotate(359deg);
|
|
15
|
+
transform: rotate(359deg);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.o-icon {
|
|
20
|
+
align-items: center;
|
|
21
|
+
display: inline-flex;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
transition: transform $speed-slow $easing, opacity $speed $easing;
|
|
24
|
+
|
|
25
|
+
@each $name, $value in $sizes {
|
|
26
|
+
&--#{$name} {
|
|
27
|
+
@include avariable("font-size", ("icon-font-size-" + #{$name}), $value);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
@each $name, $pair in $colors {
|
|
31
|
+
$color: list.nth($pair, 1);
|
|
32
|
+
&--#{$name} {
|
|
33
|
+
@include avariable("color", ("variant-" + #{$name}), $color);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&--clickable {
|
|
38
|
+
pointer-events: auto;
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&--spin {
|
|
43
|
+
animation-name: icon-spin;
|
|
44
|
+
animation-iteration-count: infinite;
|
|
45
|
+
animation-timing-function: linear;
|
|
46
|
+
|
|
47
|
+
@include avariable(
|
|
48
|
+
"animation-duration",
|
|
49
|
+
"icon-spin-duration",
|
|
50
|
+
$icon-spin-duration
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
@use "sass:list";
|
|
2
|
+
|
|
3
|
+
/* @docs */
|
|
4
|
+
$input-background-color: #ffffff !default;
|
|
5
|
+
$input-border-color: $grey-lighter !default;
|
|
6
|
+
$input-border-style: solid !default;
|
|
7
|
+
$input-border-width: 1px !default;
|
|
8
|
+
$input-border-radius: $base-border-radius !default;
|
|
9
|
+
$input-rounded-border-radius: $base-rounded-border-radius !default;
|
|
10
|
+
$input-box-shadow: inset 0 1px 2px hsla(0, 0%, 4%, 0.1) !default;
|
|
11
|
+
$input-color: #363636 !default;
|
|
12
|
+
$input-icon-zindex: 4 !default;
|
|
13
|
+
$input-counter-font-size: 0.75rem !default;
|
|
14
|
+
$input-counter-margin: 0.25rem 0 0 0.5rem !default;
|
|
15
|
+
$input-height: $control-height !default;
|
|
16
|
+
$input-line-height: $base-line-height !default;
|
|
17
|
+
$input-margin: 0 !default;
|
|
18
|
+
$input-padding: $control-padding-vertical $control-padding-horizontal !default;
|
|
19
|
+
$input-textarea-max-height: 600px !default;
|
|
20
|
+
$input-textarea-min-height: 120px !default;
|
|
21
|
+
$input-textarea-padding: 0.625em !default;
|
|
22
|
+
// @deprecated
|
|
23
|
+
$input-width: 100% !default;
|
|
24
|
+
// @deprecated
|
|
25
|
+
$input-max-width: 100% !default;
|
|
26
|
+
/* @docs */
|
|
27
|
+
|
|
28
|
+
.o-ctrl-input {
|
|
29
|
+
display: block;
|
|
30
|
+
position: relative;
|
|
31
|
+
|
|
32
|
+
&--expanded {
|
|
33
|
+
width: 100%;
|
|
34
|
+
flex-grow: 1;
|
|
35
|
+
flex-shrink: 1;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.o-input {
|
|
40
|
+
-moz-appearance: none;
|
|
41
|
+
-webkit-appearance: none;
|
|
42
|
+
display: inline-flex;
|
|
43
|
+
position: relative;
|
|
44
|
+
vertical-align: top;
|
|
45
|
+
width: $input-width;
|
|
46
|
+
|
|
47
|
+
@include avariable("box-shadow", "input-box-shadow", $input-box-shadow);
|
|
48
|
+
@include avariable("max-width", "input-max-width", $input-max-width);
|
|
49
|
+
@include avariable(
|
|
50
|
+
"background-color",
|
|
51
|
+
"input-background-color",
|
|
52
|
+
$input-background-color
|
|
53
|
+
);
|
|
54
|
+
@include avariable("border-color", "input-border-color", $input-border-color);
|
|
55
|
+
@include avariable("border-style", "input-border-style", $input-border-style);
|
|
56
|
+
@include avariable("border-width", "input-border-width", $input-border-width);
|
|
57
|
+
@include avariable(
|
|
58
|
+
"border-radius",
|
|
59
|
+
"input-border-radius",
|
|
60
|
+
$input-border-radius
|
|
61
|
+
);
|
|
62
|
+
@include avariable("color", "input-color", $input-color);
|
|
63
|
+
@include avariable("font-size", "base-font-size", $base-font-size);
|
|
64
|
+
@include avariable("height", "input-height", $input-height);
|
|
65
|
+
@include avariable("line-height", "input-line-height", $input-line-height);
|
|
66
|
+
@include avariable("padding", "input-padding", $input-padding);
|
|
67
|
+
@include avariable("margin", "input-margin", $input-margin);
|
|
68
|
+
|
|
69
|
+
&-iconspace-left {
|
|
70
|
+
@include avariable("padding-left", "input-height", $input-height);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&-iconspace-right {
|
|
74
|
+
@include avariable("padding-right", "input-height", $input-height);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&--rounded {
|
|
78
|
+
@include avariable(
|
|
79
|
+
"border-radius",
|
|
80
|
+
"input-rounded-border-radius",
|
|
81
|
+
$input-rounded-border-radius
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@each $name, $value in $sizes {
|
|
86
|
+
&--#{$name} {
|
|
87
|
+
@include avariable("font-size", ("input-font-size-" + #{$name}), $value);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
@each $name, $pair in $colors {
|
|
91
|
+
$color: list.nth($pair, 1);
|
|
92
|
+
&--#{$name} {
|
|
93
|
+
@include avariable("border-color", ("variant-" + #{$name}), $color);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&__textarea {
|
|
98
|
+
display: block;
|
|
99
|
+
max-width: 100%;
|
|
100
|
+
min-width: 100%;
|
|
101
|
+
height: auto;
|
|
102
|
+
resize: vertical;
|
|
103
|
+
|
|
104
|
+
@include avariable(
|
|
105
|
+
"padding",
|
|
106
|
+
"input-textarea-padding",
|
|
107
|
+
$input-textarea-padding
|
|
108
|
+
);
|
|
109
|
+
|
|
110
|
+
&:not([rows]) {
|
|
111
|
+
@include avariable(
|
|
112
|
+
"max-height",
|
|
113
|
+
"input-textarea-max-height",
|
|
114
|
+
$input-textarea-max-height
|
|
115
|
+
);
|
|
116
|
+
@include avariable(
|
|
117
|
+
"min-height",
|
|
118
|
+
"input-textarea-min-height",
|
|
119
|
+
$input-textarea-min-height
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&__counter {
|
|
125
|
+
display: block;
|
|
126
|
+
float: right;
|
|
127
|
+
|
|
128
|
+
@include avariable(
|
|
129
|
+
"font-size",
|
|
130
|
+
"input-counter-font-size",
|
|
131
|
+
$input-counter-font-size
|
|
132
|
+
);
|
|
133
|
+
@include avariable("margin", "input-counter-margin", $input-counter-margin);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&__icon-left,
|
|
137
|
+
&__icon-right {
|
|
138
|
+
position: absolute;
|
|
139
|
+
top: 0;
|
|
140
|
+
height: 100%;
|
|
141
|
+
|
|
142
|
+
@include avariable("width", "input-height", $input-height);
|
|
143
|
+
@include avariable("z-index", "input-icon-zindex", $input-icon-zindex);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&__icon-right {
|
|
147
|
+
right: 0;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&__icon-left {
|
|
151
|
+
left: 0;
|
|
152
|
+
}
|
|
153
|
+
}
|