Skip to content

Commit

Permalink
Making the slide a little cleaner, maybe buggy.
Browse files Browse the repository at this point in the history
  • Loading branch information
tumes committed Mar 10, 2011
1 parent e943df4 commit e59f3d3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
12 changes: 6 additions & 6 deletions app/views/run_logs/new.html.haml
Expand Up @@ -2,9 +2,9 @@

-counter = 1

%div{ :id => "level#{counter}", :class => "block"}
.polaroid-border
.polaroid-block
%div{ :id => "level#{counter}" }
#polaroid-border
#polaroid-block
level
= counter.to_i
%h2= "#{@instrument.name} #{@method.name}"
Expand All @@ -16,9 +16,9 @@

- ( params[:levels].to_i - 1 ).times do
- counter += 1
.polaroid-border
.polaroid-block
%div{ :id => "level#{counter}", :class => "display-none"}
%div{ :id => "level#{counter}", :class => "display-none"}
#polaroid-border
#polaroid-block
level
= counter.to_i
%h2= "#{@instrument.name} #{@method.name}"
Expand Down
9 changes: 3 additions & 6 deletions public/stylesheets/layout.css
Expand Up @@ -543,7 +543,7 @@ span.error { color: red;}
img.minus { margin-bottom: -3px;}

/*A container that looks like a polaroid for information snapshots. The proportions are even right(ish)!*/
.polaroid-border {
#polaroid-border {
width: 350px;
margin-left: auto;
margin-right: auto;
Expand All @@ -554,7 +554,7 @@ img.minus { margin-bottom: -3px;}
box-shadow: 0 0 5px #888;
}

.polaroid-block{
#polaroid-block {
background: #EDEDED;
padding: 13px;
min-height: 300px;
Expand All @@ -563,7 +563,7 @@ img.minus { margin-bottom: -3px;}
box-shadow: inner 0 0 2px #888;
}

.polaroid-block h2 {
#polaroid-block h2 {
margin-top: 0px;
margin-bottom: 0px;
font-weight: bold;
Expand All @@ -576,6 +576,3 @@ img.minus { margin-bottom: -3px;}
display:none;
}

.block#level {
display:block;
}

0 comments on commit e59f3d3

Please sign in to comment.