-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyles.css
More file actions
72 lines (61 loc) · 1.79 KB
/
styles.css
File metadata and controls
72 lines (61 loc) · 1.79 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
html, body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
#scene {
width: 100%;
height: 100%;
perspective: 600px;
overflow: hidden;
/* Sky texture */
background-color: rgb(255,255,200);
background-image: url('textures/sky.png');
background-size: cover;
}
#camera, #world {
position: absolute;
left: 50%;
top: 50%;
width: 0;
height: 0;
transform-style: preserve-3d;
}
.wall, .floor {
position: absolute;
left: 50%;
top: 50%;
backface-visibility: hidden;
/* For the instruction text */
font-family: sans-serif;
font-size: 3em;
text-align: center;
line-height: 300px;
color: rgba(50,50,50,0.6);
/* How to treat the textures */
background-size: cover;
background-color: #333;
}
.texture-repeat {
background-size: 25%;
background-repeat: repeat;
}
.texture-wall1 { background-image: url('textures/wall1.jpg'); }
.texture-wall2 { background-image: url('textures/wall2.jpg'); }
.texture-wall3 { background-image: url('textures/wall3.jpg'); }
.texture-wall4 { background-image: url('textures/wall4.jpg'); }
.texture-wall5 { background-image: url('textures/wall5.jpg'); }
.texture-wall6 { background-image: url('textures/wall6.jpg'); }
.texture-wall7 { background-image: url('textures/wall7.jpg'); }
.texture-wall8 { background-image: url('textures/wall8.jpg'); }
.texture-wall9 { background-image: url('textures/wall9.jpg'); }
.texture-floor1 { background-image: url('textures/floor1.jpg'); }
.texture-floor2 { background-image: url('textures/floor2.jpg'); }
.texture-floor3 { background-image: url('textures/floor3.jpg'); }
.texture-floor4 { background-image: url('textures/floor4.jpg'); }
.texture-floor5 { background-image: url('textures/floor5.jpg'); }
/* For the editor */
.texture-highlight {
box-shadow: inset 0 0 1000px yellow, 0 0 50px yellow;
}