forked from DigitalHistory/css-layout
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
93 lines (71 loc) · 1.88 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
89
90
91
92
93
main {
border: 2px solid red;
min-height: 80vh;
background-color: rgba(180,20,20,0.05);
/* display: block; // this is the default */
/* display: none; */
/* display: flex; */
/* flex-direction: column; */
/* align-items: stretch; */
/* align-items: flex-end; */
/* align-items: flex-start; */
/* display: grid */
/* grid-template-columns: 300px 300px 300px; */
/* grid-template-columns: 1fr 3fr 1fr; */
/* grid-template-areas: "nav nav nav"
"aside art art"
"foot foot foot"
;*/
}
main > * {
border: 2px solid blue;
margin: 5px;
padding: 5px;
background-color: rgba(30, 30,200,0.1);
/* display: inline; */
/* flex: 1 200px; */
/* */
}
h1 > span {
background-color: yellow;
/* padding: 60px; */
border: 2px solid magenta;
/* display: block; */
}
nav {
/* grid-area: nav; */
}
aside {
/* align-self: flex-end ; */
/* order: -1; */
/* grid-area: aside; */
}
article {
/* flex: 2 400px; */
/* grid-area: art; */
}
footer.outer {
/* grid-area: foot; */
}
/* Not really relevant for today but I want you to see how I modified content with pure CSS */
/* p.normal:nth-of-type(2)::after { */
/* content: ' - Mwahahahahhaha'; */
/* background-color: purple; */
/* } */
/* put our media queries here */
@media screen and (max-width: 800px) {
main {
display: grid;
grid-template-rows: auto;
grid-template-columns: auto;
grid-template-areas: "nav nav nav" "aside art art" "footer footer footer";
}
}
@media screen and (max-width: 500px) {
main {
display: grid;
grid-template-rows: auto;
grid-template-columns: auto;
grid-template-areas: "nav" "art" "aside" "footer";
}
}