Permalink
Browse files

styles looking good imo

  • Loading branch information...
1 parent 17b595b commit 22752aa180183bd8e513f5ea84b02e9f52948674 @geelen committed Nov 2, 2010
Showing with 12 additions and 5 deletions.
  1. +9 −3 app/public/allsofterworlds.css
  2. +3 −2 app/views/index.haml
@@ -11,15 +11,21 @@ body {
padding: 0 12px;
}
+img {
+ border: solid 2px #f8f8f8;
+}
+
.article {
- padding-bottom: 4em;
- width: 720px;
+ width: 724px;
+ margin: 0 auto;
+ padding: 1em 0 3em;
+ border-top: #777777 1px dotted;
}
.article .heading {
float: left;
}
.article .alt_text {
- float: right;
+ text-align: center;
}
@@ -2,11 +2,12 @@
%html
%head{:lang => 'en'}
%meta{:charset => 'utf-8'}
+ -#%meta{:content => 'width = 720', :name => "viewport"}
%link{:rel => 'stylesheet', :href => "allsofterworlds.css"}
%title All Softer Worlds
%body
- articles.each do |article|
%section[article]
- %img{:src => "http://asofterworld.com/#{article.image_url}"}
- %p.heading= article.nr
+ %img{:src => "http://asofterworld.com/#{article.image_url}", :title => article.alt_text}
+ %p.heading= "##{article.nr}"
%p.alt_text= article.alt_text

0 comments on commit 22752aa

Please sign in to comment.