mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-30 08:09:15 +01:00
226 lines
3.8 KiB
SCSS
226 lines
3.8 KiB
SCSS
.view-quote {
|
|
display: flex;
|
|
flex-flow: column;
|
|
align-items: center;
|
|
flex: 1;
|
|
width: 100%;
|
|
|
|
&__content {
|
|
display: flex;
|
|
flex-flow: column;
|
|
align-items: center;
|
|
width: 100%;
|
|
height: 100%;
|
|
padding-left: 20px;
|
|
padding-right: 20px;
|
|
|
|
&_modal > div:not(.view-quote__warning-wrapper) {
|
|
opacity: 0.6;
|
|
pointer-events: none;
|
|
}
|
|
|
|
@media screen and (max-width: $break-small) {
|
|
overflow-y: auto;
|
|
max-height: 420px;
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: $break-large) {
|
|
width: 348px;
|
|
}
|
|
|
|
&__new-quote-countdown {
|
|
@include H7;
|
|
|
|
font-weight: bold;
|
|
|
|
&--danger {
|
|
span {
|
|
color: var(--Red-500);
|
|
}
|
|
}
|
|
}
|
|
|
|
&__view-other-button-container {
|
|
border-radius: 28px;
|
|
width: 100%;
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 46px;
|
|
}
|
|
|
|
&__view-other-button,
|
|
&__view-other-button-fade {
|
|
display: flex;
|
|
align-items: center;
|
|
position: absolute;
|
|
|
|
@include H7;
|
|
|
|
color: white;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
border-radius: 28px;
|
|
padding: 5px 18px;
|
|
background: linear-gradient(90deg, var(--Blue-500) 0%, var(--Blue-400) 101.32%);
|
|
|
|
|
|
@media screen and (min-width: $break-large) {
|
|
@include H6;
|
|
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.fa-arrow-right {
|
|
margin-left: 4px;
|
|
font-size: 10px;
|
|
margin-top: 2px;
|
|
}
|
|
}
|
|
|
|
&__view-other-button-fade {
|
|
background: #0372c3;
|
|
opacity: 0;
|
|
transition: opacity ease-in-out 1s;
|
|
|
|
&:hover {
|
|
opacity: 1;
|
|
};
|
|
}
|
|
|
|
&__price-difference-warning {
|
|
&-wrapper {
|
|
width: 100%;
|
|
|
|
&.low,
|
|
&.medium,
|
|
&.high {
|
|
.actionable-message {
|
|
.actionable-message__message {
|
|
color: inherit;
|
|
}
|
|
|
|
button {
|
|
font-size: $font-size-h8;
|
|
padding: 4px 12px;
|
|
border-radius: 42px;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.low {
|
|
.actionable-message {
|
|
button {
|
|
background: var(--Blue-500);
|
|
color: #fff;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.medium {
|
|
.actionable-message {
|
|
border-color: var(--Yellow-500);
|
|
background: var(--Yellow-100);
|
|
|
|
button {
|
|
background: var(--Yellow-500);
|
|
}
|
|
}
|
|
}
|
|
|
|
&.high {
|
|
.actionable-message {
|
|
border-color: var(--Red-300);
|
|
background: var(--Red-000);
|
|
|
|
button {
|
|
background: var(--Red-500);
|
|
color: #fff;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&-contents {
|
|
display: flex;
|
|
text-align: left;
|
|
|
|
&-title {
|
|
font-weight: bold;
|
|
}
|
|
|
|
&-actions {
|
|
text-align: end;
|
|
padding-top: 10px;
|
|
}
|
|
|
|
i {
|
|
margin-inline-start: 10px;
|
|
}
|
|
}
|
|
}
|
|
|
|
&__warning-wrapper {
|
|
width: 100%;
|
|
align-items: center;
|
|
justify-content: center;
|
|
max-width: 340px;
|
|
margin-top: 8px;
|
|
margin-bottom: 8px;
|
|
|
|
@media screen and (min-width: $break-large) {
|
|
&--thin {
|
|
min-height: 36px;
|
|
}
|
|
|
|
display: flex;
|
|
}
|
|
}
|
|
|
|
&__bold {
|
|
font-weight: bold;
|
|
}
|
|
|
|
&__countdown-timer-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
&__fee-card-container {
|
|
display: flex;
|
|
align-items: center;
|
|
width: 100%;
|
|
max-width: 311px;
|
|
margin-bottom: 8px;
|
|
|
|
@media screen and (min-width: $break-large) {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
&__metamask-rate {
|
|
display: flex;
|
|
}
|
|
|
|
&__metamask-rate-text {
|
|
@include H7;
|
|
|
|
color: var(--Grey-500);
|
|
}
|
|
|
|
&__metamask-rate-info-icon {
|
|
margin-left: 4px;
|
|
}
|
|
|
|
&__thin-swaps-footer {
|
|
max-height: 82px;
|
|
|
|
@media screen and (min-width: $break-large) {
|
|
height: 72px;
|
|
}
|
|
}
|
|
}
|