Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: static/scss/layout/_body.scss

Issue 29794555: Noissue - Fix broken layout from changeset 1940351cdb4c (Closed) Base URL: https://hg.adblockplus.org/web.acceptableads.com
Patch Set: Created May 30, 2018, 10:17 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « static/scss/_variables.scss ('k') | static/scss/layout/_breadcrumbs.scss » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: static/scss/layout/_body.scss
===================================================================
--- a/static/scss/layout/_body.scss
+++ b/static/scss/layout/_body.scss
@@ -9,47 +9,57 @@
// acceptableads.org is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with acceptableads.org. If not, see <http://www.gnu.org/licenses/>.
-.js .outer
+.outer
{
- position: absolute;
- top: 96px;
- margin-top: 0;
bottom: 0px;
height: auto;
width: 100%;
overflow: auto;
+ margin-top: $breadcrumbs-height;
+}
+
+.js .outer
+{
+ margin-top: $header-height;
+}
+
+@media(max-width: $sidebar-breakpoint-x - 1)
+{
+ .outer
+ {
+ margin-top: auto;
+ }
+
+ html:not(.open-sidebar).mobile .outer
+ {
+ position: static;
+ }
+
+ html:not(.open-sidebar).mobile.scrollDown .outer
+ {
+ margin-top: $breadcrumbs-height;
+ }
+
+ .mobile.open-sidebar .outer
+ {
+ position: absolute;
+ }
}
@media(min-width: $sidebar-breakpoint-x)
{
- html[dir="ltr"]
- {
- .outer
+ html[dir="ltr"] .outer
{
padding-left: $sidebar-width;
}
- }
- .outer
- {
- margin-top: 32px;
- }
-
- .js .outer
- {
- margin-top: 0px;
- }
-
- html[dir="rtl"]
- {
- .outer
+ html[dir="rtl"] .outer
{
padding-right: $sidebar-width;
}
- }
}
« no previous file with comments | « static/scss/_variables.scss ('k') | static/scss/layout/_breadcrumbs.scss » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld