@oruga-ui/theme-oruga 0.4.2 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/oruga.css +2 -4046
- package/dist/scss/components/_button.scss +30 -38
- package/dist/scss/components/_datepicker.scss +15 -8
- package/dist/scss/components/_dropdown.scss +1 -1
- package/dist/scss/components/_menu.scss +8 -3
- package/dist/scss/components/_pagination.scss +10 -10
- package/dist/scss/components/_slider.scss +9 -4
- package/dist/scss/components/_steps.scss +56 -123
- package/dist/scss/components/_tabs.scss +220 -232
- package/dist/scss/utils/_variables.scss +2 -2
- package/dist/theme.js +1 -8
- package/package.json +26 -33
- package/dist/oruga.min.css +0 -1
- package/src/assets/scss/components/_autocomplete.scss +0 -23
- package/src/assets/scss/components/_button.scss +0 -226
- package/src/assets/scss/components/_carousel.scss +0 -233
- package/src/assets/scss/components/_checkbox.scss +0 -171
- package/src/assets/scss/components/_collapse.scss +0 -15
- package/src/assets/scss/components/_datepicker.scss +0 -494
- package/src/assets/scss/components/_datetimepicker.scss +0 -13
- package/src/assets/scss/components/_dropdown.scss +0 -268
- package/src/assets/scss/components/_field.scss +0 -132
- package/src/assets/scss/components/_icon.scss +0 -53
- package/src/assets/scss/components/_input.scss +0 -149
- package/src/assets/scss/components/_loading.scss +0 -37
- package/src/assets/scss/components/_menu.scss +0 -92
- package/src/assets/scss/components/_modal.scss +0 -94
- package/src/assets/scss/components/_notification.scss +0 -175
- package/src/assets/scss/components/_pagination.scss +0 -213
- package/src/assets/scss/components/_radio.scss +0 -112
- package/src/assets/scss/components/_select.scss +0 -156
- package/src/assets/scss/components/_sidebar.scss +0 -139
- package/src/assets/scss/components/_skeleton.scss +0 -80
- package/src/assets/scss/components/_slider.scss +0 -199
- package/src/assets/scss/components/_steps.scss +0 -427
- package/src/assets/scss/components/_switch.scss +0 -150
- package/src/assets/scss/components/_table.scss +0 -424
- package/src/assets/scss/components/_tabs.scss +0 -348
- package/src/assets/scss/components/_taginput.scss +0 -117
- package/src/assets/scss/components/_timepicker.scss +0 -92
- package/src/assets/scss/components/_tooltip.scss +0 -453
- package/src/assets/scss/components/_upload.scss +0 -69
- package/src/assets/scss/oruga-build.scss +0 -9
- package/src/assets/scss/oruga.scss +0 -41
- package/src/assets/scss/utils/_animations.scss +0 -233
- package/src/assets/scss/utils/_base.scss +0 -31
- package/src/assets/scss/utils/_helpers.scss +0 -113
- package/src/assets/scss/utils/_root.scss +0 -54
- package/src/assets/scss/utils/_variables.scss +0 -103
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
/* @docs */
|
|
2
|
-
$menu-item-color: var(--#{$prefix}grey-dark) !default;
|
|
3
|
-
$menu-item-hover-color: var(--#{$prefix}black) !default;
|
|
4
|
-
$menu-item-hover-background-color: var(--#{$prefix}grey-light) !default;
|
|
5
|
-
$menu-item-active-color: var(--#{$prefix}primary-invert) !default;
|
|
6
|
-
$menu-item-active-background-color: var(--#{$prefix}primary) !default;
|
|
7
|
-
$menu-item-disabled-color: var(--#{$prefix}grey-light) !default;
|
|
8
|
-
$menu-list-border-left: 1px solid var(--#{$prefix}primary) !default;
|
|
9
|
-
$menu-list-line-height: 1.25em !default;
|
|
10
|
-
$menu-item-padding: 0.5em 0.75em !default;
|
|
11
|
-
$menu-nested-list-margin: 0.75em !default;
|
|
12
|
-
$menu-nested-list-padding-left: 0.75em !default;
|
|
13
|
-
$menu-label-color: $grey !default;
|
|
14
|
-
$menu-label-font-size: 0.75em !default;
|
|
15
|
-
$menu-label-spacing: 1em !default;
|
|
16
|
-
$menu-icon-spacer: 0.5rem !default;
|
|
17
|
-
/* @docs */
|
|
18
|
-
|
|
19
|
-
.o-menu {
|
|
20
|
-
@each $name, $value in $sizes {
|
|
21
|
-
&--#{$name} {
|
|
22
|
-
font-size: var(--#{$prefix}menu-font-size-#{$name}, $value);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&__list,
|
|
27
|
-
&__item__wrapper {
|
|
28
|
-
list-style: none;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&__list {
|
|
32
|
-
line-height: var(--#{$prefix}menu-list-line-height, $menu-list-line-height);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&__item__submenu {
|
|
36
|
-
border-left: var(--#{$prefix}menu-list-border-left, $menu-list-border-left);
|
|
37
|
-
padding-left: var(
|
|
38
|
-
--#{$prefix}menu-nested-list-padding-left,
|
|
39
|
-
$menu-nested-list-padding-left
|
|
40
|
-
);
|
|
41
|
-
margin: var(--#{$prefix}menu-nested-list-margin, $menu-nested-list-margin);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&__label {
|
|
45
|
-
text-transform: uppercase;
|
|
46
|
-
color: var(--#{$prefix}menu-label-color, $menu-label-color);
|
|
47
|
-
font-size: var(--#{$prefix}menu-label-font-size, $menu-label-font-size);
|
|
48
|
-
|
|
49
|
-
&:not(:first-child) {
|
|
50
|
-
margin-top: var(--#{$prefix}menu-label-spacing, $menu-label-spacing);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&:not(:last-child) {
|
|
54
|
-
margin-bottom: var(--#{$prefix}menu-label-spacing, $menu-label-spacing);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&__item {
|
|
59
|
-
display: block;
|
|
60
|
-
list-style: none;
|
|
61
|
-
color: var(--#{$prefix}menu-item-color, $menu-item-color);
|
|
62
|
-
padding: var(--#{$prefix}menu-item-padding, $menu-item-padding);
|
|
63
|
-
font-size: var(--#{$prefix}menu-item-size, $base-font-size);
|
|
64
|
-
|
|
65
|
-
&:hover:not(&--active):not(&--disabled) {
|
|
66
|
-
color: var(--#{$prefix}menu-item-hover-color, $menu-item-hover-color);
|
|
67
|
-
background-color: var(
|
|
68
|
-
--#{$prefix}menu-item-hover-background-color,
|
|
69
|
-
$menu-item-hover-background-color
|
|
70
|
-
);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&--icon-text .o-icon {
|
|
74
|
-
margin-right: var(--#{$prefix}menu-icon-spacer, $menu-icon-spacer);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
&--active {
|
|
78
|
-
color: var(--#{$prefix}menu-item-active-color, $menu-item-active-color);
|
|
79
|
-
background-color: var(
|
|
80
|
-
--#{$prefix}menu-item-active-background-color,
|
|
81
|
-
$menu-item-active-background-color
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
&--disabled {
|
|
86
|
-
color: var(
|
|
87
|
-
--#{$prefix}menu-item-disabled-color,
|
|
88
|
-
$menu-item-disabled-color
|
|
89
|
-
);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
/* @docs */
|
|
2
|
-
$modal-content-background-color: var(--#{$prefix}white) !default;
|
|
3
|
-
$modal-content-border-radius: var(--#{$prefix}base-border-radius) !default;
|
|
4
|
-
$modal-overlay-background-color: hsla(0, 0%, 4%, 0.86) !default;
|
|
5
|
-
$modal-close-border-radius: var(
|
|
6
|
-
--#{$prefix}base-border-radius-rounded
|
|
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: #f5f5f5 !default;
|
|
13
|
-
$modal-content-max-height: calc(100vh - 160px) !default;
|
|
14
|
-
$modal-content-margin: 0 auto !default;
|
|
15
|
-
$modal-zindex: 40 !default;
|
|
16
|
-
/* @docs */
|
|
17
|
-
|
|
18
|
-
.o-modal {
|
|
19
|
-
display: flex;
|
|
20
|
-
flex-direction: column;
|
|
21
|
-
justify-content: center;
|
|
22
|
-
align-items: center;
|
|
23
|
-
overflow: hidden;
|
|
24
|
-
position: fixed;
|
|
25
|
-
bottom: 0;
|
|
26
|
-
left: 0;
|
|
27
|
-
right: 0;
|
|
28
|
-
top: 0;
|
|
29
|
-
z-index: var(--#{$prefix}modal-zindex, $modal-zindex);
|
|
30
|
-
|
|
31
|
-
&__overlay {
|
|
32
|
-
bottom: 0;
|
|
33
|
-
left: 0;
|
|
34
|
-
position: absolute;
|
|
35
|
-
right: 0;
|
|
36
|
-
top: 0;
|
|
37
|
-
background-color: var(
|
|
38
|
-
--#{$prefix}modal-overlay-background-color,
|
|
39
|
-
$modal-overlay-background-color
|
|
40
|
-
);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&__content {
|
|
44
|
-
overflow: auto;
|
|
45
|
-
position: relative;
|
|
46
|
-
margin: var(--#{$prefix}modal-content-margin, $modal-content-margin);
|
|
47
|
-
max-height: var(
|
|
48
|
-
--#{$prefix}modal-content-max-height,
|
|
49
|
-
$modal-content-max-height
|
|
50
|
-
);
|
|
51
|
-
background-color: var(
|
|
52
|
-
--#{$prefix}modal-content-background-color,
|
|
53
|
-
$modal-content-background-color
|
|
54
|
-
);
|
|
55
|
-
border-radius: var(
|
|
56
|
-
--#{$prefix}modal-content-border-radius,
|
|
57
|
-
$modal-content-border-radius
|
|
58
|
-
);
|
|
59
|
-
|
|
60
|
-
&--full-screen {
|
|
61
|
-
width: 100%;
|
|
62
|
-
height: 100%;
|
|
63
|
-
max-height: 100vh;
|
|
64
|
-
margin: 0;
|
|
65
|
-
background-color: var(
|
|
66
|
-
--#{$prefix}modal-content-fullscreen-background-color,
|
|
67
|
-
$modal-content-fullscreen-background-color
|
|
68
|
-
);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
&__close {
|
|
73
|
-
background: none;
|
|
74
|
-
position: fixed;
|
|
75
|
-
border: none;
|
|
76
|
-
display: inline-block;
|
|
77
|
-
vertical-align: top;
|
|
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);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
&--mobile {
|
|
90
|
-
.o-modal__content {
|
|
91
|
-
width: 100%;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
@use "sass:list";
|
|
2
|
-
|
|
3
|
-
/* @docs */
|
|
4
|
-
$notification-background-color: var(--#{$prefix}primary) !default;
|
|
5
|
-
$notification-border-radius: 4px !default;
|
|
6
|
-
$notification-padding: 1.75em 1.75em !default;
|
|
7
|
-
$notification-margin-bottom: 1.5rem !default;
|
|
8
|
-
$notification-animantion: append-animate 0.3s linear !default;
|
|
9
|
-
$notification-color: var(--#{$prefix}white) !default;
|
|
10
|
-
$notification-close-border-radius: var(
|
|
11
|
-
--#{$prefix}base-border-radius-rounded
|
|
12
|
-
) !default;
|
|
13
|
-
$notification-close-right: 0.5rem !default;
|
|
14
|
-
$notification-close-top: 0.5rem !default;
|
|
15
|
-
$notification-close-size: 20px !default;
|
|
16
|
-
$notification-close-color: var(--#{$prefix}white) !default;
|
|
17
|
-
$notification-close-background-color: hsla(0, 0%, 4%, 0.2) !default;
|
|
18
|
-
$notification-icon-margin-right: 1rem !default;
|
|
19
|
-
$notification-notices-padding: 2em !default;
|
|
20
|
-
$notification-notices-zindex: 1000 !default;
|
|
21
|
-
/* @docs */
|
|
22
|
-
|
|
23
|
-
.o-notification {
|
|
24
|
-
position: relative;
|
|
25
|
-
transform-origin: 50% 0;
|
|
26
|
-
// Modifiers
|
|
27
|
-
background-color: var(
|
|
28
|
-
--#{$prefix}notification-background-color,
|
|
29
|
-
$notification-background-color
|
|
30
|
-
);
|
|
31
|
-
color: var(--#{$prefix}notification-color, $notification-color);
|
|
32
|
-
border-radius: var(
|
|
33
|
-
--#{$prefix}notification-border-radius,
|
|
34
|
-
$notification-border-radius
|
|
35
|
-
);
|
|
36
|
-
padding: var(--#{$prefix}notification-padding, $notification-padding);
|
|
37
|
-
margin-bottom: var(
|
|
38
|
-
--#{$prefix}notification-margin-bottom,
|
|
39
|
-
$notification-margin-bottom
|
|
40
|
-
);
|
|
41
|
-
|
|
42
|
-
&__content {
|
|
43
|
-
flex-basis: auto;
|
|
44
|
-
flex-grow: 1;
|
|
45
|
-
flex-shrink: 1;
|
|
46
|
-
text-align: inherit;
|
|
47
|
-
overflow-y: hidden;
|
|
48
|
-
overflow-x: auto;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&__wrapper {
|
|
52
|
-
align-items: flex-start;
|
|
53
|
-
display: flex;
|
|
54
|
-
text-align: inherit;
|
|
55
|
-
padding-top: 0;
|
|
56
|
-
border: 0;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
&__icon {
|
|
60
|
-
flex-basis: auto;
|
|
61
|
-
flex-grow: 0;
|
|
62
|
-
flex-shrink: 0;
|
|
63
|
-
margin-right: var(
|
|
64
|
-
--#{$prefix}notification-icon-margin-right,
|
|
65
|
-
$notification-icon-margin-right
|
|
66
|
-
);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
&__close {
|
|
70
|
-
position: absolute;
|
|
71
|
-
border: none;
|
|
72
|
-
cursor: pointer;
|
|
73
|
-
pointer-events: auto;
|
|
74
|
-
display: flex;
|
|
75
|
-
justify-content: center;
|
|
76
|
-
align-items: center;
|
|
77
|
-
flex-grow: 0;
|
|
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(--#{$prefix}notification-close-right, $notification-close-right);
|
|
89
|
-
top: var(--#{$prefix}notification-close-top, $notification-close-top);
|
|
90
|
-
height: var(--#{$prefix}notification-close-size, $notification-close-size);
|
|
91
|
-
width: var(--#{$prefix}notification-close-size, $notification-close-size);
|
|
92
|
-
color: var(--#{$prefix}notification-close-color, $notification-close-color);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
@each $name, $pair in $colors {
|
|
96
|
-
$color: list.nth($pair, 1);
|
|
97
|
-
$color-invert: list.nth($pair, 2);
|
|
98
|
-
&--#{$name} {
|
|
99
|
-
border-color: transparent;
|
|
100
|
-
background-color: var(--#{$prefix}variant-#{$name}, $color);
|
|
101
|
-
color: var(--#{$prefix}variant-invert-#{$name}, $color-invert);
|
|
102
|
-
|
|
103
|
-
&:hover {
|
|
104
|
-
// background-color: darken($color, 2.5%)
|
|
105
|
-
// IE 11 needs polyfill
|
|
106
|
-
filter: brightness(97.5%);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.o-notices {
|
|
113
|
-
position: fixed;
|
|
114
|
-
display: flex;
|
|
115
|
-
top: 0;
|
|
116
|
-
bottom: 0;
|
|
117
|
-
left: 0;
|
|
118
|
-
right: 0;
|
|
119
|
-
overflow: hidden;
|
|
120
|
-
pointer-events: none;
|
|
121
|
-
padding: var(
|
|
122
|
-
--#{$prefix}notification-notices-padding,
|
|
123
|
-
$notification-notices-padding
|
|
124
|
-
);
|
|
125
|
-
z-index: var(
|
|
126
|
-
--#{$prefix}notification-notices-zindex,
|
|
127
|
-
$notification-notices-zindex
|
|
128
|
-
);
|
|
129
|
-
|
|
130
|
-
.o-notification {
|
|
131
|
-
pointer-events: stroke;
|
|
132
|
-
max-width: 600px;
|
|
133
|
-
animation: var(
|
|
134
|
-
--#{$prefix}notification-animantion,
|
|
135
|
-
$notification-animantion
|
|
136
|
-
);
|
|
137
|
-
|
|
138
|
-
&--top,
|
|
139
|
-
&--bottom {
|
|
140
|
-
align-self: center;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
&--top-right,
|
|
144
|
-
&--bottom-right {
|
|
145
|
-
align-self: flex-end;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
&--top-left,
|
|
149
|
-
&--bottom-left {
|
|
150
|
-
align-self: flex-start;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
&--top {
|
|
155
|
-
flex-direction: column;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
&--bottom {
|
|
159
|
-
flex-direction: column-reverse;
|
|
160
|
-
|
|
161
|
-
// Since the columns are reversed, we need to reverse the margin logic from
|
|
162
|
-
// :not(:last-child) to :not(:first-child)
|
|
163
|
-
.o-notification {
|
|
164
|
-
margin-bottom: 0;
|
|
165
|
-
|
|
166
|
-
&:not(:first-child) {
|
|
167
|
-
margin-bottom: $notification-margin-bottom;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
&__custom-container {
|
|
173
|
-
position: absolute;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
/* @docs */
|
|
2
|
-
$pagination-disabled-opacity: var(--#{$prefix}base-disabled-opacity) !default;
|
|
3
|
-
$pagination-ellipsis-color: var(--#{$prefix}grey-light) !default;
|
|
4
|
-
$pagination-link-border-color: var(--#{$prefix}grey-lighter) !default;
|
|
5
|
-
$pagination-link-border-radius: var(--#{$prefix}base-border-radius) !default;
|
|
6
|
-
$pagination-link-border: 1px solid transparent !default;
|
|
7
|
-
$pagination-link-color: #363636 !default;
|
|
8
|
-
$pagination-link-current-background-color: var(--#{$prefix}primary) !default;
|
|
9
|
-
$pagination-link-current-border-color: var(--#{$prefix}primary) !default;
|
|
10
|
-
$pagination-link-current-color: #fff !default;
|
|
11
|
-
$pagination-link-height: 2.25em !default;
|
|
12
|
-
$pagination-link-hover-border-color: var(--#{$prefix}grey-light) !default;
|
|
13
|
-
$pagination-link-line-height: var(--#{$prefix}base-line-height) !default;
|
|
14
|
-
$pagination-link-margin: 0.25rem !default;
|
|
15
|
-
$pagination-link-min-width: 2.25em !default;
|
|
16
|
-
$pagination-link-padding: 0.5em 0.5em !default;
|
|
17
|
-
$pagination-margin: -0.25rem !default;
|
|
18
|
-
$pagination-rounded-border-radius: var(
|
|
19
|
-
--#{$prefix}base-border-radius-rounded
|
|
20
|
-
) !default;
|
|
21
|
-
/* @docs */
|
|
22
|
-
|
|
23
|
-
.o-pag {
|
|
24
|
-
align-items: center;
|
|
25
|
-
display: flex;
|
|
26
|
-
text-align: center;
|
|
27
|
-
justify-content: space-between;
|
|
28
|
-
font-size: var(--#{$prefix}base-font-size, $base-font-size);
|
|
29
|
-
margin: var(--#{$prefix}pagination-margin, $pagination-margin);
|
|
30
|
-
|
|
31
|
-
@each $name, $value in $sizes {
|
|
32
|
-
&--#{$name} {
|
|
33
|
-
font-size: var(--#{$prefix}pagination-font-size-#{$name}, $value);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&__link {
|
|
38
|
-
@include unselectable;
|
|
39
|
-
-moz-appearance: none;
|
|
40
|
-
-webkit-appearance: none;
|
|
41
|
-
align-items: center;
|
|
42
|
-
box-shadow: none;
|
|
43
|
-
display: inline-flex;
|
|
44
|
-
position: relative;
|
|
45
|
-
vertical-align: top;
|
|
46
|
-
justify-content: center;
|
|
47
|
-
text-align: center;
|
|
48
|
-
text-decoration: none;
|
|
49
|
-
cursor: pointer;
|
|
50
|
-
line-height: var(
|
|
51
|
-
--#{$prefix}pagination-link-line-height,
|
|
52
|
-
$pagination-link-line-height
|
|
53
|
-
);
|
|
54
|
-
border: var(--#{$prefix}pagination-link-border, $pagination-link-border);
|
|
55
|
-
border-radius: var(
|
|
56
|
-
--#{$prefix}pagination-link-border-radius,
|
|
57
|
-
$pagination-link-border-radius
|
|
58
|
-
);
|
|
59
|
-
border-color: var(
|
|
60
|
-
--#{$prefix}pagination-link-border-color,
|
|
61
|
-
$pagination-link-border-color
|
|
62
|
-
);
|
|
63
|
-
color: var(--#{$prefix}pagination-link-color, $pagination-link-color);
|
|
64
|
-
min-width: var(
|
|
65
|
-
--#{$prefix}pagination-link-min-width,
|
|
66
|
-
$pagination-link-min-width
|
|
67
|
-
);
|
|
68
|
-
height: var(--#{$prefix}pagination-link-height, $pagination-link-height);
|
|
69
|
-
padding: var(--#{$prefix}pagination-link-padding, $pagination-link-padding);
|
|
70
|
-
margin: var(--#{$prefix}pagination-link-margin, $pagination-link-margin);
|
|
71
|
-
|
|
72
|
-
&:hover {
|
|
73
|
-
text-decoration: none;
|
|
74
|
-
border-color: var(
|
|
75
|
-
--#{$prefix}pagination-link-hover-border-color,
|
|
76
|
-
$pagination-link-hover-border-color
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
&--rounded {
|
|
81
|
-
border-radius: var(
|
|
82
|
-
--#{$prefix}pagination-rounded-border-radius,
|
|
83
|
-
$pagination-rounded-border-radius
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
&--disabled {
|
|
88
|
-
pointer-events: none;
|
|
89
|
-
opacity: var(
|
|
90
|
-
--#{$prefix}pagination-disabled-opacity,
|
|
91
|
-
$pagination-disabled-opacity
|
|
92
|
-
);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
&--current {
|
|
96
|
-
pointer-events: none;
|
|
97
|
-
background-color: var(
|
|
98
|
-
--#{$prefix}pagination-link-current-background-color,
|
|
99
|
-
$pagination-link-current-background-color
|
|
100
|
-
);
|
|
101
|
-
border-color: var(
|
|
102
|
-
--#{$prefix}pagination-link-current-border-color,
|
|
103
|
-
$pagination-link-current-border-color
|
|
104
|
-
);
|
|
105
|
-
color: var(
|
|
106
|
-
--#{$prefix}pagination-link-current-color,
|
|
107
|
-
$pagination-link-current-color
|
|
108
|
-
);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
&__ellipsis {
|
|
113
|
-
justify-content: center;
|
|
114
|
-
text-align: center;
|
|
115
|
-
pointer-events: none;
|
|
116
|
-
margin: var(--#{$prefix}pagination-link-margin, $pagination-link-margin);
|
|
117
|
-
color: var(
|
|
118
|
-
--#{$prefix}pagination-ellipsis-color,
|
|
119
|
-
$pagination-ellipsis-color
|
|
120
|
-
);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
&__next {
|
|
124
|
-
order: 3;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
&__previous {
|
|
128
|
-
order: 2;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
&__list {
|
|
132
|
-
align-items: center;
|
|
133
|
-
display: flex;
|
|
134
|
-
text-align: center;
|
|
135
|
-
list-style: none;
|
|
136
|
-
flex-wrap: wrap;
|
|
137
|
-
margin: 0;
|
|
138
|
-
padding: 0;
|
|
139
|
-
flex-grow: 1;
|
|
140
|
-
flex-shrink: 1;
|
|
141
|
-
justify-content: flex-start;
|
|
142
|
-
order: 1;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
&--simple {
|
|
146
|
-
justify-content: normal;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
&--centered {
|
|
150
|
-
justify-content: center;
|
|
151
|
-
|
|
152
|
-
.o-pag__previous {
|
|
153
|
-
order: 1;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.o-pag__next {
|
|
157
|
-
order: 3;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.o-pag__list {
|
|
161
|
-
justify-content: center;
|
|
162
|
-
order: 2;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
&--right {
|
|
167
|
-
justify-content: flex-end;
|
|
168
|
-
|
|
169
|
-
.o-pag__previous {
|
|
170
|
-
order: 1;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.o-pag__next {
|
|
174
|
-
order: 2;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.o-pag__list {
|
|
178
|
-
justify-content: flex-end;
|
|
179
|
-
order: 2;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
&--mobile {
|
|
184
|
-
justify-content: flex-start;
|
|
185
|
-
flex-wrap: wrap;
|
|
186
|
-
|
|
187
|
-
.o-pag__link {
|
|
188
|
-
flex-grow: 1;
|
|
189
|
-
flex-shrink: 1;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
.o-pag__previous {
|
|
193
|
-
flex-grow: 1;
|
|
194
|
-
flex-shrink: 1;
|
|
195
|
-
order: 0;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
.o-pag__next {
|
|
199
|
-
flex-grow: 1;
|
|
200
|
-
flex-shrink: 1;
|
|
201
|
-
order: 0;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
.o-pag__ellipsis {
|
|
205
|
-
flex-grow: 1;
|
|
206
|
-
flex-shrink: 1;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
.o-pag__list {
|
|
210
|
-
order: 0;
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
@use "sass:list";
|
|
2
|
-
|
|
3
|
-
/* @docs */
|
|
4
|
-
$radio-active-background-color: $primary !default;
|
|
5
|
-
$radio-checked-box-shadow-length: 0 0 0.5em !default;
|
|
6
|
-
$radio-checked-box-shadow-opacity: 0.8 !default;
|
|
7
|
-
$radio-box-shadow: $control-box-shadow !default;
|
|
8
|
-
$radio-disabled-opacity: var(--#{$prefix}base-disabled-opacity) !default;
|
|
9
|
-
$radio-label-padding: 0 0 0 0.5em !default;
|
|
10
|
-
$radio-margin-sibiling: 0.5em !default;
|
|
11
|
-
$radio-size: 1rem !default;
|
|
12
|
-
$radio-line-height: 1.25 !default;
|
|
13
|
-
/* @docs */
|
|
14
|
-
|
|
15
|
-
// filled svg calculation
|
|
16
|
-
@function svg_radio_fill() {
|
|
17
|
-
$start: '<svg width="100%" height="100%" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg" fill="#e11919" stroke="#000" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;">';
|
|
18
|
-
$content: '<g id="SVGRepo_bgCarrier" stroke-width="0"></g>' +
|
|
19
|
-
'<g id="SVGRepo_iconCarrier">' +
|
|
20
|
-
'<path d="M483 260c0-123-100-223-223-223S37 137 37 260s100 223 223 223S483 383 483 260Z" style="fill:none;stroke:#000;stroke-miterlimit:10;stroke-width:64px"></path>' +
|
|
21
|
-
'<circle cx="256" cy="256" r="144"></circle>' + "</g>";
|
|
22
|
-
|
|
23
|
-
$end: "</svg>";
|
|
24
|
-
|
|
25
|
-
@return svg-encode("#{$start}#{$content}#{$end}");
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// empty svg calculation
|
|
29
|
-
@function svg_radio_empty() {
|
|
30
|
-
$start: '<svg width="100%" height="100%" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg" fill="#000" stroke="#000" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;">';
|
|
31
|
-
$content: '<g id="SVGRepo_bgCarrier" stroke-width="0"></g>' +
|
|
32
|
-
'<g id="SVGRepo_iconCarrier">' +
|
|
33
|
-
'<path d="M483 260c0-123-100-223-223-223S37 137 37 260s100 223 223 223S483 383 483 260Z" style="fill:none;stroke:#000;stroke-miterlimit:10;stroke-width:64px"></path>' +
|
|
34
|
-
"</g>";
|
|
35
|
-
$end: "</svg>";
|
|
36
|
-
|
|
37
|
-
@return svg-encode("#{$start}#{$content}#{$end}");
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.o-radio {
|
|
41
|
-
@include unselectable;
|
|
42
|
-
display: inline-flex;
|
|
43
|
-
align-items: center;
|
|
44
|
-
cursor: pointer;
|
|
45
|
-
line-height: var(--#{$prefix}radio-line-height, $radio-line-height);
|
|
46
|
-
margin-right: var(--#{$prefix}radio-margin-sibiling, $radio-margin-sibiling);
|
|
47
|
-
|
|
48
|
-
&__input {
|
|
49
|
-
font-size: var(--#{$prefix}radio-font-size, inherit);
|
|
50
|
-
width: var(--#{$prefix}radio-size, $radio-size);
|
|
51
|
-
height: var(--#{$prefix}radio-size, $radio-size);
|
|
52
|
-
margin: 0;
|
|
53
|
-
vertical-align: top;
|
|
54
|
-
-webkit-appearance: none;
|
|
55
|
-
-moz-appearance: none;
|
|
56
|
-
appearance: none;
|
|
57
|
-
-webkit-print-color-adjust: exact;
|
|
58
|
-
print-color-adjust: exact;
|
|
59
|
-
cursor: pointer;
|
|
60
|
-
box-shadow: var(--#{$prefix}radio-box-shadow, $radio-box-shadow);
|
|
61
|
-
border-radius: 50%;
|
|
62
|
-
background: var(
|
|
63
|
-
--#{$prefix}radio-active-background-color,
|
|
64
|
-
$radio-active-background-color
|
|
65
|
-
);
|
|
66
|
-
mask-image: url(svg_radio_empty());
|
|
67
|
-
background-image: none;
|
|
68
|
-
background-position: center;
|
|
69
|
-
background-size: contain;
|
|
70
|
-
background-repeat: no-repeat;
|
|
71
|
-
|
|
72
|
-
transition: background var(--#{$prefix}transition-duration)
|
|
73
|
-
var(--#{$prefix}transition-timing);
|
|
74
|
-
|
|
75
|
-
&--checked {
|
|
76
|
-
mask-image: url(svg_radio_fill());
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
&__label {
|
|
81
|
-
padding: var(--#{$prefix}radio-label-padding, $radio-label-padding);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
&--disabled {
|
|
85
|
-
opacity: var(--#{$prefix}radio-disabled-opacity, $radio-disabled-opacity);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
// size variants
|
|
89
|
-
@each $name, $value in $sizes {
|
|
90
|
-
&--#{$name} {
|
|
91
|
-
--#{$prefix}radio-font-size: #{$value};
|
|
92
|
-
--#{$prefix}radio-size: #{$value};
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// color variants
|
|
97
|
-
@each $name, $pair in $colors {
|
|
98
|
-
$color: list.nth($pair, 1);
|
|
99
|
-
$color-invert: list.nth($pair, 2);
|
|
100
|
-
|
|
101
|
-
&--#{$name} {
|
|
102
|
-
--#{$prefix}focus: #{createFocus($color)};
|
|
103
|
-
--#{$prefix}radio-active-background-color: #{$color};
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
// focus effect
|
|
108
|
-
&:focus &__input,
|
|
109
|
-
&:focus-within &__input {
|
|
110
|
-
box-shadow: 0 0 0 0.25rem var(--#{$prefix}focus);
|
|
111
|
-
}
|
|
112
|
-
}
|