@transferwise/neptune-css 0.0.0-experimental-73c1cfd → 0.0.0-experimental-dda2eb3

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": "0.0.0-experimental-73c1cfd",
4
+ "version": "0.0.0-experimental-dda2eb3",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -26,7 +26,6 @@
26
26
  "@transferwise/neptune-tokens": "^8.5.0"
27
27
  },
28
28
  "devDependencies": {
29
- "modern-normalize": "^2.0.0",
30
29
  "yargs": "^17.1.1",
31
30
  "@transferwise/less-config": "3.0.6"
32
31
  },
@@ -1,12 +1,16 @@
1
1
  /* stylelint-disable selector-max-empty-lines */
2
-
3
- @import "modern-normalize";
4
2
  @import (reference) "../../variables/neptune-tokens.less";
5
3
  @import (reference) "../mixins/_logical-properties.less";
6
4
  @import (reference) "../mixins/_links.less";
7
5
  @import (reference) "../core/_typography.less";
8
6
  @import "../../variables/legacy-variables.less";
9
7
 
8
+ *,
9
+ ::before,
10
+ ::after {
11
+ box-sizing: border-box;
12
+ }
13
+
10
14
  :root {
11
15
  --radius-small: 3px;
12
16
  --radius-medium: 10px;
@@ -75,6 +79,24 @@ html {
75
79
  background-color: var(--color-background-screen);
76
80
  -webkit-font-smoothing: antialiased;
77
81
  -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
78
100
  }
79
101
 
80
102
  blockquote,
@@ -99,6 +121,7 @@ a,
99
121
  .np-text-link-default,
100
122
  .np-text-link-large {
101
123
  color: var(--color-content-link);
124
+ background-color: transparent; // Normalize 8.0.1
102
125
  font-weight: var(--font-weight-semi-bold);
103
126
  letter-spacing: normal;
104
127
  text-decoration: underline;
@@ -151,22 +174,44 @@ fieldset {
151
174
  padding: 0;
152
175
  }
153
176
 
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
+
154
186
  button,
155
187
  input,
156
188
  optgroup,
157
189
  select,
158
190
  textarea {
191
+ margin: 0; // Normalize 8.0.1
159
192
  padding: 0;
160
193
  color: inherit;
161
194
  font-size: inherit;
195
+ font-family: inherit; // Normalize 8.0.1
162
196
  line-height: inherit;
163
197
  }
164
198
 
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
+
165
209
  button,
166
210
  [type="button"],
167
211
  [type="reset"],
168
212
  [type="submit"] {
169
213
  cursor: pointer;
214
+ appearance: button; // Normalize 8.0.1
170
215
  }
171
216
 
172
217
  // iOS "clickable elements" fix for role="button"
@@ -176,7 +221,35 @@ button,
176
221
  cursor: pointer;
177
222
  }
178
223
 
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
+
179
251
  textarea {
252
+ overflow: auto; // Normalize 8.0.1
180
253
  resize: vertical;
181
254
  }
182
255
 
@@ -189,6 +262,10 @@ textarea {
189
262
  }
190
263
  }
191
264
 
265
+ progress {
266
+ vertical-align: baseline; // Normalize 8.0.1
267
+ }
268
+
192
269
  ol,
193
270
  ul {
194
271
  margin: 0 0 var(--size-24);
@@ -297,7 +374,10 @@ dd {
297
374
  }
298
375
 
299
376
  hr {
377
+ box-sizing: content-box; // Normalize 8.0.1
378
+ height: 0; // Normalize 8.0.1
300
379
  margin: var(--size-16) auto;
380
+ overflow: visible; // Normalize 8.0.1
301
381
  border: 0;
302
382
  border-top: 1px solid var(--color-border-neutral);
303
383
 
@@ -344,6 +424,10 @@ video {
344
424
  border-radius: 50%;
345
425
  }
346
426
 
427
+ [hidden] {
428
+ display: none; // Normalize 8.0.1
429
+ }
430
+
347
431
  .disabled,
348
432
  :disabled {
349
433
  filter: grayscale(1);
@@ -592,6 +592,29 @@ 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
+
595
618
  address {
596
619
  margin-bottom: var(--size-24);
597
620
  font-style: normal;
@@ -660,7 +683,10 @@ blockquote {
660
683
 
661
684
  pre,
662
685
  code,
663
- kbd {
686
+ kbd,
687
+ samp {
688
+ font-size: 1em;
689
+ font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
664
690
  border-radius: var(--radius-small);
665
691
  }
666
692
 
@@ -703,3 +729,8 @@ kbd {
703
729
  font-size: 100%;
704
730
  }
705
731
  }
732
+
733
+ samp {
734
+ font-size: 1em;
735
+ border-radius: 0;
736
+ }