diff --git a/common/common.scss b/common/common.scss index 03c4dab..5e107c0 100644 --- a/common/common.scss +++ b/common/common.scss @@ -242,6 +242,6 @@ .search-input:focus { border-color: var(--tertiary); - box-shadow: 0 0 0 3px color-mix(in oklab, var(--tertiary) 20%, transparent); + box-shadow: 0 0 0 3px rgba(var(--tertiary-rgb), 0.2); } \ No newline at end of file diff --git a/javascripts/discourse/api-initializers/welcome-banner.js b/javascripts/discourse/api-initializers/welcome-banner.js index 92fb8ef..7e2b8db 100644 --- a/javascripts/discourse/api-initializers/welcome-banner.js +++ b/javascripts/discourse/api-initializers/welcome-banner.js @@ -5,7 +5,7 @@ export default apiInitializer("1.8.0", (api) => { const welcomeCard = document.querySelector(".welcome-card"); if (!welcomeCard) return; - const showOnPages = settings?.theme_vars?.show_on_pages || "homepage_only"; + const showOnPages = settings.show_on_pages || "homepage_only"; if (showOnPages === "all_pages") { // Show on all pages @@ -25,7 +25,7 @@ export default apiInitializer("1.8.0", (api) => { // Render search input with SearchMenu integration function renderSearchInput() { // Check if search is enabled in settings (default to true if not set) - const searchEnabled = settings?.theme_vars?.enable_hero_search !== false; + const searchEnabled = settings.enable_hero_search !== false; if (isMobileView()) return; @@ -45,7 +45,7 @@ export default apiInitializer("1.8.0", (api) => { const input = document.createElement("input"); input.type = "text"; input.className = "search-input"; - input.placeholder = settings?.theme_vars?.search_placeholder || "Keresés a fórumon…"; + input.placeholder = settings.search_placeholder || "Keresés a fórumon…"; input.setAttribute("aria-label", "Search"); // Open and sync SearchMenu diff --git a/javascripts/discourse/connectors/above-main-container-outlet/welcome-banner.hbs b/javascripts/discourse/connectors/above-main-container-outlet/welcome-banner.hbs index 3f01c4b..2e07c70 100644 --- a/javascripts/discourse/connectors/above-main-container-outlet/welcome-banner.hbs +++ b/javascripts/discourse/connectors/above-main-container-outlet/welcome-banner.hbs @@ -1,16 +1,16 @@ -{{#if this.theme.enable_welcome_banner}} -{{#unless (eq this.theme.banner_position "below_header")}} +{{#if theme.enable_welcome_banner}} +{{#unless (eq theme.banner_position "below_header")}}

- {{{this.theme.hero_title_html}}} + {{{theme.hero_title_html}}}

- {{{this.theme.hero_content_html}}} + {{{theme.hero_content_html}}}
- {{#if this.theme.enable_hero_search}} + {{#if theme.enable_hero_search}}
{{/if}}
@@ -18,104 +18,104 @@