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

252 lines
4.2 KiB
SCSS
Raw Normal View History

.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;
2022-03-19 01:43:10 +01:00
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;
2022-03-19 01:43:10 +01:00
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 {
2022-03-19 01:43:10 +01:00
border-color: var(--color-primary-default);
color: var(--color-text-alternative);
i {
&:last-child {
display: flex;
2022-03-19 01:43:10 +01:00
color: var(--color-primary-default);
margin-top: 8px;
}
}
}
}
.gas-price-button-group--small {
display: flex;
justify-content: stretch;
min-height: 54px;
2022-08-04 16:03:02 +02:00
@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;
2022-08-04 16:03:02 +02:00
@include screen-sm-max {
@include H8;
}
}
&__secondary-currency {
@include H7;
padding-bottom: 2px;
2022-08-04 16:03:02 +02:00
@include screen-sm-max {
@include H8;
}
}
&__loading-container {
height: 54px;
}
.button-group__button,
.button-group__button--active {
2022-03-19 01:43:10 +01:00
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 {
2022-03-19 01:43:10 +01:00
color: var(--color-background-default);
background: var(--color-primary-muted);
i {
&:last-child {
display: flex;
2022-03-19 01:43:10 +01:00
color: var(--color-primary-default);
margin-top: 10px;
}
}
}
}
.gas-price-button-group--alt {
display: flex;
justify-content: stretch;
2018-11-27 18:30:41 +01:00
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;
2022-03-19 01:43:10 +01:00
color: var(--color-text-default);
}
.button-group__button,
.button-group__button--active {
height: 78px;
2022-03-19 01:43:10 +01:00
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 {
2022-03-19 01:43:10 +01:00
background: var(--color-background-alternative);
border-color: var(--color-primary-default);
&:first-child {
2022-03-19 01:43:10 +01:00
border-color: var(--color-primary-default);
}
.button-check-wrapper {
height: 16px;
width: 16px;
border-radius: 8px;
position: absolute;
top: -11px;
right: -10px;
2022-03-19 01:43:10 +01:00
background: var(--color-background-alternative);
display: flex;
flex-flow: row;
justify-content: center;
align-items: center;
}
i {
display: flex;
2022-03-19 01:43:10 +01:00
color: var(--color-primary-default);
font-weight: 900;
}
}
}