From 47294011a70aa067add640af08d9a20d577fd24b Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Thu, 22 Apr 2021 19:34:03 -0300 Subject: [PATCH] Improvements to site header center alignment --- src/assets/scss/style.scss | 11 +++++++++++ src/functions/customizer.php | 5 +++++ 2 files changed, 16 insertions(+) diff --git a/src/assets/scss/style.scss b/src/assets/scss/style.scss index cd5e868..fac1229 100644 --- a/src/assets/scss/style.scss +++ b/src/assets/scss/style.scss @@ -495,6 +495,7 @@ nav { .navbar-brand { margin-top: 6px; + text-align: center; } .navbar-box { justify-content: center; @@ -512,6 +513,16 @@ nav { justify-content: center; } } + + @media only screen and (max-width: 768px) { + justify-content: space-between; + width: 100%; + + #menubelowHeader { + left: 0; + right: unset; + } + } } } } diff --git a/src/functions/customizer.php b/src/functions/customizer.php index 274bf2c..3783e63 100644 --- a/src/functions/customizer.php +++ b/src/functions/customizer.php @@ -2825,6 +2825,11 @@ function tainacan_header_settings_style_output() { .tainacan-logo .logo { max-height: ' . $header_logo_max_height . 'px !important; max-width: ' . $header_logo_max_width . 'px !important; + } + @media only screen and (max-width: 768px) { + .tainacan-logo .logo { + max-width: 100% !important; + } }' . ( $is_fixed_header ? 'body nav.navbar { position: sticky;