-
-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathsidebar.css
More file actions
135 lines (116 loc) · 2.49 KB
/
sidebar.css
File metadata and controls
135 lines (116 loc) · 2.49 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
/* Common Sidebar Styles for DevDunia */
/* Sidebar Styles */
.sidebar {
width: 280px;
height: 100vh;
position: fixed;
left: 0;
top: 0;
background: rgba(15, 23, 42, 0.95);
backdrop-filter: blur(10px);
border-right: 1px solid rgba(71, 85, 105, 0.3);
z-index: 40;
overflow-y: auto;
transition: width 0.3s ease;
}
.sidebar-text {
opacity: 1 !important;
transform: translateX(0) !important;
display: block !important;
}
.sidebar-item {
display: flex;
align-items: center;
padding: 12px 16px;
color: #94a3b8;
text-decoration: none;
transition: all 0.3s ease;
border-radius: 8px;
margin: 4px 8px;
}
.sidebar-item:hover {
background: rgba(71, 85, 105, 0.3);
color: #ffffff;
}
.sidebar-item.active {
background: rgba(59, 130, 246, 0.2);
color: #60a5fa;
}
.sidebar-icon {
width: 24px;
height: 24px;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
}
.sidebar-text {
margin-left: 12px;
opacity: 1;
transform: translateX(0);
transition: all 0.3s ease;
white-space: nowrap;
font-size: 14px;
font-weight: 500;
}
.sidebar-section {
margin: 16px 0;
}
.sidebar-section-title {
padding: 8px 16px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
color: #64748b;
opacity: 1 !important;
transform: translateX(0) !important;
display: block !important;
transition: all 0.3s ease;
}
.main-content {
margin-left: 280px;
min-height: 100vh;
}
.sidebar::-webkit-scrollbar {
width: 4px;
}
.sidebar::-webkit-scrollbar-track {
background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
background: rgba(71, 85, 105, 0.5);
border-radius: 2px;
}
/* Desktop: Always show text */
@media (min-width: 769px) {
.sidebar-text {
opacity: 1 !important;
transform: translateX(0) !important;
display: block !important;
}
.sidebar-section-title {
opacity: 1 !important;
transform: translateX(0) !important;
display: block !important;
}
}
/* Mobile responsive */
@media (max-width: 768px) {
.sidebar {
width: 0;
overflow: hidden;
}
.sidebar-text {
opacity: 0;
transform: translateX(-10px);
}
.sidebar-section-title {
opacity: 0;
transform: translateX(-10px);
}
.main-content {
margin-left: 0;
}
}