Skip to content

Commit

Permalink
Styling updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Adams committed Feb 21, 2012
1 parent 6c103f0 commit 2e78db3
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -40,7 +40,7 @@ gem 'wkhtmltopdf-binary'
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.1.5'
gem 'compass', git: 'http://github.com/chriseppstein/compass.git'
gem 'compass', :git => 'http://github.com/chriseppstein/compass.git'
gem 'coffee-rails', '~> 3.1.1'
gem 'uglifier', '>= 1.0.3'
end
Expand Down
22 changes: 22 additions & 0 deletions app/assets/stylesheets/screen.css.scss
Expand Up @@ -22,3 +22,25 @@ body{
.level_3 {
text-indent: 50px;
}

.arrows{
width: 50px;
form{
display: inline-block;
margin: 0;
div{
display: inline-block;
}
.btn{
padding: 5px;
}
}
}

#quotes-table{
td{
form{
margin: 0;
}
}
}
1 change: 0 additions & 1 deletion app/views/quotes/_form.html.haml
Expand Up @@ -6,4 +6,3 @@
= f.input :clone, as: :select, collection: quotes_collection, selected: @clone
= f.buttons do
= f.commit_button

4 changes: 2 additions & 2 deletions app/views/quotes/show.html.haml
Expand Up @@ -19,7 +19,7 @@
- @quote.descendants.each do |node|
- if node.type == 'Section'
%tr.section
%td.admin_only
%td.admin_only.arrows
= button_to '↑'.html_safe, {controller: 'sections', action: 'update', id: node.id, move: 'up'}, method: :put, class: 'btn'
= button_to '↓'.html_safe, {controller: 'sections', action: 'update', id: node.id, move: 'down'}, method: :put, class: 'btn'
%td{ class: "level_#{node.level}" }
Expand All @@ -32,7 +32,7 @@
%td.admin_only= button_to 'destroy', section_path(node), method: :delete, class: 'btn'
- else
%tr.item
%td.admin_only
%td.admin_only.arrows
= button_to '↑'.html_safe, {controller: 'items', action: 'update', id: node.id, move: 'up'}, method: :put, class: 'btn'
= button_to '↓'.html_safe, {controller: 'items', action: 'update', id: node.id, move: 'down'}, method: :put, class: 'btn'
%td{ class: "level_#{node.level}" }= node.description
Expand Down

0 comments on commit 2e78db3

Please sign in to comment.