A platform for community discussion. Free, open, simple.
UX: Horizon > button styling tweaks (#34912)
chapoi3762ed22db39
diff --git a/app/assets/stylesheets/common/base/topic-post.scss b/app/assets/stylesheets/common/base/topic-post.scssindex 25b15169284..c4b8471cadc 100644--- a/app/assets/stylesheets/common/base/topic-post.scss+++ b/app/assets/stylesheets/common/base/topic-post.scss@@ -411,7 +411,7 @@ nav.post-controls {// Like button when like count is present.discourse-no-touch & {&:hover {- background: var(--primary-low);+ background: var(--d-hover);}}}diff --git a/themes/horizon/about.json b/themes/horizon/about.jsonindex 78977639d01..7cb2ff96100 100644--- a/themes/horizon/about.json+++ b/themes/horizon/about.json@@ -22,8 +22,8 @@"Horizon Dark": {"primary": "ffffff","secondary": "1A1A1A",- "tertiary": "595bca",- "tertiary-med-or-tertiary": "595bca",+ "tertiary": "6568e6",+ "tertiary-med-or-tertiary": "6568e6","selected": "3b3e56","header_background": "1A1A1A","header_primary": "ffffff",diff --git a/themes/horizon/scss/buttons.scss b/themes/horizon/scss/buttons.scssindex a4d6415ee6b..6e5b9e92515 100644--- a/themes/horizon/scss/buttons.scss+++ b/themes/horizon/scss/buttons.scss@@ -28,20 +28,10 @@color: var(--accent-color);}+ &:focus-visible,&:hover {- border-color: transparent;- box-shadow: 0 0 8px 1px var(--button-box-shadow);- background: var(--d-content-background);- color: var(--accent-color);-- .d-icon {- color: var(--accent-color);- }- }-- &:focus-visible {- background: var(--d-content-background);- color: var(--accent-color);+ background: var(--primary-100);+ color: var(--primary);box-shadow: 0 0 0 3px var(--button-box-shadow);.d-icon {@@ -69,13 +59,11 @@color: var(--accent-text-color);}+ &:focus-visible,&:hover {.discourse-no-touch & {- background: light-dark(- oklch(from var(--accent-color) 40% c h),- oklch(from var(--accent-color) 50% c h)- );- box-shadow: 0 0 6px 1px var(--button-box-shadow);+ background-color: var(--accent-color);+ box-shadow: 0 0 0 4px var(--button-box-shadow);color: var(--accent-text-color);.d-icon {@@ -84,17 +72,6 @@}}- &:focus-visible {- .discourse-no-touch & {- background: light-dark(- oklch(from var(--accent-color) 40% c h),- oklch(from var(--accent-color) 50% c h)- );- box-shadow: 0 0 0 4px var(--button-box-shadow);- color: var(--accent-text-color);- }- }-&:active {background: light-dark(oklch(from var(--accent-color) 40% c h),diff --git a/themes/horizon/scss/sidebar-new-topic-button.scss b/themes/horizon/scss/sidebar-new-topic-button.scssindex 981295c4fb0..c6f2fca0b95 100644--- a/themes/horizon/scss/sidebar-new-topic-button.scss+++ b/themes/horizon/scss/sidebar-new-topic-button.scss@@ -12,6 +12,7 @@.sidebar-new-topic-button {flex: 1 1 auto;+ margin-top: 4px; // hover & focus effect visibility&__wrapper {box-sizing: border-box;diff --git a/themes/horizon/scss/topic.scss b/themes/horizon/scss/topic.scssindex 294ae3dee56..20da34e43f1 100644--- a/themes/horizon/scss/topic.scss+++ b/themes/horizon/scss/topic.scss@@ -1,5 +1,9 @@@use "lib/viewport";+:root {+ --d-post-control-background--hover: var(--d-hover);+}+.post-stream {.contents {font-size: var(--font-up-1);