-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAdmin-Dashboard-responsive.css
More file actions
204 lines (167 loc) · 3.27 KB
/
Admin-Dashboard-responsive.css
File metadata and controls
204 lines (167 loc) · 3.27 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
/* Responsive Admin Dashboard Styles */
/* Base responsive adjustments */
@media (max-width: 1024px) {
.charts-grid {
grid-template-columns: 1fr;
}
.chart-container {
width: 100% !important; /* Override any inline styles */
}
}
/* Tablet Styles */
@media (max-width: 992px) {
.stats-container {
grid-template-columns: repeat(2, 1fr);
}
.sidebar {
width: 220px;
}
.main-content {
margin-left: 220px;
}
.header {
flex-direction: column;
gap: 15px;
text-align: center;
}
.header h1 {
font-size: 1.5rem;
}
}
/* Mobile Styles */
@media (max-width: 768px) {
/* Dashboard container */
.dashboard-container {
flex-direction: column;
margin-top: 0;
}
/* Sidebar */
.sidebar {
width: 100%;
height: auto;
position: relative;
overflow-y: visible;
padding: 10px;
max-height: none;
}
.sidebar-header {
padding: 10px 0;
}
.sidebar-header h2 {
font-size: 1.2rem;
}
.nav-menu {
margin-top: 10px;
}
.nav-item {
padding: 8px 10px;
margin-bottom: 3px;
}
/* Main Content */
.main-content {
margin-left: 0;
padding: 10px;
}
/* Header */
.header {
padding: 15px;
margin-bottom: 15px;
}
/* Stats */
.stats-container {
grid-template-columns: 1fr;
gap: 15px;
}
/* Tables */
.table-container {
padding: 10px;
margin-bottom: 15px;
overflow-x: auto;
}
table {
min-width: 600px; /* Ensures tables can be scrolled horizontally */
}
th,
td {
padding: 8px;
font-size: 0.9rem;
}
/* Forms */
.form-container {
padding: 15px;
}
.form-group {
margin-bottom: 15px;
}
input,
select,
textarea,
button {
padding: 8px;
}
}
/* Small Mobile Styles */
@media (max-width: 480px) {
.header h1 {
font-size: 1.2rem;
}
.profile-section {
flex-direction: column;
gap: 5px;
}
.stat-card {
padding: 15px;
}
.stat-card h3 {
font-size: 0.8rem;
}
.stat-card p {
font-size: 1.2rem;
}
.table-container h2 {
font-size: 1.2rem;
margin-bottom: 10px;
}
/* Improve button spacing on mobile */
button {
padding: 8px 12px;
font-size: 0.9rem;
}
/* Pagination buttons */
.pagination-btn {
margin: 0 2px;
padding: 4px 8px;
font-size: 0.9rem;
}
}
/* Fix for status badges on mobile */
@media (max-width: 768px) {
.status-badge {
padding: 3px 6px;
font-size: 0.75rem;
display: inline-block;
}
}
/* Ensure charts are responsive */
canvas {
max-width: 100%;
height: auto !important;
}
/* Fix for password toggle on mobile */
@media (max-width: 480px) {
.password-wrapper {
position: relative;
}
.toggle-password {
right: 5px;
font-size: 16px;
}
}
/* Improve form inputs on mobile */
@media (max-width: 768px) {
input,
select,
textarea {
font-size: 16px; /* Prevents iOS zoom on focus */
}
}