Skip to content

Commit

Permalink
increase blogpost textarea and add media box
Browse files Browse the repository at this point in the history
  • Loading branch information
jhass committed Sep 5, 2014
1 parent b837f06 commit 631efb4
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
40 changes: 40 additions & 0 deletions app/assets/stylesheets/blog.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,44 @@
li {
color: rgb(64, 64, 64);
}

.box {
position: relative;
width: 70%;
margin: 2em auto;

&:before {
content: "";
display: block;
padding-top: 100%;
}

.content {
display: block;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
}

&.ratio2_1:before{
padding-top: 50%;
}

&.ratio1_2:before{
padding-top: 200%;
}

&.ratio4_3:before{
padding-top: 75%;
}

&.ratio16_9:before{
padding-top: 56.25%;
}
}

}
8 changes: 8 additions & 0 deletions config/initializers/rails_admin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@
# history_show
end

config.model 'Blogpost' do
edit do
configure :content do
html_attributes rows: 30, cols: 70
end
end
end

config.model 'User' do
show do
configure :reset_password_token do
Expand Down

0 comments on commit 631efb4

Please sign in to comment.