@transferwise/neptune-css 0.0.0-experimental-0cae6bf → 0.0.0-experimental-d0b3ee6

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 (45) hide show
  1. package/dist/css/accordion.css +52 -23
  2. package/dist/css/button-groups.css +8 -29
  3. package/dist/css/buttons.css +2 -26
  4. package/dist/css/decision.css +52 -23
  5. package/dist/css/dropdowns.css +62 -39
  6. package/dist/css/droppable.css +8 -28
  7. package/dist/css/footer.css +14 -41
  8. package/dist/css/input-groups.css +165 -172
  9. package/dist/css/list-group.css +45 -0
  10. package/dist/css/navbar.css +62 -39
  11. package/dist/css/neptune-addons.css +0 -15
  12. package/dist/css/neptune-core.css +547 -375
  13. package/dist/css/neptune.css +1451 -2910
  14. package/dist/css/popovers.css +60 -35
  15. package/dist/css/sequences.css +1 -6
  16. package/dist/css/tooltip.css +7 -27
  17. package/dist/fonts/inter-cyrillic-ext-variable-wghtOnly-normal.woff2 +0 -0
  18. package/dist/fonts/inter-cyrillic-variable-wghtOnly-normal.woff2 +0 -0
  19. package/dist/fonts/inter-greek-ext-variable-wghtOnly-normal.woff2 +0 -0
  20. package/dist/fonts/inter-greek-variable-wghtOnly-normal.woff2 +0 -0
  21. package/dist/fonts/inter-latin-ext-variable-wghtOnly-normal.woff2 +0 -0
  22. package/dist/fonts/inter-latin-variable-wghtOnly-normal.woff2 +0 -0
  23. package/dist/fonts/inter-vietnamese-variable-wghtOnly-normal.woff2 +0 -0
  24. package/dist/less/legacy-variables.css +0 -0
  25. package/dist/less/neptune-tokens.css +0 -0
  26. package/dist/less/neptune-tokens.less +48 -0
  27. package/dist/less/zindex.css +0 -0
  28. package/dist/props/neptune-tokens.css +1 -802
  29. package/package.json +1 -1
  30. package/src/less/addons/_background-utilities.less +0 -5
  31. package/src/less/button-groups.less +2 -3
  32. package/src/less/buttons.less +1 -1
  33. package/src/less/core/_typography.less +221 -67
  34. package/src/less/decision.less +2 -2
  35. package/src/less/dropdowns.less +5 -6
  36. package/src/less/droppable.less +4 -4
  37. package/src/less/footer.less +3 -4
  38. package/src/less/forms/bootstrap-forms.less +57 -70
  39. package/src/less/input-groups.less +5 -5
  40. package/src/less/list-group.less +4 -7
  41. package/src/less/mixins/_text-emphasis.less +1 -7
  42. package/src/less/neptune.bundle.less +0 -4
  43. package/src/less/popovers.less +3 -3
  44. package/src/less/sequences.less +2 -7
  45. package/src/less/tooltip.less +1 -1
@@ -1,11 +1,11 @@
1
- @import (reference) "../../variables/legacy-variables.less";
2
- @import (reference) "../../variables/neptune-tokens.less";
3
- @import (reference) "../mixins/_arrows.less";
4
- @import (reference) "../mixins/_grid.less";
5
- @import (reference) "../mixins/_forms.less";
6
- @import (reference) "../mixins/_tab-focus.less";
7
- @import (reference) "../mixins/_logical-properties.less";
8
- @import (reference) "../core/_typography.less";
1
+ @import (reference) '../../variables/legacy-variables.less';
2
+ @import (reference) '../../variables/neptune-tokens.less';
3
+ @import (reference) '../mixins/_arrows.less';
4
+ @import (reference) '../mixins/_grid.less';
5
+ @import (reference) '../mixins/_forms.less';
6
+ @import (reference) '../mixins/_tab-focus.less';
7
+ @import (reference) '../mixins/_logical-properties.less';
8
+ @import (reference) '../core/_typography.less';
9
9
 
10
10
  //
11
11
  // Forms
@@ -54,34 +54,34 @@ label,
54
54
  // address browser inconsistencies.
55
55
 
56
56
  // Override content-box in Normalize (* isn't specific enough)
