Skip to content

Commit

Permalink
move currency-display styles to where they are used (#9119)
Browse files Browse the repository at this point in the history
  • Loading branch information
brad-decker committed Aug 5, 2020
1 parent 658e478 commit 723e478
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 83 deletions.
82 changes: 0 additions & 82 deletions ui/app/css/itcss/components/currency-display.scss

This file was deleted.

1 change: 0 additions & 1 deletion ui/app/css/itcss/components/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

// Tx List and Sections
@import './sections';
@import './currency-display';
@import './menu';
@import './gas-slider';
@import './tab-bar';
Expand Down
82 changes: 82 additions & 0 deletions ui/app/pages/send/send-content/send-gas-row/send-gas-row.scss
Original file line number Diff line number Diff line change
@@ -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;
}
}
}
2 changes: 2 additions & 0 deletions ui/app/pages/send/send.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import './send-content/send-gas-row/send-gas-row';

.send {
&__header {
position: relative;
Expand Down

0 comments on commit 723e478

Please sign in to comment.