-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathestilos.css
143 lines (123 loc) · 2.44 KB
/
estilos.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
* {
padding: 0;
margin: 0;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
:root {
--celeste: #29ddfd;
--negro: #000;
--blanco: #fff;
--hover: #222;
}
body {
background-color: var(--negro);
}
.color {
background-color: var(--celeste);
width: 100px;
height: 25px;
color: var(--negro);
cursor: pointer;
}
.contenedor {
height: 80vh;
display: flex;
align-items: center;
justify-content: center;
}
h3 {
color: var(--celeste);
}
.puntajes {
height: 25px;
width: 100%;
background: var(--negro);
display: flex;
align-items: center;
justify-content: space-around;
}
.tablero {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(3, 1fr);
grid-column-gap: 5px;
grid-row-gap: 5px;
height: 350px;
width: 350px;
padding: 5px;
background-color: var(--negro);
border: 3px solid var(--celeste);
user-select: none;
font-size: 70px;
text-align: center;
}
.uno { grid-area: 1 / 1 / 2 / 2; }
.dos { grid-area: 1 / 2 / 2 / 3; }
.tres { grid-area: 1 / 3 / 2 / 4; }
.cuatro { grid-area: 2 / 1 / 3 / 2; }
.cinco { grid-area: 2 / 2 / 3 / 3; }
.seis { grid-area: 2 / 3 / 3 / 4; }
.siete { grid-area: 3 / 1 / 4 / 2; }
.ocho { grid-area: 3 / 2 / 4 / 3; }
.nueve { grid-area: 3 / 3 / 4 / 4; }
.casilla{
background-color: var(--blanco);
border: solid 3px var(--celeste);
display: flex;
justify-content: center;
align-items: center;
}
.casilla:hover {
box-shadow: 5px 5px 25px var(--celeste) inset;
}
.casilla:active {
box-shadow: 5px 5px 50px var(--celeste) inset;
}
.btn {
width: 100%;
height: 50px;
display: flex;;
justify-content: center;
}
.jugar, .reiniciar {
background-color: var(--negro);
color: var(--celeste);
border: 5px solid var(--celeste);
width: 100px;
height: 50px;
}
.reiniciar:hover, .jugar:hover {
cursor: pointer;
background-color: var(--hover);
}
.reiniciar:active, .jugar:active {
background-color: var(--celeste);
border-color: var(--negro);
color: var(--negro);
}
.reiniciar {
position: absolute;
justify-content: space-evenly;
top: -9999px;
left: -9999px;
}
.show {
position: relative;
top: 0;
left: 0;
}
.puntosX, .puntosO {
display: flex;
width: 200px;
height: 25px;
background-color: var(--negro);
border: 3px solid var(--celeste);
justify-content: center;
color: var(--celeste);
}
.texto {
position: absolute;
left: -999999999px;
top: -99999999999px;
}