forked from mariellefoster/lightsout
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
62 lines (52 loc) · 897 Bytes
/
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
div#main {
margin: auto;
position: relative;
height: 100vh;
display: flex;
flex-direction: column;
}
div#info {
display: flex;
}
#info > .infosection {
padding: 10px;
text-transform: uppercase;
font-family: sans-serif;
font-size: 20px;
}
.container {
width: 95%;
height: 95%;
position: relative;
perspective: 600px;
}
#board {
flex-grow: 100;
}
#light {
width: 100%;
height: 100%;
position: absolute;
transform-style: preserve-3d;
transition: 0.3s;
}
#light figure {
margin: 0;
display: block;
position: absolute;
width: 100%;
height: 100%;
backface-visibility: hidden;
transform-origin:50% 50%;
border-radius: 30%;
}
#light .on {
background: #FFFF77;
}
#light .off {
background: grey;
transform: rotateY( 180deg );
}
#light.flipped {
transform: rotateY( 180deg );
}