-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
59 lines (50 loc) · 838 Bytes
/
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
*,
*::before,
*::after {
box-sizing: border-box;
}
body {
margin: 20px 0;
background: #6589F9;
}
.grid {
max-width: 960px;
margin: 0 auto;
display: flex;
flex-wrap: wrap;
justify-content: space-evenly;
}
.card {
position: relative;
transition: all .4s linear;
transform-style: preserve-3d;
margin: 5px;
}
.card,
.back,
.front {
height: 150px;
width: 150px;
}
.back,
.front {
position: absolute;
backface-visibility: hidden;
}
.front {
z-index: 2;
background: #FAB942 url('../img/question.gif') no-repeat center center / contain;
}
.back {
transform: rotateY(180deg);
background-color: #6589F9;
background-size: contain;
background-repeat: no-repeat;
background-position: center center;
}
.selected {
transform: rotateY(180deg);
}
.match .front {
background: #6589F9 !important;
}