xonecas.io
1361
Xc

xonecas.com / commit 4c62ca1

modified stylesheet, new color.

sean2011-08-28 4c62ca15614701856c4bf17a99e5de7142a7854a parent b9791db

5 files changed

css/style.css+65−91
@@ -1,7 +1,9 @@
11 /* Google font api
2- News cycle (sans-serif)
2+ Walter turncoat
33 */
4-@import url(http://fonts.googleapis.com/css?family=News+Cycle);
4+
5+@import url(http://fonts.googleapis.com/css?family=Walter+Turncoat);
6+
57
68 /* http://meyerweb.com/eric/tools/css/reset/
79 v2.0 | 20110126
@@ -55,45 +57,20 @@ table {
5557 /* From the html5boilerplate
5658 h5bp.com
5759 */
58-html {
59- font-size: 100%;
60- overflow-y: scroll;
61- -webkit-tap-highlight-color: rgba(0,0,0,0);
62- -webkit-text-size-adjust: 100%;
63- -ms-text-size-adjust: 100%;
64-}
65-body {
66- margin: 0;
67- font-size: 16px;
68- line-height: 1.4;
69-}
70-body, button, input, select, textarea {
71- font-family: "News Cycle", sans-serif;
72- color: #222;
73-}
74-
75-::-moz-selection { background: #000; color: #fff; text-shadow: none; }
76-::selection { background: #000; color: #fff; text-shadow: none; }
77-
7860 a {
79- color: #E56354;
61+ color: hsl(200, 100%, 50%);
8062 text-decoration: none;
81- border-bottom: 1px solid #E56354;
63+ border-bottom: 1px solid hsl(200, 100%, 50%);
8264 }
8365 a:visited {
84- color: #8A3C33;
85- border-bottom: #8A3C33;
66+ color: hsl(195, 100%, 50%);
67+ border-bottom: hsl(195, 100%, 50%);
8668 }
8769 a:focus { outline: thin dotted; }
8870 a:hover, a:active {
8971 outline: 0;
9072 background-color: #eee;
9173 }
92-pre, code, kbd, samp {
93- font-family: monospace, monospace;
94- _font-family: 'courier new', monospace;
95- font-size: .9em;
96-}
9774 pre {
9875 white-space: pre;
9976 white-space: pre-wrap;
@@ -104,58 +81,28 @@ pre {
10481 by @xonecas
10582 */
10683 body {
107- width: 960px;
108- margin: 0 auto;
109-}
110-
111-.loader {
112- display: block;
113- width: 64px;
114- height: 64px;
84+ width: 720px;
11585 margin: 0 auto;
116-}
117-
118-#guide {
119- position: absolute;
120- top: 10px;
121- right: 10px;
122-}
123-
124-#brand {
125- background: url("/imgs/me.png") no-repeat scroll left 50% transparent;
126- padding: 0 0 10px 58px;
127- font-size: 40px;
128-}
129-
130-#latestTweet {
131- text-align: center;
132- margin: 2em 0 6em;
86+ padding: 40px 0;
87+ font-family: sans-serif;
88+ font-size: 13px;
89+ line-height: 16px;
90+ position: relative;
13391 }
13492
13593 h1, h2, h3, h4, h5, h6 {
136- margin: 1em 0;
94+ font-family: "Walter Turncoat";
95+ margin: 0 0 1em 0;
13796 font-weight: bold;
97+ line-height: 1.1em;
13898 }
139-
99+h1 { font-size: 48px; }
140100 h2 { font-size: 36px; }
141101 h3 { font-size: 24px; }
142102
143103 em { font-style: italic; }
144104 strong { font-weight: bold; }
145105
146-.post {
147- margin: 0 0 20em;
148- padding: 0 0 2em 10px;
149- border-left: 1px solid transparent;
150-}
151-.selectedPost {
152- border-left: 1px solid #E56354;
153-}
154-
155-.relTime {
156- float: right;
157- margin: 2em 0 0 0;
158-}
159106 pre {
160107 margin: 1em 0;
161108 padding: 10px;
@@ -167,29 +114,64 @@ pre, code {
167114 pre code { border: none; }
168115 code { padding: 3px 5px; }
169116
117+header {
118+ border-bottom: 1px solid hsl(200, 100%, 50%);
119+}
120+
121+.loader {
122+ display: block;
123+ width: 16px;
124+ height: 16px;
125+ margin: 40px auto;
126+}
127+
128+#brand {
129+ vertical-align: middle;
130+ margin: -5px 10px 0 0;
131+}
132+
133+#latestTweet {
134+ position: fixed;
135+ bottom: 0;
136+ background: #FFF;
137+ width: 720px;
138+ border-top: 1px solid hsl(200, 100%, 50%);
139+ padding: 10px 0;
140+}
141+
142+#coderwall {
143+ padding: 20px 0;
144+ border-top: 1px solid hsl(200, 100%, 50%);
145+}
146+
147+.relTime {
148+ position: absolute;
149+ top: 5px;
150+ right: 0;
151+ color: #aeaeae;
152+}
170153
154+.post {
155+ padding: 25px 0 0 0;
156+ margin: 0 0 20px 0;
157+ position: relative;
158+}
159+.post ul, .post ol {
160+ list-style: disc;
161+ margin: 0 0 0 20px;
162+}
171163
172164 .badge {
173- width: 46%;
174- float: right;
175- margin: 0 2% 40px;
165+ margin: 0 0 20px 0;
176166 }
177167
178168 .badgeImage {
169+ float: left;
179170 width: 64px;
180171 height: 64px;
181- float: left;
182172 margin: 0 20px 0 0;
183173 }
184174
185-.badgeTitle {
186- position: relative;
187- bottom: 12px;
188-}
189-
190-.badgeText {
191- margin: 0 0 0 84px;
192-}
193175
194176 /* Helpers (from h5bp)
195177 */
@@ -206,14 +188,6 @@ code { padding: 3px 5px; }
206188 */
207189 @media only screen and (max-width: 480px) {
208190 /* Style adjustments for viewports 480px and over go here */
209- body {
210- margin: 0 auto;
211- width: 460px;
212- font-size: 13px;
213- }
214-
215- h2 { font-size: 30px; }
216- h3 { font-size: 20px; }
217191 }
218192
219193 @media only screen and (max-width: 768px) {
imgs/ajax-loader.gif+0−0
Binary file, not shown.
index.html+16−11
@@ -14,8 +14,13 @@
1414 </head>
1515 <body>
1616 <header>
17- <span id="guide">Use j/k to move up/down</span>
18- <h1 id="brand">Sean Caetano Martin</h1>
17+ <em class=relTime>
18+ Built with:
19+ <a href="//xonecas.tumblr.com/" title="Tumblr">Tumblr</a>
20+ <a href="//twitter.com/xonecas" title="Tumblr">Twitter</a>
21+ <a href="//coderwall.com/xonecas" title="Tumblr">Coderwall</a>
22+ </em>
23+ <h1><img id="brand" src="imgs/me.png" alt="me!">Sean Caetano Martin</h1>
1924 </header>
2025
2126 <section id="content">
@@ -24,15 +29,13 @@
2429 </ul>
2530 </section>
2631
27- <section id="latestTweet">
28- <img class="loader" src="imgs/ajax-loader.gif" alt="Loading...">
29- </section>
30-
3132 <section id="coderwall" class="clearfix">
3233 <img class="loader" src="imgs/ajax-loader.gif" alt="Loading...">
3334 </section>
3435
35-
36+ <section id="latestTweet">
37+ <img class="loader" src="imgs/ajax-loader.gif" alt="Loading...">
38+ </section>
3639
3740
3841 <!--
@@ -40,9 +43,11 @@
4043 -->
4144 <div class="hidden">
4245 <script id="_latestTweet" type="text/template">
43- <strong>@<a href="//twitter.com/xonecas">xonecas</a></strong>
44- <span><%= text %></span>
45- <em><%= relTime %></em>
46+ <div class="">
47+ <strong>@<a href="//twitter.com/xonecas">xonecas</a></strong>
48+ <span><%= text %></span>
49+ <em><%= relTime %></em>
50+ </div>
4651 </script>
4752
4853
@@ -60,7 +65,7 @@
6065
6166
6267 <script id="_coderwall" type="text/template">
63- <div class="badge">
68+ <div class="badge clearfix">
6469 <img class="badgeImage" src="<%= badge %>" alt="<%= name %>">
6570 <h3 class="badgeTitle"><%= name %></h3>
6671 <p class="badgeText"><%= description %></p>
js/script.js+0−41
@@ -85,10 +85,6 @@ $(function () {
8585 el: $('#tumblr'),
8686 template: $('#_tumblr').html(),
8787
88- events: {
89- "mouseover .post": "updateSelected"
90- },
91-
9288 initialize: function () {
9389 this.collection.fetch();
9490
@@ -109,13 +105,6 @@ $(function () {
109105 $("#"+this.collection.at(0).get('id'))
110106 .addClass('selectedPost');
111107 },
112-
113- updateSelected: function (ev) {
114- var that = this;
115-
116- $('.selectedPost').removeClass('selectedPost');
117- $(ev.target).closest('.post').addClass('selectedPost');
118- }
119108 });
120109 // }}}
121110
@@ -223,10 +212,6 @@ $(function () {
223212 x.IndexView = Backbone.View.extend({
224213 el: $(document),
225214
226- events: {
227- "keypress": "keypressRouter"
228- },
229-
230215 initialize: function () {
231216 this.blog = new x.BlogView();
232217 this.tweet = new x.TweetsView();
@@ -249,32 +234,6 @@ $(function () {
249234 }
250235
251236 },
252-
253- jumpTo: function (ev) {
254- var that = this,
255- selectedID = parseInt($('.selectedPost')[0].id, 10);
256-
257- this.blog.collection.forEach(function (mod, idx) {
258- if (mod.get('id') === selectedID) {
259- that.blog.visible = idx;
260- }
261- });
262-
263- var modifier = ev.which === 106 ? 1 : -1,
264- idx = this.blog.visible + modifier,
265- post = this.blog.collection.at(idx);
266-
267- if (post) {
268- var $el = $('#'+post.get('id')),
269- offset = idx !== 0 ? $el.offset().top - 100: 0;
270-
271- $('.selectedPost').removeClass('selectedPost');
272- $el.addClass('selectedPost');
273- window.scroll(0, offset); // make this smooooooth
274- this.blog.visible = idx;
275- }
276-
277- }
278237 });
279238
280239 // main
server.js+4−2
@@ -66,8 +66,8 @@ var routes = function (app) {
6666 }
6767
6868
69-var cache = 1000 * 60 * 60 * 24 * 30,
70- port = 80,
69+var cache = 0,//1000 * 60 * 60 * 24 * 30,
70+ port = 8080,
7171 htdocs = __dirname,
7272 server = connect.createServer(
7373 // http://senchalabs.github.com/connect/middleware-logger.html
@@ -79,6 +79,8 @@ var cache = 1000 * 60 * 60 * 24 * 30,
7979 server.listen(port);
8080 console.log('Node up!\nPort: '+port+'\nhtdocs: '+htdocs);
8181
82+/*
8283 process.on('uncaughtException', function (err) {
8384 console.log('Caught exception: ' + err);
8485 });
86+*/