diff --git a/static/style.css b/static/style.css index 7df026b..52639a0 100644 --- a/static/style.css +++ b/static/style.css @@ -18,7 +18,7 @@ --radius-sm: 8px; --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 2px 8px rgba(74,108,247,0.05); --shadow-hover: 0 2px 6px rgba(0,0,0,0.04), 0 6px 18px rgba(74,108,247,0.08); - --sidebar-w: 280px; + --sidebar-w: 100px; } * { margin:0; padding:0; box-sizing:border-box; } @@ -66,14 +66,29 @@ body { .sidebar-user { display: flex; + flex-direction: column; align-items: center; - gap: 12px; - padding: 20px 20px 16px; + gap: 8px; + padding: 24px 12px 16px; + position: relative; +} + +.sidebar-user .user-name { + font-size: 12px; + text-align: center; +} + +.sidebar-user .btn-logout-icon { + position: absolute; + top: 8px; + right: 8px; + width: 22px; + height: 22px; } .user-avatar { - width: 38px; - height: 38px; + width: 44px; + height: 44px; border-radius: 50%; background: var(--primary); color: #FFF; @@ -359,39 +374,45 @@ body { .nav-item { display: flex; + flex-direction: column; align-items: center; - gap: 14px; - padding: 12px 16px; + gap: 4px; + padding: 10px 4px; border-radius: var(--radius); - font-size: 14px; + font-size: 11px; font-weight: 500; color: var(--text-dim); cursor: pointer; text-decoration: none; transition: all 0.15s; - margin-bottom: 2px; + margin-bottom: 4px; + text-align: center; } +.nav-label { line-height: 1.2; } + .nav-item:hover { background: var(--bg); color: var(--text); } -.nav-item .icon-sm { +.nav-item .icon-md { flex-shrink: 0; - width: 20px; - height: 20px; + width: 22px; + height: 22px; color: var(--text-muted); transition: color 0.15s; } -.nav-item:hover .icon-sm { color: var(--primary); } +.nav-item:hover .icon-md { color: var(--primary); } .nav-item.active { background: var(--primary-light); color: var(--primary); font-weight: 600; } -.nav-item.active .icon-sm { color: var(--primary); } +.nav-item.active .icon-md { color: var(--primary); } + +.icon-md { width: 20px; height: 20px; flex-shrink: 0; } /* ── Sidebar Footer ── */ @@ -1442,7 +1463,6 @@ body { ═══════════════════════════════════════════ */ @media (max-width: 900px) { - .sidebar { width: 240px; min-width: 240px; } :root { --sidebar-w: 240px; } .main-content { padding: 20px 24px; } .daily-grid { grid-template-columns: 1fr; } diff --git a/templates/index.html b/templates/index.html index e3ccbba..676c6ca 100644 --- a/templates/index.html +++ b/templates/index.html @@ -42,81 +42,35 @@ - - - - -
-
- - 2026年 - -
-
-
- 达标 - 未达标 - 未打卡 -
-
- - - -