@oruga-ui/theme-oruga 0.7.1 → 0.8.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 +1 -1
- package/README.md +5 -5
- package/dist/scss/components/_autocomplete.scss +3 -12
- package/dist/scss/components/_breadcrumb.scss +122 -103
- package/dist/scss/components/_button.scss +228 -173
- package/dist/scss/components/_carousel.scss +164 -142
- package/dist/scss/components/_checkbox.scss +118 -118
- package/dist/scss/components/_collapse.scss +1 -1
- package/dist/scss/components/_datepicker.scss +228 -290
- package/dist/scss/components/_datetimepicker.scss +8 -2
- package/dist/scss/components/_dialog.scss +243 -0
- package/dist/scss/components/_dropdown.scss +190 -164
- package/dist/scss/components/_field.scss +68 -39
- package/dist/scss/components/_icon.scss +24 -29
- package/dist/scss/components/_input.scss +112 -97
- package/dist/scss/components/_listbox.scss +176 -0
- package/dist/scss/components/_loading.scss +35 -15
- package/dist/scss/components/_menu.scss +113 -109
- package/dist/scss/components/_modal.scss +112 -50
- package/dist/scss/components/_notification.scss +113 -97
- package/dist/scss/components/_pagination.scss +173 -106
- package/dist/scss/components/_radio.scss +91 -84
- package/dist/scss/components/_select.scss +108 -115
- package/dist/scss/components/_sidebar.scss +102 -101
- package/dist/scss/components/_skeleton.scss +50 -39
- package/dist/scss/components/_slider.scss +221 -159
- package/dist/scss/components/_steps.scss +223 -261
- package/dist/scss/components/_switch.scss +126 -90
- package/dist/scss/components/_table.scss +307 -251
- package/dist/scss/components/_tabs.scss +360 -247
- package/dist/scss/components/_tag.scss +95 -39
- package/dist/scss/components/_taginput.scss +48 -36
- package/dist/scss/components/_timepicker.scss +61 -62
- package/dist/scss/components/_tooltip.scss +129 -254
- package/dist/scss/components/_upload.scss +83 -35
- package/dist/scss/theme-build.scss +9 -0
- package/dist/scss/theme.scss +44 -0
- package/dist/scss/utils/_animations.scss +30 -9
- package/dist/scss/utils/_base.scss +6 -4
- package/dist/scss/utils/_helpers.scss +84 -22
- package/dist/scss/utils/_root.scss +82 -29
- package/dist/scss/utils/_variables.scss +64 -42
- package/dist/theme.css +2 -0
- package/dist/theme.js +1 -1
- package/package.json +27 -20
- package/dist/oruga.css +0 -2
- package/dist/scss/oruga-build.scss +0 -9
- package/dist/scss/oruga.scss +0 -42
|
@@ -1,28 +1,44 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "../utils/helpers" as h;
|
|
3
|
+
@use "../utils/variables" as vars;
|
|
4
|
+
|
|
1
5
|
/* @docs */
|
|
2
|
-
$loading-
|
|
3
|
-
$loading-
|
|
4
|
-
$loading-
|
|
5
|
-
$loading-
|
|
6
|
+
$loading-spacer: h.useVar("control-spacer") !default;
|
|
7
|
+
$loading-color: h.useVar("font-color") !default;
|
|
8
|
+
$loading-font-size: h.useVar("font-size") !default;
|
|
9
|
+
$loading-font-weight: h.useVar("font-weight") !default;
|
|
10
|
+
$loading-zindex: map.get(vars.$zindex, "sticky") !default;
|
|
11
|
+
$loading-fullpage-zindex: map.get(vars.$zindex, "fixed") !default;
|
|
12
|
+
$loading-overlay-background-color: rgba(255, 255, 255, 0.5) !default;
|
|
6
13
|
/* @docs */
|
|
7
14
|
|
|
8
15
|
.o-loading {
|
|
16
|
+
@include h.defineVar("loading-spacer", $loading-spacer);
|
|
17
|
+
@include h.defineVar("loading-color", $loading-color);
|
|
18
|
+
@include h.defineVar("loading-size", $loading-font-size);
|
|
19
|
+
@include h.defineVar("loading-weight", $loading-font-weight);
|
|
20
|
+
@include h.defineVar("loading-zindex", $loading-zindex);
|
|
21
|
+
@include h.defineVar("loading-fullpage-zindex", $loading-fullpage-zindex);
|
|
22
|
+
@include h.defineVar(
|
|
23
|
+
"loading-overlay-background-color",
|
|
24
|
+
$loading-overlay-background-color
|
|
25
|
+
);
|
|
26
|
+
|
|
9
27
|
position: absolute;
|
|
10
28
|
bottom: 0;
|
|
11
29
|
left: 0;
|
|
12
30
|
right: 0;
|
|
13
31
|
top: 0;
|
|
14
|
-
align-items: center;
|
|
15
32
|
display: flex;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
align-items: center;
|
|
16
35
|
justify-content: center;
|
|
17
36
|
overflow: hidden;
|
|
18
|
-
z-index:
|
|
37
|
+
z-index: h.useVar("loading-zindex");
|
|
19
38
|
|
|
20
39
|
&--fullpage {
|
|
21
40
|
position: fixed;
|
|
22
|
-
z-index:
|
|
23
|
-
--#{$prefix}loading-fullpage-zindex,
|
|
24
|
-
$loading-fullpage-zindex
|
|
25
|
-
);
|
|
41
|
+
z-index: h.useVar("loading-fullpage-zindex");
|
|
26
42
|
}
|
|
27
43
|
|
|
28
44
|
&__overlay {
|
|
@@ -31,10 +47,14 @@ $loading-fullpage-zindex: 999 !default;
|
|
|
31
47
|
left: 0;
|
|
32
48
|
right: 0;
|
|
33
49
|
top: 0;
|
|
34
|
-
background:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
50
|
+
background: h.useVar("loading-overlay-background-color");
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&__label {
|
|
54
|
+
z-index: 1;
|
|
55
|
+
color: h.useVar("loading-color");
|
|
56
|
+
font-size: h.useVar("loading-size");
|
|
57
|
+
font-weight: h.useVar("loading-weight");
|
|
58
|
+
padding: 0 h.useVar("loading-spacer");
|
|
39
59
|
}
|
|
40
60
|
}
|
|
@@ -1,134 +1,138 @@
|
|
|
1
|
+
@use "../utils/helpers" as h;
|
|
2
|
+
@use "../utils/variables" as vars;
|
|
3
|
+
|
|
1
4
|
/* @docs */
|
|
2
|
-
$menu-
|
|
3
|
-
$menu-
|
|
4
|
-
$menu-
|
|
5
|
-
$menu-item-hover-background-color: var(--#{$prefix}secondary) !default;
|
|
6
|
-
$menu-item-active-color: var(--#{$prefix}primary-invert) !default;
|
|
7
|
-
$menu-item-active-background-color: var(--#{$prefix}primary) !default;
|
|
8
|
-
$menu-item-disabled-color: var(--#{$prefix}grey-light) !default;
|
|
9
|
-
$menu-list-border-left: 1px solid var(--#{$prefix}primary) !default;
|
|
10
|
-
$menu-list-border-radius: var(--#{$prefix}base-border-radius) !default;
|
|
11
|
-
$menu-list-line-height: 1.25em !default;
|
|
12
|
-
$menu-item-padding: 0.5em 0.75em !default;
|
|
13
|
-
$menu-nested-list-margin: 0.75em 1.25em !default;
|
|
14
|
-
$menu-nested-list-padding-left: 0.75em !default;
|
|
15
|
-
$menu-label-color: $grey !default;
|
|
16
|
-
$menu-label-font-size: 0.75em !default;
|
|
17
|
-
$menu-label-spacing: 1em !default;
|
|
18
|
-
$menu-icon-spacer: 0.5rem !default;
|
|
19
|
-
/* @docs */
|
|
5
|
+
$menu-spacer: 0.5rem !default;
|
|
6
|
+
$menu-border: 1px solid h.useVar("primary") !default;
|
|
7
|
+
$menu-disabled-opacity: h.useVar("control-disabled-opacity") !default;
|
|
20
8
|
|
|
21
|
-
.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
font-size: var(--#{$prefix}menu-font-size-#{$name}, $value);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
9
|
+
$menu-label-color: h.useVar("font-color") !default;
|
|
10
|
+
$menu-label-font-size: calc(h.useVar("font-size") * 0.75) !default;
|
|
11
|
+
$menu-label-font-weight: h.useVar("font-weight") !default;
|
|
12
|
+
$menu-label-line-heigth: h.useVar("line-heigth") !default;
|
|
28
13
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
14
|
+
$menu-item-padding: 0.5em 0.75em !default;
|
|
15
|
+
$menu-item-color: h.useVar("font-color") !default;
|
|
16
|
+
$menu-item-font-size: h.useVar("font-size") !default;
|
|
17
|
+
$menu-item-font-weight: h.useVar("font-weight") !default;
|
|
18
|
+
$menu-item-line-heigth: h.useVar("line-heigth") !default;
|
|
33
19
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
--#{$prefix}menu-list-line-height,
|
|
38
|
-
$menu-list-line-height
|
|
39
|
-
);
|
|
40
|
-
padding-left: var(
|
|
41
|
-
--#{$prefix}menu-nested-list-padding-left,
|
|
42
|
-
$menu-nested-list-padding-left
|
|
43
|
-
);
|
|
44
|
-
}
|
|
20
|
+
$menu-item-border: unset !default;
|
|
21
|
+
$menu-item-border-radius: h.useVar("border-radius") !default;
|
|
22
|
+
$menu-item-background-color: transparent !default;
|
|
45
23
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
24
|
+
$menu-item-hover-color: h.useVar("white") !default;
|
|
25
|
+
$menu-item-hover-background-color: h.useVar("secondary") !default;
|
|
26
|
+
$menu-item-active-color: h.useVar("primary-invert") !default;
|
|
27
|
+
$menu-item-active-background-color: h.useVar("primary") !default;
|
|
28
|
+
/* @docs */
|
|
29
|
+
|
|
30
|
+
.o-menu {
|
|
31
|
+
@include h.defineVar("menu-spacer", $menu-spacer);
|
|
32
|
+
@include h.defineVar("menu-label-color", $menu-label-color);
|
|
33
|
+
@include h.defineVar("menu-label-font-size", $menu-label-font-size);
|
|
34
|
+
@include h.defineVar("menu-label-font-weight", $menu-label-font-weight);
|
|
35
|
+
@include h.defineVar("menu-label-line-heigth", $menu-label-line-heigth);
|
|
36
|
+
@include h.defineVar("menu-border", $menu-border);
|
|
37
|
+
@include h.defineVar("menu-item-padding", $menu-item-padding);
|
|
38
|
+
@include h.defineVar("menu-item-color", $menu-item-color);
|
|
39
|
+
@include h.defineVar("menu-item-font-weight", $menu-item-font-weight);
|
|
40
|
+
@include h.defineVar("menu-item-line-heigth", $menu-item-line-heigth);
|
|
41
|
+
@include h.defineVar("menu-item-border", $menu-item-border);
|
|
42
|
+
@include h.defineVar("menu-item-border-radius", $menu-item-border-radius);
|
|
43
|
+
@include h.defineVar(
|
|
44
|
+
"menu-item-background-color",
|
|
45
|
+
$menu-item-background-color
|
|
46
|
+
);
|
|
47
|
+
@include h.defineVar("menu-item-hover-color", $menu-item-hover-color);
|
|
48
|
+
@include h.defineVar(
|
|
49
|
+
"menu-item-hover-background-color",
|
|
50
|
+
$menu-item-hover-background-color
|
|
51
|
+
);
|
|
52
|
+
@include h.defineVar("menu-item-active-color", $menu-item-active-color);
|
|
53
|
+
@include h.defineVar(
|
|
54
|
+
"menu-item-active-background-color",
|
|
55
|
+
$menu-item-active-background-color
|
|
56
|
+
);
|
|
57
|
+
@include h.defineVar("menu-disabled-opacity", $menu-disabled-opacity);
|
|
60
58
|
|
|
61
59
|
&__label {
|
|
62
60
|
text-transform: uppercase;
|
|
63
|
-
color:
|
|
64
|
-
font-size:
|
|
61
|
+
color: h.useVar("menu-label-color");
|
|
62
|
+
font-size: h.useVar("menu-label-font-size");
|
|
63
|
+
font-weight: h.useVar("menu-label-font-weight");
|
|
64
|
+
line-height: h.useVar("menu-label-line-height");
|
|
65
65
|
|
|
66
66
|
&:not(:first-child) {
|
|
67
|
-
|
|
68
|
-
--#{$prefix}menu-label-spacing,
|
|
69
|
-
$menu-label-spacing
|
|
70
|
-
);
|
|
67
|
+
padding-top: h.useVar("menu-spacer");
|
|
71
68
|
}
|
|
72
69
|
|
|
73
70
|
&:not(:last-child) {
|
|
74
|
-
|
|
75
|
-
--#{$prefix}menu-label-spacing,
|
|
76
|
-
$menu-label-spacing
|
|
77
|
-
);
|
|
71
|
+
padding-bottom: h.useVar("menu-spacer");
|
|
78
72
|
}
|
|
79
73
|
}
|
|
80
74
|
|
|
81
|
-
&
|
|
82
|
-
|
|
83
|
-
-webkit-appearance: none;
|
|
84
|
-
display: block;
|
|
75
|
+
&__list,
|
|
76
|
+
&__item {
|
|
85
77
|
list-style: none;
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
--#{$prefix}menu-item-background-color,
|
|
90
|
-
$menu-item-background-color
|
|
91
|
-
);
|
|
92
|
-
color: var(--#{$prefix}menu-item-color, $menu-item-color);
|
|
93
|
-
padding: var(--#{$prefix}menu-item-padding, $menu-item-padding);
|
|
94
|
-
font-size: var(--#{$prefix}menu-item-size, $base-font-size);
|
|
95
|
-
border-radius: var(
|
|
96
|
-
--#{$prefix}menu-list-border-radius,
|
|
97
|
-
$menu-list-border-radius
|
|
98
|
-
);
|
|
99
|
-
|
|
100
|
-
&:hover:not(&--active):not(&--disabled) {
|
|
101
|
-
color: var(
|
|
102
|
-
--#{$prefix}menu-item-hover-color,
|
|
103
|
-
$menu-item-hover-color
|
|
104
|
-
);
|
|
105
|
-
background-color: var(
|
|
106
|
-
--#{$prefix}menu-item-hover-background-color,
|
|
107
|
-
$menu-item-hover-background-color
|
|
108
|
-
);
|
|
109
|
-
}
|
|
78
|
+
padding: unset;
|
|
79
|
+
margin: unset;
|
|
80
|
+
}
|
|
110
81
|
|
|
111
|
-
|
|
112
|
-
|
|
82
|
+
&__item {
|
|
83
|
+
&__submenu {
|
|
84
|
+
border-left: h.useVar("menu-border");
|
|
85
|
+
padding-left: h.useVar("menu-spacer");
|
|
86
|
+
margin: calc(1.5 * h.useVar("menu-spacer"))
|
|
87
|
+
calc(2.5 * h.useVar("menu-spacer"));
|
|
113
88
|
}
|
|
114
89
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
90
|
+
&__button {
|
|
91
|
+
// add clickable cursor
|
|
92
|
+
@include h.clickable;
|
|
93
|
+
|
|
94
|
+
// disable default appearance
|
|
95
|
+
appearance: none;
|
|
96
|
+
-moz-appearance: none;
|
|
97
|
+
-webkit-appearance: none;
|
|
98
|
+
|
|
99
|
+
display: block;
|
|
100
|
+
padding: h.useVar("menu-item-padding");
|
|
101
|
+
|
|
102
|
+
color: h.useVar("menu-item-color");
|
|
103
|
+
font-size: h.useVar("menu-item-font-size");
|
|
104
|
+
font-weight: h.useVar("menu-item-font-weight");
|
|
105
|
+
line-height: h.useVar("menu-item-line-height");
|
|
106
|
+
|
|
107
|
+
background-color: h.useVar("menu-item-background-color");
|
|
108
|
+
border: h.useVar("menu-item-border");
|
|
109
|
+
border-radius: h.useVar("menu-item-border-radius");
|
|
110
|
+
|
|
111
|
+
&--focused,
|
|
112
|
+
&:hover:not(&--active):not(&--disabled) {
|
|
113
|
+
color: h.useVar("menu-item-hover-color");
|
|
114
|
+
background-color: h.useVar("menu-item-hover-background-color");
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&--active {
|
|
118
|
+
color: h.useVar("menu-item-active-color");
|
|
119
|
+
background-color: h.useVar("menu-item-active-background-color");
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&--icon .o-icon {
|
|
123
|
+
margin-right: h.useVar("menu-spacer");
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&--disabled {
|
|
127
|
+
@include h.disabled(h.useVar("menu-disabled-opacity"));
|
|
128
|
+
}
|
|
124
129
|
}
|
|
130
|
+
}
|
|
125
131
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
$menu-item-disabled-color
|
|
131
|
-
);
|
|
132
|
+
// size variants
|
|
133
|
+
@each $name, $value in vars.$sizes {
|
|
134
|
+
&--#{$name} {
|
|
135
|
+
@include h.defineVar("menu-font-size", h.useVar("size-#{$name}"));
|
|
132
136
|
}
|
|
133
137
|
}
|
|
134
138
|
}
|
|
@@ -1,94 +1,156 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "../utils/helpers" as h;
|
|
3
|
+
@use "../utils/variables" as vars;
|
|
4
|
+
|
|
1
5
|
/* @docs */
|
|
2
|
-
$modal-
|
|
3
|
-
|
|
4
|
-
$modal-overlay-background-color:
|
|
5
|
-
$modal-
|
|
6
|
-
|
|
7
|
-
) !default;
|
|
8
|
-
$modal-close-right: 20px !default;
|
|
9
|
-
$modal-close-top: 20px !default;
|
|
10
|
-
$modal-close-size: 32px !default;
|
|
11
|
-
$modal-close-color: var(--#{$prefix}white) !default;
|
|
12
|
-
$modal-content-fullscreen-background-color: $control-brackground-color !default;
|
|
6
|
+
$modal-zindex: map.get(vars.$zindex, "fixed") !default;
|
|
7
|
+
|
|
8
|
+
$modal-overlay-background-color: h.useVar("overlay-background-color") !default;
|
|
9
|
+
$modal-overlay-zindex: map.get(vars.$zindex, "overlay") !default;
|
|
10
|
+
|
|
11
|
+
$modal-content-zindex: map.get(vars.$zindex, "modal") !default;
|
|
13
12
|
$modal-content-max-height: calc(100vh - 160px) !default;
|
|
14
|
-
$modal-content-
|
|
15
|
-
$modal-
|
|
13
|
+
$modal-content-max-width: calc(100vw - 160px) !default;
|
|
14
|
+
$modal-content-box-shadow: h.useVar("overlay-box-shadow") !default;
|
|
15
|
+
$modal-content-border-radius: h.useVar("border-radius") !default;
|
|
16
|
+
$modal-content-background-color: h.useVar("control-brackground-color") !default;
|
|
17
|
+
|
|
18
|
+
$modal-close-top: 20px !default;
|
|
19
|
+
$modal-close-right: 20px !default;
|
|
20
|
+
$modal-close-color: h.useVar("white") !default;
|
|
21
|
+
$modal-close-size: 2rem !default;
|
|
22
|
+
$modal-close-border-radius: h.useVar("border-radius-rounded") !default;
|
|
23
|
+
$modal-close-background-color: h.useVar("control-shadow-color") !default;
|
|
16
24
|
/* @docs */
|
|
17
25
|
|
|
18
26
|
.o-modal {
|
|
27
|
+
@include h.defineVar("modal-zindex", $modal-zindex);
|
|
28
|
+
@include h.defineVar(
|
|
29
|
+
"modal-overlay-background-color",
|
|
30
|
+
$modal-overlay-background-color
|
|
31
|
+
);
|
|
32
|
+
@include h.defineVar("modal-overlay-zindex", $modal-overlay-zindex);
|
|
33
|
+
|
|
34
|
+
@include h.defineVar("modal-content-zindex", $modal-content-zindex);
|
|
35
|
+
@include h.defineVar("modal-content-box-shadow", $modal-content-box-shadow);
|
|
36
|
+
@include h.defineVar("modal-content-max-height", $modal-content-max-height);
|
|
37
|
+
@include h.defineVar("modal-content-max-width", $modal-content-max-width);
|
|
38
|
+
@include h.defineVar(
|
|
39
|
+
"modal-content-border-radius",
|
|
40
|
+
$modal-content-border-radius
|
|
41
|
+
);
|
|
42
|
+
@include h.defineVar(
|
|
43
|
+
"modal-content-background-color",
|
|
44
|
+
$modal-content-background-color
|
|
45
|
+
);
|
|
46
|
+
|
|
47
|
+
@include h.defineVar("modal-close-top", $modal-close-top);
|
|
48
|
+
@include h.defineVar("modal-close-right", $modal-close-right);
|
|
49
|
+
@include h.defineVar("modal-close-color", $modal-close-color);
|
|
50
|
+
@include h.defineVar("modal-close-size", $modal-close-size);
|
|
51
|
+
@include h.defineVar(
|
|
52
|
+
"modal-close-border-radius",
|
|
53
|
+
$modal-close-border-radius
|
|
54
|
+
);
|
|
55
|
+
@include h.defineVar(
|
|
56
|
+
"modal-close-background-color",
|
|
57
|
+
$modal-close-background-color
|
|
58
|
+
);
|
|
59
|
+
|
|
19
60
|
display: flex;
|
|
20
61
|
flex-direction: column;
|
|
21
62
|
justify-content: center;
|
|
22
63
|
align-items: center;
|
|
23
64
|
overflow: hidden;
|
|
65
|
+
|
|
66
|
+
// disable clickable
|
|
67
|
+
pointer-events: none;
|
|
68
|
+
|
|
24
69
|
position: fixed;
|
|
25
70
|
bottom: 0;
|
|
26
71
|
left: 0;
|
|
27
72
|
right: 0;
|
|
28
73
|
top: 0;
|
|
29
|
-
|
|
74
|
+
height: 100%;
|
|
75
|
+
width: 100%;
|
|
76
|
+
z-index: h.useVar("modal-zindex");
|
|
30
77
|
|
|
31
78
|
&__overlay {
|
|
79
|
+
pointer-events: auto;
|
|
80
|
+
position: absolute;
|
|
32
81
|
bottom: 0;
|
|
33
82
|
left: 0;
|
|
34
|
-
position: absolute;
|
|
35
83
|
right: 0;
|
|
36
84
|
top: 0;
|
|
37
|
-
background-color:
|
|
38
|
-
|
|
39
|
-
$modal-overlay-background-color
|
|
40
|
-
);
|
|
85
|
+
background-color: h.useVar("modal-overlay-background-color");
|
|
86
|
+
z-index: h.useVar("modal-overlay-zindex");
|
|
41
87
|
}
|
|
42
88
|
|
|
43
89
|
&__content {
|
|
44
|
-
|
|
90
|
+
pointer-events: auto;
|
|
45
91
|
position: relative;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
);
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
);
|
|
55
|
-
border-radius: var(
|
|
56
|
-
--#{$prefix}modal-content-border-radius,
|
|
57
|
-
$modal-content-border-radius
|
|
58
|
-
);
|
|
92
|
+
overflow: auto;
|
|
93
|
+
margin: 0 auto;
|
|
94
|
+
z-index: h.useVar("modal-content-zindex");
|
|
95
|
+
|
|
96
|
+
max-height: h.useVar("modal-content-max-height");
|
|
97
|
+
max-width: h.useVar("modal-content-max-width");
|
|
98
|
+
background-color: h.useVar("modal-content-background-color");
|
|
99
|
+
border-radius: h.useVar("modal-content-border-radius");
|
|
59
100
|
|
|
101
|
+
box-shadow: h.useVar("modal-content-box-shadow");
|
|
102
|
+
|
|
103
|
+
/// @deprecated
|
|
60
104
|
&--full-screen {
|
|
61
105
|
width: 100%;
|
|
62
106
|
height: 100%;
|
|
107
|
+
max-width: 100vh;
|
|
63
108
|
max-height: 100vh;
|
|
64
109
|
margin: 0;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&--fullwidth {
|
|
113
|
+
width: 100%;
|
|
114
|
+
max-width: 100%;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&--fullheight {
|
|
118
|
+
height: 100%;
|
|
119
|
+
max-height: 100%;
|
|
69
120
|
}
|
|
70
121
|
}
|
|
71
122
|
|
|
72
123
|
&__close {
|
|
73
|
-
|
|
124
|
+
// add clickable cursor
|
|
125
|
+
@include h.clickable;
|
|
126
|
+
|
|
74
127
|
position: fixed;
|
|
128
|
+
top: h.useVar("modal-close-top");
|
|
129
|
+
right: h.useVar("modal-close-right");
|
|
130
|
+
|
|
131
|
+
display: inline-flex;
|
|
132
|
+
align-items: center;
|
|
133
|
+
justify-content: center;
|
|
134
|
+
|
|
135
|
+
height: h.useVar("modal-close-size");
|
|
136
|
+
width: h.useVar("modal-close-size");
|
|
137
|
+
padding: 0;
|
|
138
|
+
|
|
139
|
+
color: h.useVar("modal-close-color");
|
|
140
|
+
|
|
75
141
|
border: none;
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
border-radius: var(
|
|
79
|
-
--#{$prefix}modal-close-border-radius,
|
|
80
|
-
$modal-close-border-radius
|
|
81
|
-
);
|
|
82
|
-
right: var(--#{$prefix}modal-close-right, $modal-close-right);
|
|
83
|
-
top: var(--#{$prefix}modal-close-top, $modal-close-top);
|
|
84
|
-
height: var(--#{$prefix}modal-close-size, $modal-close-size);
|
|
85
|
-
width: var(--#{$prefix}modal-close-size, $modal-close-size);
|
|
86
|
-
color: var(--#{$prefix}modal-close-color, $modal-close-color);
|
|
142
|
+
border-radius: h.useVar("modal-close-border-radius");
|
|
143
|
+
background-color: h.useVar("modal-close-background-color");
|
|
87
144
|
}
|
|
88
145
|
|
|
89
146
|
&--mobile {
|
|
90
147
|
.o-modal__content {
|
|
91
|
-
width:
|
|
148
|
+
@media screen and (max-width: 1199px) {
|
|
149
|
+
width: 75vw;
|
|
150
|
+
}
|
|
151
|
+
@media screen and (max-width: 575px) {
|
|
152
|
+
width: 90vw;
|
|
153
|
+
}
|
|
92
154
|
}
|
|
93
155
|
}
|
|
94
156
|
}
|