From 693d3b9c93564248d752a6a280855b4c561745d5 Mon Sep 17 00:00:00 2001 From: cpsdqs Date: Sun, 12 Aug 2018 12:39:12 +0200 Subject: [PATCH] Make table infobox work better at ~900px, fix menu button alignment on small screens --- resources/assets/sass/_helpers.scss | 3 +- .../bootstrap-customizations/_responsive.scss | 28 +++++++++++ resources/views/layouts/main-nav.blade.php | 48 +++++++++---------- resources/views/table/view.blade.php | 10 ++-- 4 files changed, 58 insertions(+), 31 deletions(-) diff --git a/resources/assets/sass/_helpers.scss b/resources/assets/sass/_helpers.scss index 01a8bcf..2a87d5e 100644 --- a/resources/assets/sass/_helpers.scss +++ b/resources/assets/sass/_helpers.scss @@ -30,7 +30,8 @@ cursor: pointer; } -.noscript-hide { +.noscript-hide, +#mainNavContent.noscript-hide { // hack to circumvent bootstrap’s very liberal use of !important display: none !important; } diff --git a/resources/assets/sass/bootstrap-customizations/_responsive.scss b/resources/assets/sass/bootstrap-customizations/_responsive.scss index 584f7f4..7e9259b 100644 --- a/resources/assets/sass/bootstrap-customizations/_responsive.scss +++ b/resources/assets/sass/bootstrap-customizations/_responsive.scss @@ -7,3 +7,31 @@ border: 0 none !important; } } + +@media (min-width: 769px) and (max-width: 991px) { + #table-infobox { + flex-direction: column-reverse; + } + #infobox-tabContent, + #infobox-tab-container { + max-width: 100%; + } + #infobox-tab { + flex-direction: row !important; + } +} +@media (max-width: 991px) { + #table-infobox { + border-left: none !important; + } + #table-title-container { + flex-wrap: wrap; + justify-content: space-between; + } + #table-id { + width: 100%; + } + #table-title { + margin-left: 0 !important; + } +} diff --git a/resources/views/layouts/main-nav.blade.php b/resources/views/layouts/main-nav.blade.php index aea5eef..afb932f 100644 --- a/resources/views/layouts/main-nav.blade.php +++ b/resources/views/layouts/main-nav.blade.php @@ -23,33 +23,31 @@ -
-