-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathstyle2.css
More file actions
53 lines (50 loc) · 884 Bytes
/
style2.css
File metadata and controls
53 lines (50 loc) · 884 Bytes
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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: sans-serif;
background-color: #444;
color: white;
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-rows: 64px 1fr 64px;
min-height: 100vh;
gap: 1rem;
grid-template-areas:
"header header"
"content sidebar"
"footer footer";
}
body > * {
padding: 1rem;
border: 2px solid #bbb;
}
/* header,
footer {
grid-column: 1 / -1;
} */
header {
grid-area: header;
}
footer {
grid-area: footer;
}
aside {
grid-area: sidebar;
}
main {
grid-area: content;
}
@media (max-width: 768px) {
body {
grid-template-columns: 1fr;
grid-template-rows: 64px 1fr 1fr 64px;
grid-template-areas:
"header "
"content "
"sidebar"
"footer";
}
}