@transferwise/neptune-css 14.3.26 → 14.3.28
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/buttons.css +1 -1
- package/dist/css/input-groups.css +1 -1
- package/dist/css/neptune-core.css +1 -1
- package/dist/css/neptune.css +1 -1
- package/package.json +2 -2
- package/src/less/buttons.less +3 -2
- package/src/less/core/_scaffolding.less +2 -0
- package/src/less/core/_typography-utilities.less +5 -0
- package/src/less/core/_typography.less +2 -1
- package/src/less/forms/bootstrap-forms.less +2 -1
- package/src/less/input-groups.less +3 -0
- package/src/less/mixins/_links.less +7 -0
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.
|
|
4
|
+
"version": "14.3.28",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"bin": {
|
|
54
54
|
"neptune-css-upgrade-util": "scripts/neptune-css-upgrader.js"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "a6ce105476078eede999c7dcdb330a36ded3e6d0"
|
|
57
57
|
}
|
package/src/less/buttons.less
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
@import (reference) "../variables/legacy-variables.less";
|
|
3
3
|
@import "./mixins/_buttons.less";
|
|
4
4
|
@import "./mixins/_tab-focus.less";
|
|
5
|
+
@import "./mixins/_links.less";
|
|
5
6
|
@import (reference) "./mixins/_logical-properties.less";
|
|
6
7
|
@import (reference) "./core/_typography.less";
|
|
7
8
|
@import (reference) "./ring.less";
|
|
@@ -224,8 +225,8 @@
|
|
|
224
225
|
.np-theme-personal & {
|
|
225
226
|
color: var(--color-interactive-primary);
|
|
226
227
|
border-color: transparent;
|
|
227
|
-
text-underline-offset: 2px;
|
|
228
228
|
text-decoration-thickness: 2px;
|
|
229
|
+
.link-underline();
|
|
229
230
|
|
|
230
231
|
&:not(.disabled, :disabled):hover,
|
|
231
232
|
&:not(.disabled, :disabled):focus-visible {
|
|
@@ -250,8 +251,8 @@
|
|
|
250
251
|
text-decoration: underline;
|
|
251
252
|
|
|
252
253
|
.np-theme-personal & {
|
|
253
|
-
text-underline-offset: 2px;
|
|
254
254
|
text-decoration-thickness: 2px;
|
|
255
|
+
.link-underline();
|
|
255
256
|
}
|
|
256
257
|
}
|
|
257
258
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* stylelint-disable selector-max-empty-lines */
|
|
2
2
|
@import (reference) "../../variables/neptune-tokens.less";
|
|
3
3
|
@import (reference) "../mixins/_logical-properties.less";
|
|
4
|
+
@import (reference) "../mixins/_links.less";
|
|
4
5
|
@import (reference) "../core/_typography.less";
|
|
5
6
|
@import "../../variables/legacy-variables.less";
|
|
6
7
|
|
|
@@ -127,6 +128,7 @@ a,
|
|
|
127
128
|
|
|
128
129
|
.np-theme-personal & {
|
|
129
130
|
color: var(--color-content-link);
|
|
131
|
+
.link-underline();
|
|
130
132
|
}
|
|
131
133
|
|
|
132
134
|
// @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@import (reference) "../../variables/neptune-tokens.less";
|
|
2
2
|
@import (reference) "../mixins/_logical-properties.less";
|
|
3
|
+
@import (reference) "../mixins/_links.less";
|
|
3
4
|
@import "../mixins/_text-emphasis.less";
|
|
4
5
|
|
|
5
6
|
// Deprecated classes in next iterations.
|
|
@@ -131,6 +132,10 @@
|
|
|
131
132
|
text-decoration: underline !important;
|
|
132
133
|
}
|
|
133
134
|
|
|
135
|
+
.np-theme-personal .text-underline {
|
|
136
|
+
.link-underline(true);
|
|
137
|
+
}
|
|
138
|
+
|
|
134
139
|
.text-no-decoration {
|
|
135
140
|
text-decoration: none !important;
|
|
136
141
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* stylelint-disable selector-max-empty-lines */
|
|
2
2
|
@import (reference) "../../variables/neptune-tokens.less";
|
|
3
3
|
@import (reference) "../mixins/_logical-properties.less";
|
|
4
|
+
@import (reference) "../mixins/_links.less";
|
|
4
5
|
@import (reference) "../addons/_spacing-utilities.less";
|
|
5
6
|
|
|
6
7
|
// TITLE
|
|
@@ -256,7 +257,7 @@ strong,
|
|
|
256
257
|
.np-text-link-default,
|
|
257
258
|
.np-text-link-large {
|
|
258
259
|
font-weight: var(--font-weight-semi-bold);
|
|
259
|
-
|
|
260
|
+
.link-underline();
|
|
260
261
|
}
|
|
261
262
|
|
|
262
263
|
.np-text-link-large {
|
|
@@ -1053,6 +1053,7 @@ input[type="password"] {
|
|
|
1053
1053
|
}
|
|
1054
1054
|
|
|
1055
1055
|
.input-group > .form-control,
|
|
1056
|
+
.input-group > .btn-input,
|
|
1056
1057
|
.typeahead__input-container .form-control {
|
|
1057
1058
|
box-shadow: none !important;
|
|
1058
1059
|
}
|
|
@@ -1073,7 +1074,7 @@ input[type="password"] {
|
|
|
1073
1074
|
.btn-input:not(.disabled, :disabled):focus-visible,
|
|
1074
1075
|
.btn-input:not(.disabled, :disabled):has(:focus-visible),
|
|
1075
1076
|
.input-group:not(.disabled, :disabled):focus-visible,
|
|
1076
|
-
.input-group:not(.disabled, :disabled):has(.form-control:focus-visible),
|
|
1077
|
+
.input-group:not(.disabled, :disabled):has(.form-control:focus-visible, .btn-input:focus-visible),
|
|
1077
1078
|
.form-control:not(.disabled, :disabled):focus-visible,
|
|
1078
1079
|
.form-control:not(.disabled, :disabled):has(:focus-visible),
|
|
1079
1080
|
.radio > label:not(.disabled, :disabled):focus-visible,
|
|
@@ -155,6 +155,7 @@
|
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
.input-group .input-group-addon,
|
|
158
|
+
.input-group .btn-input,
|
|
158
159
|
.input-group .form-control {
|
|
159
160
|
.border-width(left,0);
|
|
160
161
|
|
|
@@ -169,6 +170,7 @@
|
|
|
169
170
|
|
|
170
171
|
.input-group .input-group-btn:first-child,
|
|
171
172
|
.input-group .input-group-addon:first-child,
|
|
173
|
+
.input-group .btn-input:first-child,
|
|
172
174
|
.input-group .form-control:first-child {
|
|
173
175
|
.border-width(left, 1px);
|
|
174
176
|
|
|
@@ -177,6 +179,7 @@
|
|
|
177
179
|
|
|
178
180
|
.input-group .input-group-btn:last-child,
|
|
179
181
|
.input-group .input-group-addon:last-child,
|
|
182
|
+
.input-group .btn-input:last-child,
|
|
180
183
|
.input-group .form-control:last-child {
|
|
181
184
|
.border-width(right, 1px);
|
|
182
185
|
|