mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-02 14:15:06 +01:00
798930afba
* Add Swap feature to CurrencyInput * Fix linter error * Fix and Add unit tests
56 lines
936 B
SCSS
56 lines
936 B
SCSS
.unit-input {
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
align-items: center;
|
|
min-height: 54px;
|
|
border: 1px solid #dedede;
|
|
border-radius: 4px;
|
|
background-color: #fff;
|
|
color: #4d4d4d;
|
|
font-size: 1rem;
|
|
padding: 8px 10px;
|
|
position: relative;
|
|
|
|
input[type="number"] {
|
|
-moz-appearance: textfield;
|
|
}
|
|
|
|
input[type="number"]::-webkit-inner-spin-button {
|
|
-webkit-appearance: none;
|
|
-moz-appearance: none;
|
|
display: none;
|
|
}
|
|
|
|
input[type="number"]:hover::-webkit-inner-spin-button {
|
|
-webkit-appearance: none;
|
|
-moz-appearance: none;
|
|
display: none;
|
|
}
|
|
|
|
&__inputs {
|
|
flex: 1 0 auto;
|
|
}
|
|
|
|
&__input {
|
|
color: #4d4d4d;
|
|
font-size: 1rem;
|
|
font-family: Roboto;
|
|
border: none;
|
|
outline: 0 !important;
|
|
max-width: 22ch;
|
|
}
|
|
|
|
&__input-container {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
&__suffix {
|
|
margin-left: 3px;
|
|
}
|
|
|
|
&--error {
|
|
border-color: $red;
|
|
}
|
|
}
|