-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtic.css
60 lines (58 loc) · 1.15 KB
/
tic.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
body {
margin: 0;
padding: 0;
font: 16px/1.5 "helvetica neue", sans-serif;
}
main {
display: flex;
justify-content: center;
margin: calc((100vh - 300px) / 2);
}
@media (min-height: 100vw) and (max-width: 600px) {
main {
margin: calc((100vw - 300px) / 2);
}
}
@media (min-width: 600px) and (min-height: 600px) {
main {
margin: 150px;
}
}
.board {
cursor: default;
user-select: none;
-webkit-user-select: none;
-webkit-tap-highlight-color: transparent;
display: flex;
flex-direction: column;
width: 300px;
margin: auto;
}
.board > .row {
display: flex;
flex-direction: row;
width: 300px;
}
.board > .row > div {
flex: 0 0 100px;
height: 100px;
box-sizing: border-box;
border: 1px solid #ddd;
border-bottom: none;
border-right: none;
font-size: 32px;
font-weight: 200;
text-align: center;
line-height: 100px;
transition: background cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
}
.board > .row > div:first-child {
border-left: none;
}
.board > .row > div.active {
background: rgba(0, 0, 0, 0.1);
transition: background cubic-bezier(0.4, 0, 0.2, 1) 0s;
}
.board > .row:first-child > div {
border-top: none;
}