-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
61 lines (56 loc) · 4.28 KB
/
styles.css
File metadata and controls
61 lines (56 loc) · 4.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
:root{
--bg:#f5f7fb; --white:#ffffff; --text:#111827; --muted:#6b7280;
--blue:#2d8cff; --stroke:#e5e7eb; --sidebar:#0b1b2a; --sidebar-text:#e5f2ff; --yellow:#fbbf24;
}
*{box-sizing:border-box} html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}
/* Topbar */
.topbar{position:sticky;top:0;z-index:50;height:56px;display:flex;align-items:center;gap:16px;background:#fff;border-bottom:1px solid var(--stroke);padding:0 16px}
.hamburger{width:24px;height:24px;display:grid;place-items:center;cursor:pointer}
.hamburger span,.hamburger span::before,.hamburger span::after{content:"";display:block;width:18px;height:2px;background:#111827;position:relative;border-radius:2px}
.hamburger span::before{position:absolute;top:-6px} .hamburger span::after{position:absolute;top:6px}
.logo{display:flex;align-items:center;gap:8px;font-weight:700}
.logo-badge{width:28px;height:28px;border-radius:8px;background:linear-gradient(135deg,var(--blue),#56d8ff);color:#fff;display:grid;place-items:center;font-weight:800}
.logo-text{color:#0b1b2a}
.topbar-right{margin-left:auto;display:flex;align-items:center;gap:18px;font-size:14px;color:#374151}
.lang{position:relative} .lang button{border:1px solid var(--stroke);background:#fff;border-radius:8px;padding:6px 10px;cursor:pointer}
.lang .menu{position:absolute;top:38px;right:0;background:#fff;border:1px solid var(--stroke);border-radius:10px;display:none;min-width:160px;box-shadow:0 10px 30px rgba(0,0,0,.08);overflow:hidden}
.lang.open .menu{display:block} .lang .menu a{display:block;padding:10px 12px;color:#111827;text-decoration:none;font-size:14px}
.lang .menu a:hover{background:#f3f4f6}
/* Layout */
.wrapper{display:grid;grid-template-columns:260px 1fr;min-height:calc(100vh - 56px)}
.sidebar{background:var(--sidebar);color:var(--sidebar-text);padding:16px 10px;display:flex;flex-direction:column;gap:12px}
.profile{display:flex;align-items:center;gap:12px;padding:4px 8px}
.avatar{
position:relative; width:56px; height:56px; border-radius:50%;
background:#0e2a42; overflow:hidden; display:grid; place-items:center; color:#9cc8ff; font-weight:800;
border:2px solid rgba(255,255,255,.15);
}
.avatar img{display:none; width:100%; height:100%; object-fit:cover; border-radius:50%}
.avatar .initials{font-weight:800}
.avatar.hasimg img{display:block}
.avatar.hasimg .initials{display:none}
.menu-title{font-weight:700;font-size:14px;padding:8px;text-transform:uppercase;letter-spacing:.02em;color:#cde4ff}
.menu-item{display:block;color:#d8ebff;text-decoration:none;padding:10px 12px;border-radius:10px;font-size:14px}
.menu-item:hover{background:#0f2e49} .menu-item.active{background:#134266}
.collapsible{margin-top:8px;border-radius:10px;overflow:hidden}
.collapsible .collap-header{padding:10px 12px;display:flex;align-items:center;gap:8px;cursor:pointer;color:#e6f2ff;background:#0e2741;border-radius:10px}
.collapsible .arrow{margin-left:auto;transition:.2s transform} .collapsible.open .arrow{transform:rotate(90deg)}
.collapsible .collap-body{display:none;padding-left:8px} .collapsible.open .collap-body{display:block}
.collapsible .collap-body .menu-item{color:#cfe7ff;padding-left:22px}
/* Content */
.content{padding:16px}
.section-title{font-size:18px;font-weight:700;margin:8px 0 14px}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.card{background:#fff;border:1px solid var(--stroke);border-radius:12px;overflow:hidden;text-decoration:none;color:inherit;transition:transform .15s ease, box-shadow .2s ease}
.card:hover{transform:translateY(-1px);box-shadow:0 8px 26px rgba(0,0,0,.08)}
.card .head{background:var(--blue);color:#fff;padding:10px 12px;font-weight:700;text-align:center}
.card .body{padding:18px 14px;display:flex;align-items:center;justify-content:center;min-height:70px}
.stars{position:relative;font-size:22px;letter-spacing:2px;color:#d1d5db;line-height:1}
.stars::before{content:"★★★★★";position:absolute;left:0;top:0;white-space:nowrap;width:calc(var(--rating)*20%);overflow:hidden;color:var(--yellow)}
/* Responsive */
@media(max-width:900px){
.wrapper{grid-template-columns:1fr}
.sidebar{position:fixed;inset:56px auto 0 0;width:280px;transform:translateX(-110%);transition:transform .2s ease}
.sidebar.open{transform:translateX(0)}
}