portails/assets/scss/components/_search.scss

92 lines
1.4 KiB
SCSS
Raw Normal View History

2020-11-04 08:26:58 +01:00
.navbar-form {
position: relative;
}
#suggestions {
position: absolute;
2022-06-10 16:33:08 +02:00
right: 0;
2020-11-04 08:26:58 +01:00
margin-top: 0.5rem;
width: calc(100vw - 3rem);
2022-06-10 16:33:08 +02:00
max-width: calc(400px - 3rem);
2021-09-07 12:08:46 +02:00
z-index: $zindex-dropdown;
2022-06-10 16:33:08 +02:00
@include media-breakpoint-up(md) {
right: -2rem;
}
@include media-breakpoint-up(lg) {
right: 0;
}
2020-11-04 08:26:58 +01:00
}
#suggestions a,
.suggestion__no-results {
padding: 0.75rem;
margin: 0 0.5rem;
}
2020-11-04 08:26:58 +01:00
#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 {
2020-11-04 08:26:58 +01:00
font-weight: $headings-font-weight;
color: $black;
}
.suggestion__description,
.suggestion__no-results {
2020-11-04 08:26:58 +01:00
color: $gray-700;
}
2022-06-10 16:33:08 +02:00
@include media-breakpoint-up(lg) {
2020-11-04 08:26:58 +01:00
#suggestions {
2021-09-07 12:08:46 +02:00
width: 31.125rem;
2022-06-10 16:33:08 +02:00
max-width: 31.125rem;
2020-11-04 08:26:58 +01:00
}
#suggestions a {
display: flex;
}
.suggestion__title {
2020-11-04 08:26:58 +01:00
width: 9rem;
padding-right: 1rem;
border-right: 1px solid $gray-200;
display: inline-block;
text-align: right;
}
.suggestion__description {
2020-11-04 08:26:58 +01:00
width: 19rem;
padding-left: 1rem;
}
}