-
Notifications
You must be signed in to change notification settings - Fork 0
/
grid.css
85 lines (70 loc) · 1.17 KB
/
grid.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
*,
*:before,
*:after {
box-sizing: border-box;
}
body {
margin: 10px;
font-family: 'Open Sans', 'sans-serif';
background-color: #fff;
color: #444;
}
h1,
p {
margin: 0 0 1em 0;
}
.wrapper {
max-width: 940px;
margin: 0 20px;
display: grid;
grid-gap: 10px;
}
/* no grid support? */
.wrapper {
display: flex;
flex-wrap: wrap;
}
.wrapper {
display: grid;
margin: 0 auto;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
grid-auto-rows: minmax(150px, auto);
}
.panelFrontEnd,.panelBackEnd {
/* needed for the flex layout*/
margin-left: 5px;
margin-right: 5px;
display: none;
flex-direction: row;
/* flex: 1 1 200px; */
}
.panelDemo {
margin-left: 5px;
margin-right: 5px;
display: none;
flex-direction: column;
}
.header,
.footer {
margin-left: 5px;
margin-right: 5px;
flex: 0 1 100%;
grid-column: 1 / -1;
}
.wrapper > * {
background-color: #e9e6e6;
color: #000;
border-radius: 5px;
padding: 20px;
font-size: 150%;
margin-bottom: 10px;
}
img{
width: 100px;
}
/* We need to set the margin used on flex items to 0 as we have gaps in grid. */
@supports (display: grid) {
.wrapper > * {
margin: 0;
}
}