From adf8f719829b41b371c27fb26ca7e4e7ac1aace9 Mon Sep 17 00:00:00 2001 From: Bhanu Date: Thu, 2 Mar 2023 10:48:31 +0530 Subject: [PATCH 01/19] Update dropdown-header.js.es6 --- javascripts/discourse/api-initializers/dropdown-header.js.es6 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/javascripts/discourse/api-initializers/dropdown-header.js.es6 b/javascripts/discourse/api-initializers/dropdown-header.js.es6 index 6dbb4c8..dc06241 100644 --- a/javascripts/discourse/api-initializers/dropdown-header.js.es6 +++ b/javascripts/discourse/api-initializers/dropdown-header.js.es6 @@ -10,7 +10,8 @@ export default apiInitializer("0.11.1", (api) => { const links_position = settings.links_position === "right" ? "header-buttons:before" - : "home-logo:after"; + : "home-logo:after" + : "header-contents:after"; api.decorateWidget(links_position, (helper) => { const scrolling = helper.attrs.minimized; From 7e296302e170d9f24be2eb97f256f9026a5108dc Mon Sep 17 00:00:00 2001 From: Bhanu Date: Thu, 2 Mar 2023 10:48:59 +0530 Subject: [PATCH 02/19] Update dropdown-header.js.es6 --- javascripts/discourse/api-initializers/dropdown-header.js.es6 | 1 - 1 file changed, 1 deletion(-) diff --git a/javascripts/discourse/api-initializers/dropdown-header.js.es6 b/javascripts/discourse/api-initializers/dropdown-header.js.es6 index dc06241..f0f0a83 100644 --- a/javascripts/discourse/api-initializers/dropdown-header.js.es6 +++ b/javascripts/discourse/api-initializers/dropdown-header.js.es6 @@ -10,7 +10,6 @@ export default apiInitializer("0.11.1", (api) => { const links_position = settings.links_position === "right" ? "header-buttons:before" - : "home-logo:after" : "header-contents:after"; api.decorateWidget(links_position, (helper) => { From b9c06922ff43ebdf6fb3f8aca71b67eac59569f0 Mon Sep 17 00:00:00 2001 From: Bhanu Date: Sun, 5 Mar 2023 19:42:00 +0530 Subject: [PATCH 03/19] Disable animation --- common/common.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/common.scss b/common/common.scss index b7d305b..96e5cac 100644 --- a/common/common.scss +++ b/common/common.scss @@ -54,8 +54,8 @@ max-width: 280px; list-style: none; transform: scale(0); - transition: transform 0.2s ease; - transition-delay: 0.3s; + /*transition: transform 0.2s ease;*/ + /*transition-delay: 0.3s;*/ &-link { color: $dropdown_item_color; From 629c5689c57d6c5463e7384586396f28971e849b Mon Sep 17 00:00:00 2001 From: Bhanu Date: Sun, 5 Mar 2023 22:44:34 +0530 Subject: [PATCH 04/19] Hack to make 3rd item white --- common/common.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/common.scss b/common/common.scss index 96e5cac..1dc4094 100644 --- a/common/common.scss +++ b/common/common.scss @@ -28,6 +28,10 @@ transition: transform 0.25s ease; } } + .custom-header-links .top-level-links .custom-header-linknth-of-type(3) { + color: #ffffff; + + } &:hover { color: $main_link_hover_color; From 956a977a3f136c41f2c6904d1fa635878ce70839 Mon Sep 17 00:00:00 2001 From: Bhanu Date: Sun, 5 Mar 2023 22:46:31 +0530 Subject: [PATCH 05/19] Reverted --- common/common.scss | 4 ---- 1 file changed, 4 deletions(-) diff --git a/common/common.scss b/common/common.scss index 1dc4094..96e5cac 100644 --- a/common/common.scss +++ b/common/common.scss @@ -28,10 +28,6 @@ transition: transform 0.25s ease; } } - .custom-header-links .top-level-links .custom-header-linknth-of-type(3) { - color: #ffffff; - - } &:hover { color: $main_link_hover_color; From 330a80ccf7bc0055d8c64988207d30e7504e4cd2 Mon Sep 17 00:00:00 2001 From: Bhanu Date: Wed, 8 Mar 2023 17:55:40 +0530 Subject: [PATCH 06/19] Update mobile.scss --- mobile/mobile.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/mobile.scss b/mobile/mobile.scss index 86e6634..8afb444 100644 --- a/mobile/mobile.scss +++ b/mobile/mobile.scss @@ -2,7 +2,7 @@ .mobile-view { .top-level-links { - @include dropdown; + /*@include dropdown;*/ position: fixed; left: 0; margin: 0; From c98109e8553b9989f39eb0cfe726752491fa789d Mon Sep 17 00:00:00 2001 From: Bhanu Date: Wed, 8 Mar 2023 17:58:31 +0530 Subject: [PATCH 07/19] Update mobile.scss --- mobile/mobile.scss | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mobile/mobile.scss b/mobile/mobile.scss index 8afb444..56ee95c 100644 --- a/mobile/mobile.scss +++ b/mobile/mobile.scss @@ -1,8 +1,8 @@ @import "mixins"; -.mobile-view { +/*.mobile-view { .top-level-links { - /*@include dropdown;*/ + @include dropdown; position: fixed; left: 0; margin: 0; @@ -42,3 +42,4 @@ position: fixed; } } +*/ From c5bfb2c96c7126ae732845d43c5d48a424058a80 Mon Sep 17 00:00:00 2001 From: Bhanu Date: Wed, 8 Mar 2023 18:05:53 +0530 Subject: [PATCH 08/19] Update custom-header-links.js.es6 --- .../widgets/custom-header-links.js.es6 | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/javascripts/discourse/widgets/custom-header-links.js.es6 b/javascripts/discourse/widgets/custom-header-links.js.es6 index d90a3fb..dc84017 100644 --- a/javascripts/discourse/widgets/custom-header-links.js.es6 +++ b/javascripts/discourse/widgets/custom-header-links.js.es6 @@ -24,15 +24,15 @@ createWidget('custom-header-links', { }; }, - defaultState() { - let showLinks = !this.site.mobileView; - const mobileView = this.site.mobileView; +// defaultState() { +// let showLinks = !this.site.mobileView; +// const mobileView = this.site.mobileView; - return { - mobileView, - showLinks, - }; - }, +// return { +// mobileView, +// showLinks, +// }; +// }, toggleHeaderLinks() { this.state.showLinks = !this.state.showLinks; @@ -54,17 +54,17 @@ createWidget('custom-header-links', { }, template: hbs` - {{#if this.state.mobileView}} - - {{attach - widget="button" - attrs=(hash - action="toggleHeaderLinks" - icon="caret-square-down" - ) - }} - - {{/if}} +// {{#if this.state.mobileView}} +// +// {{attach +// widget="button" +// attrs=(hash +// action="toggleHeaderLinks" +// icon="caret-square-down" +// ) +// }} +// +// {{/if}} {{#if this.state.showLinks}}