-
Notifications
You must be signed in to change notification settings - Fork 12
/
style.css
100 lines (86 loc) · 1.44 KB
/
style.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
html {
box-sizing: border-box;
}
*,
*::before,
*::after {
box-sizing: inherit;
}
body {
max-width: 50rem;
margin-inline: auto;
font-family: sans-serif;
padding-inline: 1rem;
}
h1 {
text-align: center;
}
@keyframes zjeveni {
100% {
opacity: 1;
transform: scale(1);
}
}
.herni-plocha {
display: grid;
gap: 0.5rem;
grid-template-columns: repeat(6, 1fr);
transform: scale(0.9);
opacity: 0;
animation: zjeveni 0.3s 0.5s forwards;
}
.obrazek {
width: 100%;
height: 100%;
object-fit: cover;
}
.karticka {
aspect-ratio: 1;
width: 100%;
padding: 0;
margin: 0;
border: none;
perspective: 62rem;
background-color: transparent;
cursor: pointer;
}
.karticka__obsah {
position: absolute;
inset: 0;
transform-style: preserve-3d;
pointer-events: none;
transition-property: transform;
transition-duration: 0.5s;
}
.karticka__predek,
.karticka__zadek {
position: absolute;
inset: 0;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
}
.karticka__predek {
background-color: #bbb;
}
.karticka__zadek {
background-color: #c4aeff;
color: #b86bff;
font-size: 2.5vw;
display: flex;
justify-content: center;
align-items: center;
transform: rotateY(180deg);
overflow: hidden;
}
.karticka__zadek::before {
content: 'pexeso';
transform: rotate(45deg);
}
@media (prefers-reduced-motion: reduce) {
.karticka__obsah {
transition-property: none;
}
}
.karticka.otocena .karticka__obsah {
transform: rotateY(180deg);
}