-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
88 lines (78 loc) · 1.57 KB
/
style.css
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
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
}
.container {
display: grid;
grid-template-areas:
"nav header header"
"nav main cards";
grid-template-columns: 200px 1fr 200px;
grid-template-rows: 80px 1fr;
min-height: 100vh;
gap: 10px;
box-sizing: border-box;
}
.header {
grid-area: header;
background-color: #2196F3;
color: white;
padding: 20px;
display: flex;
align-items: center;
}
.nav {
grid-area: nav;
background-color: #f0f0f0;
padding: 20px;
}
.main {
grid-area: main;
background-color: #ffffff;
padding: 20px;
border: 1px solid #ddd;
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(2, 200px);
gap: 20px;
}
.main-card {
background-color: #f0f0f0;
padding: 20px;
border-radius: 4px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
.main {
grid-template-columns: 1fr;
grid-template-rows: repeat(6, auto);
}
}
.cards {
grid-area: cards;
display: grid;
grid-template-rows: 1fr 1fr;
gap: 10px;
}
.card1, .card2 {
background-color: #f0f0f0;
padding: 20px;
border-radius: 4px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* Make it responsive */
@media (max-width: 768px) {
.container {
grid-template-areas:
"nav"
"header"
"main"
"cards";
grid-template-columns: 1fr;
grid-template-rows: auto;
}
.cards {
grid-template-rows: auto auto;
}
}