xonecas.io
1361
Xc

xonecas.com / commit 0475ed0

change in the colors, canvas only for ie9 and others

xonecas2012-06-10 0475ed00adb2f930459f2de31adff6c44ff989dc parent c2938b2

3 files changed

css/style.css+32−26
@@ -1,4 +1,4 @@
1-/* reset used elements (sloppy) */
1+/* === reset used elements === */
22 html,
33 body,
44 section,
@@ -41,25 +41,14 @@ img {
4141
4242 a,
4343 a:visited {
44- color: hsl(20, 90%, 44%);
44+ color: #CA3416;
45+ /* color: hsl(10, 80%, 44%); */
4546 text-decoration: none;
4647 }
4748
4849 a:hover,
4950 a:active {
50- color: hsl(20, 100%, 50%);
51-}
52-
53-::-moz-selection {
54- background: #333;
55- color: #fff;
56- text-shadow: none;
57-}
58-
59-::selection {
60- background: #333;
61- color: #fff;
62- text-shadow: none;
51+ color: #555;
6352 }
6453
6554 h1, h2 {
@@ -68,6 +57,13 @@ h1, h2 {
6857 margin: 0 3.125%;
6958 }
7059
60+h1 {
61+ font-size: /* 42 / 16 */ 2.625em;
62+}
63+h2 {
64+ font-size: /* 24 / 16 */ 1.5em;
65+}
66+
7167 p {
7268 margin: 40px 3.125%;
7369 }
@@ -79,11 +75,22 @@ hr {
7975 box-shadow: 0 0 3px #aaa;
8076 }
8177
82-h1 {
83- font-size: /* 42 / 16 */ 2.625em;
78+::-moz-selection {
79+ background: #333;
80+ color: #fff;
81+ text-shadow: none;
8482 }
85-h2 {
86- font-size: /* 24 / 16 */ 1.5em;
83+
84+::selection {
85+ background: #333;
86+ color: #fff;
87+ text-shadow: none;
88+}
89+
90+/* === my styles === */
91+
92+.xonecas-elsewhere a, .promote-a-better-web a {
93+ text-align: center;
8794 }
8895
8996 .xonecas-elsewhere a {
@@ -91,9 +98,6 @@ h2 {
9198 width: 18.75%;
9299 margin: 20px 3.125%;
93100 }
94-.xonecas-elsewhere a span {
95- display: none;
96-}
97101
98102 .promote-a-better-web > a {
99103 float: left;
@@ -115,10 +119,6 @@ h2 {
115119 }
116120
117121 @media screen and (max-width: 480px) {
118- .xonecas-elsewhere {
119- text-align: center;
120- }
121-
122122 .xonecas-elsewhere a {
123123 width: 37.5%;
124124 margin: 20px 6.25%;
@@ -133,6 +133,12 @@ h2 {
133133 body {
134134 max-width: 960px;
135135 }
136+
137+ .xonecas-elsewhere a:after {
138+ content: attr(title);
139+ display: block;
140+ margin-top: 20px;
141+ }
136142 }
137143
138144 /* util */
http.js+1−1
@@ -7,7 +7,7 @@ server = connect()
77 .use(connect.favicon('favicon.ico'))
88 .use(connect.logger('dev'))
99 .use(connect.compress())
10- .use(connect['static'](root))
10+ .use(connect['static'](root, { maxAge: 31536000000 })) // one year.
1111 .use(connect.errorHandler())
1212 .listen(process.argv[2] ? 80 : 8080);
1313
index.html+31−9
@@ -1,5 +1,6 @@
11 <!doctype html>
2-<html lang="en">
2+<!--[if lt IE 9]> <html class="oldIE" lang="en"> <![endif]-->
3+<!--[if gt IE 9]><!--> <html lang="en"> <!--<![endif]-->
34 <head>
45 <meta charset="utf-8">
56 <title>Sean Caetano Martin</title>
@@ -13,7 +14,7 @@
1314 families: [ 'Gentium+Basic:400,700,400italic,700italic:latin' ]
1415 }
1516 };
16- function _ (url) {
17+ function _(url) {
1718 var wf = document.createElement('script');
1819 wf.src = url;
1920 wf.type = 'text/javascript';
@@ -22,7 +23,13 @@
2223 s.parentNode.insertBefore(wf, s);
2324 }
2425 _('//ajax.googleapis.com/ajax/libs/webfont/1/webfont.js');
25- _('/js/follower.js');
26+
27+ (function () {
28+ var html = document.getElementsByTagName('html')[0];
29+ if (html.className.indexOf('oldIE') === -1) {
30+ _('/js/follower.js');
31+ }
32+ }());
2633 </script>
2734 </head>
2835 <body>
@@ -56,16 +63,18 @@
5663 <h2>Sean elsewhere<h2>
5764 </header>
5865
59- <a href="//github.com/xonecas" title="">
66+ <a href="//github.com/xonecas" title="My open source code">
6067 <img src="/images/github.png" alt="Github">
6168 </a>
62- <a href="//xonecas.tumblr.com" title="">
69+ <a href="//xonecas.tumblr.com"
70+ title="Closest thing I have to a blog">
6371 <img src="/images/tumblr.png" alt="Tumblr">
6472 </a>
65- <a href="//twitter.com/xonecas" title="">
73+ <a href="//twitter.com/xonecas" title="Few a far apart tweets">
6674 <img src="/images/twitter.png" alt="Twitter">
6775 </a>
68- <a href="//www.last.fm/user/xonecas" title="">
76+ <a href="//www.last.fm/user/xonecas"
77+ title="What I listen to while coding">
6978 <img src="/images/last-fm.png" alt="Last FM">
7079 </a>
7180 </section>
@@ -77,12 +86,12 @@
7786 <h2>Promote a better web</h2>
7887 </header>
7988
80- <a href="//www.html5rocks.com/en/" title="HTML5">
89+ <a href="//www.html5rocks.com/en" title="HTML5">
8190 <img src="/images/h5logo.png" alt="HTML5 Logo">
8291 </a>
8392
8493 <!-- from promotejs.org -->
85- <a href="//developer.mozilla.org/en/JavaScript/"
94+ <a href="//developer.mozilla.org/en/JavaScript"
8695 title="JavaScript at Mozilla Developer Network">
8796 <img src="http://static.jsconf.us/promotejsh.gif"
8897 alt="JavaScript Docs">
@@ -92,5 +101,18 @@
92101 <img src="/images/js.png" alt="JS Logo">
93102 </a>
94103 </section>
104+
105+<!--
106+
107+ I need to farm up a few resources worthy of this placement
108+
109+ <hr>
110+
111+ <section class="more-good-stuff">
112+ <a href="//movethewebforward.org" title="Move the web forward">
113+ Move the web forward
114+ </a>
115+ </section>
116+-->
95117 </body>
96118 </html>