1
Fork 0
href-plus/source/scss/components/_search-bar.scss

64 lines
1.1 KiB
SCSS
Raw Normal View History

2022-01-03 17:21:21 +00:00
.search-bar {
2022-01-18 12:10:29 +00:00
max-width: 70rem;
2022-01-03 17:21:21 +00:00
input[type='text'] {
background-color: var(--background-2);
2022-01-31 11:08:54 +00:00
border: var(--border-size) solid var(--foreground-1);
2022-01-03 17:21:21 +00:00
color: inherit;
padding: 0.5rem;
width: 100%;
}
ul {
2022-01-31 11:08:54 +00:00
border: var(--border-size) solid var(--foreground-1);
2022-01-03 17:21:21 +00:00
border-top: none;
list-style: none;
margin: 0;
max-height: 50vh;
overflow-y: auto;
2022-01-03 17:21:21 +00:00
padding: 0;
}
li {
&:nth-child(even) {
background-color: var(--background-2);
}
&:last-child {
margin-bottom: 0;
}
}
.search-result,
.search-state {
padding: 1rem;
}
.search-result {
display: block;
text-decoration: none;
.display {
font-weight: bold;
}
.disambiguation {
font-size: 60%;
vertical-align: middle;
}
}
.load-more {
background-color: var(--background-1);
border: var(--border-size) solid var(--foreground-1);
color: var(--foreground-1);
cursor: pointer;
padding: 0.5rem;
&:hover {
background-color: var(--foreground-1);
color: var(--background-1);
}
}
2022-01-03 17:21:21 +00:00
}