Skip to content

Commit

Permalink
Merge pull request #2242 from diowa/fix-bootstrap-row
Browse files Browse the repository at this point in the history
Fix sidebar and main content style
  • Loading branch information
mshibuya committed Apr 13, 2015
2 parents ce55d34 + 05592be commit 2fa9ada
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 9 additions & 1 deletion app/assets/stylesheets/rails_admin/base/theming.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ body.rails_admin {
.sidebar-nav {
padding: 9px 9px 9px 9px;
position: fixed;
width: 14%;
width: percentage(3 / $grid-columns); /* 3 sm columns */
overflow-y: scroll;
top: 50px;
bottom: 0;
Expand Down Expand Up @@ -290,3 +290,11 @@ body.rails_admin {
}
}
}

@media screen and (min-width: $screen-md-min) {
body.rails_admin {
.sidebar-nav {
width: percentage(2 / $grid-columns); /* 2 md columns */
}
}
}
3 changes: 1 addition & 2 deletions app/views/layouts/rails_admin/application.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@
.sidebar-nav
= render "layouts/rails_admin/sidebar_navigation"
.col-sm-9.col-sm-offset-3.col-md-10.col-md-offset-2
.row
.content{:'data-pjax-container' => true}= render template: 'layouts/rails_admin/pjax'
.content{:'data-pjax-container' => true}= render template: 'layouts/rails_admin/pjax'

0 comments on commit 2fa9ada

Please sign in to comment.