Is there a way to prevent Headings 5 and 6 color from being lighter? Edited

I changed the Confluence 'Heading Text' color to fit with our company color scheme and found that Heading 5 and Heading 6 are always shades lighter from the original color.  This isn't obvious when the color is set to all black (#000000), but VERY apparent when using various colors.

As you can see, this is very hard to read when the color is too light.

ugly.png

Is there any way to prevent the last two headings from being lighter than the original color?

black.pngblue.pngdark_blue.png

green.pnggrey.pnglight_blue.png

light_green.pngorange.pngred.png

1 answer

1 accepted

1 vote
Ann Worley Atlassian Team Jun 05, 2017

 

You can use CSS to "hard-code" the darker color. I made heading 6 dark red by using this in the space stylesheet:

 

.wiki-content h1,
.wiki-content h2,
.wiki-content h3,
.wiki-content h4,
.wiki-content h5,
.wiki-content h6 {
color: red;
}

Please see  CSS color Property and Basic Styling Tutorial for more details.

 

What is interesting is I've read multiple posts about how overriding the CSS is NOT possible.  But I did find that I was able to setup the custom header with a CSS override like so:

{style}
#title-text a {
 color:#F6A01A;
}

table.aui > tbody > tr > th {
 color: #00B259;
}

h1, h2, h3, h4, h5, h6, 
.wiki-content h1,
.wiki-content h2,
.wiki-content h3,
.wiki-content h4,
.wiki-content h5,
.wiki-content h6,
.pagetitle,
.steptitle,
.substeptitle,
.formtitle,
.wiki-content
.tablesorter-header-inner,
#toolbar #format-dropdown .format-h1 a,
#toolbar #format-dropdown .format-h2 a,
#toolbar #format-dropdown .format-h3 a,
#toolbar #format-dropdown .format-h4 a,
#toolbar #format-dropdown .format-h5 a,
#toolbar #format-dropdown .format-h6 a,
.jim-table-header-content { color:#00B259; } .jira-tablesorter-header:hover,
.jira-tablesorter-header:hover .jim-table-header-content { color:#00B259; } {style}
Ann Worley Atlassian Team Jun 05, 2017

I knew there was someone on the Community with better CSS chops than mine. :)

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

345 views 20 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you