Skip to content

Commit dd47eb1

Browse files
committed
Add responsive styles for various screen sizes in responsive.ts
1 parent ed7225b commit dd47eb1

1 file changed

Lines changed: 60 additions & 0 deletions

File tree

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
export const responsiveStyles = `
2+
/* Responsive */
3+
@media (max-width: 1200px) {
4+
.main-grid {
5+
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
6+
}
7+
}
8+
9+
@media (max-width: 768px) {
10+
body {
11+
padding: 12px;
12+
}
13+
14+
.header {
15+
padding: 12px;
16+
margin-bottom: 12px;
17+
flex-direction: column;
18+
align-items: flex-start;
19+
}
20+
21+
.stats-grid {
22+
grid-template-columns: repeat(2, 1fr);
23+
gap: 10px;
24+
margin-bottom: 12px;
25+
}
26+
27+
.main-grid {
28+
gap: 10px;
29+
margin-bottom: 12px;
30+
}
31+
32+
.chart-container {
33+
height: 200px;
34+
}
35+
}
36+
37+
@media (max-width: 480px) {
38+
body {
39+
padding: 8px;
40+
}
41+
42+
.header {
43+
padding: 12px;
44+
margin-bottom: 12px;
45+
}
46+
47+
.stats-grid {
48+
grid-template-columns: 1fr;
49+
gap: 10px;
50+
}
51+
52+
.stat-card, .card {
53+
padding: 12px;
54+
}
55+
56+
.chart-container {
57+
height: 180px;
58+
}
59+
}
60+
`;

0 commit comments

Comments
 (0)