Finished :)
This commit is contained in:
+152
-125
@@ -526,34 +526,21 @@ footer a:hover {
|
||||
/* Dashboard */
|
||||
|
||||
.app-shell {
|
||||
display: grid;
|
||||
grid-template-columns: 260px 1fr;
|
||||
display: block;
|
||||
height: 100vh;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
background: #09090b;
|
||||
}
|
||||
|
||||
/* sidebar */
|
||||
.sidebar {
|
||||
background: #09090b;
|
||||
border-right: 1px solid #18181b;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 1.5rem 1rem;
|
||||
overflow-y: auto;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.sidebar-logo {
|
||||
.brand-mark {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
padding: 0.5rem 0.75rem;
|
||||
margin-bottom: 2.5rem;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.sidebar-logo .logo-icon {
|
||||
.brand-mark .logo-icon {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
background: linear-gradient(135deg, var(--accent), #4f46e5);
|
||||
@@ -568,7 +555,7 @@ footer a:hover {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.sidebar-logo .logo-text {
|
||||
.brand-mark .logo-text {
|
||||
font-family: var(--font-heading);
|
||||
font-size: 1.15rem;
|
||||
font-weight: 600;
|
||||
@@ -576,56 +563,10 @@ footer a:hover {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.sidebar-logo .logo-text span {
|
||||
.brand-mark .logo-text span {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
/* Nav */
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.25rem;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.nav-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.65rem;
|
||||
padding: 0.6rem 0.75rem;
|
||||
border-radius: var(--radius-md);
|
||||
color: var(--text-secondary);
|
||||
text-decoration: none;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
transition: all 0.15s;
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
|
||||
.nav-item:hover {
|
||||
background: #18181b;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.nav-item.active {
|
||||
background: #18181b;
|
||||
color: var(--text-primary);
|
||||
border-color: #27272a;
|
||||
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.nav-item svg {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/* sidebar bottom section */
|
||||
.sidebar-footer {
|
||||
margin-top: auto;
|
||||
padding-top: 1rem;
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.user-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -699,6 +640,7 @@ footer a:hover {
|
||||
flex-direction: column;
|
||||
overflow-y: auto;
|
||||
background: #0d0d12;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.topbar {
|
||||
@@ -707,11 +649,24 @@ footer a:hover {
|
||||
justify-content: space-between;
|
||||
padding: 1rem 2.5rem;
|
||||
border-bottom: 1px solid #18181b;
|
||||
background: #0d0d12;
|
||||
background: rgba(13, 13, 18, 0.94);
|
||||
backdrop-filter: blur(16px);
|
||||
flex-shrink: 0;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 5;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.topbar-brand,
|
||||
.topbar-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.topbar-brand {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.topbar-title {
|
||||
@@ -720,11 +675,76 @@ footer a:hover {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.room-title {
|
||||
max-width: 24rem;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.topbar-btn {
|
||||
width: auto;
|
||||
padding: 0.5rem 1rem;
|
||||
}
|
||||
|
||||
.topbar-user {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.7rem;
|
||||
min-height: 44px;
|
||||
padding: 0.3rem 0.85rem 0.3rem 0.3rem;
|
||||
border-radius: var(--radius-full);
|
||||
border: 1px solid var(--border);
|
||||
background: rgba(255, 255, 255, 0.02);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
|
||||
}
|
||||
|
||||
.topbar-user-name {
|
||||
font-size: 0.85rem;
|
||||
font-weight: 600;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.topbar-user .user-avatar {
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
border-radius: 16px;
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
border: 1px solid rgba(255, 255, 255, 0.04);
|
||||
color: var(--text-primary);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
|
||||
}
|
||||
|
||||
.topbar-link-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 40px;
|
||||
padding: 0.55rem 0.9rem;
|
||||
border-radius: var(--radius-full);
|
||||
background: transparent;
|
||||
border: 1px solid var(--border);
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.85rem;
|
||||
font-family: var(--font);
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s;
|
||||
}
|
||||
|
||||
.topbar-link-btn:hover {
|
||||
border-color: rgba(239, 68, 68, 0.4);
|
||||
color: #f87171;
|
||||
background: rgba(239, 68, 68, 0.06);
|
||||
}
|
||||
|
||||
.page-content {
|
||||
padding: 2rem;
|
||||
flex: 1;
|
||||
max-width: 900px;
|
||||
width: 100%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
/* welcome hero */
|
||||
@@ -1057,6 +1077,10 @@ footer a:hover {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.story-action-form {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.story-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
@@ -1164,11 +1188,11 @@ footer a:hover {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
padding: 0;
|
||||
border-radius: var(--radius-sm);
|
||||
background: transparent;
|
||||
border-radius: 14px;
|
||||
background: rgba(255, 255, 255, 0.02);
|
||||
border: 1px solid var(--border);
|
||||
color: var(--text-muted);
|
||||
cursor: pointer;
|
||||
@@ -1176,10 +1200,52 @@ footer a:hover {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.story-action-btn svg {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.story-action-btn:hover {
|
||||
background: var(--bg-surface-hover);
|
||||
color: var(--text-primary);
|
||||
border-color: var(--border-accent);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.story-action-btn-toggle {
|
||||
color: var(--accent);
|
||||
border-color: rgba(99, 102, 241, 0.35);
|
||||
background: rgba(99, 102, 241, 0.08);
|
||||
}
|
||||
|
||||
.story-action-btn-toggle:hover {
|
||||
color: #c7d2fe;
|
||||
border-color: rgba(99, 102, 241, 0.5);
|
||||
background: rgba(99, 102, 241, 0.16);
|
||||
}
|
||||
|
||||
.story-action-btn-activate {
|
||||
color: #f8fafc;
|
||||
border-color: rgba(148, 163, 184, 0.26);
|
||||
background: rgba(148, 163, 184, 0.08);
|
||||
}
|
||||
|
||||
.story-action-btn-activate:hover {
|
||||
color: #ffffff;
|
||||
border-color: rgba(148, 163, 184, 0.42);
|
||||
background: rgba(148, 163, 184, 0.16);
|
||||
}
|
||||
|
||||
.story-action-btn-reset {
|
||||
color: var(--success-text);
|
||||
border-color: rgba(16, 185, 129, 0.26);
|
||||
background: rgba(16, 185, 129, 0.06);
|
||||
}
|
||||
|
||||
.story-action-btn-reset:hover {
|
||||
color: #6ee7b7;
|
||||
border-color: rgba(16, 185, 129, 0.4);
|
||||
background: rgba(16, 185, 129, 0.14);
|
||||
}
|
||||
|
||||
.story-action-btn.story-action-delete:hover {
|
||||
@@ -1249,22 +1315,6 @@ footer a:hover {
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.mobile-menu-btn {
|
||||
display: none;
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--text-secondary);
|
||||
cursor: pointer;
|
||||
padding: 0.25rem;
|
||||
border-radius: var(--radius-sm);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.mobile-menu-btn:hover {
|
||||
color: var(--text-primary);
|
||||
background: var(--bg-surface-hover);
|
||||
}
|
||||
|
||||
.sse-dot {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
@@ -1283,55 +1333,32 @@ footer a:hover {
|
||||
animation: pulse 2s ease infinite;
|
||||
}
|
||||
|
||||
/* Responsive */
|
||||
|
||||
.sidebar-backdrop {
|
||||
display: none;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
backdrop-filter: blur(4px);
|
||||
z-index: 90;
|
||||
opacity: 0;
|
||||
transition: opacity 0.3s ease;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.app-shell {
|
||||
grid-template-columns: 1fr;
|
||||
.topbar {
|
||||
padding: 1rem 1.1rem;
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.mobile-menu-btn {
|
||||
display: block;
|
||||
.topbar-brand,
|
||||
.topbar-actions {
|
||||
width: 100%;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.sidebar-backdrop.open {
|
||||
display: block;
|
||||
opacity: 1;
|
||||
.topbar-actions {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
width: 280px;
|
||||
z-index: 100;
|
||||
transform: translateX(-100%);
|
||||
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
background: var(--bg); /* Opaque background for mobile menu */
|
||||
border-right: 1px solid var(--border);
|
||||
box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
|
||||
.page-content {
|
||||
padding: 1.1rem;
|
||||
}
|
||||
|
||||
.sidebar.open {
|
||||
transform: translateX(0);
|
||||
.room-title {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.dashboard-grid {
|
||||
grid-template-columns: 1fr;
|
||||
.topbar-user {
|
||||
order: 2;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user