forked from wesbos/JavaScript30
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgrid.css
More file actions
39 lines (33 loc) · 700 Bytes
/
grid.css
File metadata and controls
39 lines (33 loc) · 700 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
/*grid.css*/
table, tbody, tr, th, td {}
.grid {}
.grid {
border-collapse:separate;
border-collapse:collapse;
/*border:1px solid #ccc;*/
background-color:rgb(51,51,51);
}
.grid th, .grid td{
/*border:2px solid rgba(255,255,255,0.125);*/
/*border-collapse:collapse;*/
border:none;
padding: 1rem;
margin:0;
text-align: center;
background-color:rgba(0,0,0,0.25);
}
.grid th {
color:rgba(255,255,255,0.5);
}
/* odd rows */
.grid tr:nth-of-type(odd) {
background-color:rgba(0,0,0,0.25);
}
/* odd column -- THs */
.grid tr th:nth-of-type(odd) {
background-color:rgba(0,0,0,0);
}
/* odd column -- TDs */
.grid tr td:nth-of-type(odd) {
background-color:rgba(0,0,0,0.5);
}