@oruga-ui/theme-oruga 0.0.1 → 0.2.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/dist/oruga-full.css +530 -389
- package/dist/oruga-full.min.css +1 -1
- package/dist/oruga.css +364 -226
- 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 +150 -49
- 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 +150 -49
- 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
package/dist/scss/oruga.scss
CHANGED
|
@@ -10,12 +10,6 @@ $sizes: () !default;
|
|
|
10
10
|
@import "utils/variables";
|
|
11
11
|
@import "utils/helpers";
|
|
12
12
|
|
|
13
|
-
// Autocomplete
|
|
14
|
-
$whitelist: add-to-whitelist(
|
|
15
|
-
"autocomplete-menu-background",
|
|
16
|
-
"autocomplete-menu-zindex"
|
|
17
|
-
);
|
|
18
|
-
|
|
19
13
|
// Button
|
|
20
14
|
$whitelist: add-to-whitelist(
|
|
21
15
|
"button-background-color",
|
|
@@ -52,12 +46,12 @@ $whitelist: add-to-whitelist(
|
|
|
52
46
|
|
|
53
47
|
// Datepicker
|
|
54
48
|
$whitelist: add-to-whitelist(
|
|
55
|
-
"datepicker-item-disabled-color",
|
|
56
|
-
"datepicker-item-selectable-color",
|
|
57
49
|
"datepicker-btn-border-color",
|
|
58
50
|
"datepicker-btn-color",
|
|
51
|
+
"datepicker-item-disabled-color",
|
|
59
52
|
"datepicker-item-hovered-background-color",
|
|
60
53
|
"datepicker-item-hovered-color",
|
|
54
|
+
"datepicker-item-selectable-color",
|
|
61
55
|
"datepicker-item-selected-background-color",
|
|
62
56
|
"datepicker-item-selected-color",
|
|
63
57
|
"datepicker-item-selected-within-background-color",
|
|
@@ -66,10 +60,11 @@ $whitelist: add-to-whitelist(
|
|
|
66
60
|
|
|
67
61
|
// Dropdown
|
|
68
62
|
$whitelist: add-to-whitelist(
|
|
69
|
-
"dropdown-menu-background",
|
|
70
|
-
"dropdown-mobile-overlay-color",
|
|
71
63
|
"dropdown-disabled-opacity",
|
|
64
|
+
"dropdown-menu-background",
|
|
72
65
|
"dropdown-menu-zindex",
|
|
66
|
+
"dropdown-menu-spacer",
|
|
67
|
+
"dropdown-mobile-overlay-color",
|
|
73
68
|
"dropdown-mobile-overlay-zindex",
|
|
74
69
|
"dropdown-mobile-zindex",
|
|
75
70
|
"dropdown-item-active-background-color",
|
|
@@ -83,16 +78,6 @@ $whitelist: add-to-whitelist("icon-spin-duration");
|
|
|
83
78
|
// Input
|
|
84
79
|
$whitelist: add-to-whitelist();
|
|
85
80
|
|
|
86
|
-
// Inputitems
|
|
87
|
-
$whitelist: add-to-whitelist(
|
|
88
|
-
"inputitems-border-style",
|
|
89
|
-
"inputitems-border-color",
|
|
90
|
-
"inputitems-border-width",
|
|
91
|
-
"inputitems-color",
|
|
92
|
-
"inputitems-item-color",
|
|
93
|
-
"inputitems-item-background-color"
|
|
94
|
-
);
|
|
95
|
-
|
|
96
81
|
// Modal
|
|
97
82
|
$whitelist: add-to-whitelist(
|
|
98
83
|
"modal-zindex",
|
|
@@ -182,6 +167,16 @@ $whitelist: add-to-whitelist(
|
|
|
182
167
|
"tabs-link-color"
|
|
183
168
|
);
|
|
184
169
|
|
|
170
|
+
// Taginput
|
|
171
|
+
$whitelist: add-to-whitelist(
|
|
172
|
+
"taginput-border-style",
|
|
173
|
+
"taginput-border-color",
|
|
174
|
+
"taginput-border-width",
|
|
175
|
+
"taginput-color",
|
|
176
|
+
"taginput-item-color",
|
|
177
|
+
"taginput-item-background-color"
|
|
178
|
+
);
|
|
179
|
+
|
|
185
180
|
// Timepicker
|
|
186
181
|
$whitelist: add-to-whitelist("timepicker-select-placeholder-opacity");
|
|
187
182
|
|
|
@@ -94,16 +94,12 @@
|
|
|
94
94
|
/// By default is `false`, if `true` it allows to bypass whitelist and set the value
|
|
95
95
|
/// @return {string} the variable or null if not in whitelist when $css-vars == false.
|
|
96
96
|
@function variable($name, $value, $forceval: false) {
|
|
97
|
-
@if
|
|
98
|
-
@if
|
|
97
|
+
@if is-empty-whitelist() or is-in-whitelist($name) or $forceval {
|
|
98
|
+
@if $css-vars {
|
|
99
99
|
@return var(--#{$prefix}#{$name}, #{$value});
|
|
100
|
-
}
|
|
101
|
-
} @else if $sass-vars {
|
|
102
|
-
@if is-empty-whitelist() or is-in-whitelist($name) {
|
|
100
|
+
} @else {
|
|
103
101
|
@return #{$value};
|
|
104
102
|
}
|
|
105
|
-
} @else if $forceval {
|
|
106
|
-
@return #{$value};
|
|
107
103
|
}
|
|
108
104
|
|
|
109
105
|
@return null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oruga-ui/theme-oruga",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Default theme for Oruga",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/theme.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"url": "https://github.com/oruga-ui/theme-oruga/issues"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
|
-
"dev": "vite --force",
|
|
27
|
+
"dev": "vite --force",
|
|
28
28
|
"serve": "vite preview",
|
|
29
29
|
"build": "vue-tsc --noEmit && vite build",
|
|
30
30
|
"build:lib": "rimraf dist && npm run build:config && npm run build:scss && npm run build:scss-full",
|
|
@@ -36,37 +36,37 @@
|
|
|
36
36
|
"update": "ncu -u"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@fortawesome/fontawesome-free": "6.
|
|
40
|
-
"@oruga-ui/oruga-next": "0.
|
|
41
|
-
"@rollup/plugin-typescript": "11.1.
|
|
42
|
-
"@vitejs/plugin-vue": "4.
|
|
39
|
+
"@fortawesome/fontawesome-free": "6.5.0",
|
|
40
|
+
"@oruga-ui/oruga-next": "0.8.1",
|
|
41
|
+
"@rollup/plugin-typescript": "11.1.5",
|
|
42
|
+
"@vitejs/plugin-vue": "4.5.0",
|
|
43
43
|
"@vue/eslint-config-prettier": "^8.0.0",
|
|
44
|
-
"@vue/eslint-config-typescript": "^
|
|
44
|
+
"@vue/eslint-config-typescript": "^12.0.0",
|
|
45
45
|
"@vue/tsconfig": "^0.4.0",
|
|
46
|
-
"autoprefixer": "10.4.
|
|
46
|
+
"autoprefixer": "10.4.16",
|
|
47
47
|
"clean-css-cli": "^5.6.2",
|
|
48
|
-
"core-js": "3.
|
|
49
|
-
"eslint": "^8.
|
|
50
|
-
"eslint-plugin-prettier": "^5.0.
|
|
51
|
-
"eslint-plugin-vue": "^9.
|
|
52
|
-
"npm-check-updates": "^16.
|
|
53
|
-
"postcss": "8.4.
|
|
54
|
-
"prettier": "^3.0
|
|
55
|
-
"rimraf": "5.0.
|
|
56
|
-
"rollup": "^
|
|
48
|
+
"core-js": "3.33.3",
|
|
49
|
+
"eslint": "^8.54.0",
|
|
50
|
+
"eslint-plugin-prettier": "^5.0.1",
|
|
51
|
+
"eslint-plugin-vue": "^9.18.1",
|
|
52
|
+
"npm-check-updates": "^16.14.11",
|
|
53
|
+
"postcss": "8.4.31",
|
|
54
|
+
"prettier": "^3.1.0",
|
|
55
|
+
"rimraf": "5.0.5",
|
|
56
|
+
"rollup": "^4.6.0",
|
|
57
57
|
"rollup-plugin-copy": "3.5.0",
|
|
58
|
-
"rollup-plugin-sass": "1.12.
|
|
59
|
-
"sass": "1.
|
|
60
|
-
"stylelint": "^15.
|
|
58
|
+
"rollup-plugin-sass": "1.12.21",
|
|
59
|
+
"sass": "1.69.5",
|
|
60
|
+
"stylelint": "^15.11.0",
|
|
61
61
|
"stylelint-config-recommended": "^13.0.0",
|
|
62
|
-
"stylelint-config-recommended-scss": "^13.
|
|
63
|
-
"stylelint-prettier": "^4.0
|
|
64
|
-
"stylelint-scss": "^5.1
|
|
62
|
+
"stylelint-config-recommended-scss": "^13.1.0",
|
|
63
|
+
"stylelint-prettier": "^4.1.0",
|
|
64
|
+
"stylelint-scss": "^5.3.1",
|
|
65
65
|
"tslib": "2.6.2",
|
|
66
|
-
"typescript": "5.
|
|
67
|
-
"vite": "^
|
|
68
|
-
"vue": "3.3.
|
|
69
|
-
"vue-router": "4.2.
|
|
70
|
-
"vue-tsc": "1.8.
|
|
66
|
+
"typescript": "5.3.2",
|
|
67
|
+
"vite": "^5.0.4",
|
|
68
|
+
"vue": "3.3.9",
|
|
69
|
+
"vue-router": "4.2.5",
|
|
70
|
+
"vue-tsc": "1.8.24"
|
|
71
71
|
}
|
|
72
72
|
}
|
package/src/App.vue
CHANGED
|
@@ -6,69 +6,11 @@ $autocomplete-item-hover-background-color: #f5f5f5 !default;
|
|
|
6
6
|
$autocomplete-item-hover-color: #000000 !default;
|
|
7
7
|
$autocomplete-item-line-height: $base-line-height !default;
|
|
8
8
|
$autocomplete-item-padding: 0.375rem 1rem !default;
|
|
9
|
-
$autocomplete-menu-background: #ffffff !default;
|
|
10
|
-
$autocomplete-menu-border-radius: $base-border-radius !default;
|
|
11
|
-
$autocomplete-menu-box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1),
|
|
12
|
-
0 0 0 1px rgba(10, 10, 10, 0.02) !default;
|
|
13
|
-
$autocomplete-menu-margin: 0 !default;
|
|
14
|
-
$autocomplete-menu-max-height: 200px !default;
|
|
15
|
-
$autocomplete-menu-padding: 0.5rem 0 0.5rem 0 !default;
|
|
16
|
-
$autocomplete-menu-zindex: 20 !default;
|
|
17
9
|
/* @docs */
|
|
18
10
|
|
|
19
11
|
.o-acp {
|
|
20
12
|
position: relative;
|
|
21
13
|
|
|
22
|
-
&__menu {
|
|
23
|
-
display: block;
|
|
24
|
-
width: 100%;
|
|
25
|
-
position: absolute;
|
|
26
|
-
left: 0;
|
|
27
|
-
top: 100%;
|
|
28
|
-
overflow: auto;
|
|
29
|
-
|
|
30
|
-
@include avariable(
|
|
31
|
-
"z-index",
|
|
32
|
-
"autocomplete-menu-zindex",
|
|
33
|
-
$autocomplete-menu-zindex
|
|
34
|
-
);
|
|
35
|
-
@include avariable(
|
|
36
|
-
"background-color",
|
|
37
|
-
"autocomplete-menu-background",
|
|
38
|
-
$autocomplete-menu-background
|
|
39
|
-
);
|
|
40
|
-
@include avariable(
|
|
41
|
-
"border-radius",
|
|
42
|
-
"autocomplete-menu-border-radius",
|
|
43
|
-
$autocomplete-menu-border-radius
|
|
44
|
-
);
|
|
45
|
-
@include avariable(
|
|
46
|
-
"box-shadow",
|
|
47
|
-
"autocomplete-menu-box-shadow",
|
|
48
|
-
$autocomplete-menu-box-shadow
|
|
49
|
-
);
|
|
50
|
-
@include avariable(
|
|
51
|
-
"padding",
|
|
52
|
-
"autocomplete-menu-padding",
|
|
53
|
-
$autocomplete-menu-padding
|
|
54
|
-
);
|
|
55
|
-
@include avariable(
|
|
56
|
-
"margin",
|
|
57
|
-
"autocomplete-menu-margin",
|
|
58
|
-
$autocomplete-menu-margin
|
|
59
|
-
);
|
|
60
|
-
@include avariable(
|
|
61
|
-
"max-height",
|
|
62
|
-
"autocomplete-menu-max-height",
|
|
63
|
-
$autocomplete-menu-max-height
|
|
64
|
-
);
|
|
65
|
-
|
|
66
|
-
&--top {
|
|
67
|
-
top: auto;
|
|
68
|
-
bottom: 100%;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
14
|
&__item {
|
|
73
15
|
display: block;
|
|
74
16
|
position: relative;
|
|
@@ -123,8 +65,4 @@ $autocomplete-menu-zindex: 20 !default;
|
|
|
123
65
|
);
|
|
124
66
|
}
|
|
125
67
|
}
|
|
126
|
-
|
|
127
|
-
&--expanded {
|
|
128
|
-
width: 100%;
|
|
129
|
-
}
|
|
130
68
|
}
|
|
@@ -56,7 +56,7 @@ $carousel-overlay-zindex: 40 !default;
|
|
|
56
56
|
);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
&
|
|
59
|
+
&__wrapper {
|
|
60
60
|
position: relative;
|
|
61
61
|
width: 100%;
|
|
62
62
|
}
|
|
@@ -77,6 +77,10 @@ $carousel-overlay-zindex: 40 !default;
|
|
|
77
77
|
&__item {
|
|
78
78
|
@include avariable("border", "carousel-item-border", $carousel-item-border);
|
|
79
79
|
flex-shrink: 0;
|
|
80
|
+
|
|
81
|
+
&--clickable {
|
|
82
|
+
cursor: pointer;
|
|
83
|
+
}
|
|
80
84
|
}
|
|
81
85
|
|
|
82
86
|
&__indicators {
|
|
@@ -182,16 +186,16 @@ $carousel-overlay-zindex: 40 !default;
|
|
|
182
186
|
);
|
|
183
187
|
}
|
|
184
188
|
|
|
185
|
-
|
|
189
|
+
&--lines {
|
|
186
190
|
@include avariable(
|
|
187
191
|
"width",
|
|
188
|
-
"carousel-indicator-lines-
|
|
189
|
-
$carousel-indicator-lines-
|
|
192
|
+
"carousel-indicator-lines-width",
|
|
193
|
+
$carousel-indicator-lines-width
|
|
190
194
|
);
|
|
191
195
|
@include avariable(
|
|
192
196
|
"height",
|
|
193
|
-
"carousel-indicator-lines-
|
|
194
|
-
$carousel-indicator-lines-
|
|
197
|
+
"carousel-indicator-lines-height",
|
|
198
|
+
$carousel-indicator-lines-height
|
|
195
199
|
);
|
|
196
200
|
}
|
|
197
201
|
}
|
|
@@ -49,7 +49,7 @@ $checkbox-line-height: 1.5 !default;
|
|
|
49
49
|
$checkbox-margin-sibiling
|
|
50
50
|
);
|
|
51
51
|
|
|
52
|
-
&
|
|
52
|
+
&__input {
|
|
53
53
|
@include avariable("width", "checkbox-size", $checkbox-size);
|
|
54
54
|
@include avariable("height", "checkbox-size", $checkbox-size);
|
|
55
55
|
outline: none;
|
|
@@ -162,18 +162,18 @@ $checkbox-line-height: 1.5 !default;
|
|
|
162
162
|
$color: list.nth($pair, 1);
|
|
163
163
|
$color-invert: list.nth($pair, 2);
|
|
164
164
|
&--#{$name} {
|
|
165
|
-
.o-
|
|
165
|
+
.o-chk__input {
|
|
166
166
|
@include avariable("border-color", ("variant-" + #{$name}), $color);
|
|
167
167
|
@include avariable("background-color", ("variant-" + #{$name}), $color);
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
.o-
|
|
170
|
+
.o-chk__input--checked {
|
|
171
171
|
background-image: url(svg_checkmark(
|
|
172
172
|
variable(("variant-invert-" + #{$name}), $color-invert)
|
|
173
173
|
));
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
.o-
|
|
176
|
+
.o-chk__input--indeterminate {
|
|
177
177
|
background-image: url(svg_indeterminate(
|
|
178
178
|
variable(("variant-invert-" + #{$name}), $color-invert)
|
|
179
179
|
));
|
|
@@ -124,6 +124,14 @@ $datepicker-btn-padding: 0.5em 0.5em !default;
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
+
&__previous {
|
|
128
|
+
order: 1;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&__next {
|
|
132
|
+
order: 3;
|
|
133
|
+
}
|
|
134
|
+
|
|
127
135
|
&__previous,
|
|
128
136
|
&__next {
|
|
129
137
|
justify-content: center;
|
|
@@ -201,14 +209,6 @@ $datepicker-btn-padding: 0.5em 0.5em !default;
|
|
|
201
209
|
}
|
|
202
210
|
}
|
|
203
211
|
|
|
204
|
-
&__previous {
|
|
205
|
-
order: 1;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
&__next {
|
|
209
|
-
order: 3;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
212
|
&__list {
|
|
213
213
|
order: 2;
|
|
214
214
|
align-items: center;
|
|
@@ -243,7 +243,7 @@ $datepicker-btn-padding: 0.5em 0.5em !default;
|
|
|
243
243
|
}
|
|
244
244
|
|
|
245
245
|
&__table,
|
|
246
|
-
&
|
|
246
|
+
&__month {
|
|
247
247
|
display: table;
|
|
248
248
|
margin: 0 auto 0 auto;
|
|
249
249
|
|
|
@@ -555,14 +555,14 @@ $datepicker-btn-padding: 0.5em 0.5em !default;
|
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
557
|
|
|
558
|
-
&
|
|
558
|
+
&__month__table {
|
|
559
559
|
display: inline-flex;
|
|
560
560
|
flex-wrap: wrap;
|
|
561
561
|
flex-direction: row;
|
|
562
562
|
width: 17rem;
|
|
563
563
|
}
|
|
564
564
|
|
|
565
|
-
&
|
|
565
|
+
&__month__cell {
|
|
566
566
|
display: flex;
|
|
567
567
|
align-items: center;
|
|
568
568
|
justify-content: center;
|
|
@@ -12,8 +12,10 @@ $dropdown-item-padding: 0.375rem 1rem !default;
|
|
|
12
12
|
$dropdown-item-font-weight: 400 !default;
|
|
13
13
|
$dropdown-menu-background: #ffffff !default;
|
|
14
14
|
$dropdown-menu-border-radius: $base-border-radius !default;
|
|
15
|
-
$dropdown-menu-box-shadow:
|
|
15
|
+
$dropdown-menu-box-shadow:
|
|
16
|
+
0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1),
|
|
16
17
|
0 0 0 1px rgba(10, 10, 10, 0.02) !default;
|
|
18
|
+
$dropdown-menu-spacer: 0px !default;
|
|
17
19
|
$dropdown-menu-margin: 0 !default;
|
|
18
20
|
$dropdown-menu-padding: 0.5rem 0 0.5rem 0 !default;
|
|
19
21
|
$dropdown-menu-width: 12rem !default;
|
|
@@ -31,16 +33,6 @@ $dropdown-mobile-zindex: 50 !default;
|
|
|
31
33
|
position: relative;
|
|
32
34
|
vertical-align: top;
|
|
33
35
|
|
|
34
|
-
&--inline {
|
|
35
|
-
display: inline;
|
|
36
|
-
|
|
37
|
-
.o-drop__menu {
|
|
38
|
-
position: static;
|
|
39
|
-
display: inline-block;
|
|
40
|
-
padding: 0;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
36
|
&__overlay {
|
|
45
37
|
position: fixed;
|
|
46
38
|
bottom: 0;
|
|
@@ -68,8 +60,6 @@ $dropdown-mobile-zindex: 50 !default;
|
|
|
68
60
|
|
|
69
61
|
&__menu {
|
|
70
62
|
position: absolute;
|
|
71
|
-
left: 0;
|
|
72
|
-
top: 100%;
|
|
73
63
|
display: block;
|
|
74
64
|
|
|
75
65
|
@include avariable(
|
|
@@ -104,28 +94,133 @@ $dropdown-mobile-zindex: 50 !default;
|
|
|
104
94
|
);
|
|
105
95
|
@include avariable("margin", "dropdown-menu-margin", $dropdown-menu-margin);
|
|
106
96
|
|
|
107
|
-
&--
|
|
97
|
+
&--bottom {
|
|
98
|
+
left: 50%;
|
|
99
|
+
right: auto;
|
|
100
|
+
|
|
101
|
+
@include evariable(
|
|
102
|
+
"top",
|
|
103
|
+
"calc(100% + $param)",
|
|
104
|
+
eparam(
|
|
105
|
+
"$param",
|
|
106
|
+
variable("dropdown-menu-spacer", $dropdown-menu-spacer)
|
|
107
|
+
)
|
|
108
|
+
);
|
|
109
|
+
bottom: auto;
|
|
110
|
+
transform: translateX(-50%);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&--top {
|
|
114
|
+
left: 50%;
|
|
115
|
+
right: auto;
|
|
108
116
|
top: auto;
|
|
109
|
-
|
|
110
|
-
|
|
117
|
+
|
|
118
|
+
@include evariable(
|
|
119
|
+
"bottom",
|
|
120
|
+
"calc(100% + $param)",
|
|
121
|
+
eparam(
|
|
122
|
+
"$param",
|
|
123
|
+
variable("dropdown-menu-spacer", $dropdown-menu-spacer)
|
|
124
|
+
)
|
|
125
|
+
);
|
|
126
|
+
transform: translateX(-50%);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&--left {
|
|
130
|
+
@include evariable(
|
|
131
|
+
"right",
|
|
132
|
+
"calc(100% + $param)",
|
|
133
|
+
eparam(
|
|
134
|
+
"$param",
|
|
135
|
+
variable("dropdown-menu-spacer", $dropdown-menu-spacer)
|
|
136
|
+
)
|
|
137
|
+
);
|
|
111
138
|
left: auto;
|
|
139
|
+
top: 50%;
|
|
140
|
+
bottom: auto;
|
|
141
|
+
transform: translateY(-50%);
|
|
112
142
|
}
|
|
113
143
|
|
|
114
|
-
&--
|
|
144
|
+
&--right {
|
|
145
|
+
right: auto;
|
|
146
|
+
|
|
147
|
+
@include evariable(
|
|
148
|
+
"left",
|
|
149
|
+
"calc(100% + $param)",
|
|
150
|
+
eparam(
|
|
151
|
+
"$param",
|
|
152
|
+
variable("dropdown-menu-spacer", $dropdown-menu-spacer)
|
|
153
|
+
)
|
|
154
|
+
);
|
|
155
|
+
top: 50%;
|
|
156
|
+
bottom: auto;
|
|
157
|
+
transform: translateY(-50%);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
&--top-right {
|
|
115
161
|
right: 0;
|
|
116
162
|
left: auto;
|
|
163
|
+
top: auto;
|
|
164
|
+
|
|
165
|
+
@include evariable(
|
|
166
|
+
"bottom",
|
|
167
|
+
"calc(100% + $param)",
|
|
168
|
+
eparam(
|
|
169
|
+
"$param",
|
|
170
|
+
variable("dropdown-menu-spacer", $dropdown-menu-spacer)
|
|
171
|
+
)
|
|
172
|
+
);
|
|
117
173
|
}
|
|
118
174
|
|
|
119
|
-
&--top-
|
|
175
|
+
&--top-left {
|
|
176
|
+
right: auto;
|
|
177
|
+
left: 0;
|
|
120
178
|
top: auto;
|
|
121
|
-
|
|
179
|
+
|
|
180
|
+
@include evariable(
|
|
181
|
+
"bottom",
|
|
182
|
+
"calc(100% + $param)",
|
|
183
|
+
eparam(
|
|
184
|
+
"$param",
|
|
185
|
+
variable("dropdown-menu-spacer", $dropdown-menu-spacer)
|
|
186
|
+
)
|
|
187
|
+
);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
&--bottom-right {
|
|
191
|
+
right: 0;
|
|
192
|
+
left: auto;
|
|
193
|
+
|
|
194
|
+
@include evariable(
|
|
195
|
+
"top",
|
|
196
|
+
"calc(100% + $param)",
|
|
197
|
+
eparam(
|
|
198
|
+
"$param",
|
|
199
|
+
variable("dropdown-menu-spacer", $dropdown-menu-spacer)
|
|
200
|
+
)
|
|
201
|
+
);
|
|
202
|
+
bottom: auto;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
&--bottom-left {
|
|
206
|
+
right: auto;
|
|
207
|
+
left: 0;
|
|
208
|
+
|
|
209
|
+
@include evariable(
|
|
210
|
+
"top",
|
|
211
|
+
"calc(100% + $param)",
|
|
212
|
+
eparam(
|
|
213
|
+
"$param",
|
|
214
|
+
variable("dropdown-menu-spacer", $dropdown-menu-spacer)
|
|
215
|
+
)
|
|
216
|
+
);
|
|
217
|
+
bottom: auto;
|
|
122
218
|
}
|
|
123
219
|
}
|
|
124
220
|
|
|
125
221
|
&__item {
|
|
126
222
|
display: block;
|
|
127
223
|
position: relative;
|
|
128
|
-
cursor: pointer;
|
|
129
224
|
|
|
130
225
|
@include avariable("color", "dropdown-item-color", $dropdown-item-color);
|
|
131
226
|
@include avariable(
|
|
@@ -171,17 +266,31 @@ $dropdown-mobile-zindex: 50 !default;
|
|
|
171
266
|
);
|
|
172
267
|
}
|
|
173
268
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
269
|
+
&--clickable {
|
|
270
|
+
cursor: pointer;
|
|
271
|
+
|
|
272
|
+
&:hover:not(&--active) {
|
|
273
|
+
@include avariable(
|
|
274
|
+
"background-color",
|
|
275
|
+
"dropdown-item-hover-background-color",
|
|
276
|
+
$dropdown-item-hover-background-color
|
|
277
|
+
);
|
|
278
|
+
@include avariable(
|
|
279
|
+
"color",
|
|
280
|
+
"dropdown-item-hover-color",
|
|
281
|
+
$dropdown-item-hover-color
|
|
282
|
+
);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
&--inline {
|
|
288
|
+
display: inline;
|
|
289
|
+
|
|
290
|
+
.o-drop__menu {
|
|
291
|
+
position: static;
|
|
292
|
+
display: inline-block;
|
|
293
|
+
padding: 0;
|
|
185
294
|
}
|
|
186
295
|
}
|
|
187
296
|
|
|
@@ -238,4 +347,8 @@ $dropdown-mobile-zindex: 50 !default;
|
|
|
238
347
|
display: block;
|
|
239
348
|
}
|
|
240
349
|
}
|
|
350
|
+
|
|
351
|
+
&--teleport {
|
|
352
|
+
width: unset;
|
|
353
|
+
}
|
|
241
354
|
}
|
|
@@ -69,22 +69,22 @@ $field-horizontal-label-margin: 0 1.5rem 0 0 !default;
|
|
|
69
69
|
display: flex;
|
|
70
70
|
justify-content: flex-start;
|
|
71
71
|
|
|
72
|
-
> *:first-child:not(:only-child) button,
|
|
73
72
|
> button:first-child,
|
|
74
|
-
> *:first-child:not(:only-child)
|
|
73
|
+
> *:first-child:not(:only-child) button,
|
|
75
74
|
> input:first-child,
|
|
76
|
-
> *:first-child:not(:only-child)
|
|
77
|
-
> select:first-child
|
|
75
|
+
> *:first-child:not(:only-child) input,
|
|
76
|
+
> select:first-child,
|
|
77
|
+
> *:first-child:not(:only-child) select {
|
|
78
78
|
border-bottom-right-radius: 0;
|
|
79
79
|
border-top-right-radius: 0;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
> *:last-child:not(:only-child) button,
|
|
83
82
|
> button:last-child,
|
|
84
|
-
> *:last-child:not(:only-child)
|
|
83
|
+
> *:last-child:not(:only-child) button,
|
|
85
84
|
> input:last-child,
|
|
86
|
-
> *:last-child:not(:only-child)
|
|
87
|
-
> select:last-child
|
|
85
|
+
> *:last-child:not(:only-child) input,
|
|
86
|
+
> select:last-child,
|
|
87
|
+
> *:last-child:not(:only-child) select {
|
|
88
88
|
border-bottom-left-radius: 0;
|
|
89
89
|
border-top-left-radius: 0;
|
|
90
90
|
}
|
|
@@ -20,7 +20,9 @@ $icon-spin-duration: 2s !default;
|
|
|
20
20
|
align-items: center;
|
|
21
21
|
display: inline-flex;
|
|
22
22
|
justify-content: center;
|
|
23
|
-
transition:
|
|
23
|
+
transition:
|
|
24
|
+
transform $speed-slow $easing,
|
|
25
|
+
opacity $speed $easing;
|
|
24
26
|
|
|
25
27
|
@each $name, $value in $sizes {
|
|
26
28
|
&--#{$name} {
|