1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 11:22:43 +02:00

move currency-display styles to where they are used (#9119)

This commit is contained in:
Brad Decker 2020-08-05 08:43:07 -05:00 committed by GitHub
parent 658e478f29
commit 723e478689
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 84 additions and 83 deletions

View File

@ -1,82 +0,0 @@
.currency-display {
height: 54px;
border: 1px solid $alto;
border-radius: 4px;
background-color: $white;
color: $scorpion;
font-size: 16px;
padding: 8px 10px;
position: relative;
&__primary-row {
display: flex;
}
&__input {
color: $scorpion;
font-size: 16px;
line-height: 22px;
border: none;
max-width: 22ch;
}
&__primary-currency {
color: $scorpion;
font-weight: 400;
font-size: 16px;
line-height: 22px;
}
&__converted-row {
display: flex;
}
&__converted-value,
&__converted-currency {
color: $dusty-gray;
font-size: 12px;
line-height: 12px;
}
&__input-wrapper {
position: relative;
display: flex;
flex: 1;
max-width: 100%;
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;
}
}
&__currency-symbol {
margin-top: 1px;
color: $scorpion;
}
.react-numeric-input {
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;
}
}
}

View File

@ -15,7 +15,6 @@
// Tx List and Sections
@import './sections';
@import './currency-display';
@import './menu';
@import './gas-slider';
@import './tab-bar';

View File

@ -0,0 +1,82 @@
.currency-display {
height: 54px;
border: 1px solid $alto;
border-radius: 4px;
background-color: $white;
color: $scorpion;
font-size: 16px;
padding: 8px 10px;
position: relative;
&__primary-row {
display: flex;
}
&__input {
color: $scorpion;
font-size: 16px;
line-height: 22px;
border: none;
max-width: 22ch;
}
&__primary-currency {
color: $scorpion;
font-weight: 400;
font-size: 16px;
line-height: 22px;
}
&__converted-row {
display: flex;
}
&__converted-value,
&__converted-currency {
color: $dusty-gray;
font-size: 12px;
line-height: 12px;
}
&__input-wrapper {
position: relative;
display: flex;
flex: 1;
max-width: 100%;
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;
}
}
&__currency-symbol {
margin-top: 1px;
color: $scorpion;
}
.react-numeric-input {
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;
}
}
}

View File

@ -1,3 +1,5 @@
@import './send-content/send-gas-row/send-gas-row';
.send {
&__header {
position: relative;