forked from ejhessing/dom-events-and-classes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
72 lines (59 loc) · 1.09 KB
/
style.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
html, body {
height: 100%;
}
body {
display: flex;
align-items: center;
justify-content: center;
}
.board {
width: 375px;
height: 375px;
}
.board div {
width: 100px;
height: 100px;
min-width: 100px;
border: 1px #ccc dotted;
margin: 10px;
border-radius: 50%;
background-color: #eee;
display: inline-block;
}
.board div:hover {
background-color: #ccc;
}
.totals {
font-size: 5em;
font-family: 'sans-serif';
margin-left: 50px;
}
#blue-total {
color: deepskyblue;
}
#green-total {
color: darkseagreen;
}
#invisible-total {
color: white;
text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}
div.blue {
background-color: deepskyblue;
}
div.blue:hover {
background-color: cornflowerblue;
}
div.green {
background-color: darkseagreen;
}
div.green:hover {
background-color: lightgreen;
}
/* Sometimes display: none would be appropriate here. However, because we want the dots
* to stay in position and take up space, we turn off colour and border instead
*/
div.invisible, div.invisible:hover {
background-color: white;
border: none;
}