-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpoker-card.css
89 lines (73 loc) · 1.13 KB
/
poker-card.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
#cards {
display: flex;
justify-content:center;
flex-wrap:wrap;
}
.card{
margin: 3px;
border: 1px solid black;
box-sizing: border-box;
flex: 7% 0 1;
height: 8vw;
display: flex;
flex-direction: column;
justify-content: space-around;
}
#game-sign{
width: 10%;
}
.back {
background-image: url('https://i.imgur.com/X5nacsZ.png');
background-size:cover
}
#title {
margin: 30px;
}
#score {
margin-right: 30px;
}
#times {
margin-right:30px;
}
.paired {
background-color:orange;
}
.card img {
max-width: 30%;
align-self: center;
}
.card p {
margin: 3px;
font-size: 10px;
}
.card p:last-child{
transform: rotate(180deg);
}
.wrong{
animation: wrongAnimation 0.2s;
animation-iteration-count: 5;
}
@keyframes wrongAnimation {
100%{
border: 2px solid yellow;
}
}
.completed {
position: absolute;
z-index: 999;
top: 33vh;
background-color: RGBA(232, 246, 254, 0.8);
width: 100vw;
padding: 50px 0;
}
.completed > p {
font-size: 1.5em;
color: black;
text-align: center;
margin: 0;
}
.completed > p:first-child {
font-size: 3em;
font-weight: 700;
color: #758d9a;
}