From ceb00d95992b64910ba04de92eb91fb0e90f8af3 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Wed, 15 Jul 2020 14:53:28 +0200 Subject: [PATCH] fix text overlap sidenav mobile view --- kit/footer.php | 82 ++++------------------------------------------- kit/functions.php | 16 +++++++++ kit/style.css | 12 ++++++- 3 files changed, 34 insertions(+), 76 deletions(-) diff --git a/kit/footer.php b/kit/footer.php index 814db3b..eacf84b 100644 --- a/kit/footer.php +++ b/kit/footer.php @@ -1,84 +1,16 @@ diff --git a/kit/functions.php b/kit/functions.php index ec8922b..e977a7e 100644 --- a/kit/functions.php +++ b/kit/functions.php @@ -362,3 +362,19 @@ function kit_modify_posts_per_page( $query ) { } } add_action( 'pre_get_posts', 'kit_modify_posts_per_page' ); + +# Register widget area + +function kit_widgets_init() { + + register_sidebar( array( + 'name' => 'Custom Footer Widget Area', + 'id' => 'custom-footer-widget', + 'before_widget' => '
', + 'after_widget' => '
', + 'before_title' => '

', + 'after_title' => '

', + ) ); + +} +add_action( 'widgets_init', 'kit_widgets_init' ); diff --git a/kit/style.css b/kit/style.css index 86e3e45..d512f2e 100644 --- a/kit/style.css +++ b/kit/style.css @@ -1176,10 +1176,15 @@ body.page-theme-color-quaternary h2::after { background-color: #a3107c; } -@media (max-width: 1280px) { +@media (max-width: 1320px) { h2 { margin-bottom: 3.33333rem; } + + /* Custom fix: No text overlap sidenav */ + main .content-wrap { + padding-right: 5.3rem; + } } @media (max-width: 960px) { @@ -1193,6 +1198,11 @@ body.page-theme-color-quaternary h2::after { bottom: -0.83333rem; height: 0.33333rem; } + + /* Custom fix: No text overlap sidenav */ + main .content-wrap { + padding-right: 1.66667rem; + } } @media (max-width: 680px) {