1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-05 07:24:56 +01:00
metamask-extension/ui/components/app/gas-customization/gas-price-button-group/index.scss

252 lines
4.0 KiB
SCSS

.gas-price-button-group {
margin-top: 22px;
display: flex;
justify-content: space-evenly;
width: 100%;
padding-left: 20px;
padding-right: 20px;
&__primary-currency {
@include H4;
height: 20.5px;
margin-bottom: 7.5px;
}
&__time-estimate {
margin-top: 5.5px;
color: var(--silver-chalice);
height: 15.4px;
}
&__loading-container {
height: 130px;
}
.button-group__button,
.button-group__button--active {
@include H7;
height: 130px;
max-width: 108px;
flex-direction: column;
align-items: center;
display: flex;
padding-top: 17px;
border-radius: 4px;
border-color: var(--spindle);
background: var(--white);
color: var(--scorpion);
div {
display: flex;
flex-direction: column;
align-items: center;
}
i {
&:last-child {
display: none;
}
}
}
.button-group__button--active {
border-color: var(--primary-blue);
color: var(--scorpion);
i {
&:last-child {
display: flex;
color: var(--primary-blue);
margin-top: 8px;
}
}
}
}
.gas-price-button-group--small {
display: flex;
justify-content: stretch;
min-height: 54px;
@media screen and (max-width: $break-small) {
max-width: 260px;
}
&__button-fiat-price {
@include H6;
}
&__button-label {
@include Paragraph;
}
&__label {
font-weight: 500;
line-height: 16px;
padding-bottom: 4px;
}
&__primary-currency {
@include H7;
padding-bottom: 2px;
@media screen and (max-width: $break-small) {
@include H8;
}
}
&__secondary-currency {
@include H7;
padding-bottom: 2px;
@media screen and (max-width: $break-small) {
@include H8;
}
}
&__loading-container {
height: 54px;
}
.button-group__button,
.button-group__button--active {
background: white;
color: var(--scorpion);
padding: 4px;
div {
display: flex;
flex-flow: column;
align-items: flex-start;
justify-content: flex-start;
}
i {
&:last-child {
display: none;
}
}
}
.button-group__button--active {
color: var(--white);
background: var(--dodger-blue);
i {
&:last-child {
display: flex;
color: var(--primary-blue);
margin-top: 10px;
}
}
}
}
.gas-price-button-group--alt {
display: flex;
justify-content: stretch;
width: 95%;
&__button-fiat-price {
@include H6;
}
&__button-label {
@include Paragraph;
}
&__label {
@include H8;
font-weight: 500;
text-transform: capitalize;
}
&__primary-currency {
@include H7;
margin-top: 3px;
}
&__secondary-currency {
@include H7;
}
&__loading-container {
height: 78px;
}
&__time-estimate {
@include H7;
font-weight: 500;
margin-top: 4px;
color: var(--black);
}
.button-group__button,
.button-group__button--active {
height: 78px;
background: white;
color: #2a4055;
width: 108px;
height: 97px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.151579);
border-radius: 6px;
border: none;
div {
display: flex;
flex-flow: column;
align-items: flex-start;
justify-content: flex-start;
position: relative;
}
.button-check-wrapper {
display: none;
}
&:first-child {
margin-right: 6px;
}
&:last-child {
margin-left: 6px;
}
}
.button-group__button--active {
background: #f7fcff;
border-color: #2c8bdc;
&:first-child {
border-color: #2c8bdc;
}
.button-check-wrapper {
height: 16px;
width: 16px;
border-radius: 8px;
position: absolute;
top: -11px;
right: -10px;
background: #d5ecfa;
display: flex;
flex-flow: row;
justify-content: center;
align-items: center;
}
i {
display: flex;
color: var(--primary-blue);
font-weight: 900;
}
}
}