Skip to content

A platform for community discussion. Free, open, simple.

UX: Remove shadow, implement space variables (#34885)

Jordan Vidrine284ff78b176d
diff --git a/themes/horizon/common/color_definitions.scss b/themes/horizon/common/color_definitions.scss
index 6bb71aff978..d8e0623093d 100644
--- a/themes/horizon/common/color_definitions.scss
+++ b/themes/horizon/common/color_definitions.scss
@@ -66,12 +66,6 @@ html {
oklch(from #{$tertiary} calc(l * 1.5) calc(c * 0.25) h)
) !important;
- // Topic Card Colors
- --topic-card-shadow: light-dark(
- oklch(from #{$tertiary} calc(l * 1.85) calc(c * 0.5) h),
- oklch(from #{$tertiary} calc(l * 0.2) calc(c * 0.01) h / 0.25)
- ) !important;
-
// Button Colors
--button-box-shadow: light-dark(
oklch(from #{$tertiary} calc(l * 1.5) calc(c * 0.35) h),
diff --git a/themes/horizon/scss/nav-pills.scss b/themes/horizon/scss/nav-pills.scss
index 76b201b604b..6b918a2fd4c 100644
--- a/themes/horizon/scss/nav-pills.scss
+++ b/themes/horizon/scss/nav-pills.scss
@@ -36,11 +36,6 @@
}
}
}
-
- .select-kit.combo-box.category-drop.has-selection
- .category-drop-header:hover {
- border-color: transparent;
- }
}
.select-kit.is-expanded .select-kit-body {
diff --git a/themes/horizon/scss/topic-cards.scss b/themes/horizon/scss/topic-cards.scss
index def32fe946b..1c970827771 100644
--- a/themes/horizon/scss/topic-cards.scss
+++ b/themes/horizon/scss/topic-cards.scss
@@ -2,6 +2,8 @@
:root {
--d-border-radius-small: calc(var(--d-border-radius) * 0.5);
+ --topic-list-item-background-color: var(--d-content-background);
+ --topic-list-item-background-color--visited: var(--d-content-background);
}
.topic-list .topic-list-item-separator {
@@ -57,10 +59,10 @@
border: none;
display: flex;
flex-direction: column;
- gap: 1.25em;
+ gap: var(--space-4);
@include viewport.until(lg) {
- gap: 0.5em;
+ gap: var(--space-2);
}
@include viewport.until(sm) {
@@ -71,8 +73,6 @@
.topic-list-body .topic-list-item {
position: relative;
- background: var(--d-content-background);
- box-shadow: 0 0 12px 1px var(--topic-card-shadow);
text-overflow: ellipsis;
padding: var(--space-3);
border: 1px solid var(--primary-300);