This repository has been archived by the owner on Aug 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.html
57 lines (55 loc) · 1.48 KB
/
example.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Example</title>
<script type="text/javascript" src="assets/scripts/logos.js"></script>
<style type="text/css">
.xl {
font-size: 2.5rem;
}
.lg {
font-size: 1.75rem;
}
.md {
font-size: 1.25rem;
}
/* https://developer.mozilla.org/en-US/docs/Web/CSS/:last-child */
#logos-eslint > path:last-child {
fill: red;
}
</style>
</head>
<body>
<p>
<svg class="logos" aria-hidden="true">
<use xlink:href="#logos-angular-icon" />
</svg>
<span>name: angular-icon.svg</span>
</p>
<p>
<svg class="logos md" aria-hidden="true">
<use xlink:href="#logos-vue" />
</svg>
<span>font-size: 1.25rem</span>
</p>
<p>
<svg class="logos lg" aria-hidden="true">
<use xlink:href="#logos-react" />
</svg>
<span>font-size: 1.75rem</span>
</p>
<p>
<svg class="logos xl" aria-hidden="true">
<use xlink:href="#logos-eslint" />
</svg>
<span>Partially modify the color</span>
<a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/SVG_and_CSS">MDN Doc</a>
</p>
<p>
<a href="https://github.com/ixiaer/icon-logos">Github Source</a>
</p>
</body>
</html>