From 494983efc6837ecedfb2696fa1631c600d8e008c Mon Sep 17 00:00:00 2001 From: riggraz Date: Thu, 19 Sep 2019 19:06:22 +0200 Subject: [PATCH] Improve style pt. 3 (breakpoints) --- app/javascript/stylesheets/components/Board.scss | 8 ++++---- app/javascript/stylesheets/components/Roadmap.scss | 2 +- app/views/layouts/_header.html.erb | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/javascript/stylesheets/components/Board.scss b/app/javascript/stylesheets/components/Board.scss index bae445c5..19ceb528 100644 --- a/app/javascript/stylesheets/components/Board.scss +++ b/app/javascript/stylesheets/components/Board.scss @@ -16,7 +16,7 @@ } } - @media (max-width: 800px) { + @include media-breakpoint-down(sm) { flex-direction: column; .sidebar { @@ -24,10 +24,10 @@ width: 100%; top: 0; - .sidebarBox { - width: 100%; - } + .sidebarBox { width: 100%; } } + + .postList { width: 100%; } } .newBoardContainer { diff --git a/app/javascript/stylesheets/components/Roadmap.scss b/app/javascript/stylesheets/components/Roadmap.scss index 6e88103b..33384c8a 100644 --- a/app/javascript/stylesheets/components/Roadmap.scss +++ b/app/javascript/stylesheets/components/Roadmap.scss @@ -13,7 +13,7 @@ width: 32%; background-color: $astuto-grey; - @media (max-width: 800px) { + @include media-breakpoint-down(sm) { width: 100%; } } diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb index 596a4129..f6a63b60 100644 --- a/app/views/layouts/_header.html.erb +++ b/app/views/layouts/_header.html.erb @@ -1,4 +1,4 @@ -