mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
3c38ff3899
* Validating or restricting the number of digits after the decimal point that the user can enter and styles for Max button and description with error message * Use better solution for validation the number of digits on token allowance flow
42 lines
689 B
SCSS
42 lines
689 B
SCSS
.custom-spending-cap {
|
|
&__input-value-and-token-name {
|
|
display: contents;
|
|
}
|
|
|
|
&__max {
|
|
position: relative;
|
|
margin-top: -30px;
|
|
|
|
&--with-error-message {
|
|
margin-top: -66px;
|
|
}
|
|
}
|
|
|
|
&__input {
|
|
width: 100%;
|
|
}
|
|
|
|
&__description {
|
|
word-break: break-word;
|
|
|
|
&--with-error-message {
|
|
margin-top: 30px;
|
|
}
|
|
}
|
|
|
|
#custom-spending-cap-input-value {
|
|
color: var(--color-error-default);
|
|
padding-inline-end: 60px;
|
|
}
|
|
|
|
#custom-spending-cap {
|
|
padding-inline-end: 60px;
|
|
}
|
|
|
|
input[type='number']::-webkit-inner-spin-button,
|
|
input[type='number']:hover::-webkit-inner-spin-button {
|
|
-webkit-appearance: none;
|
|
display: none;
|
|
}
|
|
}
|