@transferwise/neptune-css 14.3.51 → 14.4.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@transferwise/neptune-css",
3
3
  "description": "Neptune CSS library",
4
- "version": "14.3.51",
4
+ "version": "14.4.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -26,6 +26,7 @@
26
26
  "@transferwise/neptune-tokens": "^8.5.0"
27
27
  },
28
28
  "devDependencies": {
29
+ "modern-normalize": "^2.0.0",
29
30
  "yargs": "^17.1.1",
30
31
  "@transferwise/less-config": "3.0.6"
31
32
  },
@@ -1,16 +1,12 @@
1
1
  /* stylelint-disable selector-max-empty-lines */
2
+
3
+ @import "modern-normalize";
2
4
  @import (reference) "../../variables/neptune-tokens.less";
3
5
  @import (reference) "../mixins/_logical-properties.less";
4
6
  @import (reference) "../mixins/_links.less";
5
7
  @import (reference) "../core/_typography.less";
6
8
  @import "../../variables/legacy-variables.less";
7
9
 
8
- *,
9
- ::before,
10
- ::after {
11
- box-sizing: border-box;
12
- }
13
-
14
10
  :root {
15
11
  --radius-small: 3px;
16
12
  --radius-medium: 10px;
@@ -79,24 +75,6 @@ html {
79
75
  background-color: var(--color-background-screen);
80
76
  -webkit-font-smoothing: antialiased;
81
77
  -moz-osx-font-smoothing: grayscale;
82
- text-size-adjust: 100%; // Normalize 8.0.1
83
- }
84
-
85
- body {
86
- margin: 0; // Normalize 8.0.1
87
- }
88
-
89
- main,
90
- details {
91
- display: block; // Normalize 8.0.1
92
- }
93
-
94
- summary {
95
- display: list-item; // Normalize 8.0.1
96
- }
97
-
98
- template {
99
- display: none; // Normalize 8.0.1
100
78
  }
101
79
 
102
80
  blockquote,
@@ -121,7 +99,6 @@ a,
121
99
  .np-text-link-default,
122
100
  .np-text-link-large {
123
101
  color: var(--color-content-link);
124
- background-color: transparent; // Normalize 8.0.1
125
102
  font-weight: var(--font-weight-semi-bold);
126
103
  letter-spacing: normal;
127
104
  text-decoration: underline;
@@ -174,44 +151,22 @@ fieldset {
174
151
  padding: 0;
175
152
  }
176
153
 
177
- legend {
178
- display: table; // Normalize 8.0.1
179
- box-sizing: border-box; // Normalize 8.0.1
180
- max-width: 100%; // Normalize 8.0.1
181
- padding: 0; // Normalize 8.0.1
182
- color: inherit; // Normalize 8.0.1
183
- white-space: normal; // Normalize 8.0.1
184
- }
185
-
186
154
  button,
187
155
  input,
188
156
  optgroup,
189
157
  select,
190
158
  textarea {
191
- margin: 0; // Normalize 8.0.1
192
159
  padding: 0;
193
160
  color: inherit;
194
161
  font-size: inherit;
195
- font-family: inherit; // Normalize 8.0.1
196
162
  line-height: inherit;
197
163
  }
198
164
 
199
- button,
200
- input {
201
- overflow: visible; // Normalize 8.0.1
202
- }
203
-
204
- button,
205
- select {
206
- text-transform: none; // Normalize 8.0.1
207
- }
208
-
209
165
  button,
210
166
  [type="button"],
211
167
  [type="reset"],
212
168
  [type="submit"] {
213
169
  cursor: pointer;
214
- appearance: button; // Normalize 8.0.1
215
170
  }
216
171
 
217
172
  // iOS "clickable elements" fix for role="button"
@@ -221,35 +176,7 @@ button,
221
176
  cursor: pointer;
222
177
  }
223
178
 
224
- [type="checkbox"],
225
- [type="radio"] {
226
- box-sizing: border-box; // Normalize 8.0.1
227
- padding: 0; // Normalize 8.0.1
228
- }
229
-
230
- [type="number"] {
231
- &::-webkit-inner-spin-button,
232
- &::-webkit-outer-spin-button {
233
- height: auto; // Normalize 8.0.1
234
- }
235
- }
236
-
237
- [type="search"] {
238
- outline-offset: -2px; // Normalize 8.0.1
239
- appearance: textfield; // Normalize 8.0.1
240
-
241
- &::-webkit-search-decoration {
242
- appearance: none; // Normalize 8.0.1
243
- }
244
- }
245
-
246
- ::-webkit-file-upload-button {
247
- font: inherit; // Normalize 8.0.1
248
- appearance: button; // Normalize 8.0.1
249
- }
250
-
251
179
  textarea {
252
- overflow: auto; // Normalize 8.0.1
253
180
  resize: vertical;
254
181
  }
255
182
 
@@ -262,10 +189,6 @@ textarea {
262
189
  }
263
190
  }
264
191
 
265
- progress {
266
- vertical-align: baseline; // Normalize 8.0.1
267
- }
268
-
269
192
  ol,
270
193
  ul {
271
194
  margin: 0 0 var(--size-24);
@@ -374,10 +297,7 @@ dd {
374
297
  }
375
298
 
376
299
  hr {
377
- box-sizing: content-box; // Normalize 8.0.1
378
- height: 0; // Normalize 8.0.1
379
300
  margin: var(--size-16) auto;
380
- overflow: visible; // Normalize 8.0.1
381
301
  border: 0;
382
302
  border-top: 1px solid var(--color-border-neutral);
383
303
 
@@ -424,10 +344,6 @@ video {
424
344
  border-radius: 50%;
425
345
  }
426
346
 
427
- [hidden] {
428
- display: none; // Normalize 8.0.1
429
- }
430
-
431
347
  .disabled,
432
348
  :disabled {
433
349
  filter: grayscale(1);
@@ -592,29 +592,6 @@ mark,
592
592
  background-color: var(--color-background-warning);
593
593
  }
594
594
 
595
- sub,
596
- sup {
597
- position: relative; // Normalize 8.0.1
598
- font-size: 75%; // Normalize 8.0.1
599
- line-height: 0; // Normalize 8.0.1
600
- vertical-align: baseline; // Normalize 8.0.1
601
- }
602
-
603
- sub {
604
- bottom: -0.25em; // Normalize 8.0.1
605
- }
606
-
607
- sup {
608
- top: -0.5em; // Normalize 8.0.1
609
- }
610
-
611
- abbr[title],
612
- abbr[data-original-title] {
613
- text-decoration: none;
614
- border-bottom: 1px dotted var(--color-content-accent);
615
- cursor: help;
616
- }
617
-
618
595
  address {
619
596
  margin-bottom: var(--size-24);
620
597
  font-style: normal;
@@ -683,10 +660,7 @@ blockquote {
683
660
 
684
661
  pre,
685
662
  code,
686
- kbd,
687
- samp {
688
- font-size: 1em;
689
- font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
663
+ kbd {
690
664
  border-radius: var(--radius-small);
691
665
  }
692
666
 
@@ -729,8 +703,3 @@ kbd {
729
703
  font-size: 100%;
730
704
  }
731
705
  }
732
-
733
- samp {
734
- font-size: 1em;
735
- border-radius: 0;
736
- }
@@ -66,7 +66,6 @@
66
66
 
67
67
  .np-text-title-subsection();
68
68
 
69
- font-weight: var(--font-weight-regular);
70
69
  margin-bottom: 0;
71
70
  }
72
71
  }