-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
74 lines (64 loc) · 1.05 KB
/
styles.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
.game {
margin: 50px auto;
width: 44%;
min-width: 300px;
}
@media screen and (max-width: 768px) {
.game {
width: 66%;
}
}
.game-Board {
margin: 0;
padding: 0;
display: block;
}
.memory-card {
position: relative;
width: 23%;
height: 23%;
padding: 0;
margin: 1%;
box-sizing: border-box;
display: inline-block;
white-space: normal;
color:black;
background-color: grey;
border-radius: 4px;
border: 8px solid white;
box-shadow: 1px 1px 4px grey;
background-size: 150%;
}
.memory-card--mismatch {
border-color: red;
}
.memory-card:not(.found) {
background-image: url("media/contemporary_china.png");
}
.memory-card .memory-card__content {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
text-align: center;
display: inline-block;
background-size: cover;
}
.centered {
text-align: center;
}
.square {
position: relative;
width: 100%;
}
.square:after {
content: "";
display: block;
padding-bottom: 100%;
}
.square__content {
position: absolute;
width: 100%;
height: 100%;
}