-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrabbit_style.css
More file actions
60 lines (52 loc) · 1.44 KB
/
rabbit_style.css
File metadata and controls
60 lines (52 loc) · 1.44 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
/* Default style attributes of each initial rabbit */
.rabbit
{
width: 100px;
height: 75px;
background-color: #4CD618;
border-width: 1px;
border-style: solid;
position: absolute;
}
/* Class to apply to the selected rabbit which draws a white outline around them */
.selectedRabbit
{
border-width: 5px;
border-style: solid;
border-color: #FFFFFF;
}
/* Class to apply to the selected rabbit's parents which colors them blue */
.parentRabbit
{
background-color: #3FD3CC;
}
/* Class to apply to the selected rabbit's children which colors them yellow */
.childRabbit
{
background-color: #FFFF51;
}
/* CSS attributes to define the <div> ID for the Generate button */
#generateBtn
{
background-color: #D1CEC9;
width: 200px;
border-style: double;
border-width: 5px;
border-color: #000000;
text-align: center;
font-size: 24px;
padding: 8px; /* Provide some additional spacing around the button's text */
/* Force the button to be rendered in the cottom center of the content area */
position: absolute;
bottom: 0px;
left: 50%;
margin-left: -100px; /* Apply a margin of 1/2 the button's width to horizontally center it in the area */
z-index: 1; /* Draw the button on a layer above the rabbits */
}
/* CSS attributes to define the <div> ID for the content area that rabbits will be generated within */
#content
{
background-color: #DC8A03;
overflow: hidden; /* Prevent the page from scrolling to accomodate new rabbits */
position: relative;
}