From 0b223a76564ec2e30a01eef85ee90d7e1cedce05 Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Thu, 22 Apr 2021 19:50:30 -0300 Subject: [PATCH] Adds left alignment option to site header. --- src/assets/scss/style.scss | 18 ++++++++++++++++++ src/functions/customizer.php | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/assets/scss/style.scss b/src/assets/scss/style.scss index fac1229..d3a702d 100644 --- a/src/assets/scss/style.scss +++ b/src/assets/scss/style.scss @@ -488,6 +488,24 @@ nav { align-items: flex-end; } + &.tainacan-header-layout--left #topNavbar { + flex-direction: column; + align-items: flex-start; + + nav.menu-belowheader { + .container-fluid { + margin: 0px 16px 0px 0px !important; + } + #menubelowHeader > ul > li.menu-item { + padding-left: 0px; + padding-right: 42px; + } + #menubelowHeader > ul { + justify-content: flex-start; + } + } + } + &.tainacan-header-layout--center #topNavbar { flex-direction: column; align-items: center; diff --git a/src/functions/customizer.php b/src/functions/customizer.php index 3783e63..e26de7d 100644 --- a/src/functions/customizer.php +++ b/src/functions/customizer.php @@ -2072,7 +2072,7 @@ if ( ! function_exists( 'tainacan_get_header_alignment_options' ) ) : function tainacan_get_header_alignment_options() { $header_alignment_options = array( 'default' => __('One line, spaced', 'tainacan-interface'), - // 'left' => __('Two lines, to the left', 'tainacan-interface'), + 'left' => __('Two lines, to the left', 'tainacan-interface'), 'center' => __('Two lines, centered', 'tainacan-interface') ); return $header_alignment_options;