fix darkmode toggle, search positions

This commit is contained in:
semanticdata 2023-09-29 19:05:25 -05:00
parent c7019c537a
commit 66cfcc7923
4 changed files with 37 additions and 3 deletions

View File

@ -1,7 +1,5 @@
.darkmode {
left: 2rem;
top: -59px;
padding-left: 0.5rem;
position: relative;
width: 20px;
height: 20px;
@ -49,3 +47,19 @@
opacity: 0;
}
}
@media (max-width: 1510px) {
.darkmode {
// left: 2rem;
// top: -59px;
padding-left: 0.5rem;
}
}
@media (min-width: 1511px) {
.darkmode {
left: 2rem;
top: -59px;
padding-left: 0.5rem;
}
}

View File

@ -5,6 +5,7 @@
min-width: auto;
max-width: 18px;
flex-grow: 0.3;
padding-right: 1rem;
& > #search-icon {
background-color: transparent;

View File

@ -75,6 +75,7 @@ a {
.desktop-only {
display: initial;
@media all and (max-width: $fullPageWidth) {
display: none;
}

View File

@ -1 +1,19 @@
// put your custom CSS here!
// @media (max-width: 1510px) {
// .darkmode {
// position: relative;
// left: 2rem;
// top: -59px;
// padding-left: 0.5rem;
// }
// }
// @media (min-width: 1511px) {
// .darkmode {
// position: relative;
// left: 2rem;
// top: -59px;
// padding-left: 0.5rem;
// }
// }