1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 12:29:06 +01:00
metamask-extension/ui/pages/swaps/searchable-item-list/index.scss

211 lines
3.7 KiB
SCSS
Raw Normal View History

2020-10-06 20:28:38 +02:00
.searchable-item-list {
2022-03-17 19:04:01 +01:00
background: var(--color-background-default);
2020-10-06 20:28:38 +02:00
width: 100%;
position: relative;
&__search {
> div {
border: none;
2022-03-17 19:04:01 +01:00
border-bottom: 1px solid var(--color-border-muted);
2020-10-06 20:28:38 +02:00
border-radius: 0;
height: 55px;
font-size: 12px;
input {
@include H6;
2022-03-17 19:04:01 +01:00
color: var(--color-text-default);
2020-10-06 20:28:38 +02:00
line-height: 100%;
&::-webkit-input-placeholder {
2022-03-17 19:04:01 +01:00
color: var(--color-text-muted);
2020-10-06 20:28:38 +02:00
opacity: 1;
}
&:-moz-placeholder {
2022-03-17 19:04:01 +01:00
color: var(--color-text-muted);
2020-10-06 20:28:38 +02:00
opacity: 1;
}
&::-moz-placeholder {
2022-03-17 19:04:01 +01:00
color: var(--color-text-muted);
2020-10-06 20:28:38 +02:00
opacity: 1;
}
&::placeholder {
2022-03-17 19:04:01 +01:00
color: var(--color-text-muted);
2020-10-06 20:28:38 +02:00
opacity: 1;
}
}
}
}
&__list-container {
display: flex;
flex-direction: column;
overflow-y: auto;
2020-10-06 20:28:38 +02:00
}
&__item {
transition: 200ms ease-in-out;
display: flex;
flex-flow: row nowrap;
align-items: center;
padding: 8px 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;
min-height: 50px;
&:first-of-type {
border-top: none;
}
&:last-of-type {
border-bottom: none;
2020-10-06 20:28:38 +02:00
}
&:hover,
&:focus {
background: var(--color-background-default-hover);
2020-10-06 20:28:38 +02:00
}
&--selected {
2022-03-17 19:04:01 +01:00
border: 1px solid var(--color-primary-default) !important;
2020-10-06 20:28:38 +02:00
}
&--disabled {
opacity: 0.4;
pointer-events: none;
}
&--add-token {
min-height: auto;
opacity: 1;
pointer-events: none;
&:hover {
background: none;
}
.actionable-message {
margin: 0;
&__message {
text-align: left;
2022-03-17 19:04:01 +01:00
color: var(--color-text-default);
}
a {
pointer-events: auto;
2022-03-17 19:04:01 +01:00
color: var(--color-primary-default);
cursor: pointer;
}
}
}
.btn-primary {
@include H7;
width: auto;
padding: 7px 11px;
}
2020-10-06 20:28:38 +02:00
> img {
margin-top: -2px;
}
}
&__primary-label {
display: flex;
flex-direction: row;
align-items: center;
min-width: 0;
@include H6;
line-height: 100%;
font-weight: bold;
padding-top: 4px;
padding-bottom: 3px;
}
&__item-name {
/*rtl:ignore*/
direction: ltr;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
&__labels {
display: flex;
justify-content: space-between;
flex: 1;
-moz-animation: fadein 1s;
-webkit-animation: fadein 1s;
-o-animation: fadein 1s;
}
&__item-labels {
display: flex;
flex-direction: column;
justify-content: center;
margin-left: 12px;
}
&__right-labels {
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-end;
max-width: 100%;
flex: 1 1 auto;
}
&__secondary-label,
&__right-primary-label {
@include H7;
line-height: 100%;
2022-03-17 19:04:01 +01:00
color: var(--color-text-alternative);
2020-10-06 20:28:38 +02:00
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
padding-bottom: 4px;
}
&__right-primary-label {
margin-top: 3px;
}
&__right-secondary-label {
@include H7;
line-height: 100%;
2022-03-17 19:04:01 +01:00
color: var(--color-text-alternative);
2020-10-06 20:28:38 +02:00
opacity: 0.5;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
&__list-container {
z-index: 1002;
2022-03-17 19:04:01 +01:00
background: var(--color-background-default);
2020-10-06 20:28:38 +02:00
}
&__search {
z-index: 1001;
}
&__item--highlighted {
background: var(--color-background-alternative);
2020-10-06 20:28:38 +02:00
}
&__identicon {
margin-top: -2px;
}
}