fix: subreddit badge fill, tagline 'to' cleanup, and comments li spacing

- Default subreddit badge background from transparent to opaque fill
  (light: #fde8e0, dark: #3d2518) so page highlights don't bleed through
- Remove lingering "to" text node from tagline when subreddit is hidden
- Hide the <li> wrapping the comments link (not just the <a>) to
  eliminate leftover whitespace in the flat-list
- Simplify popup: subreddit bg fields are now color pickers (no longer
  need transparent text-input workaround)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-26 15:32:33 -04:00
parent 8be62e1fec
commit cca7940dd9
6 changed files with 55 additions and 33 deletions

View File

@@ -1,6 +1,6 @@
/* --- FOUC prevention: hide original elements immediately --- */
html.rt-enabled .thing.link .tagline .subreddit,
html.rt-enabled .thing.link .flat-list .comments {
html.rt-enabled .thing.link .flat-list li:has(> .comments) {
display: none !important;
}
@@ -30,7 +30,7 @@ html.rt-enabled .thing.link .flat-list .comments {
/* --- Light mode (default) --- */
.rt-badge--subreddit {
background: var(--rt-sub-bg, transparent);
background: var(--rt-sub-bg, #fde8e0);
border-color: var(--rt-sub-border, #c84a20);
color: var(--rt-sub-text, #c84a20);
}
@@ -43,7 +43,7 @@ html.rt-enabled .thing.link .flat-list .comments {
/* --- Dark mode --- */
.rt-dark .rt-badge--subreddit {
background: var(--rt-sub-bg, transparent);
background: var(--rt-sub-bg, #3d2518);
border-color: var(--rt-sub-border, #ff6b3d);
color: var(--rt-sub-text, #ff6b3d);
}