Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Editing space-specific style sheet causes global style sheet to be ignored

Matthew J. Horn
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 28, 2013

When I edit the space-specific style sheet (Edit Space > Look And Feel > Stylesheet) and save my changes, the new styles are applied. However, this causes the global style sheet (Admin > Look And Feel > Stylesheet) to no longer be applied.

Is this a bug? Is there any way around it?

5 answers

1 vote
Daniel Borcherding
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 29, 2013

Hello Matt,

You are complately correct. I duplicated this behavior in my test instance and filed the following bug.

https://jira.atlassian.com/browse/CONF-27929

As always please visit this issue and vote on it to add your voice to the conversation. I am attaching this post to further increase its visibility.

Matthew J. Horn
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 29, 2013

Thanks for filing the bug. For a workaround, I created a separate stylesheet and referenced it in the head section of each space's Main Layout decorator.

0 votes
Debbie Rothe
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 12, 2013

Thanks a lot!
Now can i really start my css job

0 votes
Matthew J. Horn
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 12, 2013

I typically put the CSS files in a directory under /confluence/confluence/includes/css. This is where Atlassian stores their stylesheets by default.

When importing, the location is relative to the /confluence/confluence directory (it's the directory that contains WEB-INF). So my stylesheet tag looks like this:

<link rel="stylesheet" href="/includes/css/pl.css" type="text/css">
0 votes
Debbie Rothe
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 12, 2013

Hi Matt thank you for this usefull workaround!



@all: To find out if I got "head section of each space's" correctly I put some

&lt;... border-color: ...&gt;

into the code. It works! Now with next step have I – a confluence-beginner – a problem with the (relative) path of my_wonderfull_space.css: what should I wrote into the href=" ... ?

And directly the next one: Need I (using ftp) a special upload-directory for all the spaces.css or what is the easiest upload way?


Thanks in advance

your Greenhorn

Matthew J. Horn
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 12, 2013

I typically put the CSS files in a directory under /confluence/confluence/includes/css. This is where Atlassian stores their stylesheets by default.

When importing, the location is relative to the /confluence/confluence directory (it's the directory that contains WEB-INF). So my stylesheet tag looks like this:

<link rel="stylesheet" href="/includes/css/pl.css" type="text/css">
0 votes
MatthewC
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 29, 2013

is it the whole global stylesheet that is ignored? Or are you hitting CSS naming oddness? Since the space sheet is applied later, it will over-write the global one where the CSS references overlap.

Or is it more than that?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events