From 03ef5bd064c56e09497a50a5ffbc95db938172b7 Mon Sep 17 00:00:00 2001 From: Steffen van Bergerem Date: Sat, 6 Feb 2016 13:18:00 +0100 Subject: [PATCH] Set max-width to 1200px for container-fluid --- app/assets/stylesheets/base.scss | 7 +++++++ app/assets/stylesheets/conversations.scss | 9 +++++---- app/assets/stylesheets/header.scss | 1 - app/assets/templates/header_tpl.jst.hbs | 2 +- .../user_applications/index.html.haml | 4 ++-- .../user_applications/index.mobile.haml | 2 +- app/views/conversations/index.haml | 13 ++++++------- app/views/layouts/_header.html.haml | 2 +- app/views/profiles/edit.haml | 4 ++-- app/views/profiles/edit.mobile.haml | 4 ++-- app/views/services/index.html.haml | 8 ++++---- app/views/services/index.mobile.haml | 6 +++--- app/views/users/_edit.haml | 8 ++++---- app/views/users/_privacy_settings.haml | 4 ++-- 14 files changed, 40 insertions(+), 34 deletions(-) diff --git a/app/assets/stylesheets/base.scss b/app/assets/stylesheets/base.scss index b701adb49..dd7ed1791 100644 --- a/app/assets/stylesheets/base.scss +++ b/app/assets/stylesheets/base.scss @@ -3,6 +3,13 @@ body { padding: none; } +.container-fluid { max-width: $screen-lg-min; } + +.page-streams, +.page-tags.action-show { + > .container-fluid { max-width: 100%; } +} + // Overflow h1, h2, diff --git a/app/assets/stylesheets/conversations.scss b/app/assets/stylesheets/conversations.scss index 62e0a3fef..846abe2a9 100644 --- a/app/assets/stylesheets/conversations.scss +++ b/app/assets/stylesheets/conversations.scss @@ -191,11 +191,12 @@ } } -@media (max-width: 1354px) { - #left_pane #conversation_inbox .pagination ul > li > a { - padding: 4px 7px; - } +// We need this to override the Bootstrap pagination style only for the conversations view +// scss-lint:disable SelectorDepth +.conversation-inbox .pagination > li > a { + padding: 4px 7px; } +// scss-lint:enable SelectorDepth #new_conversation_pane { ul.as-selections { width: 100% !important; } diff --git a/app/assets/stylesheets/header.scss b/app/assets/stylesheets/header.scss index 1f958d6ed..9cb3a533d 100644 --- a/app/assets/stylesheets/header.scss +++ b/app/assets/stylesheets/header.scss @@ -9,7 +9,6 @@ } @media (max-width: $grid-float-breakpoint-max) { - .col-lg-10 { padding: 0; } .navbar-header > .nav li { display: inline-block !important; } .nav-badge { color: $navbar-inverse-link-color; diff --git a/app/assets/templates/header_tpl.jst.hbs b/app/assets/templates/header_tpl.jst.hbs index 0855fa835..15e6023ba 100644 --- a/app/assets/templates/header_tpl.jst.hbs +++ b/app/assets/templates/header_tpl.jst.hbs @@ -1,7 +1,7 @@