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