-
Notifications
You must be signed in to change notification settings - Fork 161
/
js.html
49 lines (46 loc) · 1.23 KB
/
js.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
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="CSS simulacrum of the JS logo" />
<meta charset="utf-8" />
<title>logo.js</title>
<style>
/* A CSS simulacrum of the JS logo.
* See: @voodtikigod's https://github.com/voodootikigod/logo.js
* by @olizilla
*/
.js{
/* You can multiply the width by 0.58 to get the font-size..
so for a 100px logo, font size is 100 * 0.58 = 58px */
width:200px;
height:200px;
font-size: 116px;
/* font-size: calc( attr(width) * 0.58 )... If only one could. */
/* oh god no... can someone please get http://www.houseind.com/fonts/neutraface2 into the public domain. */
font-family: Futura, "Trebuchet MS", Arial, sans-serif;
letter-spacing: -1px;
line-height: 1.1em;
font-weight: 700;
background-color: #f3df49;
color: #2e2e2c;
/* Increase the font weight with a faux-outline...*/
text-shadow:1px 1px 0px #2e2e2c;
/* ...but too much and you trade-off the sharpness of the font. */
/*text-shadow:-1px 0 #2e2e2c, 0 1px #2e2e2c, 1px 0 #2e2e2c, 0 -1px #2e2e2c;*/
display: inline-block;
position: relative;
}
.js div {
position: absolute;
bottom:0;
right:0;
padding:0 5% 0 0;
}
</style>
</head>
<body>
<div class="js">
<div>JS</div>
</div>
</body>
</html>