-
Notifications
You must be signed in to change notification settings - Fork 0
/
aula17.css
126 lines (103 loc) · 1.68 KB
/
aula17.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
/* Grid */
.grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-auto-rows: 50px;
}
/* 1 */
.grid-area-1 .item-1 {
grid-area: 1 / 2 / 4 / 3;
grid-row-start: 1;
grid-column-start: 2;
grid-row-end: 4;
grid-column-end: 3;
}
.grid-area-1 .item-5 {
grid-area: span 2 / 3;
grid-row-start: span 2;
grid-column-start: 3;
}
/* 2 */
.grid-area-2 {
grid-template-areas:
"header header header"
"sidenav content ads"
"sidenav footer footer"
;
}
.grid-area-2 .item-1 {
grid-area: header;
}
.grid-area-2 .item-2 {
grid-area: sidenav;
}
.grid-area-2 .item-3 {
grid-area: content;
}
.grid-area-2 .item-4 {
grid-area: ads;
}
.grid-area-2 .item-5 {
grid-area: footer;
}
/* 3 */
.grid-area-3 {
grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
}
.grid-area-3 .item-1 {
grid-row: 2 / 4;
grid-column: 2 / 5;
background: rgb(255,0,0);
mix-blend-mode: screen;
}
.grid-area-3 .item-2 {
grid-area: 3 / 3 / span 3 / 5;
background: rgb(0,255,0);
mix-blend-mode: screen;
}
.grid-area-3 .item-12 {
grid-row-start: 1;
grid-column-start: 4;
grid-row-end: 7;
grid-column-end: 6;
background: rgb(0,0,255);
mix-blend-mode: screen;
}
/* 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%;
}
img {
display: block;
margin: 0 auto;
}