Colour of a title in Expand macro

Hi!

Is it possible to make a title in Expand macro blue or green or any other colour?

Regards,

Alex

5 answers

1 accepted

0 vote
David Simpson Community Champion Oct 18, 2011

Browse to:

Space Admin | Look and Feel | Stylesheet

Click the Edit button and paste the following styles:

1
2
3
4
5
/* change the style for expand macro title text */
#com-atlassian-confluence .expand-control-text {
color: #880000;
font-weight: bold;
}

Thanks, it works now!

Why I dont have "Stylesheet" on Look and Feel? I only have these options:

Themes

Colour Scheme

PDF Layout

PDF Stylesheet

Change Space Logo

I am using 4.3

3 votes
David Simpson Community Champion Oct 16, 2011

Browse to:

Confluence Admin | Look and Feel | Stylesheet

Click the Edit button and paste the following styles:

/* change the style for expand macro title text */
#com-atlassian-confluence .expand-control-text {
    color: #880000;
    font-weight: bold;
}

Your should get something like this:

http://minus.com/mNLzCaMmV

I did what you suggested but the title is still black. What I however noticed that in the Edit 'Expand' Macro window, the title is dark red under the Preview area.

David Simpson Community Champion Oct 18, 2011

OK, does it work in the standard themes? Is it a problem in these or a custom theme only?

It works in the Global Look and Feel theme. I use Documentation Theme and it doesn't work there.

David Simpson Community Champion Oct 18, 2011

OK, the Documentation Theme does not use the global stylesheet, you'll have to add to the space stylesheet. See my 2nd answer.

0 vote
David Simpson Community Champion Oct 16, 2011

Do you just want a different colour that's always the same? Or do you want this configurable?

I want to have a colour that's always the same, for example, blue as is normally used for links.

Just as an extension, if you only want to change the Style in only one page (not your all Confluence instance).

Use the "CSS Stylesheet" macro in your page an enter the code from David:

grafik.png

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Confluence

Color tables for a shiny Confluence page

...; ## Developed by: Alana Fernando ## Shared with love ## @param style:title=style type|type=enum|required=true|desc=Choose a style.|enumValues=Style1,Style2,Style3,Style4,Style5 ## @param alignment:title...

165 views 8 11
Read article

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