Skip to content
This repository has been archived by the owner on Apr 23, 2021. It is now read-only.

Commit

Permalink
Fix template.css
Browse files Browse the repository at this point in the history
  • Loading branch information
iboard committed Jan 28, 2012
1 parent aaa8e66 commit db88058
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 2 deletions.
43 changes: 42 additions & 1 deletion app/assets/stylesheets/templates.css.scss
Expand Up @@ -94,4 +94,45 @@
border: 1px solid #ddd;
border-radius: 5px 5px 5px 5px;
}
}
}

.centered_box {
@include standard_box;
}

.centered_box_100 {
margin-left: auto;
margin-right: auto;
width: 100px;
@include standard_box;
}
.centered_box_200 {
margin-left: auto;
margin-right: auto;
width: 200px;
@include standard_box;
}
.centered_box_300 {
margin-left: auto;
margin-right: auto;
width: 300px;
@include standard_box;
}
.centered_box_400 {
margin-left: auto;
margin-right: auto;
width: 400px;
@include standard_box;
}
.centered_box_500 {
margin-left: auto;
margin-right: auto;
width: 500px;
@include standard_box;
}
.centered_box_640 {
margin-left: auto;
margin-right: auto;
width: 640px;
@include standard_box;
}
7 changes: 6 additions & 1 deletion db/seeds.rb
Expand Up @@ -115,7 +115,7 @@
end


for width in [100,200,300,400,500]
for width in [100,200,300,400,500,640]
default_component = PageTemplate.find_or_create_by(name: "Component: float-left-box (#{width}px)")
default_component.css_class = "component_float_left_#{width.to_s}"
default_component.html_template = "BODY"
Expand All @@ -125,6 +125,11 @@
default_component.css_class = "component_float_right_#{width.to_s}"
default_component.html_template = "BODY"
default_component.save!

default_component = PageTemplate.find_or_create_by(name: "Component: centered_box_(#{width}px)")
default_component.css_class = "centered_box_#{width.to_s}"
default_component.html_template = "BODY"
default_component.save!
end

default_component = PageTemplate.find_or_create_by(name: 'Component: clear-left')
Expand Down

0 comments on commit db88058

Please sign in to comment.