Skip to content

Commit caf3773

Browse files
committed
Hide "View Button" when the main menu is open
1 parent ecd0235 commit caf3773

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/components/ViewSource/styles.module.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
background-color: var(--ifm-color-emphasis-200);
2323
}
2424

25+
:global(.navbar-sidebar--show) ~ :global(.main-wrapper) .viewSource {
26+
display: none;
27+
}
28+
2529
@media (width <= 700px) {
2630
.viewSource {
2731
margin-top: 14px;
@@ -34,3 +38,9 @@
3438
display: none;
3539
}
3640
}
41+
42+
@media (width <= 240px) {
43+
.viewSource {
44+
display: none;
45+
}
46+
}

0 commit comments

Comments
 (0)