UX: Improve autocomplete styling (#18723)

1. Restore the original text color (`--primary-high`)
2. Fix the double bottom border
3. Make the padding around icons even
This commit is contained in:
Jarek Radosz 2022-10-24 19:37:01 +02:00 committed by GitHub
parent 4c4ac9cc47
commit c421dc0b28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 28 additions and 17 deletions

View File

@ -393,44 +393,55 @@ html.composer-open {
width: 240px; width: 240px;
background-color: var(--secondary); background-color: var(--secondary);
border: 1px solid var(--primary-low); border: 1px solid var(--primary-low);
ul { ul {
list-style: none; list-style: none;
padding: 0; padding: 0;
margin: 0; margin: 0;
li { li {
.d-icon-users { &:not(:last-child) {
color: var(--primary-medium); border-bottom: 1px solid var(--primary-low);
padding: 0 2px;
} }
border-bottom: 1px solid var(--primary-low);
a { a {
padding: 5px;
display: block;
@include ellipsis; @include ellipsis;
color: var(--primary-high);
display: flex;
padding: 5px;
span.username {
color: var(--primary);
}
span.name {
font-size: var(--font-down-1);
vertical-align: middle;
}
&.selected {
background-color: var(--tertiary-low);
}
@include hover { @include hover {
background-color: var(--highlight-low); background-color: var(--highlight-low);
text-decoration: none; text-decoration: none;
} }
&.selected {
background-color: var(--tertiary-low);
}
span {
margin-left: 5px;
&.username {
color: var(--primary);
}
&.name {
font-size: var(--font-down-1);
vertical-align: middle;
}
}
.relative-date { .relative-date {
font-size: var(--font-down-3); font-size: var(--font-down-3);
padding-top: 10em; padding-top: 10em;
} }
} }
.d-icon-users {
color: var(--primary-medium);
padding: 0 2px;
}
} }
} }
} }