-
Notifications
You must be signed in to change notification settings - Fork 0
/
tic.scss
73 lines (55 loc) · 1.23 KB
/
tic.scss
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
$color-fade-easing: cubic-bezier(0.4, 0.0, 0.2, 1);
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) {
margin: calc((100vw - 300px) / 2);
}
@media (min-width: 600px) and (min-height: 600px) {
margin: 150px;
}
}
.board {
cursor: default;
user-select: none;
-webkit-user-select: none;
-webkit-tap-highlight-color: transparent;
display: flex;
flex-direction: column;
width: 3 * 100px;
margin: auto;
> .row {
display: flex;
flex-direction: row;
width: 3 * 100px;
> 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;
&:first-child {
border-left: none;
}
transition: background $color-fade-easing .5s;
&.active {
background: rgba(0, 0, 0, 0.1);
transition: background $color-fade-easing 0s;
}
}
&:first-child > div {
border-top: none;
}
}
}