@transferwise/neptune-css 10.0.6-beta.32 → 10.1.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/CHANGELOG.md +11 -0
- package/README.md +1 -1
- package/dist/css/accordion.css +1 -1
- package/dist/css/alerts.css +1 -1
- package/dist/css/background.css +1 -1
- package/dist/css/badge.css +1 -1
- package/dist/css/breadcrumbs.css +1 -1
- package/dist/css/button-groups.css +1 -1
- package/dist/css/buttons.css +1 -1
- package/dist/css/chevron.css +1 -1
- package/dist/css/circles.css +1 -1
- package/dist/css/close.css +1 -1
- package/dist/css/column-layout.css +1 -1
- package/dist/css/currency-flags.css +1 -1
- package/dist/css/decision.css +1 -1
- package/dist/css/droppable.css +1 -1
- package/dist/css/flex.css +1 -1
- package/dist/css/footer.css +1 -1
- package/dist/css/forms.css +1 -1
- package/dist/css/grid.css +1 -1
- package/dist/css/input-groups.css +1 -1
- package/dist/css/link-callout.css +1 -1
- package/dist/css/list-group.css +1 -1
- package/dist/css/media.css +1 -1
- package/dist/css/modals.css +1 -1
- package/dist/css/navbar.css +1 -1
- package/dist/css/navs.css +1 -1
- package/dist/css/neptune-addons.css +1 -1
- package/dist/css/neptune-core.css +1 -1
- package/dist/css/neptune-social-media.css +1 -1
- package/dist/css/neptune.css +1 -1
- package/dist/css/panels.css +1 -1
- package/dist/css/popovers.css +1 -1
- package/dist/css/process.css +1 -1
- package/dist/css/progress-bars.css +1 -1
- package/dist/css/select.css +1 -1
- package/dist/css/sequences.css +1 -1
- package/dist/css/table.css +1 -1
- package/dist/css/tick.css +1 -1
- package/dist/css/tooltip.css +1 -1
- package/dist/css/utilities.css +1 -1
- package/dist/css/wells.css +1 -1
- package/dist/less/neptune-tokens.less +78 -85
- package/dist/props/neptune-tokens.css +41 -89
- package/package.json +3 -3
- package/src/less/addons/_background-utilities.less +6 -31
- package/src/less/addons/_spacing-utilities.less +4 -4
- package/src/less/alerts.less +14 -14
- package/src/less/badge.less +4 -65
- package/src/less/breadcrumbs.less +4 -25
- package/src/less/button-groups.less +38 -45
- package/src/less/buttons.less +107 -90
- package/src/less/chevron.less +1 -1
- package/src/less/circles.less +19 -206
- package/src/less/close.less +6 -38
- package/src/less/column-layout.less +3 -160
- package/src/less/core/_scaffolding.less +27 -36
- package/src/less/core/_typography-utilities.less +45 -59
- package/src/less/core/_typography.less +111 -126
- package/src/less/currency-flags.less +6 -4
- package/src/less/decision.less +9 -4
- package/src/less/droppable.less +3 -202
- package/src/less/flex.less +16 -17
- package/src/less/footer.less +19 -18
- package/src/less/forms/bootstrap-forms.less +95 -105
- package/src/less/forms/checkbox-radio.less +52 -51
- package/src/less/grid.less +22 -23
- package/src/less/input-groups.less +48 -47
- package/src/less/link-callout.less +1 -4
- package/src/less/list-group.less +4 -281
- package/src/less/media.less +5 -8
- package/src/less/mixins/_alerts.less +7 -15
- package/src/less/mixins/_arrows.less +7 -13
- package/src/less/mixins/_border-radius.less +8 -1
- package/src/less/mixins/_buttons.less +5 -5
- package/src/less/mixins/_forms.less +12 -16
- package/src/less/mixins/_grid-framework.less +8 -11
- package/src/less/mixins/_grid.less +36 -52
- package/src/less/mixins/_spacing.less +10 -20
- package/src/less/mixins/_table-row.less +1 -1
- package/src/less/mixins/_text-emphasis.less +1 -7
- package/src/less/modals.less +23 -53
- package/src/less/navbar.less +20 -16
- package/src/less/navs.less +3 -348
- package/src/less/neptune-social-media.less +6 -11
- package/src/less/neptune.bundle.less +1 -2
- package/src/less/panels.less +4 -409
- package/src/less/popovers.less +5 -368
- package/src/less/process.less +3 -358
- package/src/less/progress-bars.less +9 -14
- package/src/less/select.less +6 -8
- package/src/less/sequences.less +8 -504
- package/src/less/table.less +54 -40
- package/src/less/tick.less +1 -14
- package/src/less/tooltip.less +4 -123
- package/src/less/utilities.less +4 -134
- package/src/less/variables/_typography.less +0 -2
- package/src/props/neptune-tokens.css +1 -2
- package/src/variables/neptune-tokens.less +3 -1
- package/dist/css/dropdowns.css +0 -1
- package/dist/css/navbar-base.css +0 -1
- package/src/less/addons/_utilities.less +0 -141
- package/src/less/dropdowns.less +0 -362
- package/src/less/mixins/_center-block.less +0 -7
- package/src/less/mixins/_circle.less +0 -11
- package/src/less/mixins/_hide-text.less +0 -20
- package/src/less/mixins/_list-group.less +0 -23
- package/src/less/mixins/_logical-properties-IE-friendly.less +0 -329
- package/src/less/mixins/_logical-properties-modern-browsers.less +0 -226
- package/src/less/mixins/_logical-properties.less +0 -5
- package/src/less/mixins/_panels.less +0 -23
- package/src/less/mixins/_physical-properties.less +0 -111
- package/src/less/mixins/_reset-text.less +0 -22
- package/src/less/mixins/_sequence.less +0 -197
- package/src/less/navbar-base.less +0 -1382
|
@@ -1,329 +0,0 @@
|
|
|
1
|
-
// Mixin to support Logical properties/values for IE
|
|
2
|
-
|
|
3
|
-
// CSS property: float: Flow-relative values inline-start and inline-end: https://caniuse.com/mdn-css_properties_float_flow_relative_values
|
|
4
|
-
|
|
5
|
-
.float(@direction) {
|
|
6
|
-
& when (@direction = left) {
|
|
7
|
-
[dir="rtl"] & {
|
|
8
|
-
float: right;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
float: @direction;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
& when (@direction = right) {
|
|
15
|
-
[dir="rtl"] & {
|
|
16
|
-
float: left;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
float: @direction;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
// CSS property: clear: Flow-relative values inline-start and inline-end: https://caniuse.com/mdn-css_properties_clear_flow_relative_values
|
|
24
|
-
|
|
25
|
-
.clear(@direction) {
|
|
26
|
-
& when (@direction = left) {
|
|
27
|
-
[dir="rtl"] & {
|
|
28
|
-
clear: right;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
clear: @direction;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
& when (@direction = right) {
|
|
35
|
-
[dir="rtl"] & {
|
|
36
|
-
clear: left;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
clear: @direction;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
// CSS property: text-align: Flow-relative values start and end: https://caniuse.com/mdn-css_properties_text-align_flow_relative_values_start_and_end
|
|
44
|
-
|
|
45
|
-
.text-align(@direction) {
|
|
46
|
-
& when (@direction = left) {
|
|
47
|
-
[dir="rtl"] & {
|
|
48
|
-
text-align: right;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
text-align: left;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
& when (@direction = right) {
|
|
55
|
-
[dir="rtl"] & {
|
|
56
|
-
text-align: left;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
text-align: right;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
// CSS Logical Properties: https://caniuse.com/css-logical-props
|
|
64
|
-
|
|
65
|
-
.padding(@direction, @value) {
|
|
66
|
-
& when (@direction = left) {
|
|
67
|
-
[dir="rtl"] & {
|
|
68
|
-
padding-right: @value;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
html:not([dir="rtl"]) & {
|
|
72
|
-
padding-@{direction}: @value;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
& when (@direction = right) {
|
|
77
|
-
[dir="rtl"] & {
|
|
78
|
-
padding-left: @value;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
html:not([dir="rtl"]) & {
|
|
82
|
-
padding-@{direction}: @value;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
// Use only if the right and left values are different or you have to step up specificity of the padding.
|
|
88
|
-
// Use for single value shorthand 'padding: var(--foo);' -> '.padding-shorthand(var(--foo))'
|
|
89
|
-
// Use for multiple value shorthand 'padding: var(--foo1) var(--foo2) var(--foo3) var(--foo4);' -> '.padding-shorthand(var(--foo1), var(--foo2), var(--foo3), var(--foo4))'
|
|
90
|
-
|
|
91
|
-
.padding-shorthand(@value1, @value2: ~'', @value3: ~'', @value4: ~'') {
|
|
92
|
-
[dir="rtl"] & {
|
|
93
|
-
padding: @value1 @value4 @value3 @value2;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
html:not([dir="rtl"]) & {
|
|
97
|
-
padding: @value1 @value2 @value3 @value4;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
// CSS Logical Properties: https://caniuse.com/css-logical-props
|
|
102
|
-
|
|
103
|
-
.margin(@direction, @value) {
|
|
104
|
-
& when (@direction = left) {
|
|
105
|
-
[dir="rtl"] & {
|
|
106
|
-
margin-right: @value;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
html:not([dir="rtl"]) & {
|
|
110
|
-
margin-@{direction}: @value;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
& when (@direction = right) {
|
|
115
|
-
[dir="rtl"] & {
|
|
116
|
-
margin-left: @value;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
html:not([dir="rtl"]) & {
|
|
120
|
-
margin-@{direction}: @value;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
// Use only if the right and left values are different or you have to step up specificity of the margin.
|
|
126
|
-
// Use for single value shorthand 'margin: var(--foo);' -> '.margin-shorthand(var(--foo))'
|
|
127
|
-
// Use for multiple value shorthand 'margin: var(--foo1) var(--foo2) var(--foo3) var(--foo4);' -> '.margin-shorthand(var(--foo1), var(--foo2), var(--foo3), var(--foo4))'
|
|
128
|
-
|
|
129
|
-
.margin-shorthand(@value1, @value2: ~'', @value3: ~'', @value4: ~'') {
|
|
130
|
-
[dir="rtl"] & {
|
|
131
|
-
margin: @value1 @value4 @value3 @value2;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
html:not([dir="rtl"]) & {
|
|
135
|
-
margin: @value1 @value2 @value3 @value4;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
// CSS property: inset-inline (positions): https://caniuse.com/mdn-css_properties_inset-inline
|
|
140
|
-
|
|
141
|
-
.left(@value) {
|
|
142
|
-
[dir="rtl"] & {
|
|
143
|
-
right: @value;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
html:not([dir="rtl"]) & {
|
|
147
|
-
left: @value;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.right(@value) {
|
|
152
|
-
[dir="rtl"] & {
|
|
153
|
-
left: @value;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
html:not([dir="rtl"]) & {
|
|
157
|
-
right: @value;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
// CSS property: border-inline-start https://caniuse.com/mdn-css_properties_border-inline-start
|
|
162
|
-
|
|
163
|
-
.border(@direction, @size, @style: ~'', @color: ~'') {
|
|
164
|
-
& when (@direction = left) {
|
|
165
|
-
[dir="rtl"] & {
|
|
166
|
-
border-right: @size @style @color;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
html:not([dir="rtl"]) & {
|
|
170
|
-
border-@{direction}: @size @style @color;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
& when (@direction = right) {
|
|
174
|
-
[dir="rtl"] & {
|
|
175
|
-
border-left: @size @style @color;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
html:not([dir="rtl"]) & {
|
|
179
|
-
border-@{direction}: @size @style @color;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.border-width(@direction, @size) {
|
|
185
|
-
& when (@direction = left) {
|
|
186
|
-
[dir="rtl"] & {
|
|
187
|
-
border-right-width: @size;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
html:not([dir="rtl"]) & {
|
|
191
|
-
border-@{direction}-width: @size;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
& when (@direction = right) {
|
|
196
|
-
[dir="rtl"] & {
|
|
197
|
-
border-left-width: @size;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
html:not([dir="rtl"]) & {
|
|
201
|
-
border-@{direction}-width: @size;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
// CSS property: border-start-start-radius: https://caniuse.com/mdn-css_properties_border-start-start-radius
|
|
207
|
-
|
|
208
|
-
// | top-left | top-right |
|
|
209
|
-
// | bottom-left | bottom-right |
|
|
210
|
-
|
|
211
|
-
.border-radius(@direction, @radius) {
|
|
212
|
-
& when (@direction = left) {
|
|
213
|
-
[dir="rtl"] & {
|
|
214
|
-
border-bottom-right-radius: @radius;
|
|
215
|
-
border-top-right-radius: @radius;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
html:not([dir="rtl"]) & {
|
|
219
|
-
border-bottom-@{direction}-radius: @radius;
|
|
220
|
-
border-top-@{direction}-radius: @radius;
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
& when (@direction = right) {
|
|
225
|
-
[dir="rtl"] & {
|
|
226
|
-
border-bottom-left-radius: @radius;
|
|
227
|
-
border-top-left-radius: @radius;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
html:not([dir="rtl"]) & {
|
|
231
|
-
border-bottom-@{direction}-radius: @radius;
|
|
232
|
-
border-top-@{direction}-radius: @radius;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
.border-top-dir-radius(@direction, @radius) {
|
|
238
|
-
& when (@direction = left) {
|
|
239
|
-
[dir="rtl"] & {
|
|
240
|
-
border-top-right-radius: @radius;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
html:not([dir="rtl"]) & {
|
|
244
|
-
border-top-@{direction}-radius: @radius;
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
& when (@direction = right) {
|
|
249
|
-
[dir="rtl"] & {
|
|
250
|
-
border-top-left-radius: @radius;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
html:not([dir="rtl"]) & {
|
|
254
|
-
border-top-@{direction}-radius: @radius;
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
.border-bottom-dir-radius(@direction, @radius) {
|
|
260
|
-
& when (@direction = left) {
|
|
261
|
-
[dir="rtl"] & {
|
|
262
|
-
border-bottom-right-radius: @radius;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
html:not([dir="rtl"]) & {
|
|
266
|
-
border-bottom-@{direction}-radius: @radius;
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
& when (@direction = right) {
|
|
271
|
-
[dir="rtl"] & {
|
|
272
|
-
border-bottom-left-radius: @radius;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
html:not([dir="rtl"]) & {
|
|
276
|
-
border-bottom-@{direction}-radius: @radius;
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
// Background position
|
|
282
|
-
|
|
283
|
-
.background-position(@direction, @vertical-direction: ~'') {
|
|
284
|
-
& when (@direction = left) {
|
|
285
|
-
[dir="rtl"] & {
|
|
286
|
-
background-position: right @vertical-direction;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
background-position: left @vertical-direction;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
& when (@direction = right) {
|
|
293
|
-
[dir="rtl"] & {
|
|
294
|
-
background-position: left @vertical-direction;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
background-position: right @vertical-direction;
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
// Horizontal linear gradient
|
|
302
|
-
|
|
303
|
-
.background-linear-gradient(@direction, @color1, @color2) {
|
|
304
|
-
& when (@direction = left) {
|
|
305
|
-
[dir="rtl"] & {
|
|
306
|
-
background: linear-gradient(to right, @color1, @color2);
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
background: linear-gradient(to left, @color1, @color2);
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
& when (@direction = right) {
|
|
313
|
-
[dir="rtl"] & {
|
|
314
|
-
background: linear-gradient(to left, @color1, @color2);
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
background: linear-gradient(to right, @color1, @color2);
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
// Horizontal translations
|
|
322
|
-
|
|
323
|
-
.translateX(@value, @transform2: ~'', @transform3: ~'') {
|
|
324
|
-
[dir="rtl"] & {
|
|
325
|
-
transform: translateX(@value * -1) @transform2 @transform3;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
transform: translateX(@value) @transform2 @transform3;
|
|
329
|
-
}
|
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
// Mixin to support Logical properties/values for modern browsers
|
|
3
|
-
|
|
4
|
-
// Custom property for the cases which doesn't exist a logical value. (Translations, linear-gradients)
|
|
5
|
-
:root {
|
|
6
|
-
--left: left;
|
|
7
|
-
--right: right;
|
|
8
|
-
|
|
9
|
-
&[dir="rtl"] {
|
|
10
|
-
--left: right;
|
|
11
|
-
--right: left;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
// CSS property: float: Flow-relative values inline-start and inline-end: https://caniuse.com/mdn-css_properties_float_flow_relative_values
|
|
16
|
-
// Still needs support in Chrome / Safari / Edge
|
|
17
|
-
|
|
18
|
-
.float(@direction) {
|
|
19
|
-
& when (@direction = left) {
|
|
20
|
-
[dir="rtl"] & {
|
|
21
|
-
float: right;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
float: @direction;
|
|
25
|
-
float: inline-start;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
& when (@direction = right) {
|
|
29
|
-
[dir="rtl"] & {
|
|
30
|
-
float: left;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
float: @direction;
|
|
34
|
-
float: inline-end;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// CSS property: clear: Flow-relative values inline-start and inline-end: https://caniuse.com/mdn-css_properties_clear_flow_relative_values
|
|
39
|
-
|
|
40
|
-
.clear(@direction) {
|
|
41
|
-
& when (@direction = left) {
|
|
42
|
-
[dir="rtl"] & {
|
|
43
|
-
clear: right;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
clear: @direction;
|
|
47
|
-
clear: inline-start;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
& when (@direction = right) {
|
|
51
|
-
[dir="rtl"] & {
|
|
52
|
-
clear: left;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
clear: @direction;
|
|
56
|
-
clear: inline-end;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// CSS property: text-align: Flow-relative values start and end: https://caniuse.com/mdn-css_properties_text-align_flow_relative_values_start_and_end
|
|
61
|
-
|
|
62
|
-
.text-align(@direction) {
|
|
63
|
-
& when (@direction = left) {
|
|
64
|
-
text-align: start;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
& when (@direction = right) {
|
|
68
|
-
text-align: end;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
// CSS Logical Properties: https://caniuse.com/css-logical-props
|
|
73
|
-
|
|
74
|
-
.padding(@direction, @value) {
|
|
75
|
-
& when (@direction = left) {
|
|
76
|
-
padding-inline-start: @value;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
& when (@direction = right) {
|
|
80
|
-
padding-inline-end: @value;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
// Use only if the right and left values are different or you have to step up specificity of the padding.
|
|
85
|
-
// Use for single value shorthand 'padding: var(--foo);' -> '.padding-shorthand(var(--foo))'
|
|
86
|
-
// Use for multiple value shorthand 'padding: var(--foo1) var(--foo2) var(--foo3) var(--foo4);' -> '.padding-shorthand(var(--foo1), var(--foo2), var(--foo3), var(--foo4))'
|
|
87
|
-
|
|
88
|
-
.padding-shorthand(@value1, @value2: ~'', @value3: ~'', @value4: ~'') {
|
|
89
|
-
[dir="rtl"] & {
|
|
90
|
-
padding: @value1 @value4 @value3 @value2;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
html:not([dir="rtl"]) & {
|
|
94
|
-
padding: @value1 @value2 @value3 @value4;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// CSS Logical Properties: https://caniuse.com/css-logical-props
|
|
99
|
-
|
|
100
|
-
.margin(@direction, @value) {
|
|
101
|
-
& when (@direction = left) {
|
|
102
|
-
margin-inline-start: @value;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
& when (@direction = right) {
|
|
106
|
-
padding-inline-end: @value;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
// Use only if the right and left values are different or you have to step up specificity of the margin.
|
|
111
|
-
// Use for single value shorthand 'margin: var(--foo);' -> '.margin-shorthand(var(--foo))'
|
|
112
|
-
// Use for multiple value shorthand 'margin: var(--foo1) var(--foo2) var(--foo3) var(--foo4);' -> '.margin-shorthand(var(--foo1), var(--foo2), var(--foo3), var(--foo4))'
|
|
113
|
-
|
|
114
|
-
.margin-shorthand(@value1, @value2: ~'', @value3: ~'', @value4: ~'') {
|
|
115
|
-
[dir="rtl"] & {
|
|
116
|
-
margin: @value1 @value4 @value3 @value2;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
html:not([dir="rtl"]) & {
|
|
120
|
-
margin: @value1 @value2 @value3 @value4;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
// CSS property: inset-inline (positions): https://caniuse.com/mdn-css_properties_inset-inline
|
|
125
|
-
|
|
126
|
-
.left(@value) {
|
|
127
|
-
inset-inline-start: @value;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.right(@value) {
|
|
131
|
-
inset-inline-end: @value;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
// CSS property: border-inline-start https://caniuse.com/mdn-css_properties_border-inline-start
|
|
135
|
-
|
|
136
|
-
.border(@direction, @size, @style: ~'', @color: ~'') {
|
|
137
|
-
& when (@direction = left) {
|
|
138
|
-
border-inline-start: @size @style @color;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
& when (@direction = right) {
|
|
142
|
-
border-inline-end: @size @style @color;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.border-width(@direction, @size) {
|
|
147
|
-
& when (@direction = left) {
|
|
148
|
-
border-inline-start-width: @size;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
& when (@direction = right) {
|
|
152
|
-
border-inline-end-width: @size;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
// CSS property: border-start-start-radius: https://caniuse.com/mdn-css_properties_border-start-start-radius
|
|
157
|
-
// Still needs support in Safari
|
|
158
|
-
|
|
159
|
-
// | start-start | start-end |
|
|
160
|
-
// | end-start | end-end |
|
|
161
|
-
|
|
162
|
-
.border-radius(@direction, @radius) {
|
|
163
|
-
& when (@direction = left) {
|
|
164
|
-
border-start-start-radius: @radius;
|
|
165
|
-
border-end-start-radius: @radius;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
& when (@direction = right) {
|
|
169
|
-
border-start-end-radius: @radius;
|
|
170
|
-
border-end-end-radius: @radius;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.border-top-dir-radius(@direction, @radius) {
|
|
175
|
-
& when (@direction = left) {
|
|
176
|
-
border-start-start-radius: @radius;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
& when (@direction = right) {
|
|
180
|
-
border-start-end-radius: @radius;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.border-bottom-dir-radius(@direction, @radius) {
|
|
185
|
-
& when (@direction = left) {
|
|
186
|
-
border-end-start-radius: @radius;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
& when (@direction = right) {
|
|
190
|
-
border-end-end-radius: @radius;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
// Background position
|
|
195
|
-
|
|
196
|
-
.background-position(@direction, @vertical-direction: ~'') {
|
|
197
|
-
& when (@direction = left) {
|
|
198
|
-
background-position: var(--left) @vertical-direction;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
& when (@direction = right) {
|
|
202
|
-
background-position: var(--right) @vertical-direction;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
// Horizontal linear gradient
|
|
207
|
-
|
|
208
|
-
.background-linear-gradient(@direction, @color1, @color2) {
|
|
209
|
-
& when (@direction = left) {
|
|
210
|
-
background: linear-gradient(to var(--left), @color1, @color2);
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
& when (@direction = right) {
|
|
214
|
-
background: linear-gradient(to var(--right), @color1, @color2);
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
// Horizontal translations
|
|
219
|
-
|
|
220
|
-
.translateX(@value, @transform2: ~'', @transform3: ~'') {
|
|
221
|
-
[dir="rtl"] & {
|
|
222
|
-
transform: translateX(@value * -1) @transform2 @transform3;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
transform: translateX(@value) @transform2 @transform3;
|
|
226
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
.panel-variant(@border; @heading-text-color; @heading-bg-color; @heading-border) {
|
|
2
|
-
border-color: @border !important;
|
|
3
|
-
|
|
4
|
-
& > .panel-heading {
|
|
5
|
-
color: @heading-text-color;
|
|
6
|
-
border-color: @heading-border;
|
|
7
|
-
|
|
8
|
-
+ .panel-collapse > .panel-body {
|
|
9
|
-
border-top-color: @border;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.badge {
|
|
13
|
-
color: @heading-bg-color;
|
|
14
|
-
background-color: @heading-text-color;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
& > .panel-footer {
|
|
19
|
-
+ .panel-collapse > .panel-body {
|
|
20
|
-
border-bottom-color: @border;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
// Mixin to add physical properties/values without RTL support for a lighter bundle.
|
|
3
|
-
|
|
4
|
-
// Float left/right
|
|
5
|
-
|
|
6
|
-
.float(@direction) {
|
|
7
|
-
& when (@direction = left) {
|
|
8
|
-
float: @direction;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
& when (@direction = right) {
|
|
12
|
-
float: @direction;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
// Clear left/right
|
|
17
|
-
|
|
18
|
-
.clear(@direction) {
|
|
19
|
-
& when (@direction = left) {
|
|
20
|
-
clear: @direction;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
& when (@direction = right) {
|
|
24
|
-
clear: @direction;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// text-align: left/right
|
|
29
|
-
|
|
30
|
-
.text-align(@direction) {
|
|
31
|
-
& when (@direction = left) {
|
|
32
|
-
text-align: left;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
& when (@direction = right) {
|
|
36
|
-
text-align: right;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
// padding-left / padding-right
|
|
41
|
-
|
|
42
|
-
.padding(@direction, @value) {
|
|
43
|
-
& when (@direction = left) {
|
|
44
|
-
padding-left: @value;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
& when (@direction = right) {
|
|
48
|
-
padding-right: @value;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
// margin-left / margin-right
|
|
53
|
-
|
|
54
|
-
.margin(@direction, @value) {
|
|
55
|
-
& when (@direction = left) {
|
|
56
|
-
margin-left: @value;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
& when (@direction = right) {
|
|
60
|
-
padding-left: @value;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
// left / right (positions)
|
|
65
|
-
|
|
66
|
-
.left(@value) {
|
|
67
|
-
left: @value;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.right(@value) {
|
|
71
|
-
right: @value;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
// border-left / border-right
|
|
75
|
-
|
|
76
|
-
.border(@direction, @size, @style: ~'', @color: ~'') {
|
|
77
|
-
& when (@direction = left) {
|
|
78
|
-
border-left: @size @style @color;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
& when (@direction = right) {
|
|
82
|
-
border-right: @size @style @color;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.border-width(@direction, @size) {
|
|
87
|
-
& when (@direction = left) {
|
|
88
|
-
border-left-width: @size;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
& when (@direction = right) {
|
|
92
|
-
border-right-width: @size;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// Border radius
|
|
97
|
-
|
|
98
|
-
// | top-left | top-right |
|
|
99
|
-
// | bottom-left | bottom-right |
|
|
100
|
-
|
|
101
|
-
.border-radius(@direction, @radius) {
|
|
102
|
-
& when (@direction = left) {
|
|
103
|
-
border-top-left-radius: @radius;
|
|
104
|
-
border-bottom-left-radius: @radius;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
& when (@direction = right) {
|
|
108
|
-
border-top-right-radius: @radius;
|
|
109
|
-
border-bottom-right-radius: @radius;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
@import (reference) '_logical-properties.less';
|
|
2
|
-
|
|
3
|
-
.reset-text() {
|
|
4
|
-
font-family: @font-family-base;
|
|
5
|
-
|
|
6
|
-
// We deliberately do NOT reset font-size.
|
|
7
|
-
|
|
8
|
-
font-style: normal;
|
|
9
|
-
font-weight: normal;
|
|
10
|
-
letter-spacing: normal;
|
|
11
|
-
line-break: auto;
|
|
12
|
-
line-height: @line-height-base;
|
|
13
|
-
.text-align(left);
|
|
14
|
-
|
|
15
|
-
text-decoration: none;
|
|
16
|
-
text-shadow: none;
|
|
17
|
-
text-transform: none;
|
|
18
|
-
white-space: normal;
|
|
19
|
-
word-break: normal;
|
|
20
|
-
word-spacing: normal;
|
|
21
|
-
word-wrap: normal;
|
|
22
|
-
}
|