mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
The `TransactionViewBalance` component has been split into three separate components. This was done primarily to make the asset page easier to implement. Also the name `TransactionViewBalance` didn't describe this component very well anymore. Instead of the Ethereum and token-specific logic being in the same component, the two cases were split into the `EthOverview` and `TokenOverview` components respectively. They both use the `WalletOverview` component, which has the structure shared by both cases.
138 lines
2.3 KiB
SCSS
138 lines
2.3 KiB
SCSS
.wallet-overview {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
flex: 1;
|
|
height: 54px;
|
|
min-width: 0;
|
|
|
|
@media screen and (max-width: $break-small) {
|
|
flex-direction: column;
|
|
height: initial;
|
|
width: 100%;
|
|
}
|
|
|
|
&__balance {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
min-width: 0;
|
|
|
|
@media screen and (max-width: $break-small) {
|
|
flex-direction: column;
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
&__buttons {
|
|
display: flex;
|
|
flex-direction: row;
|
|
|
|
@media screen and (max-width: $break-small) {
|
|
margin-bottom: 16px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.eth-overview {
|
|
&__balance {
|
|
margin: 0 12px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
position: relative;
|
|
|
|
@media screen and (max-width: $break-small) {
|
|
align-items: center;
|
|
margin: 16px 0;
|
|
padding: 0 16px;
|
|
max-width: 100%;
|
|
}
|
|
}
|
|
|
|
&__primary-container {
|
|
display: flex;
|
|
}
|
|
|
|
&__primary-balance {
|
|
font-size: 1.5rem;
|
|
color: $black;
|
|
|
|
@media screen and (max-width: $break-small) {
|
|
font-size: 32px;
|
|
line-height: 45px;
|
|
width: 100%;
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
&__cached-star {
|
|
margin-left: 4px;
|
|
}
|
|
|
|
&__cached-balance, &__cached-star {
|
|
color: $web-orange;
|
|
}
|
|
|
|
&__cached-secondary-balance {
|
|
color: rgba(220, 153, 18, 0.6901960784313725);
|
|
font-size: 16px;
|
|
line-height: 23px;
|
|
}
|
|
|
|
&__secondary-balance {
|
|
font-size: 16px;
|
|
line-height: 23px;
|
|
font-weight: 400;
|
|
color: $Grey-400;
|
|
}
|
|
|
|
&__button {
|
|
min-width: initial;
|
|
width: 100px;
|
|
|
|
&:not(:last-child) {
|
|
margin-right: 12px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.token-overview {
|
|
&__balance {
|
|
margin: 0 12px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
position: relative;
|
|
|
|
@media screen and (max-width: $break-small) {
|
|
align-items: center;
|
|
margin: 16px 0;
|
|
padding: 0 16px;
|
|
max-width: 100%;
|
|
}
|
|
}
|
|
|
|
&__primary-balance {
|
|
font-size: 1.5rem;
|
|
color: $black;
|
|
|
|
@media screen and (max-width: $break-small) {
|
|
font-size: 32px;
|
|
line-height: 45px;
|
|
width: 100%;
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
&__button {
|
|
min-width: initial;
|
|
width: 100px;
|
|
|
|
&:not(:last-child) {
|
|
margin-right: 12px;
|
|
}
|
|
}
|
|
}
|