Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions packages/typescriptlang-org/src/components/layout/TopNav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,41 @@ form.search {
}
}

@media (max-width: 790px) and (max-height: 480px) {
#top-menu {
position: static;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 43f7e68. The short-mobile rule now opens results below the input, resets the arrow, and bounds the dropdown width. Verified with live DocSearch responses at native Edge 200% zoom, keyboard ArrowDown/Enter and Escape, six responsive modes, and the original title/Web/Back regressions. Before/after proof is in the PR description: https://github.com/user-attachments/assets/1a949cc2-9372-45e0-a39f-107f983f9e00


&.up,
&.down {
transform: none;
}

form.search {
.algolia-autocomplete {
flex: 1;
min-width: 0;
}

input {
width: 100%;
}
}

.ds-dropdown-menu {
top: 100% !important;
right: auto !important;
bottom: auto;
width: calc(100vw - 1rem);

&:before {
top: -7px;
bottom: auto;
transform: rotate(-45deg);
}
}
}
}

.skip-to-main {
clip: rect(1px, 1px, 1px, 1px);
height: 1px;
Expand Down
10 changes: 6 additions & 4 deletions packages/typescriptlang-org/src/templates/pages/css/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1265,11 +1265,13 @@ $headline-foreground-bg: white;
}
}

.cta .cta-back a {
.cta > .transparent-button {
position: relative;
top: 20px;
left: 20px;
width: 60px;
top: auto;
left: auto;
display: inline-flex;
align-items: center;
margin-bottom: 1rem;
}

.transparent-button {
Expand Down
Loading