1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-30 08:09:15 +01:00
metamask-extension/ui/pages/swaps/dropdown-search-list/index.scss

166 lines
3.1 KiB
SCSS
Raw Normal View History

2020-10-06 20:28:38 +02:00
.dropdown-search-list {
&__search-list-open {
margin: 24px;
box-shadow: none;
border-radius: 6px;
min-height: 297px;
width: 100%;
}
&__token-container {
margin: 0;
min-height: auto;
2022-03-17 19:04:01 +01:00
border: 1px solid var(--color-border-default);
2020-10-06 20:28:38 +02:00
box-sizing: border-box;
box-shadow: none;
border-radius: 6px;
width: 100%;
}
&--open {
box-shadow: var(--shadow-size-sm) var(--color-shadow-default);
2022-03-17 19:04:01 +01:00
border: 1px solid var(--color-border-default);
2020-10-06 20:28:38 +02:00
}
&__close-area {
position: fixed;
top: 0;
left: 0;
z-index: 1000;
width: 100%;
height: 100%;
}
2020-10-06 20:28:38 +02:00
&__selector-closed-container {
display: flex;
width: 100%;
position: relative;
align-items: center;
max-height: 60px;
transition: 200ms ease-in-out;
border-radius: 6px;
box-shadow: none;
2022-03-17 19:04:01 +01:00
border: 1px solid var(--color-border-default);
2020-10-06 20:28:38 +02:00
height: 60px;
&:hover {
2022-03-17 19:04:01 +01:00
background: var(--color-background-alternative);
2020-10-06 20:28:38 +02:00
}
}
&__caret {
position: absolute;
right: 16px;
2022-03-17 19:04:01 +01:00
color: var(--color-icon-muted);
2020-10-06 20:28:38 +02:00
}
&__selector-closed {
display: flex;
flex-flow: row nowrap;
align-items: center;
padding: 16px 12px;
box-sizing: border-box;
cursor: pointer;
position: relative;
align-items: center;
flex: 1;
2020-10-06 20:28:38 +02:00
height: 60px;
i {
font-size: 1.2em;
}
.dropdown-search-list__item-labels {
width: 56%;
}
}
&__selector-closed-icon {
width: 34px;
height: 34px;
}
&__closed-primary-label {
@include H4;
2022-03-17 19:04:01 +01:00
color: var(--color-text-default);
2020-10-06 20:28:38 +02:00
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
&__search-list--open {
box-shadow: var(--shadow-size-md) var(--color-shadow-default);
2022-03-17 19:04:01 +01:00
border: 1px solid var(--color-border-muted);
2020-10-06 20:28:38 +02:00
}
&__default-dropdown-icon {
width: 34px;
height: 34px;
border-radius: 50%;
2022-03-17 19:04:01 +01:00
background: var(--color-background-alternative);
2020-10-06 20:28:38 +02:00
flex: 0 1 auto;
}
&__labels {
display: flex;
justify-content: space-between;
width: 100%;
flex: 1;
}
&__item-labels {
display: flex;
flex-direction: column;
justify-content: center;
margin-left: 8px;
}
&__select-default {
2022-03-17 19:04:01 +01:00
color: var(--color-text-muted);
2020-10-06 20:28:38 +02:00
}
&__placeholder {
@include H6;
padding: 16px;
2022-03-17 19:04:01 +01:00
color: var(--color-text-alternative);
2020-10-06 20:28:38 +02:00
min-height: 300px;
position: relative;
z-index: 1002;
2022-03-17 19:04:01 +01:00
background: var(--color-background-default);
2020-10-06 20:28:38 +02:00
border-radius: 6px;
min-height: 194px;
overflow: hidden;
text-overflow: ellipsis;
.searchable-item-list__item--add-token {
padding: 8px 0;
}
2020-10-06 20:28:38 +02:00
}
&__loading-item {
transition: 200ms ease-in-out;
display: flex;
flex-flow: row nowrap;
align-items: center;
justify-content: center;
padding: 16px 12px;
box-sizing: border-box;
cursor: pointer;
2022-03-17 19:04:01 +01:00
border-top: 1px solid var(--color-border-muted);
2020-10-06 20:28:38 +02:00
position: relative;
z-index: 1;
2022-03-17 19:04:01 +01:00
background: var(--color-background-default);
2020-10-06 20:28:38 +02:00
}
&__loading-item-text-container {
margin-left: 4px;
}
&__loading-item-text {
font-weight: bold;
}
}