@transferwise/neptune-css 14.12.0 → 14.13.0
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/dist/css/input-groups.css +12 -19
- package/dist/css/neptune-core.css +2 -2
- package/dist/css/neptune.css +14 -23
- package/package.json +1 -1
- package/src/less/core/_typography.less +5 -1
- package/src/less/forms/bootstrap-forms.less +20 -27
- package/src/less/mixins/_forms.less +3 -1
- package/src/less/navbar.less +1 -0
|
@@ -683,7 +683,8 @@ select[multiple].input-lg {
|
|
|
683
683
|
.np-theme-personal .has-success .radio-inline label,
|
|
684
684
|
.np-theme-personal .has-success .checkbox-inline label,
|
|
685
685
|
.np-theme-personal .has-success .input-group-addon {
|
|
686
|
-
color:
|
|
686
|
+
color: #37517e !important;
|
|
687
|
+
color: var(--color-content-primary) !important;
|
|
687
688
|
border-color: var(--color-sentiment-positive) !important;
|
|
688
689
|
}
|
|
689
690
|
.np-theme-personal .has-success .form-control,
|
|
@@ -724,7 +725,8 @@ select[multiple].input-lg {
|
|
|
724
725
|
border-color: var(--color-sentiment-positive) !important;
|
|
725
726
|
}
|
|
726
727
|
.np-theme-personal .has-success .form-control-feedback {
|
|
727
|
-
color:
|
|
728
|
+
color: #37517e;
|
|
729
|
+
color: var(--color-content-primary);
|
|
728
730
|
}
|
|
729
731
|
.np-theme-personal .has-success .radio > label:not(.disabled):not(:disabled),
|
|
730
732
|
.np-theme-personal .has-success.checkbox > label:not(.disabled):not(:disabled) {
|
|
@@ -1059,7 +1061,8 @@ select[multiple].input-lg {
|
|
|
1059
1061
|
.np-theme-personal .has-warning .radio-inline label,
|
|
1060
1062
|
.np-theme-personal .has-warning .checkbox-inline label,
|
|
1061
1063
|
.np-theme-personal .has-warning .input-group-addon {
|
|
1062
|
-
color:
|
|
1064
|
+
color: #37517e !important;
|
|
1065
|
+
color: var(--color-content-primary) !important;
|
|
1063
1066
|
border-color: var(--color-sentiment-warning) !important;
|
|
1064
1067
|
}
|
|
1065
1068
|
.np-theme-personal .has-warning .form-control,
|
|
@@ -1100,7 +1103,8 @@ select[multiple].input-lg {
|
|
|
1100
1103
|
border-color: var(--color-sentiment-warning) !important;
|
|
1101
1104
|
}
|
|
1102
1105
|
.np-theme-personal .has-warning .form-control-feedback {
|
|
1103
|
-
color:
|
|
1106
|
+
color: #37517e;
|
|
1107
|
+
color: var(--color-content-primary);
|
|
1104
1108
|
}
|
|
1105
1109
|
.np-theme-personal .has-warning .radio > label:not(.disabled):not(:disabled),
|
|
1106
1110
|
.np-theme-personal .has-warning.checkbox > label:not(.disabled):not(:disabled) {
|
|
@@ -1246,7 +1250,8 @@ select[multiple].input-lg {
|
|
|
1246
1250
|
.np-theme-personal .has-error .radio-inline label,
|
|
1247
1251
|
.np-theme-personal .has-error .checkbox-inline label,
|
|
1248
1252
|
.np-theme-personal .has-error .input-group-addon {
|
|
1249
|
-
color:
|
|
1253
|
+
color: #37517e !important;
|
|
1254
|
+
color: var(--color-content-primary) !important;
|
|
1250
1255
|
border-color: var(--color-sentiment-negative) !important;
|
|
1251
1256
|
}
|
|
1252
1257
|
.np-theme-personal .has-error .form-control,
|
|
@@ -1287,7 +1292,8 @@ select[multiple].input-lg {
|
|
|
1287
1292
|
border-color: var(--color-sentiment-negative-hover) !important;
|
|
1288
1293
|
}
|
|
1289
1294
|
.np-theme-personal .has-error .form-control-feedback {
|
|
1290
|
-
color:
|
|
1295
|
+
color: #37517e;
|
|
1296
|
+
color: var(--color-content-primary);
|
|
1291
1297
|
}
|
|
1292
1298
|
.np-theme-personal .has-error .radio > label:not(.disabled):not(:disabled),
|
|
1293
1299
|
.np-theme-personal .has-error.checkbox > label:not(.disabled):not(:disabled) {
|
|
@@ -2227,19 +2233,6 @@ html:not([dir="rtl"]) .input-group .input-group-btn + input {
|
|
|
2227
2233
|
.np-theme-personal .form-group .np-upload-input label {
|
|
2228
2234
|
margin-bottom: 0;
|
|
2229
2235
|
}
|
|
2230
|
-
.np-theme-personal .form-group:focus-within .control-label,
|
|
2231
|
-
.np-theme-personal .form-group:focus-within > label,
|
|
2232
|
-
.np-theme-personal .has-warning .control-label,
|
|
2233
|
-
.np-theme-personal .has-warning label,
|
|
2234
|
-
.np-theme-personal .has-success .control-label,
|
|
2235
|
-
.np-theme-personal .has-success label {
|
|
2236
|
-
color: #5d7079 !important;
|
|
2237
|
-
color: var(--color-content-secondary) !important;
|
|
2238
|
-
}
|
|
2239
|
-
.np-theme-personal .has-error .control-label,
|
|
2240
|
-
.np-theme-personal .has-error label {
|
|
2241
|
-
color: var(--color-sentiment-negative) !important;
|
|
2242
|
-
}
|
|
2243
2236
|
.np-theme-personal .form-group .alert:before,
|
|
2244
2237
|
.np-theme-personal .error-messages:before {
|
|
2245
2238
|
content: none;
|
|
@@ -929,8 +929,6 @@ h6,
|
|
|
929
929
|
/* stylelint-disable-next-line selector-list-comma-newline-after */
|
|
930
930
|
.body-2,
|
|
931
931
|
.body-3,
|
|
932
|
-
.label,
|
|
933
|
-
.control-label,
|
|
934
932
|
.small,
|
|
935
933
|
.tiny,
|
|
936
934
|
body,
|
|
@@ -946,6 +944,8 @@ small,
|
|
|
946
944
|
/* DEPRECATED: use .np-text-body-default-bold instead */
|
|
947
945
|
/* stylelint-disable-next-line selector-list-comma-newline-after */
|
|
948
946
|
.control-2,
|
|
947
|
+
.label,
|
|
948
|
+
.control-label,
|
|
949
949
|
.np-text-body-default-bold {
|
|
950
950
|
font-size: 0.875rem;
|
|
951
951
|
font-size: var(--font-size-14);
|
package/dist/css/neptune.css
CHANGED
|
@@ -2546,8 +2546,6 @@ h6,
|
|
|
2546
2546
|
|
|
2547
2547
|
.body-2,
|
|
2548
2548
|
.body-3,
|
|
2549
|
-
.label,
|
|
2550
|
-
.control-label,
|
|
2551
2549
|
.small,
|
|
2552
2550
|
.tiny,
|
|
2553
2551
|
body,
|
|
@@ -2566,6 +2564,8 @@ small,
|
|
|
2566
2564
|
/* stylelint-disable-next-line selector-list-comma-newline-after */
|
|
2567
2565
|
|
|
2568
2566
|
.control-2,
|
|
2567
|
+
.label,
|
|
2568
|
+
.control-label,
|
|
2569
2569
|
.np-text-body-default-bold {
|
|
2570
2570
|
font-size: 0.875rem;
|
|
2571
2571
|
font-size: var(--font-size-14);
|
|
@@ -10046,7 +10046,8 @@ select[multiple].input-lg {
|
|
|
10046
10046
|
.np-theme-personal .has-success .radio-inline label,
|
|
10047
10047
|
.np-theme-personal .has-success .checkbox-inline label,
|
|
10048
10048
|
.np-theme-personal .has-success .input-group-addon {
|
|
10049
|
-
color:
|
|
10049
|
+
color: #37517e !important;
|
|
10050
|
+
color: var(--color-content-primary) !important;
|
|
10050
10051
|
border-color: var(--color-sentiment-positive) !important;
|
|
10051
10052
|
}
|
|
10052
10053
|
|
|
@@ -10091,7 +10092,8 @@ select[multiple].input-lg {
|
|
|
10091
10092
|
}
|
|
10092
10093
|
|
|
10093
10094
|
.np-theme-personal .has-success .form-control-feedback {
|
|
10094
|
-
color:
|
|
10095
|
+
color: #37517e;
|
|
10096
|
+
color: var(--color-content-primary);
|
|
10095
10097
|
}
|
|
10096
10098
|
|
|
10097
10099
|
.np-theme-personal .has-success .radio > label:not(.disabled):not(:disabled),
|
|
@@ -10462,7 +10464,8 @@ select[multiple].input-lg {
|
|
|
10462
10464
|
.np-theme-personal .has-warning .radio-inline label,
|
|
10463
10465
|
.np-theme-personal .has-warning .checkbox-inline label,
|
|
10464
10466
|
.np-theme-personal .has-warning .input-group-addon {
|
|
10465
|
-
color:
|
|
10467
|
+
color: #37517e !important;
|
|
10468
|
+
color: var(--color-content-primary) !important;
|
|
10466
10469
|
border-color: var(--color-sentiment-warning) !important;
|
|
10467
10470
|
}
|
|
10468
10471
|
|
|
@@ -10507,7 +10510,8 @@ select[multiple].input-lg {
|
|
|
10507
10510
|
}
|
|
10508
10511
|
|
|
10509
10512
|
.np-theme-personal .has-warning .form-control-feedback {
|
|
10510
|
-
color:
|
|
10513
|
+
color: #37517e;
|
|
10514
|
+
color: var(--color-content-primary);
|
|
10511
10515
|
}
|
|
10512
10516
|
|
|
10513
10517
|
.np-theme-personal .has-warning .radio > label:not(.disabled):not(:disabled),
|
|
@@ -10669,7 +10673,8 @@ select[multiple].input-lg {
|
|
|
10669
10673
|
.np-theme-personal .has-error .radio-inline label,
|
|
10670
10674
|
.np-theme-personal .has-error .checkbox-inline label,
|
|
10671
10675
|
.np-theme-personal .has-error .input-group-addon {
|
|
10672
|
-
color:
|
|
10676
|
+
color: #37517e !important;
|
|
10677
|
+
color: var(--color-content-primary) !important;
|
|
10673
10678
|
border-color: var(--color-sentiment-negative) !important;
|
|
10674
10679
|
}
|
|
10675
10680
|
|
|
@@ -10714,7 +10719,8 @@ select[multiple].input-lg {
|
|
|
10714
10719
|
}
|
|
10715
10720
|
|
|
10716
10721
|
.np-theme-personal .has-error .form-control-feedback {
|
|
10717
|
-
color:
|
|
10722
|
+
color: #37517e;
|
|
10723
|
+
color: var(--color-content-primary);
|
|
10718
10724
|
}
|
|
10719
10725
|
|
|
10720
10726
|
.np-theme-personal .has-error .radio > label:not(.disabled):not(:disabled),
|
|
@@ -11786,21 +11792,6 @@ html:not([dir="rtl"]) .input-group .input-group-btn + input {
|
|
|
11786
11792
|
margin-bottom: 0;
|
|
11787
11793
|
}
|
|
11788
11794
|
|
|
11789
|
-
.np-theme-personal .form-group:focus-within .control-label,
|
|
11790
|
-
.np-theme-personal .form-group:focus-within > label,
|
|
11791
|
-
.np-theme-personal .has-warning .control-label,
|
|
11792
|
-
.np-theme-personal .has-warning label,
|
|
11793
|
-
.np-theme-personal .has-success .control-label,
|
|
11794
|
-
.np-theme-personal .has-success label {
|
|
11795
|
-
color: #5d7079 !important;
|
|
11796
|
-
color: var(--color-content-secondary) !important;
|
|
11797
|
-
}
|
|
11798
|
-
|
|
11799
|
-
.np-theme-personal .has-error .control-label,
|
|
11800
|
-
.np-theme-personal .has-error label {
|
|
11801
|
-
color: var(--color-sentiment-negative) !important;
|
|
11802
|
-
}
|
|
11803
|
-
|
|
11804
11795
|
.np-theme-personal .form-group .alert:before,
|
|
11805
11796
|
.np-theme-personal .error-messages:before {
|
|
11806
11797
|
content: none;
|
package/package.json
CHANGED
|
@@ -113,7 +113,7 @@ h6,
|
|
|
113
113
|
|
|
114
114
|
/* DEPRECATED: use .np-text-body-default instead */
|
|
115
115
|
/* stylelint-disable-next-line selector-list-comma-newline-after */
|
|
116
|
-
.body-2, .body-3, .
|
|
116
|
+
.body-2, .body-3, .small, .tiny,
|
|
117
117
|
body, small,
|
|
118
118
|
.np-text-body-default {
|
|
119
119
|
font-size: var(--font-size-14);
|
|
@@ -125,6 +125,10 @@ body, small,
|
|
|
125
125
|
/* DEPRECATED: use .np-text-body-default-bold instead */
|
|
126
126
|
/* stylelint-disable-next-line selector-list-comma-newline-after */
|
|
127
127
|
.control-2,
|
|
128
|
+
|
|
129
|
+
// DEPRECATED: use `Field` component (or in some edge cases `Label` component) instead
|
|
130
|
+
.label, .control-label,
|
|
131
|
+
|
|
128
132
|
.np-text-body-default-bold {
|
|
129
133
|
font-size: var(--font-size-14);
|
|
130
134
|
line-height: 155%;
|
|
@@ -240,6 +240,7 @@ input[type='search'] {
|
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
&:focus-within {
|
|
243
|
+
// DEPRECATED: use `Field` component (or in some edge cases `Label` component) instead
|
|
243
244
|
.control-label,
|
|
244
245
|
> label {
|
|
245
246
|
color: var(--color-content-accent);
|
|
@@ -263,7 +264,7 @@ input[type='search'] {
|
|
|
263
264
|
// margin-bottom: (@padding-base-vertical * 1.5);
|
|
264
265
|
|
|
265
266
|
label {
|
|
266
|
-
min-height: var(--input-height-base);
|
|
267
|
+
min-height: var(--input-height-base);
|
|
267
268
|
margin-bottom: 0;
|
|
268
269
|
cursor: pointer;
|
|
269
270
|
}
|
|
@@ -450,6 +451,7 @@ input[type="password"] {
|
|
|
450
451
|
line-height: @input-line-height-large;
|
|
451
452
|
}
|
|
452
453
|
|
|
454
|
+
// DEPRECATED: use `Field` component (or in some edge cases `Label` component) instead
|
|
453
455
|
.control-label {
|
|
454
456
|
position: absolute;
|
|
455
457
|
top: 12px;
|
|
@@ -504,6 +506,7 @@ input[type="password"] {
|
|
|
504
506
|
// Focus state
|
|
505
507
|
.focus,
|
|
506
508
|
.has-focus {
|
|
509
|
+
// DEPRECATED: use `Field` component (or in some edge cases `Label` component) instead
|
|
507
510
|
.control-label {
|
|
508
511
|
color: var(--color-content-accent-active);
|
|
509
512
|
}
|
|
@@ -563,7 +566,7 @@ input[type="password"] {
|
|
|
563
566
|
|
|
564
567
|
.np-theme-personal & {
|
|
565
568
|
.form-control-validation(
|
|
566
|
-
var(--color-
|
|
569
|
+
var(--color-content-primary);
|
|
567
570
|
var(--color-sentiment-positive);
|
|
568
571
|
var(--color-sentiment-positive);
|
|
569
572
|
);
|
|
@@ -595,7 +598,7 @@ input[type="password"] {
|
|
|
595
598
|
|
|
596
599
|
.np-theme-personal & {
|
|
597
600
|
.form-control-validation(
|
|
598
|
-
var(--color-
|
|
601
|
+
var(--color-content-primary);
|
|
599
602
|
var(--color-sentiment-warning);
|
|
600
603
|
var(--color-sentiment-warning);
|
|
601
604
|
);
|
|
@@ -611,7 +614,7 @@ input[type="password"] {
|
|
|
611
614
|
|
|
612
615
|
.np-theme-personal & {
|
|
613
616
|
.form-control-validation(
|
|
614
|
-
var(--color-
|
|
617
|
+
var(--color-content-primary);
|
|
615
618
|
var(--color-sentiment-negative);
|
|
616
619
|
var(--color-sentiment-negative-hover);
|
|
617
620
|
);
|
|
@@ -678,6 +681,7 @@ input[type="password"] {
|
|
|
678
681
|
width: 100%;
|
|
679
682
|
}
|
|
680
683
|
|
|
684
|
+
// DEPRECATED: use `Field` component (or in some edge cases `Label` component) instead
|
|
681
685
|
.control-label {
|
|
682
686
|
margin-bottom: 0;
|
|
683
687
|
vertical-align: calc(-2px);
|
|
@@ -742,6 +746,7 @@ input[type="password"] {
|
|
|
742
746
|
// Reset spacing and right align labels, but scope to media queries so that
|
|
743
747
|
// labels on narrow viewports stack the same as a default form example.
|
|
744
748
|
@media (min-width: @screen-sm-min) {
|
|
749
|
+
// DEPRECATED: use `Field` component (or in some edge cases `Label` component) instead
|
|
745
750
|
.control-label {
|
|
746
751
|
.text-align(right);
|
|
747
752
|
|
|
@@ -764,6 +769,7 @@ input[type="password"] {
|
|
|
764
769
|
// inputs and labels within a `.form-group`.
|
|
765
770
|
.form-group-lg {
|
|
766
771
|
@media (min-width: @screen-sm-min) {
|
|
772
|
+
// DEPRECATED: use `Field` component (or in some edge cases `Label` component) instead
|
|
767
773
|
.control-label {
|
|
768
774
|
padding-top: 17px;
|
|
769
775
|
font-size: var(--font-size-20);
|
|
@@ -773,6 +779,7 @@ input[type="password"] {
|
|
|
773
779
|
|
|
774
780
|
.form-group-sm {
|
|
775
781
|
@media (min-width: @screen-sm-min) {
|
|
782
|
+
// DEPRECATED: use `Field` component (or in some edge cases `Label` component) instead
|
|
776
783
|
.control-label {
|
|
777
784
|
padding-top: 8px;
|
|
778
785
|
font-size: var(--font-size-14);
|
|
@@ -1116,27 +1123,27 @@ input[type="password"] {
|
|
|
1116
1123
|
}
|
|
1117
1124
|
}
|
|
1118
1125
|
|
|
1119
|
-
.checkbox:hover .tw-checkbox-button,
|
|
1126
|
+
.checkbox:hover .tw-checkbox-button,
|
|
1120
1127
|
.radio:not(.disabled):hover .tw-radio-button,
|
|
1121
|
-
.tw-checkbox-button:not(.disabled,:disabled):hover,
|
|
1122
|
-
input[type=checkbox]:hover+.tw-checkbox-button,
|
|
1128
|
+
.tw-checkbox-button:not(.disabled,:disabled):hover,
|
|
1129
|
+
input[type=checkbox]:hover+.tw-checkbox-button,
|
|
1123
1130
|
input[type=radio]:not(.disabled,:disabled):hover+.tw-radio-button,
|
|
1124
1131
|
input[type=checkbox]:not(.disabled,:disabled):hover+.tw-checkbox-button {
|
|
1125
1132
|
box-shadow: inset 0 0 0 2px var(--color-sentiment-negative-hover);
|
|
1126
1133
|
}
|
|
1127
1134
|
|
|
1128
|
-
.tw-checkbox-button.checked,
|
|
1129
|
-
.tw-checkbox-button:checked,
|
|
1135
|
+
.tw-checkbox-button.checked,
|
|
1136
|
+
.tw-checkbox-button:checked,
|
|
1130
1137
|
input[type=checkbox]:checked+.tw-checkbox-button,
|
|
1131
|
-
.tw-checkbox-button.checked:hover,
|
|
1132
|
-
.tw-checkbox-button:checked:hover,
|
|
1138
|
+
.tw-checkbox-button.checked:hover,
|
|
1139
|
+
.tw-checkbox-button:checked:hover,
|
|
1133
1140
|
input[type=checkbox]:not(.disabled,:disabled):checked:hover+.tw-checkbox-button {
|
|
1134
1141
|
box-shadow: inset 0 0 0 3px var(--color-sentiment-negative);
|
|
1135
1142
|
background: var(--color-sentiment-negative);
|
|
1136
1143
|
}
|
|
1137
1144
|
|
|
1138
|
-
.checkbox>label:not(.disabled,:disabled):active input[type=checkbox]+.tw-checkbox-button,
|
|
1139
|
-
.checkbox>label:not(.disabled,:disabled):focus-visible input[type=checkbox]+.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,
|
|
1140
1147
|
.checkbox>label:not(.disabled,:disabled):has(:focus-visible) input[type=checkbox]+.tw-checkbox-button {
|
|
1141
1148
|
box-shadow: inset 0 0 0 2px var(--color-sentiment-negative-active);
|
|
1142
1149
|
}
|
|
@@ -1166,20 +1173,6 @@ input[type="password"] {
|
|
|
1166
1173
|
margin-bottom: 0;
|
|
1167
1174
|
}
|
|
1168
1175
|
|
|
1169
|
-
.form-group:focus-within .control-label,
|
|
1170
|
-
.form-group:focus-within > label,
|
|
1171
|
-
.has-warning .control-label,
|
|
1172
|
-
.has-warning label,
|
|
1173
|
-
.has-success .control-label,
|
|
1174
|
-
.has-success label {
|
|
1175
|
-
color: var(--color-content-secondary) !important;
|
|
1176
|
-
}
|
|
1177
|
-
|
|
1178
|
-
.has-error .control-label,
|
|
1179
|
-
.has-error label {
|
|
1180
|
-
color: var(--color-sentiment-negative) !important;
|
|
1181
|
-
}
|
|
1182
|
-
|
|
1183
1176
|
.form-group .alert:before,
|
|
1184
1177
|
.error-messages:before {
|
|
1185
1178
|
content: none;
|
|
@@ -5,8 +5,10 @@
|
|
|
5
5
|
.form-control-validation(@text-color; @border-color; @border-hover;) {
|
|
6
6
|
border-color: @border-color !important;
|
|
7
7
|
|
|
8
|
-
//
|
|
8
|
+
// DEPRECATED: use `Field` component (or in some edge cases `Label` component) instead
|
|
9
9
|
.control-label,
|
|
10
|
+
|
|
11
|
+
// Color the label and help text
|
|
10
12
|
.radio,
|
|
11
13
|
.checkbox,
|
|
12
14
|
.radio-inline,
|