@transferwise/neptune-css 0.0.0-experimental-2acee4e → 0.0.0-experimental-b089b8c

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.
@@ -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-b089b8c",
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
- }