A platform for community discussion. Free, open, simple.
FIX: Improve last-visit separator contrast in dark mode (#44177)
Natalie Tay3d15d5a13372
diff --git a/app/assets/stylesheets/common/base/_topic-list.scss b/app/assets/stylesheets/common/base/_topic-list.scssindex d1c08c36c61..e9e1942526a 100644--- a/app/assets/stylesheets/common/base/_topic-list.scss+++ b/app/assets/stylesheets/common/base/_topic-list.scss@@ -205,7 +205,7 @@border: none;.topic-list-data {- border-top: 1px solid var(--danger-medium);+ border-top: 1px solid light-dark(var(--danger-medium), var(--danger));line-height: 0em;padding: 0;text-align: center;@@ -214,7 +214,7 @@.topic-list-data span {position: relative; // Chrome needs this, otherwise the line is above the textbackground-color: var(--secondary);- color: var(--danger-medium);+ color: light-dark(var(--danger-medium), var(--danger));padding: 0 var(--space-2);font-size: var(--font-down-1);}diff --git a/app/assets/stylesheets/common/base/topic-post.scss b/app/assets/stylesheets/common/base/topic-post.scssindex f00ee4ff0f0..99848972a23 100644--- a/app/assets/stylesheets/common/base/topic-post.scss+++ b/app/assets/stylesheets/common/base/topic-post.scss@@ -1493,12 +1493,12 @@ blockquote .post__contents-cooked-quote {&.topic-post-visited {.topic-post-visited-line {text-align: center;- border-bottom: 1px solid var(--danger-medium);+ border-bottom: 1px solid light-dark(var(--danger-medium), var(--danger));z-index: z("base") + 2; // ensures last visit border is on top of post bordersline-height: 0;margin: 0;margin-bottom: -1px;- color: var(--danger-medium);+ color: light-dark(var(--danger-medium), var(--danger));font-size: var(--font-down-1);width: calc(var(--topic-body-width) + var(--topic-avatar-width) +