Skip to content

Commit 27401f4

Browse files
committed
Fix overlapping close button and search button in narrow screens
1 parent 13582bf commit 27401f4

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

scaladoc-js/resources/scaladoc-searchbar.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
box-shadow: none;
2323
margin-top: 2px;
2424
}
25+
2526
.search span:hover {
2627
fill: var(--link-hover-fg);
2728
}
@@ -43,9 +44,9 @@
4344
#scaladoc-searchbar {
4445
position: fixed;
4546
top: 50px;
46-
right: 40px;
47+
left: calc(5% + var(--side-width));
4748
z-index: 5;
48-
width: calc(100% - 360px);
49+
width: calc(90% - var(--side-width));
4950
box-shadow: 0 2px 16px 0 rgba(0, 42, 76, 0.15);
5051
font-size: 13px;
5152
font-family: system-ui, -apple-system, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, Arial, sans-serif;

scaladoc/resources/dotty_res/styles/scalastyle.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ footer .socials {
734734
/* Portrait phones */
735735
@media(max-width: 576px) {
736736
:root {
737-
--side-width: 0;
737+
--side-width: 0px;
738738
--content-padding: 48px 12px;
739739
}
740740

@@ -760,8 +760,10 @@ footer .socials {
760760
font-size: 30px;
761761
}
762762
#leftColumn.open ~ #main #leftToggler {
763+
position: fixed;
763764
left: unset;
764-
right: 5vw;
765+
right: 16vw;
766+
color: var(--leftbar-fg);
765767
}
766768
.icon-toggler::before {
767769
content: "\e90a"; /* menu icon */

0 commit comments

Comments
 (0)