forked from toji/webgpu-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebgpu-css-logo.html
90 lines (82 loc) · 3.42 KB
/
webgpu-css-logo.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
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
<!doctype html>
<html>
<head>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Poppins&display=swap" rel="stylesheet">
<link rel="icon" type="image/png" sizes="48x48" href="favicon-48.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16.png">
<meta itemprop="image" content="thumb.png">
<link rel="author" href="./humans.txt">
<style>
.webgpu-logo, .webgpu-logo div, .webgpu-logo div::before {
--color0: #005a9c;
--color1: #0066b0;
--color2: #0076cc;
--color3: #0093ff;
--color4: #0086e8;
--lvl0-height: 128px;
--lvl0-half-width: calc(var(--lvl0-height)/1.7333);
--lvl1-height: calc(var(--lvl0-height)*0.5);
--lvl1-half-width: calc(var(--lvl1-height)/1.7333);
--lvl2-height: calc(var(--lvl1-height)*0.5);
--lvl2-half-width: calc(var(--lvl2-height)/1.7333);
display: inline-block;
width: 0;
height: 0;
padding: 0;
margin: 0;
vertical-align: top;
}
.webgpu-logo {
border-left: var(--lvl0-half-width) solid transparent;
border-right: var(--lvl0-half-width) solid transparent;
border-top: var(--lvl0-height) solid var(--color0);
}
.webgpu-logo::after {
content: "WebGPU";
font-family: 'Poppins', sans-serif;
font-size: calc(var(--lvl0-height)*0.42);
margin-left: calc(var(--lvl0-half-width)*-1);
}
.webgpu-logo>div, .webgpu-logo>div::before {
border-left: var(--lvl1-half-width) solid transparent;
border-right: var(--lvl1-half-width) solid transparent;
}
.webgpu-logo>div {
border-bottom: var(--lvl1-height) solid var(--color1);
margin-top: calc(var(--lvl0-height)*-1);
margin-left: var(--lvl1-half-width);
}
.webgpu-logo>div::before {
content: "";
border-bottom: 0;
border-top: var(--lvl1-height) solid var(--color2);
margin-top: var(--lvl1-height);
margin-left: calc(var(--lvl1-half-width)*-1);
}
.webgpu-logo>div>div, .webgpu-logo>div>div::before {
border-left: var(--lvl2-half-width) solid transparent;
border-right: var(--lvl2-half-width) solid transparent;
}
.webgpu-logo>div>div {
border-bottom: var(--lvl2-height) solid var(--color3);
margin-top: calc(var(--lvl0-height)*-1);
margin-left: var(--lvl2-half-width);
}
.webgpu-logo>div>div::before {
content: "";
border-bottom: 0;
border-top: var(--lvl2-height) solid var(--color4);
margin-top: var(--lvl2-height);
margin-left: calc(var(--lvl2-half-width)*-1);
}
</style>
</head>
<body>
<h2>SVG:</h2>
<img src="media/webgpu-logo.svg" width='250px'></img><br/>
<h2>CSS-only:</h2>
<div class='webgpu-logo'><div><div></div></div></div></div><br/>
</body>
</html>