Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
96 lines (85 loc) · 2.79 KB
/
Copy pathstyles.css
File metadata and controls
96 lines (85 loc) · 2.79 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/* Basic reset */
*{box-sizing:border-box;margin:0;padding:0}
:root{
--sidebar-w:250px;
--gap:1rem;
--bg:#f6f7fb;
--card-bg:#fff;
--accent:#2b7cff;
--muted:#666;
}
body{
font-family:Inter,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
background:var(--bg);
color:#111;
line-height:1.35;
}
/* Dashboard grid: sidebar + main */
.dashboard{
display:grid;
grid-template-columns: var(--sidebar-w) 1fr;
min-height:100vh;
}
/* Sidebar */
.sidebar{
background:#0f1724;
color:#fff;
padding:1.25rem;
display:flex;
flex-direction:column;
gap:1rem;
}
.brand h1{font-size:1.25rem;margin-bottom:.5rem}
.nav{display:flex;flex-direction:column;gap:.4rem}
.nav-item{
color:#cbd5e1;
text-decoration:none;
padding:.6rem .5rem;
border-radius:.45rem;
}
.nav-item:hover{background:rgba(255,255,255,0.04);color:#fff}
.nav-item.active{background:rgba(255,255,255,0.06);color:var(--accent)}
.logout{
margin-top:auto;
background:transparent;border:1px solid rgba(255,255,255,0.08);
color:#fff;padding:.6rem;border-radius:.4rem;cursor:pointer;
}
/* Main area */
.main{display:flex;flex-direction:column;}
/* Topbar */
.topbar{
display:flex;align-items:center;gap:1rem;padding:0.75rem 1rem;background:transparent;border-bottom:1px solid rgba(0,0,0,0.05);
}
.menu-btn{display:none;background:transparent;border:none;font-size:1.25rem;cursor:pointer}
.search input{
min-width:200px;padding:.45rem .6rem;border-radius:6px;border:1px solid rgba(0,0,0,0.1)
}
.profile{margin-left:auto;display:flex;align-items:center;gap:.5rem}
.avatar{width:40px;height:40px;border-radius:50%}
.name{font-weight:600}
/* Content */
.content{padding:1rem;display:flex;flex-direction:column;gap:1rem}
/* stats cards */
.stats{display:flex;gap:1rem;flex-wrap:wrap}
.card{background:var(--card-bg);padding:1rem;border-radius:10px;box-shadow:0 1px 4px rgba(16,24,40,0.04)}
.stat{flex:1;min-width:150px}
.stat .big{font-size:1.75rem;font-weight:700;margin:0.4rem 0;color:var(--accent);}
/* grid for notifications + recent */
.grid{display:grid;grid-template-columns:2fr 1fr;gap:1rem}
.notifications ul{list-style:none;padding-left:0}
.notifications li{padding:.5rem 0;border-bottom:1px dashed #eee}
.recent ol{padding-left:1.1rem}
/* small footer cards */
.more-cards{display:flex;gap:1rem}
.more-cards .small{flex:1;min-width:140px}
/* Responsive: mobile */
@media (max-width: 900px){
.dashboard{grid-template-columns: 1fr;} /* hide persistent sidebar */
.sidebar{position:fixed;left:0;top:0;height:100vh;transform:translateX(-110%);transition:transform .25s ease;z-index:30;width:70%;max-width:300px}
.sidebar.open{transform:translateX(0)}
.menu-btn{display:inline-block}
.search input{min-width:120px}
.grid{grid-template-columns:1fr}
.stats{flex-direction:row;overflow:auto;padding-bottom:.25rem}
.nav-item{white-space:nowrap}
}