Skip to content

Commit

Permalink
Repositions BackToTop button on docs. Closes #4806
Browse files Browse the repository at this point in the history
  • Loading branch information
milanholemans committed May 24, 2023
1 parent c62e77e commit 10fba1e
Showing 1 changed file with 13 additions and 19 deletions.
32 changes: 13 additions & 19 deletions docs/src/scss/Global.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,19 @@
background-color: var(--ifm-background-surface-color);
}

.theme-back-to-top-button {
@media only screen and (max-width: 699px) {
right: 2.5rem !important;
bottom: 6rem !important;
}

// Mendable button switches from mobile to desktop at 700px
@media only screen and (min-width: 700px) {
right: 3rem !important;
bottom: 8.5rem !important;
}
}

[data-theme='light'] {
.menu__link {
color: var(--ifm-color-emphasis-800);
Expand Down Expand Up @@ -60,22 +73,3 @@
}
}
}

/* Reduce width on mobile for Mendable Search */
@media (max-width: 767px) {
.mendable-search {
width: 200px;
}
}

@media (max-width: 500px) {
.mendable-search {
width: 150px;
}
}

@media (max-width: 380px) {
.mendable-search {
width: 140px;
}
}

0 comments on commit 10fba1e

Please sign in to comment.