mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-29 23:58:06 +01:00
5592687df1
* Updating design tokens v1.8 and shadows * Adding missing stories * Some fixes and updates to css and stories * removing unneeded story * Fixing story order
166 lines
3.1 KiB
SCSS
166 lines
3.1 KiB
SCSS
.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;
|
|
border: 1px solid var(--color-border-default);
|
|
box-sizing: border-box;
|
|
box-shadow: none;
|
|
border-radius: 6px;
|
|
width: 100%;
|
|
}
|
|
|
|
&--open {
|
|
box-shadow: var(--shadow-size-sm) var(--color-shadow-default);
|
|
border: 1px solid var(--color-border-default);
|
|
}
|
|
|
|
&__close-area {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 1000;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
&__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;
|
|
border: 1px solid var(--color-border-default);
|
|
height: 60px;
|
|
|
|
&:hover {
|
|
background: var(--color-background-alternative);
|
|
}
|
|
}
|
|
|
|
&__caret {
|
|
position: absolute;
|
|
right: 16px;
|
|
color: var(--color-icon-muted);
|
|
}
|
|
|
|
&__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;
|
|
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;
|
|
|
|
color: var(--color-text-default);
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
&__search-list--open {
|
|
box-shadow: var(--shadow-size-md) var(--color-shadow-default);
|
|
border: 1px solid var(--color-border-muted);
|
|
}
|
|
|
|
&__default-dropdown-icon {
|
|
width: 34px;
|
|
height: 34px;
|
|
border-radius: 50%;
|
|
background: var(--color-background-alternative);
|
|
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 {
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
&__placeholder {
|
|
@include H6;
|
|
|
|
padding: 16px;
|
|
color: var(--color-text-alternative);
|
|
min-height: 300px;
|
|
position: relative;
|
|
z-index: 1002;
|
|
background: var(--color-background-default);
|
|
border-radius: 6px;
|
|
min-height: 194px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
|
|
.searchable-item-list__item--add-token {
|
|
padding: 8px 0;
|
|
}
|
|
}
|
|
|
|
&__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;
|
|
border-top: 1px solid var(--color-border-muted);
|
|
position: relative;
|
|
z-index: 1;
|
|
background: var(--color-background-default);
|
|
}
|
|
|
|
&__loading-item-text-container {
|
|
margin-left: 4px;
|
|
}
|
|
|
|
&__loading-item-text {
|
|
font-weight: bold;
|
|
}
|
|
}
|