-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
108 lines (104 loc) · 1.95 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
* {
margin: 0;
padding: 0;
}
body {
padding: 50px;
font: 14px "Verdana", Helvetica, Arial, sans-serif;
background: #444;
color: #FFF;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
#tabuleiro {
width: 75vh;
height: 75vh;
margin: 64px auto 0 auto;
}
#tabuleiro .casa {
box-sizing: border-box;
border: 4px solid #FFF;
width: 33.33333%;
height: 33.33333%;
float: left;
cursor: pointer;
position: relative;
transition: all .25s ease;
opacity: .25;
}
#tabuleiro .casa:hover:not(.o):not(.x) {
background: rgba(255, 255, 255, 0.18);
}
#tabuleiro .casa:nth-child(1) {
border-top: none;
border-left: none;
}
#tabuleiro .casa:nth-child(2) {
border-top: none;
}
#tabuleiro .casa:nth-child(3) {
border-top: none;
border-right: none;
}
#tabuleiro .casa:nth-child(4) {
border-left: none;
}
#tabuleiro .casa:nth-child(6) {
border-right: none;
}
#tabuleiro .casa:nth-child(7) {
border-left: none;
border-bottom: none;
}
#tabuleiro .casa:nth-child(8) {
border-bottom: none;
}
#tabuleiro .casa:nth-child(9) {
border-bottom: none;
border-right: none;
}
#tabuleiro .casa:after, #tabuleiro .casa:before {
content: "";
display: block;
position: absolute;
transition: all .25s ease;
}
#tabuleiro .casa.o:after {
width: 50%;
height: 50%;
border: 8px solid #FFF;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
border-radius: 100%;
}
#tabuleiro .casa.x:after, #tabuleiro .casa.x:before {
width: 8px;
height: 60%;
top: 50%;
left: 50%;
background: #FFF;
transform: translate(-50%, -50%) rotate(45deg);
}
#tabuleiro .casa.x:before {
top: 50%;
left: 50%;
transform: translate(-50%, -50%) rotate(-45deg);
}
#tabuleiro.fim .casa {
opacity: .1;
}
#tabuleiro.fim .casa.ganhou {
opacity: 1;
}
.assinatura {
display: inline-block;
font-size: 16px;
color: #ccc;
}
.assinatura .foto {
vertical-align: middle;
padding-left: 5px;
border-radius: 50%;
}