-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdiamond.html
More file actions
141 lines (123 loc) · 3.03 KB
/
diamond.html
File metadata and controls
141 lines (123 loc) · 3.03 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Baseball Diamond</title>
<style>
.field {
background-color: green;
width: 500px;
height: 500px;
margin: 0 auto;
position: relative;
}
.infield {
width: 250px;
height: 250px;
background-color: darkgreen;
transform: rotate(90deg);
-webkit-transform: rotate(45deg);
position: absolute;
bottom: 75px;
left: 125px;
z-index: 2;
}
.infield * {
z-index: 2;
position: relative;
}
.homePlate,
.pitchersMound,
.basePath {
background-color: tan;
}
.basePath {
position: absolute;
z-index: 1;
width: 250px;
height: 250px;
}
.base {
width: 14px;
height: 14px;
background-color: white;
position: absolute;
}
.firstBase {
top: 0;
right: 0;
}
.secondBase {
top: 0;
left: 0;
}
.thirdBase {
bottom: 0;
left: 0;
}
.homePlate {
width: 50px;
height: 50px;
position: absolute;
bottom: -15px;
right: -15px;
border-radius: 25px;
}
.pitchersMound {
width: 60px;
height: 60px;
border-radius: 35px;
position: absolute;
top: 95px;
left: 95px;
}
.path1 {
-webkit-transform: rotate(45deg);
bottom: 68px;
left: 118px;
width: 264px;
height: 264px;
}
.path2 {
right: 64px;
border-top-right-radius: 177px;
width: 208px;
height: 199px;
top: 100px;
}
.path3 {
left: 64px;
border-top-left-radius: 177px;
width: 208px;
height: 199px;
top: 100px;
}
.path4 {
display:none;
}
</style>
</head>
<body>
<div class="field">
<div class="infield">
<div class="homePlate">
<div class="battersBox">
<div class="homebase"></div>
</div>
</div>
<div class="base firstBase"></div>
<div class="base secondBase"></div>
<div class="base thirdBase"></div>
<div class="pitchersMound">
<div class="rubber"></div>
</div>
<div class="infieldGrass"></div>
</div>
<div class="basePath path1"></div>
<div class="basePath path2"></div>
<div class="basePath path3"></div>
<div class="basePath path4"></div>
</div>
</body>
</html>