From 39ac525f6e98086f406b4c2be3cf555432a506e0 Mon Sep 17 00:00:00 2001 From: Minobi Date: Sun, 23 Feb 2020 14:33:27 +0200 Subject: [PATCH] Example dashboard: fix menu disappearing on small viewport --- site/docs/4.4/examples/dashboard/dashboard.css | 12 ++++++++++++ site/docs/4.4/examples/dashboard/index.html | 7 +++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/site/docs/4.4/examples/dashboard/dashboard.css b/site/docs/4.4/examples/dashboard/dashboard.css index 6b5d7b5a5a..2ca0a4e0eb 100644 --- a/site/docs/4.4/examples/dashboard/dashboard.css +++ b/site/docs/4.4/examples/dashboard/dashboard.css @@ -22,6 +22,13 @@ body { box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1); } +@media (max-width: 767.98px) { + .sidebar { + top: 5rem; + } +} + + .sidebar-sticky { position: relative; top: 0; @@ -88,6 +95,11 @@ body { box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25); } +.navbar .navbar-toggler { + top: 4px; + right: 4px; +} + .navbar .form-control { padding: .75rem 1rem; border-width: 0; diff --git a/site/docs/4.4/examples/dashboard/index.html b/site/docs/4.4/examples/dashboard/index.html index 836e29b367..998364ae3d 100644 --- a/site/docs/4.4/examples/dashboard/index.html +++ b/site/docs/4.4/examples/dashboard/index.html @@ -9,7 +9,10 @@ extra_js: ---