@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,44 +1,91 @@
|
|
|
1
1
|
@use "sass:list";
|
|
2
|
+
@use "sass:map";
|
|
3
|
+
@use "../utils/helpers" as h;
|
|
4
|
+
@use "../utils/variables" as vars;
|
|
2
5
|
|
|
3
6
|
/* @docs */
|
|
4
|
-
$notification-
|
|
5
|
-
$notification-border-radius: 4px !default;
|
|
7
|
+
$notification-spacer: calc(2 * h.useVar("control-spacer")) !default;
|
|
6
8
|
$notification-padding: 1.75em 1.75em !default;
|
|
7
|
-
$notification-
|
|
8
|
-
|
|
9
|
-
$notification-color:
|
|
10
|
-
$notification-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
$notification-close-
|
|
14
|
-
$notification-close-
|
|
15
|
-
$notification-close-
|
|
16
|
-
$notification-close-
|
|
17
|
-
$notification-close-
|
|
18
|
-
$notification-
|
|
9
|
+
$notification-animation: append-animate h.useVar("animation-speed") linear !default;
|
|
10
|
+
|
|
11
|
+
$notification-color: h.useVar("primary-invert") !default;
|
|
12
|
+
$notification-background-color: h.useVar("primary") !default;
|
|
13
|
+
$notification-border-radius: h.useVar("border-radius") !default;
|
|
14
|
+
|
|
15
|
+
$notification-close-top: 0.5em !default;
|
|
16
|
+
$notification-close-right: 0.5em !default;
|
|
17
|
+
$notification-close-color: h.useVar("white") !default;
|
|
18
|
+
$notification-close-size: 1.5rem !default;
|
|
19
|
+
$notification-close-border-radius: h.useVar("border-radius-rounded") !default;
|
|
20
|
+
$notification-close-background-color: h.useVar("control-shadow-color") !default;
|
|
21
|
+
|
|
19
22
|
$notification-notices-padding: 2em !default;
|
|
20
|
-
$notification-notices-
|
|
23
|
+
$notification-notices-max-width: 600px !default;
|
|
24
|
+
$notification-notices-zindex: map.get(vars.$zindex, "tooltip") !default;
|
|
21
25
|
/* @docs */
|
|
22
26
|
|
|
23
27
|
.o-notification {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
@include h.defineVar("notification-spacer", $notification-spacer);
|
|
29
|
+
@include h.defineVar("notification-padding", $notification-padding);
|
|
30
|
+
@include h.defineVar("notification-animation", $notification-animation);
|
|
31
|
+
@include h.defineVar("notification-color", $notification-color);
|
|
32
|
+
@include h.defineVar(
|
|
33
|
+
"notification-background-color",
|
|
29
34
|
$notification-background-color
|
|
30
35
|
);
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
--#{$prefix}notification-border-radius,
|
|
36
|
+
@include h.defineVar(
|
|
37
|
+
"notification-border-radius",
|
|
34
38
|
$notification-border-radius
|
|
35
39
|
);
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
+
|
|
41
|
+
@include h.defineVar("notification-close-top", $notification-close-top);
|
|
42
|
+
@include h.defineVar("notification-close-right", $notification-close-right);
|
|
43
|
+
@include h.defineVar("notification-close-color", $notification-close-color);
|
|
44
|
+
@include h.defineVar("notification-close-size", $notification-close-size);
|
|
45
|
+
@include h.defineVar(
|
|
46
|
+
"notification-close-border-radius",
|
|
47
|
+
$notification-close-border-radius
|
|
48
|
+
);
|
|
49
|
+
@include h.defineVar(
|
|
50
|
+
"notification-close-background-color",
|
|
51
|
+
$notification-close-background-color
|
|
40
52
|
);
|
|
41
53
|
|
|
54
|
+
display: inline-flex;
|
|
55
|
+
flex-direction: row-reverse;
|
|
56
|
+
position: relative;
|
|
57
|
+
transform-origin: 50% 0;
|
|
58
|
+
|
|
59
|
+
padding: h.useVar("notification-padding");
|
|
60
|
+
margin-bottom: h.useVar("notification-spacer");
|
|
61
|
+
|
|
62
|
+
color: h.useVar("notification-color");
|
|
63
|
+
|
|
64
|
+
background-color: h.useVar("notification-background-color");
|
|
65
|
+
border-radius: h.useVar("notification-border-radius");
|
|
66
|
+
|
|
67
|
+
animation: h.useVar("notification-animation");
|
|
68
|
+
-webkit-animation: h.useVar("notification-animation");
|
|
69
|
+
|
|
70
|
+
// color variants
|
|
71
|
+
@each $name, $pair in vars.$colors {
|
|
72
|
+
&--#{$name} {
|
|
73
|
+
@include h.defineVar(
|
|
74
|
+
"notification-color",
|
|
75
|
+
h.useVar("#{$name}-invert")
|
|
76
|
+
);
|
|
77
|
+
@include h.defineVar(
|
|
78
|
+
"notification-background-color",
|
|
79
|
+
h.useVar($name)
|
|
80
|
+
);
|
|
81
|
+
|
|
82
|
+
&:hover {
|
|
83
|
+
// darken color on hover
|
|
84
|
+
filter: brightness(95%);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
42
89
|
&__content {
|
|
43
90
|
flex-basis: auto;
|
|
44
91
|
flex-grow: 1;
|
|
@@ -49,8 +96,8 @@ $notification-notices-zindex: 1000 !default;
|
|
|
49
96
|
}
|
|
50
97
|
|
|
51
98
|
&__wrapper {
|
|
52
|
-
align-items: center;
|
|
53
99
|
display: flex;
|
|
100
|
+
align-items: center;
|
|
54
101
|
text-align: inherit;
|
|
55
102
|
padding-top: 0;
|
|
56
103
|
border: 0;
|
|
@@ -60,93 +107,66 @@ $notification-notices-zindex: 1000 !default;
|
|
|
60
107
|
flex-basis: auto;
|
|
61
108
|
flex-grow: 0;
|
|
62
109
|
flex-shrink: 0;
|
|
63
|
-
margin-right:
|
|
64
|
-
--#{$prefix}notification-icon-margin-right,
|
|
65
|
-
$notification-icon-margin-right
|
|
66
|
-
);
|
|
110
|
+
margin-right: h.useVar("notification-spacer");
|
|
67
111
|
}
|
|
68
112
|
|
|
69
113
|
&__close {
|
|
114
|
+
// add clickable cursor
|
|
115
|
+
@include h.clickable;
|
|
116
|
+
|
|
70
117
|
position: absolute;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
display: flex;
|
|
75
|
-
justify-content: center;
|
|
118
|
+
top: h.useVar("notification-close-top");
|
|
119
|
+
right: h.useVar("notification-close-right");
|
|
120
|
+
|
|
121
|
+
display: inline-flex;
|
|
76
122
|
align-items: center;
|
|
77
|
-
|
|
78
|
-
flex-shrink: 0;
|
|
79
|
-
vertical-align: top;
|
|
80
|
-
background-color: var(
|
|
81
|
-
--#{$prefix}notification-close-background-color,
|
|
82
|
-
$notification-close-background-color
|
|
83
|
-
);
|
|
84
|
-
border-radius: var(
|
|
85
|
-
--#{$prefix}notification-close-border-radius,
|
|
86
|
-
$notification-close-border-radius
|
|
87
|
-
);
|
|
88
|
-
right: var(
|
|
89
|
-
--#{$prefix}notification-close-right,
|
|
90
|
-
$notification-close-right
|
|
91
|
-
);
|
|
92
|
-
top: var(--#{$prefix}notification-close-top, $notification-close-top);
|
|
93
|
-
height: var(
|
|
94
|
-
--#{$prefix}notification-close-size,
|
|
95
|
-
$notification-close-size
|
|
96
|
-
);
|
|
97
|
-
width: var(
|
|
98
|
-
--#{$prefix}notification-close-size,
|
|
99
|
-
$notification-close-size
|
|
100
|
-
);
|
|
101
|
-
color: var(
|
|
102
|
-
--#{$prefix}notification-close-color,
|
|
103
|
-
$notification-close-color
|
|
104
|
-
);
|
|
105
|
-
}
|
|
123
|
+
justify-content: center;
|
|
106
124
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
&--#{$name} {
|
|
111
|
-
border-color: transparent;
|
|
112
|
-
background-color: var(--#{$prefix}variant-#{$name}, $color);
|
|
113
|
-
color: var(--#{$prefix}variant-invert-#{$name}, $color-invert);
|
|
125
|
+
height: h.useVar("notification-close-size");
|
|
126
|
+
width: h.useVar("notification-close-size");
|
|
127
|
+
padding: 0;
|
|
114
128
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
129
|
+
color: h.useVar("notification-close-color");
|
|
130
|
+
|
|
131
|
+
border: none;
|
|
132
|
+
border-radius: h.useVar("notification-close-border-radius");
|
|
133
|
+
background-color: h.useVar("notification-close-background-color");
|
|
121
134
|
}
|
|
122
135
|
}
|
|
123
136
|
|
|
124
137
|
.o-notices {
|
|
138
|
+
@include h.defineVar(
|
|
139
|
+
"notification-notices-zindex",
|
|
140
|
+
$notification-notices-zindex
|
|
141
|
+
);
|
|
142
|
+
@include h.defineVar(
|
|
143
|
+
"notification-notices-padding",
|
|
144
|
+
$notification-notices-padding
|
|
145
|
+
);
|
|
146
|
+
@include h.defineVar(
|
|
147
|
+
"notification-notices-max-width",
|
|
148
|
+
$notification-notices-max-width
|
|
149
|
+
);
|
|
150
|
+
|
|
125
151
|
position: fixed;
|
|
126
152
|
display: flex;
|
|
127
153
|
top: 0;
|
|
128
154
|
bottom: 0;
|
|
129
155
|
left: 0;
|
|
130
156
|
right: 0;
|
|
157
|
+
|
|
131
158
|
overflow: hidden;
|
|
159
|
+
// disable clickable
|
|
132
160
|
pointer-events: none;
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
);
|
|
137
|
-
z-index: var(
|
|
138
|
-
--#{$prefix}notification-notices-zindex,
|
|
139
|
-
$notification-notices-zindex
|
|
140
|
-
);
|
|
161
|
+
|
|
162
|
+
padding: h.useVar("notification-notices-padding");
|
|
163
|
+
z-index: h.useVar("notification-notices-zindex");
|
|
141
164
|
|
|
142
165
|
.o-notification {
|
|
143
166
|
pointer-events: stroke;
|
|
144
|
-
max-width:
|
|
145
|
-
animation: var(
|
|
146
|
-
--#{$prefix}notification-animantion,
|
|
147
|
-
$notification-animantion
|
|
148
|
-
);
|
|
167
|
+
max-width: h.useVar("notification-notices-max-width");
|
|
149
168
|
|
|
169
|
+
// position variants
|
|
150
170
|
&--top,
|
|
151
171
|
&--bottom {
|
|
152
172
|
align-self: center;
|
|
@@ -176,12 +196,8 @@ $notification-notices-zindex: 1000 !default;
|
|
|
176
196
|
margin-bottom: 0;
|
|
177
197
|
|
|
178
198
|
&:not(:first-child) {
|
|
179
|
-
margin-bottom:
|
|
199
|
+
margin-bottom: h.useVar("notification-spacer");
|
|
180
200
|
}
|
|
181
201
|
}
|
|
182
202
|
}
|
|
183
|
-
|
|
184
|
-
&__custom-container {
|
|
185
|
-
position: absolute;
|
|
186
|
-
}
|
|
187
203
|
}
|
|
@@ -1,137 +1,209 @@
|
|
|
1
|
+
@use "../utils/helpers" as h;
|
|
2
|
+
@use "../utils/variables" as vars;
|
|
3
|
+
|
|
1
4
|
/* @docs */
|
|
2
|
-
$pagination-
|
|
3
|
-
$pagination-
|
|
4
|
-
$pagination-
|
|
5
|
-
|
|
6
|
-
$pagination-button-
|
|
7
|
-
$pagination-button-
|
|
8
|
-
$pagination-button-
|
|
9
|
-
$pagination-button-
|
|
10
|
-
|
|
11
|
-
) !default;
|
|
12
|
-
$pagination-button-current-background-color: var(--#{$prefix}primary) !default;
|
|
13
|
-
$pagination-button-current-border-color: var(--#{$prefix}primary) !default;
|
|
14
|
-
$pagination-button-current-color: #fff !default;
|
|
5
|
+
$pagination-spacer: calc(0.5 * h.useVar("control-spacer")) !default;
|
|
6
|
+
$pagination-disabled-opacity: h.useVar("control-disabled-opacity") !default;
|
|
7
|
+
$pagination-ellipsis-color: h.useVar("grey-light") !default;
|
|
8
|
+
|
|
9
|
+
$pagination-button-color: h.useVar("font-color") !default;
|
|
10
|
+
$pagination-button-font-size: h.useVar("font-size") !default;
|
|
11
|
+
$pagination-button-font-weight: h.useVar("font-weight") !default;
|
|
12
|
+
$pagination-button-line-height: h.useVar("line-height") !default;
|
|
13
|
+
|
|
15
14
|
$pagination-button-height: 2.25em !default;
|
|
16
|
-
$pagination-button-
|
|
17
|
-
$pagination-button-
|
|
18
|
-
|
|
19
|
-
$pagination-button-
|
|
20
|
-
$pagination-button-
|
|
21
|
-
$pagination-
|
|
22
|
-
$pagination-
|
|
23
|
-
|
|
15
|
+
$pagination-button-min-width: $pagination-button-height !default;
|
|
16
|
+
$pagination-button-padding: h.useVar("control-spacer") !default;
|
|
17
|
+
|
|
18
|
+
$pagination-button-box-shadow: none !default;
|
|
19
|
+
$pagination-button-border-width: h.useVar("control-border-width") !default;
|
|
20
|
+
$pagination-button-border-color: h.useVar("control-border-color") !default;
|
|
21
|
+
$pagination-button-border-style: solid !default;
|
|
22
|
+
$pagination-button-border-radius: h.useVar("border-radius") !default;
|
|
23
|
+
$pagination-button-border-radius-rounded: h.useVar(
|
|
24
|
+
"border-radius-rounded"
|
|
25
|
+
) !default;
|
|
26
|
+
$pagination-button-background-color: h.useVar(
|
|
27
|
+
"control-brackground-color"
|
|
24
28
|
) !default;
|
|
29
|
+
|
|
30
|
+
$pagination-button-hover-color: $pagination-button-color;
|
|
31
|
+
$pagination-button-hover-background-color: $pagination-button-background-color;
|
|
32
|
+
$pagination-button-hover-border-color: $pagination-button-border-color;
|
|
33
|
+
|
|
34
|
+
$pagination-button-current-color: h.useVar("white") !default;
|
|
35
|
+
$pagination-button-current-background-color: h.useVar("primary") !default;
|
|
36
|
+
$pagination-button-current-border-color: h.useVar("primary") !default;
|
|
25
37
|
/* @docs */
|
|
26
38
|
|
|
27
39
|
.o-pagination {
|
|
40
|
+
@include h.defineVar("pagination-spacer", $pagination-spacer);
|
|
41
|
+
@include h.defineVar(
|
|
42
|
+
"pagination-disabled-opacity",
|
|
43
|
+
$pagination-disabled-opacity
|
|
44
|
+
);
|
|
45
|
+
@include h.defineVar(
|
|
46
|
+
"pagination-ellipsis-color",
|
|
47
|
+
$pagination-ellipsis-color
|
|
48
|
+
);
|
|
49
|
+
|
|
50
|
+
@include h.defineVar("pagination-button-color", $pagination-button-color);
|
|
51
|
+
@include h.defineVar(
|
|
52
|
+
"pagination-button-font-size",
|
|
53
|
+
$pagination-button-font-size
|
|
54
|
+
);
|
|
55
|
+
@include h.defineVar(
|
|
56
|
+
"pagination-button-font-weight",
|
|
57
|
+
$pagination-button-font-weight
|
|
58
|
+
);
|
|
59
|
+
@include h.defineVar(
|
|
60
|
+
"pagination-button-line-height",
|
|
61
|
+
$pagination-button-line-height
|
|
62
|
+
);
|
|
63
|
+
|
|
64
|
+
@include h.defineVar("pagination-button-height", $pagination-button-height);
|
|
65
|
+
@include h.defineVar(
|
|
66
|
+
"pagination-button-min-width",
|
|
67
|
+
$pagination-button-min-width
|
|
68
|
+
);
|
|
69
|
+
@include h.defineVar(
|
|
70
|
+
"pagination-button-padding",
|
|
71
|
+
$pagination-button-padding
|
|
72
|
+
);
|
|
73
|
+
|
|
74
|
+
@include h.defineVar(
|
|
75
|
+
"pagination-button-box-shadow",
|
|
76
|
+
$pagination-button-box-shadow
|
|
77
|
+
);
|
|
78
|
+
@include h.defineVar(
|
|
79
|
+
"pagination-button-border-width",
|
|
80
|
+
$pagination-button-border-width
|
|
81
|
+
);
|
|
82
|
+
@include h.defineVar(
|
|
83
|
+
"pagination-button-border-color",
|
|
84
|
+
$pagination-button-border-color
|
|
85
|
+
);
|
|
86
|
+
@include h.defineVar(
|
|
87
|
+
"pagination-button-border-style",
|
|
88
|
+
$pagination-button-border-style
|
|
89
|
+
);
|
|
90
|
+
@include h.defineVar(
|
|
91
|
+
"pagination-button-border-radius",
|
|
92
|
+
$pagination-button-border-radius
|
|
93
|
+
);
|
|
94
|
+
@include h.defineVar(
|
|
95
|
+
"pagination-button-border-radius-rounded",
|
|
96
|
+
$pagination-button-border-radius-rounded
|
|
97
|
+
);
|
|
98
|
+
@include h.defineVar(
|
|
99
|
+
"pagination-button-background-color",
|
|
100
|
+
$pagination-button-background-color
|
|
101
|
+
);
|
|
102
|
+
|
|
103
|
+
@include h.defineVar(
|
|
104
|
+
"pagination-button-hover-color",
|
|
105
|
+
$pagination-button-hover-color
|
|
106
|
+
);
|
|
107
|
+
@include h.defineVar(
|
|
108
|
+
"pagination-button-hover-background-color",
|
|
109
|
+
$pagination-button-hover-background-color
|
|
110
|
+
);
|
|
111
|
+
@include h.defineVar(
|
|
112
|
+
"pagination-button-hover-border-color",
|
|
113
|
+
$pagination-button-hover-border-color
|
|
114
|
+
);
|
|
115
|
+
|
|
116
|
+
@include h.defineVar(
|
|
117
|
+
"pagination-button-current-color",
|
|
118
|
+
$pagination-button-current-color
|
|
119
|
+
);
|
|
120
|
+
@include h.defineVar(
|
|
121
|
+
"pagination-button-current-background-color",
|
|
122
|
+
$pagination-button-current-background-color
|
|
123
|
+
);
|
|
124
|
+
@include h.defineVar(
|
|
125
|
+
"pagination-button-current-border-color",
|
|
126
|
+
$pagination-button-current-border-color
|
|
127
|
+
);
|
|
128
|
+
|
|
28
129
|
align-items: center;
|
|
29
130
|
display: flex;
|
|
30
131
|
text-align: center;
|
|
31
132
|
justify-content: space-between;
|
|
32
|
-
font-size: var(--#{$prefix}base-font-size, $base-font-size);
|
|
33
|
-
margin: var(--#{$prefix}pagination-margin, $pagination-margin);
|
|
34
133
|
|
|
35
|
-
|
|
134
|
+
// size variants
|
|
135
|
+
@each $name, $value in vars.$sizes {
|
|
36
136
|
&--#{$name} {
|
|
37
|
-
|
|
137
|
+
@include h.defineVar(
|
|
138
|
+
"pagination-button-font-size",
|
|
139
|
+
h.useVar("size-#{$name}")
|
|
140
|
+
);
|
|
38
141
|
}
|
|
39
142
|
}
|
|
40
143
|
|
|
144
|
+
// TODO: normal o-button will be used here later
|
|
41
145
|
&__button {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
146
|
+
// define focus shadow effect
|
|
147
|
+
@include h.focusable;
|
|
148
|
+
|
|
149
|
+
// add clickable cursor
|
|
150
|
+
@include h.clickable;
|
|
151
|
+
|
|
152
|
+
// remove default appearance
|
|
153
|
+
@include h.removeAppearance;
|
|
154
|
+
text-decoration: none;
|
|
45
155
|
|
|
46
|
-
align-items: center;
|
|
47
|
-
box-shadow: none;
|
|
48
|
-
display: inline-flex;
|
|
49
156
|
position: relative;
|
|
157
|
+
display: inline-flex;
|
|
158
|
+
align-items: center;
|
|
50
159
|
vertical-align: top;
|
|
51
160
|
justify-content: center;
|
|
52
161
|
text-align: center;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
);
|
|
60
|
-
background-color:
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
);
|
|
64
|
-
border:
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
);
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
);
|
|
72
|
-
border-color: var(
|
|
73
|
-
--#{$prefix}pagination-link-border-color,
|
|
74
|
-
$pagination-button-border-color
|
|
75
|
-
);
|
|
76
|
-
color: var(--#{$prefix}pagination-link-color, $pagination-button-color);
|
|
77
|
-
min-width: var(
|
|
78
|
-
--#{$prefix}pagination-link-min-width,
|
|
79
|
-
$pagination-button-min-width
|
|
80
|
-
);
|
|
81
|
-
height: var(
|
|
82
|
-
--#{$prefix}pagination-link-height,
|
|
83
|
-
$pagination-button-height
|
|
84
|
-
);
|
|
85
|
-
padding: var(
|
|
86
|
-
--#{$prefix}pagination-link-padding,
|
|
87
|
-
$pagination-button-padding
|
|
88
|
-
);
|
|
89
|
-
margin: var(
|
|
90
|
-
--#{$prefix}pagination-link-margin,
|
|
91
|
-
$pagination-button-margin
|
|
92
|
-
);
|
|
162
|
+
|
|
163
|
+
color: h.useVar("pagination-button-color");
|
|
164
|
+
font-size: h.useVar("pagination-button-font-size");
|
|
165
|
+
font-weight: h.useVar("pagination-button-font-weight");
|
|
166
|
+
line-height: h.useVar("pagination-button-line-height");
|
|
167
|
+
|
|
168
|
+
box-shadow: h.useVar("pagination-button-box-shadow");
|
|
169
|
+
background-color: h.useVar("pagination-button-background-color");
|
|
170
|
+
|
|
171
|
+
border-color: h.useVar("pagination-button-border-color");
|
|
172
|
+
border-style: h.useVar("pagination-button-border-style");
|
|
173
|
+
border-width: h.useVar("pagination-button-border-width");
|
|
174
|
+
border-radius: h.useVar("pagination-button-border-radius");
|
|
175
|
+
|
|
176
|
+
min-width: h.useVar("pagination-button-min-width");
|
|
177
|
+
height: h.useVar("pagination-button-height");
|
|
178
|
+
padding: h.useVar("pagination-button-padding");
|
|
179
|
+
margin: h.useVar("pagination-spacer");
|
|
93
180
|
|
|
94
181
|
&:hover {
|
|
95
|
-
|
|
96
|
-
border-color:
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
);
|
|
100
|
-
background-color: var(
|
|
101
|
-
--#{$prefix}pagination-button-background-color-hover,
|
|
102
|
-
$pagination-button-background-color-hover
|
|
182
|
+
color: h.useVar("pagination-button-hover-color");
|
|
183
|
+
border-color: h.useVar("pagination-button-hover-border-color");
|
|
184
|
+
background-color: h.useVar(
|
|
185
|
+
"pagination-button-background-color-hover"
|
|
103
186
|
);
|
|
104
187
|
}
|
|
105
188
|
|
|
106
189
|
&--rounded {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
190
|
+
@include h.defineVar(
|
|
191
|
+
"pagination-button-border-radius",
|
|
192
|
+
h.useVar("pagination-button-border-radius-rounded")
|
|
110
193
|
);
|
|
111
194
|
}
|
|
112
195
|
|
|
113
196
|
&--disabled {
|
|
114
|
-
|
|
115
|
-
opacity: var(
|
|
116
|
-
--#{$prefix}pagination-disabled-opacity,
|
|
117
|
-
$pagination-disabled-opacity
|
|
118
|
-
);
|
|
197
|
+
@include h.disabled(h.useVar("menu-disabled-opacity"));
|
|
119
198
|
}
|
|
120
199
|
|
|
121
200
|
&--current {
|
|
122
201
|
pointer-events: none;
|
|
123
|
-
background-color:
|
|
124
|
-
|
|
125
|
-
$pagination-button-current-background-color
|
|
126
|
-
);
|
|
127
|
-
border-color: var(
|
|
128
|
-
--#{$prefix}pagination-link-current-border-color,
|
|
129
|
-
$pagination-button-current-border-color
|
|
130
|
-
);
|
|
131
|
-
color: var(
|
|
132
|
-
--#{$prefix}pagination-link-current-color,
|
|
133
|
-
$pagination-button-current-color
|
|
202
|
+
background-color: h.useVar(
|
|
203
|
+
"pagination-button-current-background-color"
|
|
134
204
|
);
|
|
205
|
+
border-color: h.useVar("pagination-button-current-border-color");
|
|
206
|
+
color: h.useVar("pagination-button-current-color");
|
|
135
207
|
}
|
|
136
208
|
}
|
|
137
209
|
|
|
@@ -139,14 +211,8 @@ $pagination-rounded-border-radius: var(
|
|
|
139
211
|
justify-content: center;
|
|
140
212
|
text-align: center;
|
|
141
213
|
pointer-events: none;
|
|
142
|
-
margin:
|
|
143
|
-
|
|
144
|
-
$pagination-button-margin
|
|
145
|
-
);
|
|
146
|
-
color: var(
|
|
147
|
-
--#{$prefix}pagination-ellipsis-color,
|
|
148
|
-
$pagination-ellipsis-color
|
|
149
|
-
);
|
|
214
|
+
margin: h.useVar("pagination-spacer");
|
|
215
|
+
color: h.useVar("pagination-ellipsis-color");
|
|
150
216
|
}
|
|
151
217
|
|
|
152
218
|
&__button-next {
|
|
@@ -237,6 +303,7 @@ $pagination-rounded-border-radius: var(
|
|
|
237
303
|
|
|
238
304
|
.o-pagination__list {
|
|
239
305
|
order: 0;
|
|
306
|
+
justify-content: end;
|
|
240
307
|
}
|
|
241
308
|
}
|
|
242
309
|
}
|