-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.css
75 lines (67 loc) · 1.19 KB
/
app.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
body {
margin: 15px;
background: white;
font-size: 16px;
font-family: Tahoma, Geneva, sans-serif;
}
h1 {
margin: 15px 0;
text-align: center;
font-size: 22px;
font-weight: normal;
}
#board {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: flex-start;
text-align: center;
margin: 0 auto;
max-width: 400px;
}
#board > .item {
display: flex;
justify-content: center;
align-items: center;
width: 60px;
height: 60px;
margin: 5px;
color: white;
border: solid 1px #eee;
cursor: pointer;
background-color: green;
border: solid 1px green;
transition: all 0.5s ease;
}
#board > .item > b {
transition: opacity 0.5s;
opacity: 0;
font-size: 24px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
#board > .item > b.active {
opacity: 1;
}
#board > .item:hover,
#board > .item:focus {
background-color: yellow;
}
#board > .item.opened,
#board > .item.opened:hover,
#board > .item.opened:focus {
background-color: blue;
}
#board > .item.done,
#board > .item.done:hover,
#board > .item.done:focus {
background-color: red;
cursor: default;
}
#result {
text-align: center;
font-size: 14px;
line-height: 20px;
}