forked from info343-au16/lecture03-css
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwarmup.html
More file actions
59 lines (45 loc) · 1.83 KB
/
warmup.html
File metadata and controls
59 lines (45 loc) · 1.83 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Warmup</title>
<link rel="stylesheet" href="css/warmup.css"></link>
</head>
<body>
<h1>Cut-Out Art</h1>
<svg xmlns="http://www.w3.org/2000/svg" width=600 height=400>
<!-- do not style this rectangle -->
<rect x=0 y=0 width=600 height=400 />
<!-- these circles should have a color (`fill`) of `#5f5f5f` -->
<circle cx=225 cy=130 r=100 />
<circle cx=375 cy=130 r=100 />
<!-- these paths should have a `stroke` of `#5f5f5f` and a `stroke-width` of 8px -->
<path d="M150,140 A 90,90 0 0,0 150,330 z" />
<path d="M450,140 A 90,90 0 1,1 450,330 z" />
<!-- these circles should be colored white -->
<circle class="small" cx=225 cy=110 r=50 />
<circle class="small" cx=375 cy=110 r=50 />
<!-- these circles should be colored `#573d29` -->
<circle class="small contained" cx=225 cy=120 r=20 />
<circle class="small contained" cx=375 cy=120 r=20 />
<g class="group">
<!-- this circle should be colored `#c0c0c0` -->
<circle cx=300 cy=255 r=100 />
</g>
<!-- this circle should also be colored `#c0c0c0`,
but have a stroke colored `#bd250d` width a width of 4px
In addition, when you `hover` over this circle, its fill should also
become `#bd250d`
-->
<circle id="unique" cx=300 cy=280 r=60 />
<!-- this path should also be colored `#c0c0c0`, but not have a stroke (`none`)
Do not create a new rule for this! Just adjust the selector and properties
of an existing one! -->
<path class="same" d="M230,210 L370,210 L370,280 L230,280 Z" />
<!-- this circle should be colored black
Hint: try to use the `:last-child` pseudo-class combined with a
"child selector" (`>`) -->
<circle cx=300 cy=210 r=50 />
</svg>
</body>
</html>