Skip to content

Commit 04450bf

Browse files
committed
fixes viewport breakpoints
1 parent 73ade6c commit 04450bf

1 file changed

Lines changed: 52 additions & 47 deletions

File tree

docs/stylesheets/extra.css

Lines changed: 52 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -148,29 +148,16 @@ a.md-header__button.md-logo img {
148148

149149
.md-header__source {
150150
color: var(--md-primary-fg-color--dark);
151-
flex: 0 0 auto !important;
152-
margin-left: 1rem;
153-
}
154-
155-
[data-md-toggle="search"]:checked ~ .md-header .md-header__source {
156-
transform: none !important;
157-
margin-left: 1rem !important;
158151
}
159152

160153
.md-search__form {
161154
border-radius: 10px;
162155
}
163156

164-
.md-search__inner {
165-
max-width: 19rem;
166-
}
167-
168157
.md-search__input {
169158
background-color: white;
170159
border: black 1px solid;
171160
border-radius: 10px;
172-
width: 100%;
173-
174161
}
175162

176163
.md-search__input::placeholder {
@@ -484,34 +471,6 @@ a.md-header__button.md-logo img {
484471
color: black;
485472
}
486473

487-
488-
/* Give title (Knative + version) a minimum readable width */
489-
.md-header__title {
490-
flex: 0 0 auto !important;
491-
min-width: 11rem;
492-
max-width: 16rem;
493-
margin-right: 0.75rem;
494-
}
495-
496-
/* Let ellipsis container actually size to content */
497-
.md-header__ellipsis {
498-
width: auto !important;
499-
max-width: 100% !important;
500-
}
501-
502-
/* Cap search so it doesn't steal too much space */
503-
.md-search {
504-
flex: 1 1 auto !important;
505-
max-width: 28rem;
506-
min-width: 18rem;
507-
margin-left: auto;
508-
}
509-
510-
/* tighten nav just a hair more if needed */
511-
.md-header__list {
512-
gap: 0.75rem;
513-
}
514-
515474
/* Testimonials */
516475
.testimonials h1,
517476
.testimonials h2,
@@ -622,7 +581,6 @@ a.md-header__button.md-logo img {
622581
}
623582
}
624583

625-
626584
@media (max-width: 630px) {
627585
[dir=ltr] ul.md-tabs__list {
628586
margin-left: 3rem;
@@ -715,6 +673,57 @@ a.md-header__button.md-logo img {
715673
}
716674
}
717675

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: 19rem;
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__ellipsis {
711+
width: auto !important;
712+
max-width: 100% !important;
713+
}
714+
715+
.md-search {
716+
flex: 1 1 auto !important;
717+
max-width: 28rem;
718+
min-width: 18rem;
719+
margin-left: auto;
720+
}
721+
722+
.md-header__list {
723+
gap: 0.75rem;
724+
}
725+
}
726+
718727
.md-search-result__article {
719728
max-height: none;
720729
}
@@ -735,8 +744,4 @@ article.md-search-result__article p:not(.md-search-result__meta) {
735744
-webkit-line-clamp: 3;
736745
-webkit-box-orient: vertical;
737746
overflow: hidden;
738-
}
739-
740-
741-
742-
747+
}

0 commit comments

Comments
 (0)