-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
90 lines (76 loc) · 1.73 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
body {
margin: 0;
display: flex;
width: 100vw;
height: 100vh;
flex-direction: column;
}
footer {
text-align: center;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.inline-icon {
height: 1em;
}
.main-container {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
width: 100vw;
flex-direction: row;
gap: 20%;
}
.slider-and-label {
display: flex;
flex-direction: column;
}
.cube-controls {
z-index: 1;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.qoobe {
transform-style: preserve-3d;
transition: all 0.1s linear;
--cube-size: 120px;
--half-cube-size: calc(var(--cube-size)/2);
width: var(--cube-size);
height: var(--cube-size);
flex-shrink: 0;
backface-visibility: hidden;
}
:has(.backface-toggle:checked) .qoobe {
backface-visibility: visible;
}
.qoobe * {
display: flex;
width: 100%;
height: 100%;
border: 1px red solid;
backface-visibility: visible;
background-color: rgba(255, 0, 0, 0.1);
align-items: center;
justify-content: center;
position: absolute;
backface-visibility: inherit;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-size: 30px;
}
.face-top {
transform: rotateX(90deg) translateZ(var(--half-cube-size));
}
.face-bottom {
transform: rotateX(270deg) translateZ(var(--half-cube-size));
}
.face-front {
transform: translateZ(var(--half-cube-size));
}
.face-back {
transform: rotateY(180deg) translateZ(var(--half-cube-size));
}
.face-left {
transform: rotateY(90deg) translateZ(var(--half-cube-size));
}
.face-right {
transform: rotateY(270deg) translateZ(var(--half-cube-size));
}