A Metamask fork with Infura removed and default networks editable
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ciphermask/ui/components/app/gas-customization/gas-price-button-group/index.scss

252 lines
4.2 KiB

.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(--color-text-alternative);
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(--color-primary-muted);
background: var(--color-background-default);
color: var(--color-text-alternative);
div {
display: flex;
flex-direction: column;
align-items: center;
}
i {
&:last-child {
display: none;
}
}
}
.button-group__button--active {
border-color: var(--color-primary-default);
color: var(--color-text-alternative);
i {
&:last-child {
display: flex;
color: var(--color-primary-default);
margin-top: 8px;
}
}
}
}
.gas-price-button-group--small {
display: flex;
justify-content: stretch;
min-height: 54px;
@include screen-sm-max {
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;
@include screen-sm-max {
@include H8;
}
}
&__secondary-currency {
@include H7;
padding-bottom: 2px;
@include screen-sm-max {
@include H8;
}
}
&__loading-container {
height: 54px;
}
.button-group__button,
.button-group__button--active {
background: var(--color-background-default);
color: var(--color-text-alternative);
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(--color-background-default);
background: var(--color-primary-muted);
i {
&:last-child {
display: flex;
color: var(--color-primary-default);
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(--color-text-default);
}
.button-group__button,
.button-group__button--active {
height: 78px;
background: var(--color-background-default);
color: var(--color-text-default);
width: 108px;
height: 97px;
box-shadow: var(--shadow-size-sm) var(--color-shadow-default);
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: var(--color-background-alternative);
border-color: var(--color-primary-default);
&:first-child {
border-color: var(--color-primary-default);
}
.button-check-wrapper {
height: 16px;
width: 16px;
border-radius: 8px;
position: absolute;
top: -11px;
right: -10px;
background: var(--color-background-alternative);
display: flex;
flex-flow: row;
justify-content: center;
align-items: center;
}
i {
display: flex;
color: var(--color-primary-default);
font-weight: 900;
}
}
}