1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00
metamask-extension/ui/pages/swaps/index.scss

177 lines
3.5 KiB
SCSS
Raw Normal View History

2020-10-06 20:28:38 +02:00
@import 'awaiting-swap/index';
@import 'awaiting-signatures/index';
@import 'smart-transaction-status/index';
2020-10-06 20:28:38 +02:00
@import 'build-quote/index';
2023-06-15 20:17:21 +02:00
@import 'prepare-swap-page/index';
@import 'notification-page/index';
2020-10-06 20:28:38 +02:00
@import 'countdown-timer/index';
@import 'dropdown-input-pair/index';
@import 'dropdown-search-list/index';
@import 'exchange-rate-display/index';
@import 'fee-card/index';
@import 'loading-swaps-quotes/index';
@import 'main-quote-summary/index';
@import 'searchable-item-list/index';
@import 'select-quote-popover/index';
@import 'slippage-buttons/index';
@import 'swaps-footer/index';
@import 'view-quote/index';
@import 'create-new-swap/index';
@import 'view-on-block-explorer/index';
2023-06-15 20:17:21 +02:00
@import 'transaction-settings/index';
@import 'list-with-search/index';
@import 'popover-custom-background/index';
@import 'mascot-background-animation/index';
2020-10-06 20:28:38 +02:00
.swaps {
display: flex;
justify-content: center;
width: 100%;
2022-08-04 16:03:02 +02:00
@include screen-sm-min {
2020-10-06 20:28:38 +02:00
z-index: 12;
}
&__error-message {
margin-left: 24px;
margin-right: 24px;
2022-08-04 16:03:02 +02:00
@include screen-sm-min {
margin-left: 20px;
margin-right: 20px;
}
}
2020-10-06 20:28:38 +02:00
&__container {
display: flex;
flex-flow: column;
align-items: center;
height: 100%;
width: 100%;
overflow-x: hidden;
overflow-y: auto;
2020-10-06 20:28:38 +02:00
2022-08-04 16:03:02 +02:00
@include screen-sm-min {
2020-10-06 20:28:38 +02:00
width: 460px;
2022-03-17 19:04:01 +01:00
background: var(--color-background-default);
box-shadow: var(--shadow-size-xs) var(--color-shadow-default);
2023-06-15 20:17:21 +02:00
border: 1px solid var(--color-border-muted);
border-radius: 8px;
2020-10-06 20:28:38 +02:00
height: 620px;
}
}
&__content {
display: flex;
flex-flow: column;
align-items: center;
position: relative;
width: 100%;
height: 100%;
2022-08-04 16:03:02 +02:00
@include screen-sm-max {
2020-10-06 20:28:38 +02:00
&--overflow {
overflow: scroll;
}
}
2022-08-04 16:03:02 +02:00
@include screen-sm-min {
2020-10-06 20:28:38 +02:00
width: 348px;
}
2023-06-15 20:17:21 +02:00
&--redesign-enabled {
@include screen-sm-min {
width: 100%;
}
}
2020-10-06 20:28:38 +02:00
}
&__title {
@include H5;
font-weight: bold;
2022-03-17 19:04:01 +01:00
color: var(--color-text-default);
margin-top: -5px;
flex: 1;
text-align: center;
2020-10-06 20:28:38 +02:00
}
&__header {
display: flex;
flex-flow: column;
justify-content: center;
align-items: center;
2023-06-15 20:17:21 +02:00
padding-top: 12px;
padding-bottom: 12px;
2022-03-17 19:04:01 +01:00
background: var(--color-background-alternative);
2020-10-06 20:28:38 +02:00
width: 100%;
flex-direction: row;
2023-06-15 20:17:21 +02:00
position: sticky;
top: 0;
z-index: 1;
2020-10-06 20:28:38 +02:00
2022-08-04 16:03:02 +02:00
@include screen-sm-min {
2023-06-15 20:17:21 +02:00
padding-top: 12px;
padding-bottom: 12px;
2020-10-06 20:28:38 +02:00
height: 66px;
}
}
&__header-cancel {
@include H7;
2022-03-17 19:04:01 +01:00
color: var(--color-primary-default);
2020-10-06 20:28:38 +02:00
cursor: pointer;
padding-right: 24px;
flex: 1;
text-align: right;
}
&__header-edit {
@include H7;
2022-03-17 19:04:01 +01:00
color: var(--color-primary-default);
cursor: pointer;
padding-left: 24px;
flex: 1;
2020-10-06 20:28:38 +02:00
}
.actionable-message__message &__notification-close-button {
background-color: transparent;
position: absolute;
right: 0;
top: 2px;
&::after {
position: absolute;
content: '\00D7';
font-size: 29px;
font-weight: 200;
color: var(--color-text-default);
background-color: transparent;
top: 0;
right: 12px;
cursor: pointer;
}
}
&__notification-title {
font-weight: bold;
margin-right: 14px;
}
2020-10-06 20:28:38 +02:00
}
2023-06-15 20:17:21 +02:00
.mm-modal {
&__custom-scrollbar {
::-webkit-scrollbar {
width: 6px;
}
::-webkit-scrollbar-thumb {
-webkit-border-radius: 10px;
border-radius: 10px;
background: var(--color-icon-muted);
}
}
}