mirror of
https://github.com/gethinode/hinode.git
synced 2025-10-15 14:03:19 +00:00
119 lines
2.0 KiB
SCSS
119 lines
2.0 KiB
SCSS
// Adapted from https://github.com/h-enk/doks
|
|
|
|
@include media-breakpoint-up(md) {
|
|
.search {
|
|
max-width: 20rem;
|
|
margin-top: 0.125rem;
|
|
margin-bottom: 0.125rem;
|
|
}
|
|
}
|
|
|
|
.form-control.is-search {
|
|
padding-right: 4rem;
|
|
border: 1px solid transparent;
|
|
background: $gray-100;
|
|
}
|
|
|
|
.form-control.is-search:focus {
|
|
border: 1px solid $primary;
|
|
}
|
|
|
|
.search::after {
|
|
position: absolute;
|
|
top: 0.4625rem;
|
|
right: 0.5375rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 1.5rem;
|
|
padding-right: 0.3125rem;
|
|
padding-left: 0.3125rem;
|
|
font-size: $font-size-base * 0.75;
|
|
color: $gray-700;
|
|
content: "Ctrl + /";
|
|
border: 1px solid $gray-300;
|
|
border-radius: 0.25rem;
|
|
}
|
|
|
|
.navbar-form {
|
|
position: relative;
|
|
}
|
|
|
|
#suggestions {
|
|
position: absolute;
|
|
left: 0;
|
|
margin-top: 0.5rem;
|
|
width: calc(100vw - 3rem);
|
|
z-index: $zindex-dropdown;
|
|
}
|
|
|
|
#suggestions a,
|
|
.suggestion__no-results {
|
|
padding: 0.75rem;
|
|
margin: 0 0.5rem;
|
|
}
|
|
|
|
#suggestions a {
|
|
display: block;
|
|
text-decoration: none;
|
|
}
|
|
|
|
#suggestions a:focus {
|
|
background: $gray-100;
|
|
outline: 0;
|
|
}
|
|
|
|
#suggestions div:not(:first-child) {
|
|
border-top: 1px dashed $gray-200;
|
|
}
|
|
|
|
#suggestions div:first-child {
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
#suggestions div:last-child {
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
#suggestions a:hover {
|
|
background: $gray-100;
|
|
}
|
|
|
|
#suggestions span {
|
|
display: flex;
|
|
font-size: $font-size-base;
|
|
}
|
|
|
|
.suggestion__title {
|
|
font-weight: $headings-font-weight;
|
|
color: $black;
|
|
}
|
|
|
|
.suggestion__description,
|
|
.suggestion__no-results {
|
|
color: $gray-700;
|
|
}
|
|
|
|
@include media-breakpoint-up(sm) {
|
|
#suggestions {
|
|
width: 31.125rem;
|
|
}
|
|
|
|
#suggestions a {
|
|
display: flex;
|
|
}
|
|
|
|
.suggestion__title {
|
|
width: 9rem;
|
|
padding-right: 1rem;
|
|
border-right: 1px solid $gray-200;
|
|
display: inline-block;
|
|
text-align: right;
|
|
}
|
|
|
|
.suggestion__description {
|
|
width: 19rem;
|
|
padding-left: 1rem;
|
|
}
|
|
}
|