1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/components/app/advanced-gas-inputs/index.scss

157 lines
3.0 KiB
SCSS
Raw Normal View History

.advanced-gas-inputs {
&__gas-edit-rows {
display: flex;
flex-flow: row;
justify-content: space-between;
}
&__gas-edit-row {
display: flex;
flex-flow: column;
width: 47.5%;
&__label {
@include H7;
color: var(--color-text-alternative);
display: flex;
justify-content: space-between;
align-items: center;
2022-08-04 16:03:02 +02:00
@include screen-sm-max {
@include H8;
}
.fa-info-circle {
color: var(--color-icon-alternative);
cursor: pointer;
}
.fa-info-circle:hover {
2022-03-19 01:43:10 +01:00
color: var(--color-icon-muted);
}
}
&__error-text {
@include H7;
2022-03-24 15:45:00 +01:00
color: var(--color-error-default);
}
&__warning-text {
@include H7;
color: var(--color-warning-default);
}
&__input-wrapper {
position: relative;
}
&__input {
/*rtl:ignore*/
@include Paragraph;
direction: ltr;
2022-03-19 01:43:10 +01:00
border: 1px solid var(--color-border-muted);
border-radius: 4px;
2022-03-24 15:45:00 +01:00
background: var(--color-background-default);
2022-03-19 01:43:10 +01:00
color: var(--color-text-alternative);
height: 24px;
width: 100%;
padding-left: 8px;
padding-top: 2px;
margin-top: 7px;
}
&__input--error {
2022-03-19 01:43:10 +01:00
border: 1px solid var(--color-error-default);
}
&__input--warning {
2022-03-19 01:43:10 +01:00
border: 1px solid var(--color-warning-default);
}
&__input-arrows {
@include H6;
position: absolute;
top: 7px;
/*rtl:ignore*/
right: 0;
width: 17px;
height: 24px;
border: 1px solid var(--color-border-muted);
border-top-right-radius: 4px;
display: flex;
flex-direction: column;
color: var(--color-icon-muted);
border-bottom-right-radius: 4px;
cursor: pointer;
&__i-wrap {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
cursor: pointer;
}
&__i-wrap:hover {
2022-03-19 01:43:10 +01:00
background: var(--color-primary-default);
color: var(--color-primary-inverse);
}
i:hover {
2022-03-19 01:43:10 +01:00
background: var(--color-primary-muted);
}
i {
font-size: $font-size-h8;
}
&--hidden {
display: none;
}
}
&__input-arrows--error {
2022-03-19 01:43:10 +01:00
border: 1px solid var(--color-error-default);
}
&__input-arrows--warning {
2022-03-19 01:43:10 +01:00
border: 1px solid var(--color-warning-default);
}
input[type="number"] {
-webkit-appearance: textfield;
-moz-appearance: textfield;
appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button {
-webkit-appearance: none;
-moz-appearance: none;
display: none;
}
input[type="number"]:hover::-webkit-inner-spin-button {
-webkit-appearance: none;
-moz-appearance: none;
display: none;
}
&__gwei-symbol {
position: absolute;
top: 8px;
right: 10px;
2022-03-19 01:43:10 +01:00
color: var(--color-text-muted);
}
2020-10-06 20:28:38 +02:00
&__custom-text {
@include H7;
}
}
}