mirror of
https://github.com/hotheadhacker/seedbox-lite.git
synced 2025-09-02 00:51:36 +03:00
Refactor layout styles for improved sidebar positioning and responsiveness
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
.layout {
|
||||
display: flex;
|
||||
min-height: 100vh;
|
||||
background: #0a0a0a;
|
||||
}
|
||||
@@ -58,7 +57,10 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
position: relative;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
z-index: 999;
|
||||
box-shadow: 2px 0 12px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
@@ -311,15 +313,11 @@
|
||||
|
||||
/* Main Content */
|
||||
.main-content {
|
||||
flex: 1;
|
||||
background: #0a0a0a;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
min-height: 100vh;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.main-content.expanded {
|
||||
margin-left: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Mobile Overlay */
|
||||
@@ -464,6 +462,33 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* Desktop layout with proper sidebar margins */
|
||||
@media (min-width: 769px) {
|
||||
.mobile-header {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
.main-content {
|
||||
margin-left: 280px; /* Account for sidebar width */
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.main-content.expanded {
|
||||
margin-left: 80px; /* Account for collapsed sidebar width */
|
||||
}
|
||||
|
||||
.mobile-overlay {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* Extra small mobile devices */
|
||||
@media (max-width: 480px) {
|
||||
.mobile-header {
|
||||
|
||||
Reference in New Issue
Block a user