Merge pull request #3618 from scossar/add-wrapper-class

FIX: padding and alignment issues
This commit is contained in:
Sam 2015-07-22 09:59:24 +10:00
commit b77017abce
6 changed files with 10 additions and 18 deletions

View File

@ -1,6 +1,6 @@
{{render "header"}} {{render "header"}}
<div id='main-outlet'> <div id='main-outlet' class='wrap'>
{{outlet}} {{outlet}}
{{render "user-card"}} {{render "user-card"}}
</div> </div>

View File

@ -1,4 +1,4 @@
<div class='container'> <div class='wrap'>
<div class='contents clearfix'> <div class='contents clearfix'>
{{home-logo minimized=showExtraInfo}} {{home-logo minimized=showExtraInfo}}

View File

@ -4,8 +4,13 @@ img.avatar {
.container { .container {
@extend .clearfix; @extend .clearfix;
}
.wrap {
@extend .clearfix;
margin-right: auto; margin-right: auto;
margin-left: auto; margin-left: auto;
padding: 0 8px;
.contents { .contents {
position: relative; position: relative;
} }

View File

@ -6,7 +6,7 @@
body { body {
min-width: $medium-width; min-width: $medium-width;
} }
.container, .wrap,
.full-width { .full-width {
width: $medium-width; width: $medium-width;
} }
@ -17,7 +17,7 @@ and (max-width : 570px) {
body { body {
min-width: 0; min-width: 0;
} }
.container, .wrap,
.full-width { .full-width {
min-width: 0; min-width: 0;
} }

View File

@ -298,15 +298,6 @@ button.dismiss-read {
@media all @media all
and (max-width : 850px) { and (max-width : 850px) {
// add some left padding to topics otherwise everything is 100% flush
// with left edge in portrait tablet, which looks awful
#topic-title {
padding-left: 10px;
}
.container.posts {
padding-left: 10px;
}
.nav-pills { .nav-pills {
> li > a { > li > a {
font-size: 1em; font-size: 1em;
@ -315,7 +306,6 @@ and (max-width : 850px) {
} }
.list-controls { .list-controls {
padding: 0 5px;
.btn { .btn {
font-size: 1em font-size: 1em

View File

@ -1,8 +1,5 @@
.container { .wrap {
@extend .clearfix;
max-width: $large-width; max-width: $large-width;
margin-right: auto;
margin-left: auto;
} }
.full-width { .full-width {