From a99c531aa7a2d2ba1052a8250c67a7d1337745fa 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 --- .../docs/4.3/examples/dashboard/dashboard.css | 12 ++++++++++++ site/content/docs/4.3/examples/dashboard/index.html | 7 +++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/site/content/docs/4.3/examples/dashboard/dashboard.css b/site/content/docs/4.3/examples/dashboard/dashboard.css index 0893e83e61..259cf6382e 100644 --- a/site/content/docs/4.3/examples/dashboard/dashboard.css +++ b/site/content/docs/4.3/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/content/docs/4.3/examples/dashboard/index.html b/site/content/docs/4.3/examples/dashboard/index.html index f030eeeff5..f76df4f669 100644 --- a/site/content/docs/4.3/examples/dashboard/index.html +++ b/site/content/docs/4.3/examples/dashboard/index.html @@ -12,7 +12,10 @@ extra_js: ---