-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaula19.css
99 lines (77 loc) · 1.06 KB
/
aula19.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
94
95
96
97
98
99
/* Grid */
.grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(3, 50px);
}
/* 1 */
.start .item-2 {
align-self: start;
}
.start .item-5 {
align-self: start;
}
/* 2 */
.end .item-2 {
align-self: end;
}
.end .item-5 {
align-self: end;
}
/* 3 */
.center .item-2 {
align-self: center;
}
.center .item-5 {
align-self: center;
}
/* 4 */
.stretch {
align-items: start;
}
.stretch .item-2 {
align-self: stretch;
}
.stretch .item-5 {
align-self: stretch;
}
.item-2, .item-3 {
grid-row: span 2;
}
.item-5 {
grid-column: span 2;
}
/* Grid Item */
.item {
margin: 5px;
background: tomato;
text-align: center;
font-size: 1.5em;
}
.grid {
max-width: 400px;
margin: 0 auto;
border: 1px solid #ccc;
}
h1 {
text-align: center;
font-size: 1.25em;
font-weight: normal;
}
body {
font-family: monospace;
color: #333;
padding-bottom: 60px;
margin: 0px;
}
body > div {
padding: 40px 0;
}
body > div:nth-of-type(even) {
background: rgba(0,0,0,.03);
}
body > div > img {
display: block;
margin: 0 auto;
max-width: 100%;
}