75 lines
1.3 KiB
SCSS
75 lines
1.3 KiB
SCSS
// REDESIGN-TODO: Review
|
|
.awesomplete {
|
|
position: relative;
|
|
|
|
[hidden] {
|
|
display: none;
|
|
}
|
|
.visually-hidden {
|
|
position: absolute;
|
|
clip: rect(0, 0, 0, 0);
|
|
}
|
|
|
|
& > input {
|
|
display: block;
|
|
}
|
|
|
|
& > [role="listbox"] {
|
|
&:empty {
|
|
display: none;
|
|
}
|
|
|
|
position: absolute;
|
|
width: 100%;
|
|
list-style: none;
|
|
background-color: var(--bg-color);
|
|
max-height: unquote("min(60vh, 300px)");
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
border-radius: var(--border-radius);
|
|
box-shadow: var(--shadow-md);
|
|
border: 1px solid var(--border-color);
|
|
left: 0;
|
|
margin: 0;
|
|
padding: var(--padding-xs);
|
|
z-index: 4;
|
|
min-width: 250px;
|
|
|
|
& > li,
|
|
& > [role="option"] {
|
|
cursor: pointer;
|
|
@include get_textstyle("sm", "regular");
|
|
padding: var(--padding-sm);
|
|
color: var(--text-color);
|
|
border-radius: var(--border-radius);
|
|
white-space: unset;
|
|
@extend .ellipsis;
|
|
&:not(:last-child) {
|
|
margin-bottom: var(--margin-xs);
|
|
}
|
|
p {
|
|
margin-bottom: 0;
|
|
overflow-y: clip;
|
|
text-overflow: ellipsis;
|
|
}
|
|
strong {
|
|
@include get_textstyle("sm", "bold");
|
|
}
|
|
|
|
.link-option {
|
|
font-weight: normal;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
&:hover,
|
|
&[aria-selected="true"] {
|
|
background-color: var(--awesomplete-hover-bg);
|
|
color: var(--text-color);
|
|
}
|
|
}
|
|
|
|
a:hover {
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
}
|