forked from hackyourfuturecanada/Week4
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
65 lines (51 loc) · 893 Bytes
/
style.css
File metadata and controls
65 lines (51 loc) · 893 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
54
55
56
57
58
59
60
61
62
63
64
65
* {
box-sizing: border-box;
}
body {
margin: 0;
}
ul {
padding:0px;
list-style: none;
}
img {
max-width: 100%;
max-height: 250px;
}
.grid-item {
width:calc(50% - 2 * 10px);
border: 1px solid grey;
margin:10px;
padding:10px;
min-height:500px;
}
#grid-floats .grid-item {
float: left;
}
#grid-floats {
overflow: hidden;
}
.grid-item:nth-child(1) {
width: calc(100% - 2 * 10px);
}
#grid-flex {
display:flex;
flex-wrap:wrap;
}
@media (min-width:769px) {
.grid-item:nth-child(1),
.grid-item:nth-child(2) {
width:calc(50% - 2 * 10);
}
.grid-item:nth-child(n + 3 ){
width: calc(100% / 3 - 2 * 10px)
}
@media (min-width:1024px) {
.grid-item:nth-child(1) {
width: calc(50% - 2 * 10px);
}
.grid-item:nth-child(n + 2 ){
width: calc(25% - 2 * 10px);
}
}
}