Skip to content

Commit 5611a82

Browse files
committed
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.
1 parent 88f2f88 commit 5611a82

File tree

1 file changed

+48
-1
lines changed

1 file changed

+48
-1
lines changed

src/pages/community/community.css

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,4 +876,51 @@
876876
.thank-you-content {
877877
padding: 0 20px 24px;
878878
}
879-
}
879+
}
880+
.section-header h2,
881+
.section-header h3,
882+
.contribution-section h2,
883+
.contribution-section h3 {
884+
color: #1e293b;
885+
font-weight: 700;
886+
}
887+
888+
[data-theme='dark'] .section-header h2,
889+
[data-theme='dark'] .section-header h3,
890+
[data-theme='dark'] .contribution-section h2,
891+
[data-theme='dark'] .contribution-section h3 {
892+
color: #ffffff;
893+
}
894+
895+
/* force the heading for a constant theme */
896+
.contribution-section > h2,
897+
.contribution-section > h3,
898+
.contribution-section > h4 {
899+
color: #1e293b;
900+
font-weight: 700;
901+
}
902+
903+
[data-theme='dark'] .contribution-section > h2,
904+
[data-theme='dark'] .contribution-section > h3,
905+
[data-theme='dark'] .contribution-section > h4 {
906+
color: #ffffff;
907+
}
908+
909+
/* Generic fix for any heading contribution sections */
910+
.contribution-section h1,
911+
.contribution-section h2,
912+
.contribution-section h3,
913+
.contribution-section h4,
914+
.contribution-section h5,
915+
.contribution-section h6 {
916+
color: #1e293b;
917+
}
918+
919+
[data-theme='dark'] .contribution-section h1,
920+
[data-theme='dark'] .contribution-section h2,
921+
[data-theme='dark'] .contribution-section h3,
922+
[data-theme='dark'] .contribution-section h4,
923+
[data-theme='dark'] .contribution-section h5,
924+
[data-theme='dark'] .contribution-section h6 {
925+
color: #ffffff;
926+
}

0 commit comments

Comments
 (0)