Permalink
Browse files

fix background

  • Loading branch information...
barthezslavik committed Dec 23, 2012
1 parent c79d924 commit 1ce75c1938318600e6f40a435abcef458576e7a1
@@ -17,5 +17,5 @@
//= require_tree .
$(document).ready(function() {
- window.wiselinks = new Wiselinks();
+ //window.wiselinks = new Wiselinks();
});
@@ -2,6 +2,8 @@ p, a
font-family: Verdana
font-size: 13px
+body
+ background: #f2f1f0
.simple_form label
font-size: 12px
@@ -24,13 +26,31 @@ p, a
pre
background: #D7E7EF
- width: 900px
.block
- width: 400px
+ width: 300px
float: left
+ background: #fff
+ overflow: hidden
+ height: 150px
+ margin: 5px
+ padding: 10px
a
color: #E98C08
font-size: 16px
text-decoration: none
font-weight: bold
+ background: #fff
+ img
+ overflow: hidden
+ width: 200px
+
+.center
+ margin: 0px auto
+ width: 1000px
+
+.wide_block
+ width: 800px
+ background: #fff
+ overflow: auto
+ padding: 10px
@@ -1,15 +1,11 @@
-- @samples.each do |sample|
- .block
- = link_to sample.name, sample, data:{ push: true }
- %br
- %br
- - screenshot = image_tag sample.screenshot.url(:medium) if sample.screenshot
- = link_to screenshot, sample
- /= link_to 'Edit', edit_sample_path(sample)
- /= link_to 'Destroy', sample, :confirm => 'Are you sure?', :method => :delete
- %br
- %br
+.center
+ - @samples.each do |sample|
+ .block
+ = link_to sample.name, sample, data:{ push: true }
+ - screenshot = image_tag sample.screenshot.url(:medium) if sample.screenshot
+ = link_to screenshot, sample
+ /= link_to 'Edit', edit_sample_path(sample)
+ /= link_to 'Destroy', sample, :confirm => 'Are you sure?', :method => :delete
-%br.both
-%br.both
-= link_to 'Add Sample', new_sample_path
+ %br.both
+ = link_to 'Add Sample', new_sample_path
@@ -1,20 +1,21 @@
-%p#notice= notice
+.wide_block
+ %p#notice= notice
-.left
- %h2= @sample.name
-.right
- %br
- = link_to 'Edit', edit_sample_path(@sample)
+ .left
+ %h2= @sample.name
+ .right
+ %br
+ = link_to 'Edit', edit_sample_path(@sample)
-%br
-%br.both
+ %br
+ %br.both
-%pre= @sample.description
-- if @sample.screenshot_file_name?
- =link_to image_tag(@sample.screenshot.url :large), @sample.screenshot.url
+ %pre= @sample.description
+ - if @sample.screenshot_file_name?
+ =link_to image_tag(@sample.screenshot.url :large), @sample.screenshot.url
-%br
-=link_to "Demo", "/#{@sample.demo}"
+ %br
+ =link_to "Demo", "/#{@sample.demo}"
-/= link_to 'Back', samples_path
+ /= link_to 'Back', samples_path

0 comments on commit 1ce75c1

Please sign in to comment.