Bug Fixes and UI Tweaks

This commit is contained in:
2026-03-07 22:06:48 -04:00
parent 8700b35f3f
commit 4f41c0f900
8 changed files with 166 additions and 135 deletions

View File

@@ -1,6 +1,6 @@
/* ═══════════════════════════════════════════════════════════════════
Community Landing — Admin Settings Panel Styles
Tab navigation + fallback separators
Tab navigation + fallback separators + bg-pair layout
═══════════════════════════════════════════════════════════════════ */
/* ── Tab-hidden class (used instead of inline display:none) ── */
@@ -123,6 +123,30 @@ html.dark-scheme .cl-admin-tabs .cl-admin-tab:hover {
padding-top: 0 !important;
}
/* ── Dual-color background pairs (side-by-side dark/light) ── */
.cl-bg-pair {
display: flex;
gap: 16px;
width: 100%;
}
.cl-bg-pair > .row.setting {
flex: 1;
min-width: 0;
margin-bottom: 0 !important;
}
.cl-bg-pair.cl-tab-hidden {
display: none !important;
}
@media (max-width: 600px) {
.cl-bg-pair {
flex-direction: column;
}
}
/* ── Fallback: Separator borders when tabs are NOT active ──
(e.g. if JS fails to load or on older Discourse) */
@@ -155,10 +179,9 @@ html.dark-scheme .cl-admin-tabs .cl-admin-tab:hover {
.admin-detail:not(.cl-tabs-active) .row.setting[data-setting="scroll_animation"],
.admin-detail:not(.cl-tabs-active) .row.setting[data-setting="navbar_signin_label"],
.admin-detail:not(.cl-tabs-active) .row.setting[data-setting="hero_title"],
.admin-detail:not(.cl-tabs-active) .row.setting[data-setting="stats_title"],
.admin-detail:not(.cl-tabs-active) .row.setting[data-setting="stats_enabled"],
.admin-detail:not(.cl-tabs-active) .row.setting[data-setting="about_enabled"],
.admin-detail:not(.cl-tabs-active) .row.setting[data-setting="topics_enabled"],
.admin-detail:not(.cl-tabs-active) .row.setting[data-setting="contributors_enabled"],
.admin-detail:not(.cl-tabs-active) .row.setting[data-setting="groups_enabled"],
.admin-detail:not(.cl-tabs-active) .row.setting[data-setting="show_app_ctas"],
.admin-detail:not(.cl-tabs-active) .row.setting[data-setting="footer_description"] {
@@ -173,10 +196,9 @@ html.dark-scheme .admin-detail:not(.cl-tabs-active) .row.setting[data-setting="a
html.dark-scheme .admin-detail:not(.cl-tabs-active) .row.setting[data-setting="scroll_animation"],
html.dark-scheme .admin-detail:not(.cl-tabs-active) .row.setting[data-setting="navbar_signin_label"],
html.dark-scheme .admin-detail:not(.cl-tabs-active) .row.setting[data-setting="hero_title"],
html.dark-scheme .admin-detail:not(.cl-tabs-active) .row.setting[data-setting="stats_title"],
html.dark-scheme .admin-detail:not(.cl-tabs-active) .row.setting[data-setting="stats_enabled"],
html.dark-scheme .admin-detail:not(.cl-tabs-active) .row.setting[data-setting="about_enabled"],
html.dark-scheme .admin-detail:not(.cl-tabs-active) .row.setting[data-setting="topics_enabled"],
html.dark-scheme .admin-detail:not(.cl-tabs-active) .row.setting[data-setting="contributors_enabled"],
html.dark-scheme .admin-detail:not(.cl-tabs-active) .row.setting[data-setting="groups_enabled"],
html.dark-scheme .admin-detail:not(.cl-tabs-active) .row.setting[data-setting="show_app_ctas"],
html.dark-scheme .admin-detail:not(.cl-tabs-active) .row.setting[data-setting="footer_description"],

View File

@@ -602,6 +602,8 @@
min-height: 80vh;
display: flex;
align-items: center;
background-size: cover;
background-position: center;
}
@media (min-width: 1024px) {
@@ -692,34 +694,15 @@
transition: opacity 0.6s ease;
}
/* ── Hero Background Image (flat mode) ── */
.cl-hero__bg {
position: absolute;
inset: 0;
background-size: cover;
background-position: center;
z-index: 0;
opacity: 0.25;
}
.cl-hero__bg::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(to bottom, transparent 60%, var(--cl-bg));
}
/* ── Hero Card Mode ── */
.cl-hero--card .cl-hero__inner {
background: var(--cl-card);
background: var(--cl-hero-card-bg, var(--cl-card));
border: 1px solid var(--cl-border);
border-radius: var(--cl-radius);
padding: 3rem 2.5rem;
backdrop-filter: var(--cl-blur);
-webkit-backdrop-filter: var(--cl-blur);
box-shadow: 0 8px 32px var(--cl-shadow);
background-size: cover;
background-position: center;
}
@media (min-width: 1024px) {
@@ -892,10 +875,11 @@
transition: filter 0.4s ease;
}
/* ── Hero Creators (top 3 pills in hero) ── */
/* ── Hero Creators (top 3 ranked pills in hero) ── */
.cl-hero__creators {
display: flex;
flex-wrap: wrap;
flex-wrap: nowrap;
justify-content: center;
gap: 0.75rem;
margin-top: 2rem;
}
@@ -1224,18 +1208,8 @@
}
/* ═══════════════════════════════════════════════════════════════════
6. TOP CREATORS — pill badges
6. CREATOR PILLS — used in hero section
═══════════════════════════════════════════════════════════════════ */
.cl-creators {
padding: 2.5rem 0 3rem;
}
.cl-creators__list {
display: flex;
flex-wrap: wrap;
gap: 1rem;
}
.cl-creator-pill {
display: flex;
align-items: center;
@@ -1245,29 +1219,48 @@
border: 1px solid var(--cl-border);
border-radius: 50px;
text-decoration: none;
position: relative;
transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
backdrop-filter: var(--cl-blur);
-webkit-backdrop-filter: var(--cl-blur);
}
.cl-creator-pill:hover {
border-color: var(--cl-border-hover);
border-color: var(--rank-color, var(--cl-border-hover));
background: var(--cl-accent-subtle);
transform: translateY(-3px);
box-shadow: 0 8px 24px var(--cl-shadow);
}
.cl-creator-pill__rank {
position: absolute;
top: -6px;
left: -6px;
width: 20px;
height: 20px;
border-radius: 50%;
background: var(--rank-color);
color: #000;
font-size: 0.65rem;
font-weight: 900;
display: flex;
align-items: center;
justify-content: center;
z-index: 2;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.cl-creator-pill__avatar {
width: 48px;
height: 48px;
border-radius: 50%;
object-fit: cover;
border: 2px solid var(--cl-border);
border: 2px solid var(--rank-color, var(--cl-border));
transition: border-color 0.3s ease;
}
.cl-creator-pill:hover .cl-creator-pill__avatar {
border-color: var(--cl-accent);
border-color: var(--rank-color, var(--cl-accent));
}
.cl-creator-pill__name {