57
- input[type="search"] {
57
+ input[type='search'] {
58
58
  box-sizing: border-box;
59
59
  }
60
60
 
61
- input[type="number"] {
61
+ input[type='number'] {
62
62
  appearance: textfield;
63
63
  }
64
64
 
65
- input[type="number"]::-webkit-outer-spin-button,
66
- input[type="number"]::-webkit-inner-spin-button {
65
+ input[type='number']::-webkit-outer-spin-button,
66
+ input[type='number']::-webkit-inner-spin-button {
67
67
  appearance: none;
68
68
  margin: 0;
69
69
  }
70
70
 
71
71
  // Position radios and checkboxes better
72
- input[type="radio"],
73
- input[type="checkbox"] {
72
+ input[type='radio'],
73
+ input[type='checkbox'] {
74
74
  margin: 4px 0 0;
75
75
  margin-top: 1px;
76
76
  line-height: normal;
77
77
  }
78
78
 
79
- input[type="file"] {
79
+ input[type='file'] {
80
80
  display: block;
81
81
  }
82
82
 
83
83
  // Make range inputs behave like textual form controls
84
- input[type="range"] {
84
+ input[type='range'] {
85
85
  display: block;
86
86
  width: 100%;
87
87
  }
@@ -93,9 +93,9 @@ select[size] {
93
93
  }
94
94
 
95
95
  // Focus for file, radio, and checkbox
96
- input[type="file"]:focus,
97
- input[type="radio"]:focus,
98
- input[type="checkbox"]:focus {
96
+ input[type='file']:focus,
97
+ input[type='radio']:focus,
98
+ input[type='checkbox']:focus {
99
99
  .tab-focus();
100
100
  }
101
101
 
@@ -145,7 +145,7 @@ output {
145
145
  var(--input-padding),
146
146
  @input-border-radius
147
147
  );
148
- .wds-text-body-large;
148
+ .np-text-body-large;
149
149
 
150
150
  // Remove iOS drop shadow
151
151
  background-clip: padding-box;
@@ -197,7 +197,7 @@ output {
197
197
  // be added to `.form-control` as it's not specific enough. For details, see
198
198
  // https://github.com/twbs/bootstrap/issues/11586.
199
199
 
200
- input[type="search"] {
200
+ input[type='search'] {
201
201
  appearance: none;
202
202
  }
203
203
 
@@ -209,10 +209,10 @@ input[type="search"] {
209
209
  // for Safari. See https://bugs.webkit.org/show_bug.cgi?id=139848
210
210
 
211
211
  @media screen and (min-device-pixel-ratio: 0) {
212
- input[type="date"],
213
- input[type="time"],
214
- input[type="datetime-local"],
215
- input[type="month"] {
212
+ input[type='date'],
213
+ input[type='time'],
214
+ input[type='datetime-local'],
215
+ input[type='month'] {
216
216
  line-height: var(--input-height-base);
217
217
 
218
218
  &.input-sm,
@@ -248,7 +248,7 @@ input[type="search"] {
248
248
  }
249
249
  }
250
250
 
251
- .row-equal-height > [class*="col-"] > .form-group {
251
+ .row-equal-height > [class*='col-'] > .form-group {
252
252
  width: 100%;
253
253
  }
254
254
 
@@ -275,10 +275,10 @@ input[type="search"] {
275
275
  margin-top: (@padding-base-vertical * 1.5);
276
276
  }
277
277
 
278
- .radio input[type="radio"],
279
- .radio-inline input[type="radio"],
280
- .checkbox input[type="checkbox"],
281
- .checkbox-inline input[type="checkbox"] {
278
+ .radio input[type='radio'],
279
+ .radio-inline input[type='radio'],
280
+ .checkbox input[type='checkbox'],
281
+ .checkbox-inline input[type='checkbox'] {
282
282
  position: absolute;
283
283
  .margin(left, -20px);
284
284
 
@@ -313,8 +313,8 @@ input[type="search"] {
313
313
  // Some special care is needed because <label>s don't inherit their parent's `cursor`.
314
314
  //
315
315
  // Note: Neither radios nor checkboxes can be readonly.
316
- input[type="radio"],
317
- input[type="checkbox"] {
316
+ input[type='radio'],
317
+ input[type='checkbox'] {
318
318
  &[disabled],
319
319
  &.disabled,
320
320
  fieldset[disabled] & {
@@ -380,7 +380,7 @@ input[type="password"] {
380
380
  );
381
381
  font-size: 14px;
382
382
  line-height: 24px;
383
- .wds-text-body-default();
383
+ .np-text-body-default();
384
384
  }
385
385
 
386
386
  .form-group-sm,
@@ -418,7 +418,7 @@ input[type="password"] {
418
418
  var(--input-padding-large);
419
419
  @input-border-radius-large
420
420
  );
421
- .wds-text-body-large;
421
+ .np-text-body-large;
422
422
  }
423
423
 
424
424
  .form-group-lg {
@@ -533,9 +533,7 @@ input[type="password"] {
533
533
  border-style: solid;
534
534
  border-radius: var(--radius-small);
535
535
  padding: 4px 16px 3px;
536
- transition:
537
- border-color 0.15s ease-in-out,
538
- background-color 0.15s ease-in-out;
536
+ transition: border-color 0.15s ease-in-out, background-color 0.15s ease-in-out;
539
537
 
540
538
  a {
541
539
  color: inherit;
@@ -703,8 +701,8 @@ input[type="password"] {
703
701
  }
704
702
  }
705
703
 
706
- .radio input[type="radio"],
707
- .checkbox input[type="checkbox"] {
704
+ .radio input[type='radio'],
705
+ .checkbox input[type='checkbox'] {
708
706
  position: relative;
709
707
  .margin(left, 0);
710
708
  }
@@ -790,7 +788,7 @@ input[type="password"] {
790
788
  }
791
789
  }
792
790
 
793
- @import "checkbox-radio.less";
791
+ @import 'checkbox-radio.less';
794
792
 
795
793
  .input-group .input-group-btn + input {
796
794
  .border(left, 0, solid, transparent);
@@ -828,7 +826,7 @@ input[type="password"] {
828
826
 
829
827
  .margin(right, -6px);
830
828
 
831
- [class*="col-"] {
829
+ [class*='col-'] {
832
830
  .padding(left, 6px);
833
831
 
834
832
  .padding(right, 6px);
@@ -836,7 +834,7 @@ input[type="password"] {
836
834
  }
837
835
 
838
836
  @media (max-width: @screen-xs-max) {
839
- .form-group .row [class*="col-sm-"] {
837
+ .form-group .row [class*='col-sm-'] {
840
838
  margin-bottom: 0;
841
839
 
842
840
  .btn-input {
@@ -846,7 +844,7 @@ input[type="password"] {
846
844
  }
847
845
 
848
846
  @media (max-width: @screen-sm-max) {
849
- .form-group .row [class*="col-md-"] {
847
+ .form-group .row [class*='col-md-'] {
850
848
  margin-bottom: 0;
851
849
 
852
850
  .form-control,
@@ -857,7 +855,7 @@ input[type="password"] {
857
855
  }
858
856
 
859
857
  @media (max-width: @screen-md-max) {
860
- .form-group .row [class*="col-lg-"] {
858
+ .form-group .row [class*='col-lg-'] {
861
859
  margin-bottom: 0;
862
860
 
863
861
  .form-control,
@@ -868,7 +866,7 @@ input[type="password"] {
868
866
  }
869
867
 
870
868
  @media (max-width: @screen-lg-max) {
871
- .form-group .row [class*="col-xl-"] {
869
+ .form-group .row [class*='col-xl-'] {
872
870
  margin-bottom: 0;
873
871
 
874
872
  .form-control,
@@ -897,9 +895,7 @@ input[type="password"] {
897
895
  background-color: var(--color-background-screen);
898
896
  border: 1px solid var(--color-interactive-secondary);
899
897
  border-radius: @border-radius-base;
900
- transition:
901
- border 0.15s ease-in-out,
902
- background-color 0.15s ease-in-out;
898
+ transition: border 0.15s ease-in-out, background-color 0.15s ease-in-out;
903
899
 
904
900
  .np-theme-personal & {
905
901
  border-radius: var(--radius-small);
@@ -930,8 +926,7 @@ input[type="password"] {
930
926
  small,
931
927
  .small,
932
928
  .body-2,
933
- .np-text-body-default,
934
- .wds-text-body-default {
929
+ .np-text-body-default {
935
930
  display: block;
936
931
  color: var(--color-content-secondary);
937
932
  }
@@ -1026,7 +1021,7 @@ input[type="password"] {
1026
1021
  .form-control-placeholder {
1027
1022
  text-overflow: ellipsis;
1028
1023
  overflow: hidden;
1029
- .wds-text-body-large;
1024
+ .np-text-body-large;
1030
1025
  display: block;
1031
1026
  width: 100%;
1032
1027
  color: var(--color-content-tertiary);
@@ -1130,32 +1125,26 @@ input[type="password"] {
1130
1125
 
1131
1126
  .checkbox:hover .tw-checkbox-button,
1132
1127
  .radio:not(.disabled):hover .tw-radio-button,
1133
- .tw-checkbox-button:not(.disabled, :disabled):hover,
1134
- input[type="checkbox"]:hover + .tw-checkbox-button,
1135
- input[type="radio"]:not(.disabled, :disabled):hover + .tw-radio-button,
1136
- input[type="checkbox"]:not(.disabled, :disabled):hover + .tw-checkbox-button {
1128
+ .tw-checkbox-button:not(.disabled,:disabled):hover,
1129
+ input[type=checkbox]:hover+.tw-checkbox-button,
1130
+ input[type=radio]:not(.disabled,:disabled):hover+.tw-radio-button,
1131
+ input[type=checkbox]:not(.disabled,:disabled):hover+.tw-checkbox-button {
1137
1132
  box-shadow: inset 0 0 0 2px var(--color-sentiment-negative-hover);
1138
1133
  }
1139
1134
 
1140
1135
  .tw-checkbox-button.checked,
1141
1136
  .tw-checkbox-button:checked,
1142
- input[type="checkbox"]:checked + .tw-checkbox-button,
1137
+ input[type=checkbox]:checked+.tw-checkbox-button,
1143
1138
  .tw-checkbox-button.checked:hover,
1144
1139
  .tw-checkbox-button:checked:hover,
1145
- input[type="checkbox"]:not(.disabled, :disabled):checked:hover + .tw-checkbox-button {
1140
+ input[type=checkbox]:not(.disabled,:disabled):checked:hover+.tw-checkbox-button {
1146
1141
  box-shadow: inset 0 0 0 3px var(--color-sentiment-negative);
1147
1142
  background: var(--color-sentiment-negative);
1148
1143
  }
1149
1144
 
1150
- .checkbox > label:not(.disabled, :disabled):active input[type="checkbox"] + .tw-checkbox-button,
1151
- .checkbox
1152
- > label:not(.disabled, :disabled):focus-visible
1153
- input[type="checkbox"]
1154
- + .tw-checkbox-button,
1155
- .checkbox
1156
- > label:not(.disabled, :disabled):has(:focus-visible)
1157
- input[type="checkbox"]
1158
- + .tw-checkbox-button {
1145
+ .checkbox>label:not(.disabled,:disabled):active input[type=checkbox]+.tw-checkbox-button,
1146
+ .checkbox>label:not(.disabled,:disabled):focus-visible input[type=checkbox]+.tw-checkbox-button,
1147
+ .checkbox>label:not(.disabled,:disabled):has(:focus-visible) input[type=checkbox]+.tw-checkbox-button {
1159
1148
  box-shadow: inset 0 0 0 2px var(--color-sentiment-negative-active);
1160
1149
  }
1161
1150
  }
@@ -1164,9 +1153,7 @@ input[type="password"] {
1164
1153
  .tw-checkbox-button {
1165
1154
  background-color: unset;
1166
1155
  color: unset;
1167
- transition:
1168
- background-color 0.3s ease-in-out,
1169
- box-shadow 0.3s ease-in-out;
1156
+ transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
1170
1157
  }
1171
1158
 
1172
1159
  .btn-input:hover,
@@ -1183,7 +1170,7 @@ input[type="password"] {
1183
1170
  }
1184
1171
 
1185
1172
  .form-group .np-upload-input label {
1186
- margin-bottom: 0;
1173
+ margin-bottom: 0;
1187
1174
  }
1188
1175
 
1189
1176
  .form-group .alert:before,
@@ -64,7 +64,7 @@
64
64
  > .input-group-btn .btn {
65
65
  .input-lg();
66
66
 
67
- .wds-text-title-subsection();
67
+ .np-text-title-subsection();
68
68
 
69
69
  margin-bottom: 0;
70
70
  }
@@ -246,7 +246,7 @@
246
246
  }
247
247
 
248
248
  // inputs focus and hover states (not disabled)
249
- .input-group:hover:not(.disabled, :disabled) {
249
+ .input-group:hover:not(.disabled,:disabled) {
250
250
  .form-control,
251
251
  .input-group-addon,
252
252
  .btn-input,
@@ -255,11 +255,11 @@
255
255
  }
256
256
  }
257
257
 
258
- .form-control:hover:not(.disabled, :disabled) {
258
+ .form-control:hover:not(.disabled,:disabled) {
259
259
  border-color: var(--color-interactive-secondary-hover);
260
260
  }
261
261
 
262
- .input-group:focus-within:not(.disabled, :disabled) {
262
+ .input-group:focus-within:not(.disabled,:disabled) {
263
263
  .form-control,
264
264
  .input-group-addon,
265
265
  .btn-input,
@@ -272,7 +272,7 @@
272
272
  }
273
273
  }
274
274
 
275
- .form-control:focus-within:not(.disabled, :disabled) {
275
+ .form-control:focus-within:not(.disabled,:disabled) {
276
276
  border-color: var(--color-interactive-accent);
277
277
 
278
278
  .np-theme-personal & {
@@ -61,7 +61,7 @@
61
61
 
62
62
  .list-group-item-heading {
63
63
  margin-bottom: 0;
64
- .wds-text-title-group;
64
+ .np-text-title-group;
65
65
 
66
66
  color: var(--color-content-primary);
67
67
  }
@@ -200,12 +200,8 @@ a.list-group-item {
200
200
  }
201
201
 
202
202
  @keyframes listSlideOver {
203
- 0% {
204
- transform: translateX(100vw);
205
- }
206
- 100% {
207
- transform: translateX(0);
208
- }
203
+ 0% { transform: translateX(100vw); }
204
+ 100% { transform: translateX(0); }
209
205
  }
210
206
 
211
207
  @media (max-width: @screen-sm-max) {
@@ -254,6 +250,7 @@ a.list-group-item {
254
250
  }
255
251
 
256
252
  .list-group-item.active .collapse .well {
253
+
257
254
  // Annoying but makes sure the last content is visible in iOS safari
258
255
 
259
256
  padding-bottom: 72px;
@@ -22,9 +22,6 @@
22
22
  &.np-text-title-screen,
23
23
  &.np-text-title-section,
24
24
  &.np-text-title-subsection,
25
- &.wds-text-title-screen,
26
- &.wds-text-title-section,
27
- &.wds-text-title-subsection,
28
25
  h1,
29
26
  h2,
30
27
  h3,
@@ -36,10 +33,7 @@
36
33
  .title-3,
37
34
  .np-text-title-screen,
38
35
  .np-text-title-section,
39
- .np-text-title-subsection,
40
- .wds-text-title-screen,
41
- .wds-text-title-section,
42
- .wds-text-title-subsection {
36
+ .np-text-title-subsection {
43
37
  color: @large-color !important;
44
38
  }
45
39
  }
@@ -10,10 +10,6 @@
10
10
  @import "@transferwise/neptune-tokens/themes/business--dark/tokens.css";
11
11
  @import "@transferwise/neptune-tokens/themes/business--forest-green/tokens.css";
12
12
  @import "@transferwise/neptune-tokens/themes/business--bright-green/tokens.css";
13
- @import "@transferwise/neptune-tokens/text/tokens.css";
14
-
15
- // Utilities
16
- @import (less) "@transferwise/neptune-tokens/text/utilities.css";
17
13
  @import "./core/_fonts.less";
18
14
  @import "./core/_scaffolding.less";
19
15
  @import "./core/_typography.less";
@@ -24,7 +24,7 @@
24
24
  // So reset our font and text properties to avoid inheriting weird values.
25
25
  .reset-text();
26
26
 
27
- .wds-text-body-default;
27
+ .np-text-body-default;
28
28
 
29
29
  background-color: var(--color-background-screen);
30
30
  background-clip: padding-box;
@@ -221,7 +221,7 @@
221
221
  margin: 0; // reset heading margin
222
222
  padding: 0;
223
223
 
224
- .wds-text-title-body();
224
+ .np-text-title-body();
225
225
 
226
226
  background-color: var(--color-background-screen);
227
227
  border-bottom: 0;
@@ -232,7 +232,7 @@
232
232
  .popover-content {
233
233
  padding: 0;
234
234
 
235
- .wds-text-body-default;
235
+ .np-text-body-default;
236
236
 
237
237
  color: var(--color-content-secondary);
238
238
  }
@@ -85,10 +85,6 @@
85
85
  .h2,
86
86
  .h3,
87
87
  .h4,
88
- .wds-text-title-screen,
89
- .wds-text-title-section,
90
- .wds-text-title-subsection,
91
- .wds-text-title-body,
92
88
  .btn-toolbar {
93
89
  margin-bottom: 16px;
94
90
  }
@@ -190,8 +186,7 @@
190
186
 
191
187
  .small,
192
188
  .body-2,
193
- .np-text-body-default,
194
- .wds-text-body-default {
189
+ .np-text-body-default {
195
190
  color: var(--color-content-secondary);
196
191
  }
197
192
 
@@ -221,7 +216,7 @@
221
216
 
222
217
  > .active {
223
218
  &::before {
224
- border-width: (@sequence-pip-size / 2); // TODO sequence-line-width?
219
+ border-width: (@sequence-pip-size / 2); // TODO sequence-line-width?
225
220
  }
226
221
 
227
222
  ~ li::before {
@@ -50,7 +50,7 @@
50
50
 
51
51
  // Wrapper for the tooltip content
52
52
  .tooltip-inner {
53
- .wds-text-body-default;
53
+ .np-text-body-default;
54
54
 
55
55
  max-width: @tooltip-max-width;
56
56
  min-width: 120px;