Skip to content

Commit ca280fb

Browse files
committed
Fix overlapping close button and search button in narrow screens
1 parent a8bbc0e commit ca280fb

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

scaladoc-js/resources/scaladoc-searchbar.css

+3-2
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

+4-2
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ footer .socials {
934934
/* Portrait phones */
935935
@media(max-width: 576px) {
936936
:root {
937-
--side-width: 0;
937+
--side-width: 0px;
938938
--content-padding: 48px 12px;
939939
}
940940

@@ -960,8 +960,10 @@ footer .socials {
960960
font-size: 30px;
961961
}
962962
#leftColumn.open ~ #main #leftToggler {
963+
position: fixed;
963964
left: unset;
964-
right: 5vw;
965+
right: 16vw;
966+
color: var(--leftbar-fg);
965967
}
966968
.icon-toggler::before {
967969
content: "\e90a"; /* menu icon */

0 commit comments

Comments
 (0)