-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
93 lines (80 loc) · 1.53 KB
/
style.css
File metadata and controls
93 lines (80 loc) · 1.53 KB
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
body, html {
height: 100%;
width: 100%;
padding: 0;
margin: 0;
font-family: "Montserrat", sans-serif;
}
.cell {
display: inline-block;
}
.site-container {
height: 100%;
padding: 0;
margin: 0;
position: relative;
}
.wordle-grid {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
/* See: https://www.w3schools.com/howto/howto_css_flip_card.asp */
.cell {
background-color: gray;
height: 30px;
width: 30px;
position: relative;
perspective: 1000px;
}
.cell-3d .letter {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
transform-style: preserve-3d;
}
.HUD {
position: absolute;
top: 10%;
width: 55%;
text-align: center;
left: 50%;
transform: translateX(-50%);
}
.row {
position: relative;
}
.cell-3d {
background-color: transparent;
width: 30px;
height: 30px;
display: inline-block;
perspective: 1000px;
}
.cell-3d-inner {
position: relative;
width: 100%;
height: 100%;
text-align: center;
transition: transform 0.6s;
transform-style: preserve-3d;
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}
.cell-3d-front, .cell-3d-back {
position: absolute;
width: 100%;
height: 100%;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
}
.cell-3d-front {
background-color: #bbb;
color: black;
}
.cell-3d-back {
background-color: #bbb;
color: white;
transform: rotateY(180deg);
}