From cde8d8a30fe4a75fa984d55ec78ffd5acd7ed001 Mon Sep 17 00:00:00 2001 From: Andreas N Date: Thu, 5 Feb 2015 15:17:15 +0100 Subject: [PATCH] remove padding on specific rows on mobile devices --- app/assets/stylesheets/base.css.scss | 7 +++++++ app/views/static/index.html.haml | 2 +- app/views/user/show.html.haml | 4 ++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/app/assets/stylesheets/base.css.scss b/app/assets/stylesheets/base.css.scss index 48897a05..ac7d4c73 100644 --- a/app/assets/stylesheets/base.css.scss +++ b/app/assets/stylesheets/base.css.scss @@ -100,4 +100,11 @@ body { .j2-navbar { margin-bottom: 0px; +} + +@media (max-width: $screen-xs-max) { + .j2-col-reset { + padding-left: 0px; + padding-right: 0px; + } } \ No newline at end of file diff --git a/app/views/static/index.html.haml b/app/views/static/index.html.haml index cf67d51e..a3e2f94b 100644 --- a/app/views/static/index.html.haml +++ b/app/views/static/index.html.haml @@ -3,7 +3,7 @@ .container.j2-page .col-md-3.col-sm-3 = render 'shared/sidebar' - .col-md-9.col-xs-12.col-sm-9 + .col-md-9.col-xs-12.col-sm-9.j2-col-reset = render 'layouts/messages' #timeline diff --git a/app/views/user/show.html.haml b/app/views/user/show.html.haml index a655c57d..53401652 100644 --- a/app/views/user/show.html.haml +++ b/app/views/user/show.html.haml @@ -1,9 +1,9 @@ .profile--header .container.j2-page - .col-md-3.col-xs-12.col-sm-4 + .col-md-3.col-xs-12.col-sm-4.j2-col-reset = render 'user/profile_info' .hidden-xs= render 'shared/links' - .col-md-9.col-xs-12.col-sm-8 + .col-md-9.col-xs-12.col-sm-8.j2-col-reset = render 'shared/questionbox' #answers - @answers.each do |a|