Spaces:
Sleeping
Sleeping
Create static/css/layout.css
Browse files- static/css/layout.css +110 -0
static/css/layout.css
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* static/css/layout.css */
|
| 2 |
+
#app-layout {
|
| 3 |
+
display: none; /* Hidden until authenticated */
|
| 4 |
+
width: 100%;
|
| 5 |
+
height: 100%;
|
| 6 |
+
}
|
| 7 |
+
|
| 8 |
+
/* Sidebar Styling */
|
| 9 |
+
#sidebar {
|
| 10 |
+
width: 260px;
|
| 11 |
+
background: var(--bg-surface);
|
| 12 |
+
border-right: var(--glass-border);
|
| 13 |
+
display: flex;
|
| 14 |
+
flex-direction: column;
|
| 15 |
+
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
| 16 |
+
z-index: 100;
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
.logo-container {
|
| 20 |
+
padding: 24px;
|
| 21 |
+
display: flex;
|
| 22 |
+
align-items: center;
|
| 23 |
+
gap: 12px;
|
| 24 |
+
border-bottom: var(--glass-border);
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
.logo-text {
|
| 28 |
+
font-size: 20px;
|
| 29 |
+
font-weight: 700;
|
| 30 |
+
letter-spacing: 1px;
|
| 31 |
+
color: var(--text-primary);
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
.logo-accent {
|
| 35 |
+
color: var(--accent-main);
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
.nav-menu {
|
| 39 |
+
padding: 15px 10px;
|
| 40 |
+
flex: 1;
|
| 41 |
+
overflow-y: auto;
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
.nav-item {
|
| 45 |
+
padding: 12px 16px;
|
| 46 |
+
margin-bottom: 5px;
|
| 47 |
+
border-radius: 8px;
|
| 48 |
+
cursor: pointer;
|
| 49 |
+
color: var(--text-secondary);
|
| 50 |
+
display: flex;
|
| 51 |
+
align-items: center;
|
| 52 |
+
gap: 12px;
|
| 53 |
+
transition: all 0.2s ease;
|
| 54 |
+
font-weight: 500;
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
.nav-item:hover {
|
| 58 |
+
color: var(--text-primary);
|
| 59 |
+
background: rgba(255, 255, 255, 0.03);
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
.nav-item.active {
|
| 63 |
+
background: rgba(255, 193, 7, 0.1);
|
| 64 |
+
color: var(--accent-main);
|
| 65 |
+
border-right: 3px solid var(--accent-main);
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
/* Main Content Area */
|
| 69 |
+
#main-content {
|
| 70 |
+
flex: 1;
|
| 71 |
+
display: flex;
|
| 72 |
+
flex-direction: column;
|
| 73 |
+
min-width: 0;
|
| 74 |
+
background: radial-gradient(circle at top right, rgba(255,193,7,0.03), transparent 40%);
|
| 75 |
+
}
|
| 76 |
+
|
| 77 |
+
#top-bar {
|
| 78 |
+
height: 65px;
|
| 79 |
+
padding: 0 24px;
|
| 80 |
+
border-bottom: var(--glass-border);
|
| 81 |
+
display: flex;
|
| 82 |
+
align-items: center;
|
| 83 |
+
justify-content: space-between;
|
| 84 |
+
background: rgba(10, 10, 10, 0.8);
|
| 85 |
+
backdrop-filter: var(--backdrop-blur);
|
| 86 |
+
}
|
| 87 |
+
|
| 88 |
+
.view-container {
|
| 89 |
+
flex: 1;
|
| 90 |
+
display: none; /* Views are hidden by default */
|
| 91 |
+
overflow: hidden;
|
| 92 |
+
}
|
| 93 |
+
|
| 94 |
+
.view-container.active {
|
| 95 |
+
display: flex;
|
| 96 |
+
flex-direction: column;
|
| 97 |
+
}
|
| 98 |
+
|
| 99 |
+
/* Mobile Adjustments */
|
| 100 |
+
@media (max-width: 768px) {
|
| 101 |
+
#sidebar {
|
| 102 |
+
position: absolute;
|
| 103 |
+
height: 100%;
|
| 104 |
+
transform: translateX(-100%);
|
| 105 |
+
}
|
| 106 |
+
#sidebar.open {
|
| 107 |
+
transform: translateX(0);
|
| 108 |
+
box-shadow: 10px 0 30px rgba(0,0,0,0.5);
|
| 109 |
+
}
|
| 110 |
+
}
|