Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
better aligning of tweets
  • Loading branch information
bostonaholic committed Apr 11, 2012
1 parent 873309f commit 246011b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions public/javascripts/site.js
Expand Up @@ -44,6 +44,7 @@ function loadTweets(){
var html = _.template(template, {tweet: text, time: time});
var div = $('<div>').html(html);
div.addClass('tweet');
div.addClass('half');
target.append(div);
}
}
Expand Down
13 changes: 13 additions & 0 deletions views/screen.sass
Expand Up @@ -116,6 +116,19 @@ a
&.colored
background: $liter-blue

.halves
overflow: hidden

.half
height: 6em
width: 48%
float: left
margin-right: 2em
margin-bottom: 2em

&:last-child
margin-right: 0

li
padding-bottom: 0.5em
text-indent: -1em
Expand Down
2 changes: 1 addition & 1 deletion views/welcome.haml
Expand Up @@ -97,7 +97,7 @@
%h2
Latest Tweets from
%a(href="https://twitter.com/columbusclojure" target="_blank") @ColumbusClojure
#tweets
#tweets.halves

%script#tweetTemplate(type="text/template")
%span.time <%= time %> &mdash;
Expand Down

0 comments on commit 246011b

Please sign in to comment.