Skip to content

Commit b9d0821

Browse files
author
Chris Williams
committed
Merge pull request voodootikigod#54 from olizilla/master
Adds CSS version
2 parents b96a79a + f432fd7 commit b9d0821

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

js.html

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta name="description" content="CSS simulacrum of the JS logo" />
5+
<meta charset="utf-8" />
6+
<title>logo.js</title>
7+
<style>
8+
/* A CSS simulacrum of the JS logo.
9+
* See: @voodtikigod's https://github.com/voodootikigod/logo.js
10+
* by @olizilla
11+
*/
12+
.js{
13+
/* You can multiply the width by 0.58 to get the font-size..
14+
so for a 100px logo, font size is 100 * 0.58 = 58px */
15+
width:200px;
16+
height:200px;
17+
font-size: 116px;
18+
/* font-size: calc( attr(width) * 0.58 )... If only one could. */
19+
20+
/* oh god no... can someone please get http://www.houseind.com/fonts/neutraface2 into the public domain. */
21+
font-family: Futura, "Trebuchet MS", Arial, sans-serif;
22+
letter-spacing: -1px;
23+
line-height: 1.1em;
24+
font-weight: 700;
25+
26+
background-color: #f3df49;
27+
color: #2e2e2c;
28+
/* Increase the font weight with a faux-outline...*/
29+
text-shadow:1px 1px 0px #2e2e2c;
30+
/* ...but too much and you trade-off the sharpness of the font. */
31+
/*text-shadow:-1px 0 #2e2e2c, 0 1px #2e2e2c, 1px 0 #2e2e2c, 0 -1px #2e2e2c;*/
32+
33+
display: inline-block;
34+
position: relative;
35+
}
36+
.js div {
37+
position: absolute;
38+
bottom:0;
39+
right:0;
40+
padding:0 5% 0 0;
41+
}
42+
</style>
43+
</head>
44+
<body>
45+
<div class="js">
46+
<div>JS</div>
47+
</div>
48+
</body>
49+
</html>

0 commit comments

Comments
 (0)