Skip to content

Commit f5dbdb3

Browse files
committed
docs: prevent header navigation truncation when search expands
1 parent 06110c8 commit f5dbdb3

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

docs/stylesheets/extra.css

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -673,6 +673,49 @@ a.md-header__button.md-logo img {
673673
}
674674
}
675675

676+
@media (min-width: 1025px) {
677+
.md-header__source {
678+
color: var(--md-primary-fg-color--dark);
679+
flex: 0 0 auto !important;
680+
margin-left: 1rem;
681+
}
682+
683+
[data-md-toggle="search"]:checked ~ .md-header .md-header__source {
684+
transform: none !important;
685+
margin-left: 1rem !important;
686+
}
687+
688+
.md-search__form {
689+
border-radius: 10px;
690+
}
691+
692+
.md-search__inner {
693+
max-width: 31rem;
694+
}
695+
696+
.md-search__input {
697+
background-color: white;
698+
border: black 1px solid;
699+
border-radius: 10px;
700+
width: 100%;
701+
}
702+
703+
.md-header__title {
704+
flex: 0 0 auto !important;
705+
min-width: 11rem;
706+
max-width: 16rem;
707+
margin-right: 0.75rem;
708+
}
709+
710+
.md-header__list {
711+
gap: 0.75rem;
712+
}
713+
}
714+
715+
.md-search-result__article {
716+
max-height: none;
717+
}
718+
676719
.md-search-result__article {
677720
max-height: none;
678721
}

0 commit comments

Comments
 (0)