1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-05 15:35:46 +01:00
metamask-extension/ui/pages/swaps/slippage-buttons/index.scss

133 lines
2.6 KiB
SCSS
Raw Normal View History

2020-10-06 20:28:38 +02:00
.slippage-buttons {
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
&__header {
display: flex;
align-items: center;
2022-03-17 19:04:01 +01:00
color: var(--color-primary-default);
2020-10-06 20:28:38 +02:00
margin-bottom: 0;
margin-left: auto;
margin-right: auto;
background: unset;
&--open {
margin-bottom: 8px;
}
2020-10-06 20:28:38 +02:00
}
&__header-text {
@include H6;
margin-right: 6px;
2022-03-17 19:04:01 +01:00
color: var(--color-primary-default);
2020-10-06 20:28:38 +02:00
font-weight: 900;
}
&__content {
padding-left: 10px;
}
&__dropdown-content {
display: flex;
align-items: center;
}
&__buttons-prefix {
display: flex;
align-items: center;
margin-right: 8px;
}
&__prefix-text {
@include H6;
margin-right: 4px;
2022-03-17 19:04:01 +01:00
color: var(--color-text-default);
2020-10-06 20:28:38 +02:00
font-weight: 900;
}
&__error-text {
@include H7;
2022-03-17 19:04:01 +01:00
color: var(--color-error-default);
2020-10-06 20:28:38 +02:00
margin-top: 8px;
}
&__button-group {
& &-custom-button {
cursor: text;
display: flex;
align-items: center;
justify-content: center;
position: relative;
min-width: 72px;
margin-right: 0;
}
}
&__custom-input {
display: flex;
justify-content: center;
input {
border: none;
width: 64px;
text-align: center;
2022-03-17 19:04:01 +01:00
background: var(--color-primary-default);
color: var(--color-primary-inverse);
2020-10-06 20:28:38 +02:00
font-weight: inherit;
&::-webkit-input-placeholder { /* WebKit, Blink, Edge */
2022-03-17 19:04:01 +01:00
color: var(--color-primary-inverse);
2020-10-06 20:28:38 +02:00
}
&:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
2022-03-17 19:04:01 +01:00
color: var(--color-primary-inverse);
2020-10-06 20:28:38 +02:00
opacity: 1;
}
&::-moz-placeholder { /* Mozilla Firefox 19+ */
2022-03-17 19:04:01 +01:00
color: var(--color-primary-inverse);
2020-10-06 20:28:38 +02:00
opacity: 1;
}
&:-ms-input-placeholder { /* Internet Explorer 10-11 */
2022-03-17 19:04:01 +01:00
color: var(--color-primary-inverse);
2020-10-06 20:28:38 +02:00
}
&::-ms-input-placeholder { /* Microsoft Edge */
2022-03-17 19:04:01 +01:00
color: var(--color-primary-inverse);
2020-10-06 20:28:38 +02:00
}
&::placeholder { /* Most modern browsers support this now. */
2022-03-17 19:04:01 +01:00
color: var(--color-primary-inverse);
2020-10-06 20:28:38 +02:00
}
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
/* display: none; <- Crashes Chrome on hover */
-webkit-appearance: none;
margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}
input[type=number] {
-moz-appearance: textfield;
}
&--danger {
input {
background: var(--color-error-default);
2020-10-06 20:28:38 +02:00
}
}
}
&__percentage-suffix {
position: absolute;
right: 5px;
}
}