@oruga-ui/theme-oruga 0.5.1 → 0.6.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/README.md +4 -3
- package/dist/oruga.css +2 -2
- package/dist/scss/components/_autocomplete.scss +15 -15
- package/dist/scss/components/_button.scss +174 -165
- package/dist/scss/components/_carousel.scss +199 -177
- package/dist/scss/components/_checkbox.scss +130 -122
- package/dist/scss/components/_collapse.scss +11 -9
- package/dist/scss/components/_datepicker.scss +408 -416
- package/dist/scss/components/_datetimepicker.scss +8 -8
- package/dist/scss/components/_dropdown.scss +224 -206
- package/dist/scss/components/_field.scss +107 -106
- package/dist/scss/components/_icon.scss +44 -40
- package/dist/scss/components/_input.scss +127 -112
- package/dist/scss/components/_loading.scss +27 -24
- package/dist/scss/components/_menu.scss +100 -63
- package/dist/scss/components/_modal.scss +66 -66
- package/dist/scss/components/_notification.scss +146 -134
- package/dist/scss/components/_pagination.scss +227 -198
- package/dist/scss/components/_radio.scss +95 -74
- package/dist/scss/components/_select.scss +143 -120
- package/dist/scss/components/_sidebar.scss +120 -104
- package/dist/scss/components/_skeleton.scss +55 -55
- package/dist/scss/components/_slider.scss +166 -151
- package/dist/scss/components/_steps.scss +300 -287
- package/dist/scss/components/_switch.scss +115 -128
- package/dist/scss/components/_table.scss +363 -330
- package/dist/scss/components/_tabs.scss +295 -280
- package/dist/scss/components/_taginput.scss +95 -93
- package/dist/scss/components/_timepicker.scss +74 -68
- package/dist/scss/components/_tooltip.scss +522 -424
- package/dist/scss/components/_upload.scss +51 -48
- package/dist/scss/oruga.scss +0 -1
- package/dist/scss/utils/_animations.scss +97 -97
- package/dist/scss/utils/_base.scss +31 -14
- package/dist/scss/utils/_helpers.scss +65 -65
- package/dist/scss/utils/_root.scss +37 -44
- package/dist/scss/utils/_variables.scss +44 -44
- package/dist/theme.js +1 -1
- package/package.json +20 -19
|
@@ -4,66 +4,69 @@
|
|
|
4
4
|
$upload-draggable-border: 1px dashed var(--#{$prefix}grey-light) !default;
|
|
5
5
|
$upload-draggable-border-radius: var(--#{$prefix}base-border-radius) !default;
|
|
6
6
|
$upload-draggable-disabled-opacity: var(
|
|
7
|
-
|
|
7
|
+
--#{$prefix}base-disabled-opacity
|
|
8
8
|
) !default;
|
|
9
9
|
$upload-draggable-hover-border-color: var(--#{$prefix}grey) !default;
|
|
10
|
-
$upload-draggable-padding:
|
|
10
|
+
$upload-draggable-padding: 2em !default;
|
|
11
11
|
/* @docs */
|
|
12
12
|
|
|
13
|
-
.o-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
.o-upload {
|
|
14
|
+
position: relative;
|
|
15
|
+
display: inline-flex;
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
&--disabled {
|
|
18
|
+
opacity: var(
|
|
19
|
+
--#{$prefix}upload-draggable-disabled-opacity,
|
|
20
|
+
$upload-draggable-disabled-opacity
|
|
21
|
+
);
|
|
22
|
+
cursor: not-allowed;
|
|
23
|
+
}
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
&--expanded {
|
|
26
|
+
width: 100%;
|
|
27
|
+
}
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
&__draggable {
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
width: 100%;
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
33
|
+
padding: var(
|
|
34
|
+
--#{$prefix}upload-draggable-padding,
|
|
35
|
+
$upload-draggable-padding
|
|
36
|
+
);
|
|
37
|
+
border: var(
|
|
38
|
+
--#{$prefix}upload-draggable-border,
|
|
39
|
+
$upload-draggable-border
|
|
40
|
+
);
|
|
41
|
+
border-radius: var(
|
|
42
|
+
--#{$prefix}upload-draggable-border-radius,
|
|
43
|
+
$upload-draggable-border-radius
|
|
44
|
+
);
|
|
42
45
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
&--hovered {
|
|
47
|
+
border-color: var(
|
|
48
|
+
--#{$prefix}upload-draggable-hover-border-color,
|
|
49
|
+
$upload-draggable-hover-border-color
|
|
50
|
+
);
|
|
48
51
|
|
|
49
|
-
|
|
50
|
-
|
|
52
|
+
@each $name, $pair in $colors {
|
|
53
|
+
$color: list.nth($pair, 1);
|
|
51
54
|
|
|
52
|
-
|
|
53
|
-
|
|
55
|
+
&-#{$name} {
|
|
56
|
+
border-color: var(--#{$prefix}variant-#{$name}, $color);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
54
59
|
}
|
|
55
|
-
}
|
|
56
60
|
}
|
|
57
|
-
}
|
|
58
61
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
62
|
+
input[type="file"] {
|
|
63
|
+
position: absolute;
|
|
64
|
+
top: 0;
|
|
65
|
+
left: 0;
|
|
66
|
+
width: 100%;
|
|
67
|
+
height: 100%;
|
|
68
|
+
opacity: 0;
|
|
69
|
+
cursor: pointer;
|
|
70
|
+
z-index: -1;
|
|
71
|
+
}
|
|
69
72
|
}
|
package/dist/scss/oruga.scss
CHANGED
|
@@ -2,106 +2,106 @@
|
|
|
2
2
|
|
|
3
3
|
// Fade out
|
|
4
4
|
@keyframes fadeOut {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
from {
|
|
6
|
+
opacity: 1;
|
|
7
|
+
}
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
to {
|
|
10
|
+
opacity: 0;
|
|
11
|
+
}
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.fadeOut {
|
|
15
|
-
|
|
15
|
+
animation-name: fadeOut;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
@keyframes fadeOutDown {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
from {
|
|
20
|
+
opacity: 1;
|
|
21
|
+
}
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
to {
|
|
24
|
+
opacity: 0;
|
|
25
|
+
transform: translate3d(0, 100%, 0);
|
|
26
|
+
}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.fadeOutDown {
|
|
30
|
-
|
|
30
|
+
animation-name: fadeOutDown;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
@keyframes fadeOutUp {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
from {
|
|
35
|
+
opacity: 1;
|
|
36
|
+
}
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
to {
|
|
39
|
+
opacity: 0;
|
|
40
|
+
transform: translate3d(0, -100%, 0);
|
|
41
|
+
}
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
.fadeOutUp {
|
|
45
|
-
|
|
45
|
+
animation-name: fadeOutUp;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
// Fade In
|
|
49
49
|
@keyframes fadeIn {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
from {
|
|
51
|
+
opacity: 0;
|
|
52
|
+
}
|
|
53
53
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
to {
|
|
55
|
+
opacity: 1;
|
|
56
|
+
}
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
.fadeIn {
|
|
60
|
-
|
|
60
|
+
animation-name: fadeIn;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
@keyframes fadeInDown {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
64
|
+
from {
|
|
65
|
+
opacity: 0;
|
|
66
|
+
transform: translate3d(0, -100%, 0);
|
|
67
|
+
}
|
|
68
68
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
to {
|
|
70
|
+
opacity: 1;
|
|
71
|
+
transform: none;
|
|
72
|
+
}
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
.fadeInDown {
|
|
76
|
-
|
|
76
|
+
animation-name: fadeInDown;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
@keyframes fadeInUp {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
from {
|
|
81
|
+
opacity: 0;
|
|
82
|
+
transform: translate3d(0, 100%, 0);
|
|
83
|
+
}
|
|
84
84
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
85
|
+
to {
|
|
86
|
+
opacity: 1;
|
|
87
|
+
transform: none;
|
|
88
|
+
}
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
.fadeInUp {
|
|
92
|
-
|
|
92
|
+
animation-name: fadeInUp;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
@keyframes append-animate {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
96
|
+
from {
|
|
97
|
+
transform: scale(0);
|
|
98
|
+
opacity: 0;
|
|
99
|
+
}
|
|
100
100
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
101
|
+
to {
|
|
102
|
+
transform: scale(1);
|
|
103
|
+
opacity: 1;
|
|
104
|
+
}
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
/**
|
|
@@ -111,53 +111,53 @@
|
|
|
111
111
|
// Fade
|
|
112
112
|
.fade-enter-active,
|
|
113
113
|
.fade-leave-active {
|
|
114
|
-
|
|
114
|
+
transition: opacity $animation-speed $animation-timing;
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
.fade-enter,
|
|
118
118
|
.fade-enter-from,
|
|
119
119
|
.fade-leave-to {
|
|
120
|
-
|
|
120
|
+
opacity: 0;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
// Zoom In
|
|
124
124
|
.zoom-in-enter-active,
|
|
125
125
|
.zoom-in-leave-active {
|
|
126
|
-
|
|
126
|
+
transition: opacity $animation-speed $animation-timing;
|
|
127
127
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
128
|
+
.animation-content {
|
|
129
|
+
transition: transform $animation-speed $animation-timing;
|
|
130
|
+
}
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
.zoom-in-enter,
|
|
134
134
|
.zoom-in-enter-from,
|
|
135
135
|
.zoom-in-leave-active {
|
|
136
|
-
|
|
136
|
+
opacity: 0;
|
|
137
137
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
138
|
+
.animation-content {
|
|
139
|
+
transform: scale(0.95);
|
|
140
|
+
}
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
// Zoom Out
|
|
144
144
|
.zoom-out-enter-active,
|
|
145
145
|
.zoom-out-leave-active {
|
|
146
|
-
|
|
146
|
+
transition: opacity $animation-speed $animation-timing;
|
|
147
147
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
148
|
+
.animation-content {
|
|
149
|
+
transition: transform $animation-speed $animation-timing;
|
|
150
|
+
}
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
.zoom-out-enter,
|
|
154
154
|
.zoom-out-enter-from,
|
|
155
155
|
.zoom-out-leave-active {
|
|
156
|
-
|
|
156
|
+
opacity: 0;
|
|
157
157
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
158
|
+
.animation-content {
|
|
159
|
+
transform: scale(1.05);
|
|
160
|
+
}
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
// Slide
|
|
@@ -165,69 +165,69 @@
|
|
|
165
165
|
.slide-next-leave-active,
|
|
166
166
|
.slide-prev-enter-active,
|
|
167
167
|
.slide-prev-leave-active {
|
|
168
|
-
|
|
169
|
-
|
|
168
|
+
transition: transform $animation-speed-fast
|
|
169
|
+
cubic-bezier(0.785, 0.135, 0.15, 0.86);
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
.slide-prev-leave-to,
|
|
173
173
|
.slide-next-enter,
|
|
174
174
|
.slide-next-enter-from {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
175
|
+
transform: translate3d(-100%, 0, 0);
|
|
176
|
+
position: absolute;
|
|
177
|
+
width: 100%;
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
.slide-prev-enter,
|
|
181
181
|
.slide-prev-enter-from,
|
|
182
182
|
.slide-next-leave-to {
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
183
|
+
transform: translate3d(100%, 0, 0);
|
|
184
|
+
position: absolute;
|
|
185
|
+
width: 100%;
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
.slide-down-enter-active,
|
|
189
189
|
.slide-down-leave-active,
|
|
190
190
|
.slide-up-enter-active,
|
|
191
191
|
.slide-up-leave-active {
|
|
192
|
-
|
|
193
|
-
|
|
192
|
+
transition: transform $animation-speed-fast
|
|
193
|
+
cubic-bezier(0.785, 0.135, 0.15, 0.86);
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
.slide-down-enter,
|
|
197
197
|
.slide-up-leave-to,
|
|
198
198
|
.slide-down-enter-from {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
199
|
+
transform: translate3d(0, -100%, 0);
|
|
200
|
+
position: absolute;
|
|
201
|
+
height: 100%;
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
.slide-up-enter,
|
|
205
205
|
.slide-up-enter-from,
|
|
206
206
|
.slide-down-leave-to {
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
207
|
+
transform: translate3d(0, 100%, 0);
|
|
208
|
+
position: absolute;
|
|
209
|
+
height: 100%;
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
.slide-enter-active {
|
|
213
|
-
|
|
213
|
+
transition: $animation-speed $animation-timing;
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
.slide-leave-active {
|
|
217
|
-
|
|
218
|
-
|
|
217
|
+
transition: $animation-speed $animation-timing;
|
|
218
|
+
transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
.slide-leave,
|
|
222
222
|
.slide-enter-to,
|
|
223
223
|
.slide-leave-from {
|
|
224
|
-
|
|
225
|
-
|
|
224
|
+
max-height: 100px;
|
|
225
|
+
overflow: hidden;
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
.slide-enter,
|
|
229
229
|
.slide-enter-from,
|
|
230
230
|
.slide-leave-to {
|
|
231
|
-
|
|
232
|
-
|
|
231
|
+
overflow: hidden;
|
|
232
|
+
max-height: 0;
|
|
233
233
|
}
|
|
@@ -1,31 +1,48 @@
|
|
|
1
1
|
*,
|
|
2
2
|
:after,
|
|
3
3
|
:before {
|
|
4
|
-
|
|
4
|
+
box-sizing: inherit;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
html {
|
|
8
|
-
|
|
8
|
+
box-sizing: border-box;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
body {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
margin: 0;
|
|
13
|
+
padding: 0;
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
font-family: var(--#{$prefix}base-font-family, $base-font-family);
|
|
16
|
+
font-size: var(--#{$prefix}base-font-size, $base-font-size);
|
|
17
|
+
font-weight: var(--#{$prefix}base-font-weight, $base-font-weight);
|
|
18
|
+
line-height: var(--#{$prefix}base-line-height, $base-line-height);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
img,
|
|
22
|
+
video {
|
|
23
|
+
max-width: 100%;
|
|
24
|
+
height: auto;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
input,
|
|
28
|
+
button,
|
|
29
|
+
select,
|
|
30
|
+
optgroup,
|
|
31
|
+
textarea {
|
|
32
|
+
margin: 0;
|
|
33
|
+
font-family: inherit;
|
|
34
|
+
font-size: inherit;
|
|
35
|
+
line-height: inherit;
|
|
19
36
|
}
|
|
20
37
|
|
|
21
38
|
.o-noscroll {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
39
|
+
position: fixed;
|
|
40
|
+
width: 100%;
|
|
41
|
+
bottom: 0;
|
|
42
|
+
overflow-x: hidden;
|
|
43
|
+
overflow-y: scroll;
|
|
27
44
|
}
|
|
28
45
|
|
|
29
46
|
.o-clipped {
|
|
30
|
-
|
|
47
|
+
overflow: hidden;
|
|
31
48
|
}
|
|
@@ -16,18 +16,18 @@
|
|
|
16
16
|
/// Replacement. Default is ''.
|
|
17
17
|
/// @return {string} string with characters replaced.
|
|
18
18
|
@function str-replace($string, $search, $replace: "") {
|
|
19
|
-
|
|
19
|
+
$index: string.index($string, $search);
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
21
|
+
@return if(
|
|
22
|
+
$index,
|
|
23
|
+
string.slice($string, 1, $index - 1) + $replace +
|
|
24
|
+
str-replace(
|
|
25
|
+
string.slice($string, $index + string.length($search)),
|
|
26
|
+
$search,
|
|
27
|
+
$replace
|
|
28
|
+
),
|
|
29
|
+
$string
|
|
30
|
+
);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
/// Encodes an inline svg. Original source code: http://codepen.io/jakob-e/pen/doMoML
|
|
@@ -36,78 +36,78 @@
|
|
|
36
36
|
/// Inline svg to encode
|
|
37
37
|
/// @return {string} encoded svg.
|
|
38
38
|
@function svg-encode($svg) {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
// Chunk up string in order to avoid "stack level too deep" error
|
|
40
|
+
$encoded: "";
|
|
41
|
+
$slice: 2000;
|
|
42
|
+
$index: 0;
|
|
43
|
+
$loops: math.ceil(divide(string.length($svg), $slice));
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
45
|
+
@for $i from 1 through $loops {
|
|
46
|
+
$chunk: string.slice($svg, $index, $index + $slice - 1);
|
|
47
|
+
// Encode
|
|
48
|
+
$chunk: str-replace($chunk, '"', "'");
|
|
49
|
+
$chunk: str-replace($chunk, "%", "%25");
|
|
50
|
+
$chunk: str-replace($chunk, "#", "%23");
|
|
51
|
+
$chunk: str-replace($chunk, "{", "%7B");
|
|
52
|
+
$chunk: str-replace($chunk, "}", "%7D");
|
|
53
|
+
$chunk: str-replace($chunk, "<", "%3C");
|
|
54
|
+
$chunk: str-replace($chunk, ">", "%3E");
|
|
55
55
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
$encoded: #{$encoded}#{$chunk};
|
|
57
|
+
$index: $index + $slice;
|
|
58
|
+
}
|
|
59
59
|
|
|
60
|
-
|
|
60
|
+
@return "data:image/svg+xml,#{$encoded}";
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
@mixin unselectable {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
64
|
+
-webkit-touch-callout: none;
|
|
65
|
+
-webkit-user-select: none;
|
|
66
|
+
-moz-user-select: none;
|
|
67
|
+
-ms-user-select: none;
|
|
68
|
+
user-select: none;
|
|
69
69
|
}
|
|
70
70
|
@mixin side-flex-gap($gap) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
//flex-wrap: wrap;
|
|
72
|
+
margin-left: -$gap;
|
|
73
|
+
margin-right: -$gap;
|
|
74
74
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
75
|
+
& > * {
|
|
76
|
+
margin-left: $gap;
|
|
77
|
+
margin-right: $gap;
|
|
78
|
+
}
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
// Custom divide function by @mdo from https://github.com/twbs/bootstrap/pull/34245
|
|
82
82
|
// Replaces old slash division deprecated in Dart Sass
|
|
83
83
|
@function divide($dividend, $divisor, $precision: 10) {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
84
|
+
$sign: if($dividend > 0 and $divisor > 0, 1, -1);
|
|
85
|
+
$dividend: math.abs($dividend);
|
|
86
|
+
$divisor: math.abs($divisor);
|
|
87
|
+
$quotient: 0;
|
|
88
|
+
$remainder: $dividend;
|
|
89
|
+
@if $dividend == 0 {
|
|
90
|
+
@return 0;
|
|
91
|
+
}
|
|
92
|
+
@if $divisor == 0 {
|
|
93
|
+
@error "Cannot divide by 0";
|
|
94
|
+
}
|
|
95
|
+
@if $divisor == 1 {
|
|
96
|
+
@return $dividend;
|
|
97
|
+
}
|
|
98
98
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
99
|
+
@while $remainder >= $divisor {
|
|
100
|
+
$quotient: $quotient + 1;
|
|
101
|
+
$remainder: $remainder - $divisor;
|
|
102
|
+
}
|
|
103
|
+
@if $remainder > 0 and $precision > 0 {
|
|
104
|
+
$remainder: divide($remainder * 10, $divisor, $precision - 1) * 0.1;
|
|
105
|
+
}
|
|
106
106
|
|
|
107
|
-
|
|
107
|
+
@return ($quotient + $remainder) * $sign;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
// create a focus color based on a given color
|
|
111
111
|
@function createFocus($color) {
|
|
112
|
-
|
|
112
|
+
@return color.adjust($color, $alpha: -0.75);
|
|
113
113
|
}
|