mirror of
https://github.com/discourse/discourse.git
synced 2025-03-31 19:55:55 +08:00
Merge pull request #3618 from scossar/add-wrapper-class
FIX: padding and alignment issues
This commit is contained in:
commit
b77017abce
app/assets
javascripts/discourse/templates
stylesheets
@ -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>
|
||||||
|
@ -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}}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user