A bit of mobile support

This commit is contained in:
Georgi Gardev
2023-11-18 17:32:33 +02:00
parent f32a6e2f98
commit 41c178ce41
2 changed files with 40 additions and 1 deletions
+34 -1
View File
@@ -8,6 +8,7 @@
flex-shrink: 0; flex-shrink: 0;
} }
.Menu { .Menu {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@@ -34,9 +35,41 @@
background-color: var(--color-text); background-color: var(--color-text);
border-radius: 1rem; border-radius: 1rem;
transition: height 0.2s ease; transition: height 0.2s ease, width 0.2s ease;
} }
.Menu li:hover::after, .Menu li.Active::after { .Menu li:hover::after, .Menu li.Active::after {
height: 100%; height: 100%;
} }
@media (max-width: 600px) {
.Sidebar {
width: 100%;
height: 100px;
}
.Menu {
flex-direction: row;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: .5rem;
}
.Menu li {
padding: .5rem 1rem;
}
.Menu li::after {
left: 0;
bottom: 1px;
width: 0;
height: 3px;
}
.Menu li:hover::after, .Menu li.Active::after {
width: 100%;
height: 3px;
}
}
+6
View File
@@ -2,6 +2,12 @@
display: flex; display: flex;
} }
@media (max-width: 600px) {
.SidebarPage {
flex-direction: column;
}
}
.ContentWrapper { .ContentWrapper {
height: 100vh; height: 100vh;
width: 100%; width: 100%;