From 5611a82aaf03cf4b5f3c4b3f46e0f626058d2326 Mon Sep 17 00:00:00 2001 From: aditya singh rathore Date: Wed, 3 Sep 2025 15:11:12 +0530 Subject: [PATCH] Update heading styles for light and dark themes Added CSS rules to ensure consistent heading colors and font weights in .section-header and .contribution-section for both light and dark themes. --- src/pages/community/community.css | 49 ++++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/src/pages/community/community.css b/src/pages/community/community.css index 77863efd..8c238a77 100644 --- a/src/pages/community/community.css +++ b/src/pages/community/community.css @@ -876,4 +876,51 @@ .thank-you-content { padding: 0 20px 24px; } -} \ No newline at end of file +} +.section-header h2, +.section-header h3, +.contribution-section h2, +.contribution-section h3 { + color: #1e293b; + font-weight: 700; +} + +[data-theme='dark'] .section-header h2, +[data-theme='dark'] .section-header h3, +[data-theme='dark'] .contribution-section h2, +[data-theme='dark'] .contribution-section h3 { + color: #ffffff; +} + +/* force the heading for a constant theme */ +.contribution-section > h2, +.contribution-section > h3, +.contribution-section > h4 { + color: #1e293b; + font-weight: 700; +} + +[data-theme='dark'] .contribution-section > h2, +[data-theme='dark'] .contribution-section > h3, +[data-theme='dark'] .contribution-section > h4 { + color: #ffffff; +} + +/* Generic fix for any heading contribution sections */ +.contribution-section h1, +.contribution-section h2, +.contribution-section h3, +.contribution-section h4, +.contribution-section h5, +.contribution-section h6 { + color: #1e293b; +} + +[data-theme='dark'] .contribution-section h1, +[data-theme='dark'] .contribution-section h2, +[data-theme='dark'] .contribution-section h3, +[data-theme='dark'] .contribution-section h4, +[data-theme='dark'] .contribution-section h5, +[data-theme='dark'] .contribution-section h6 { + color: #ffffff; +}