1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-12 04:37:13 +01:00
metamask-extension/ui/app/css/itcss/components/hero-balance.scss

131 lines
2.4 KiB
SCSS
Raw Normal View History

2017-08-07 00:46:55 +02:00
.hero-balance {
2017-08-07 00:46:55 +02:00
@media screen and (max-width: $break-small) {
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
2017-10-19 23:08:52 +02:00
flex: 0 0 auto;
padding-top: 16px;
2017-08-07 00:46:55 +02:00
}
@media screen and (min-width: $break-large) {
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: center;
2018-01-11 06:09:09 +01:00
margin: 2.3em 2.37em .8em;
flex: 0 0 auto;
2017-08-07 00:46:55 +02:00
}
.balance-container {
display: flex;
margin: 0;
justify-content: flex-start;
align-items: center;
@media screen and (max-width: $break-small) {
flex-direction: column;
2017-10-19 23:08:52 +02:00
flex: 0 0 auto;
max-width: 100%;
}
@media screen and (min-width: $break-large) {
flex-direction: row;
flex-grow: 3;
min-width: 0;
}
}
.balance-display {
2018-01-12 02:12:58 +01:00
.token-amount {
color: $black;
max-width: 100%;
.token-balance {
display: flex;
}
2018-01-12 02:12:58 +01:00
}
2017-08-07 00:46:55 +02:00
@media screen and (max-width: $break-small) {
max-width: 100%;
2017-08-07 00:46:55 +02:00
text-align: center;
.token-amount {
2018-01-11 06:09:09 +01:00
font-size: 1.75rem;
margin-top: 1rem;
.token-balance {
flex-direction: column;
}
}
.fiat-amount {
2017-08-07 02:46:18 +02:00
font-size: 115%;
margin-top: 8.5%;
2017-08-14 10:31:27 +02:00
color: #a0a0a0;
}
2017-08-07 00:46:55 +02:00
}
@media screen and (min-width: $break-large) {
margin: 0 .8em;
justify-content: flex-start;
align-items: flex-start;
min-width: 0;
2017-08-07 00:46:55 +02:00
.token-amount {
2018-01-11 06:09:09 +01:00
font-size: 1.5rem;
}
2017-08-07 00:46:55 +02:00
.fiat-amount {
2017-08-14 10:31:27 +02:00
margin-top: .25%;
font-size: 105%;
}
2017-08-07 00:46:55 +02:00
}
@media #{$sub-mid-size-breakpoint-range} {
margin-left: .4em;
margin-right: .4em;
justify-content: flex-start;
align-items: flex-start;
.token-amount {
font-size: 1rem;
}
.fiat-amount {
margin-top: .25%;
font-size: 1rem;
}
}
2017-08-07 00:46:55 +02:00
}
.hero-balance-buttons {
2017-08-14 10:31:27 +02:00
2017-08-07 02:46:18 +02:00
@media screen and (max-width: $break-small) {
width: 100%;
2017-10-19 23:08:52 +02:00
// height: 100px; // needed a round number to set the heights of the buttons inside
flex: 0 0 auto;
padding: 16px 0;
2017-08-07 02:46:18 +02:00
}
@media screen and (min-width: $break-large) {
flex-grow: 2;
justify-content: flex-end;
2017-08-07 02:46:18 +02:00
}
2017-08-07 00:46:55 +02:00
}
}
2018-01-11 06:09:09 +01:00
.hero-balance-button {
2018-03-26 07:19:42 +02:00
min-width: initial;
2018-01-11 06:09:09 +01:00
width: 6rem;
@media #{$sub-mid-size-breakpoint-range} {
2018-03-26 07:19:42 +02:00
padding: .4rem;
width: 4rem;
display: flex;
flex: 1;
justify-content: center;
}
2018-01-11 06:09:09 +01:00
}