-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmaze.css
More file actions
111 lines (90 loc) · 1.59 KB
/
maze.css
File metadata and controls
111 lines (90 loc) · 1.59 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
/*
CSE 190 M Lab 6 CSS file
You don't need to download or edit this file.
*/
h1, h2 {
text-align: center;
}
p {
width: 600px;
margin: 1em auto;
}
#maze {
margin: auto;
position: relative;
height: 300px;
width: 500px;
}
#start, #end {
position: absolute;
top: 205px;
height: 30px;
width: 30px;
border: 1px solid black;
padding: 5px;
font-family: "Helvetica", "Arial", sans-serif;
font-size: 25pt;
text-align: center;
}
#maze #start {
background-color: #88ff88;
left: 0;
}
#maze #end {
background-color: #8888ff;
right: 0;
}
div.boundary {
background-color: #eeeeee;
border: 1px solid black;
}
div.boundary.example {
margin: auto;
width: 100px;
height: 25px;
}
div.youlose {
background-color: #ff8888;
}
/*
Hack hack hack; these are CSS "sibling selectors" for selecting
neighboring elements. Necessary to avoid giving ids to the boundary divs
*/
#maze div.boundary {
position: absolute;
top: 0;
left: 0;
height: 200px;
width: 150px;
z-index: 1;
}
#maze div.boundary + div.boundary {
border-left: none;
border-right: none;
z-index: 2;
left: 151px;
height: 50px;
width: 198px;
}
#maze div.boundary + div.boundary + div.boundary {
border-left: 1px black solid;
border-right: 1px black solid;
z-index: 1;
left: 348px;
height: 200px;
width: 150px;
}
#maze div.boundary + div.boundary + div.boundary + div.boundary {
border: 1px black solid;
top: 250px;
left: 0;
height: 48px;
width: 498px;
}
#maze div.boundary + div.boundary + div.boundary + div.boundary + div.boundary {
border-bottom: none;
top: 100px;
left: 200px;
height: 150px;
width: 98px;
}