mirror of
https://github.com/zombieFox/nightTab.git
synced 2024-12-03 21:47:43 +01:00
84 lines
1.9 KiB
CSS
84 lines
1.9 KiB
CSS
.auto-suggest {
|
|
position: relative;
|
|
z-index: 1;
|
|
font-size: 1em;
|
|
}
|
|
|
|
.auto-suggest-list {
|
|
background-color: rgb(var(--gray-02));
|
|
margin-top: 0.5em;
|
|
padding: 1em;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
max-height: 40vh;
|
|
border-radius: var(--radius);
|
|
overflow-y: auto;
|
|
z-index: var(--z-index-auto-suggest-list);
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
box-shadow: var(--shadow-large);
|
|
}
|
|
|
|
.auto-suggest-list-item {
|
|
flex-basis: 33.3333333333%;
|
|
}
|
|
|
|
.auto-suggest-list-item:not(:last-child) {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.auto-suggest-link {
|
|
padding: 0.5em;
|
|
border-width: var(--form-input-border);
|
|
border-style: solid;
|
|
border-color: transparent;
|
|
border-radius: var(--radius);
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
transition: background-color var(--animation-speed-fast) ease-in-out, color var(--animation-speed-fast) ease-in-out, border-color var(--animation-speed-fast) ease-in-out, box-shadow var(--animation-speed-fast) ease-in-out;
|
|
}
|
|
|
|
.auto-suggest-link:link,
|
|
.auto-suggest-link:visited {
|
|
color: rgb(var(--gray-16));
|
|
text-decoration: none;
|
|
}
|
|
|
|
.auto-suggest-link:hover {
|
|
background-color: rgb(var(--gray-03));
|
|
color: rgb(var(--form-input-text-hover));
|
|
outline: none;
|
|
text-decoration: none;
|
|
box-shadow: 0 0 0 var(--line-width) rgb(var(--gray-06));
|
|
}
|
|
|
|
.auto-suggest-link:focus {
|
|
background-color: rgb(var(--gray-01));
|
|
color: rgb(var(--form-input-text-focus));
|
|
outline: none;
|
|
text-decoration: none;
|
|
box-shadow: 0 0 0 var(--line-width) rgb(var(--accent)), 0 0 0 calc(var(--line-width) * 2) rgba(var(--accent), 0.25);
|
|
}
|
|
|
|
.auto-suggest-link:active {
|
|
color: rgb(var(--style-neutral-text));
|
|
}
|
|
|
|
.auto-suggest-icon {
|
|
font-size: 2em;
|
|
}
|
|
|
|
.auto-suggest-icon-text {
|
|
color: rgb(var(--gray-08));
|
|
margin-top: 0.5em;
|
|
font-size: 0.6em;
|
|
text-align: center;
|
|
}
|