-
Notifications
You must be signed in to change notification settings - Fork 0
/
crucigrama.css
53 lines (46 loc) · 962 Bytes
/
crucigrama.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
main {
display: grid;
grid-template-columns: repeat(9, 1fr);
grid-template-rows: repeat(11, 1fr);
gap: 0;
width: 500px;
height: 500px;
border: 2px solid black;
justify-items: center;
align-items: center;
}
p {
width: 100%;
height: 100%;
padding: 5px;
margin: 0;
box-sizing: border-box;
text-align: center;
border: 1px solid gray;
}
p[data-state="blocked"] {
background-color: #d6d8c0;
}
p[data-state="empty"] {
background-color: Black;
}
/* Estilos para una mediaquery
que muestre la botonera en tablet y móvil */
section[data-type=botonera] {
display: flex;
gap: 1em;
justify-content: center;
align-items: center;
flex-wrap: wrap;
}
section[data-type=botonera] h4 {
width: 100%;
text-align: center;
}
section[data-type=botonera] button {
width: calc(15% - 1em);
height: 4em;
text-align: center;
background-color: #000;
color: #FFF;
}