@transferwise/neptune-css 0.0.0-experimental-2acee4e → 0.0.0-experimental-420990c

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.
@@ -1,5 +1,4 @@
1
1
  @media (min-width: 768px) {
2
- }@media (min-width: 768px) {
3
2
  }.close {
4
3
  float: right;
5
4
  color: #0097c7;
@@ -185,7 +184,6 @@
185
184
  margin-left: -7px;
186
185
  }[dir="rtl"] .popover.top-left::before {
187
186
  left: 29px;
188
- right: auto;
189
187
  right: initial;
190
188
  }[dir="rtl"] .popover.top-left::before {
191
189
  right: auto;
@@ -203,7 +201,6 @@
203
201
  margin-left: -7px;
204
202
  }[dir="rtl"] .popover.top-right::before {
205
203
  right: 29px;
206
- left: auto;
207
204
  left: initial;
208
205
  }[dir="rtl"] .popover.top-right::before {
209
206
  left: auto;
@@ -258,7 +255,6 @@
258
255
  margin-left: -7px;
259
256
  }[dir="rtl"] .popover.bottom-left::before {
260
257
  left: 29px;
261
- right: auto;
262
258
  right: initial;
263
259
  }[dir="rtl"] .popover.bottom-left::before {
264
260
  right: auto;
@@ -276,7 +272,6 @@
276
272
  margin-left: -7px;
277
273
  }[dir="rtl"] .popover.bottom-right::before {
278
274
  left: 29px;
279
- right: auto;
280
275
  right: initial;
281
276
  }[dir="rtl"] .popover.bottom-right::before {
282
277
  right: auto;
@@ -292,7 +287,6 @@
292
287
  left: auto;
293
288
  right: -7px;
294
289
  }[dir="rtl"] .popover.left::before {
295
- right: auto;
296
290
  left: auto;
297
291
  left: initial;
298
292
  }[dir="rtl"] .popover.left::before {
@@ -305,7 +299,6 @@
305
299
  left: auto;
306
300
  right: -7px;
307
301
  }[dir="rtl"] .popover.left-top::before {
308
- right: auto;
309
302
  left: auto;
310
303
  left: initial;
311
304
  }[dir="rtl"] .popover.left-top::before {
@@ -318,7 +311,6 @@
318
311
  left: auto;
319
312
  right: -7px;
320
313
  }[dir="rtl"] .popover.left-bottom::before {
321
- right: auto;
322
314
  left: auto;
323
315
  left: initial;
324
316
  }[dir="rtl"] .popover.left-bottom::before {
@@ -1,5 +1,4 @@
1
1
  @media (min-width: 768px) {
2
- }@media (min-width: 768px) {
3
2
  }.tooltip {
4
3
  position: absolute;
5
4
  z-index: 1070;
@@ -172,11 +172,11 @@
172
172
  .rounded-sm {
173
173
  border-radius: 2px;
174
174
  }
175
- .img-rounded {
175
+ .rounded {
176
176
  border-radius: 10px;
177
177
  border-radius: var(--radius-small);
178
178
  }
179
- .img-circle {
179
+ .rounded-full {
180
180
  border-radius: 9999px;
181
181
  border-radius: var(--radius-full);
182
182
  }
@@ -286,7 +286,7 @@ a.text-inverse:focus {
286
286
  .visible-xl-inline {
287
287
  display: none !important;
288
288
  }
289
- @media not all and (min-width: 576px) {
289
+ @media (max-width: 575px) {
290
290
  .hidden-xs {
291
291
  display: none !important;
292
292
  }
@@ -309,7 +309,7 @@ a.text-inverse:focus {
309
309
  display: inline-flex;
310
310
  }
311
311
  }
312
- @media (--screen-sm) and not all and (--screen-md) {
312
+ @media (min-width: 576px) and (max-width: 767px) {
313
313
  .hidden-sm {
314
314
  display: none !important;
315
315
  }
@@ -332,7 +332,7 @@ a.text-inverse:focus {
332
332
  display: inline-flex;
333
333
  }
334
334
  }
335
- @media (--screen-md) and not all and (--screen-lg) {
335
+ @media (min-width: 768px) and (max-width: 991px) {
336
336
  .hidden-md {
337
337
  display: none !important;
338
338
  }
@@ -355,7 +355,7 @@ a.text-inverse:focus {
355
355
  display: inline-flex;
356
356
  }
357
357
  }
358
- @media (--screen-lg) and not all and (--screen-xl) {
358
+ @media (min-width: 992px) and (max-width: 1199px) {
359
359
  .hidden-lg {
360
360
  display: none !important;
361
361
  }
@@ -551,9 +551,6 @@ a.text-inverse:focus {
551
551
  float: none !important;
552
552
  }
553
553
  }
554
- .font-italic {
555
- font-style: italic !important;
556
- }
557
554
  .font-weight-normal {
558
555
  font-weight: 400 !important;
559
556
  font-weight: var(--font-weight-regular) !important;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@transferwise/neptune-css",
3
3
  "description": "Neptune CSS library",
4
- "version": "0.0.0-experimental-2acee4e",
4
+ "version": "0.0.0-experimental-420990c",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -5,6 +5,7 @@
5
5
  @import (reference) "../mixins/_logical-properties.less";
6
6
  @import (reference) "../mixins/_links.less";
7
7
  @import (reference) "../core/_typography.less";
8
+ @import (reference) "../utilities/border-radius.less";
8
9
  @import "../../variables/legacy-variables.less";
9
10
 
10
11
  /* TODO: Remove utility imports to prevent duplicates */
@@ -336,6 +337,14 @@ video {
336
337
  vertical-align: middle;
337
338
  }
338
339
 
340
+ .img-rounded {
341
+ .rounded();
342
+ }
343
+
344
+ .img-circle {
345
+ .rounded-full();
346
+ }
347
+
339
348
  .disabled,
340
349
  :disabled {
341
350
  filter: grayscale(1);
@@ -5,7 +5,6 @@
5
5
 
6
6
  /* TODO: Remove utility imports to prevent duplicates */
7
7
  @import "../utilities/color.less";
8
- @import "../utilities/font-style.less";
9
8
  @import "../utilities/font-weight.less";
10
9
  @import "../utilities/max-width.less";
11
10
  @import "../utilities/overflow-wrap.less";
@@ -15,6 +14,13 @@
15
14
  @import "../utilities/text-transform.less";
16
15
  @import "../utilities/white-space.less";
17
16
 
17
+ /**
18
+ * @deprecated Obsolete since the brand has turned green.
19
+ */
20
+ .font-italic {
21
+ font-style: italic !important;
22
+ }
23
+
18
24
  /**
19
25
  * @deprecated Obsolete since the brand has turned green.
20
26
  */
@@ -45,5 +45,7 @@
45
45
  @import "./table.less";
46
46
  @import "./tooltip.less";
47
47
  @import "./tick.less";
48
- @import "./utilities.less";
49
48
  @import "./wells.less";
49
+
50
+ // Utilities, should always be kept last
51
+ @import (multiple) "./utilities.less";
@@ -2,10 +2,10 @@
2
2
  border-radius: 2px;
3
3
  }
4
4
 
5
- .img-rounded {
5
+ .rounded {
6
6
  border-radius: var(--radius-small);
7
7
  }
8
8
 
9
- .img-circle {
9
+ .rounded-full {
10
10
  border-radius: var(--radius-full);
11
11
  }
@@ -44,7 +44,7 @@
44
44
  display: none !important;
45
45
  }
46
46
 
47
- @media not all and (--screen-sm) {
47
+ @media (--screen-xs-max) {
48
48
  .hidden-xs {
49
49
  display: none !important;
50
50
  }
@@ -72,7 +72,7 @@
72
72
  display: inline-flex;
73
73
  }
74
74
 
75
- @media not all and (--screen-md) {
75
+ @media (--screen-sm-max) {
76
76
  .hidden-sm {
77
77
  display: none !important;
78
78
  }
@@ -101,7 +101,7 @@
101
101
  display: inline-flex;
102
102
  }
103
103
 
104
- @media not all and (--screen-lg) {
104
+ @media (--screen-md-max) {
105
105
  .hidden-md {
106
106
  display: none !important;
107
107
  }
@@ -130,7 +130,7 @@
130
130
  display: inline-flex;
131
131
  }
132
132
 
133
- @media not all and (--screen-xl) {
133
+ @media (--screen-lg-max) {
134
134
  .hidden-lg {
135
135
  display: none !important;
136
136
  }
@@ -13,7 +13,6 @@
13
13
  @import "./utilities/flex-grow.less";
14
14
  @import "./utilities/flex-wrap.less";
15
15
  @import "./utilities/float.less";
16
- @import "./utilities/font-style.less";
17
16
  @import "./utilities/font-weight.less";
18
17
  @import "./utilities/gap.less";
19
18
  @import "./utilities/justify-content.less";
@@ -1,3 +0,0 @@
1
- .font-italic {
2
- font-style: italic !important;
3
- }