Forums

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

Include global CSS to space CSS

Kirstin Seidel-Gebert
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.
September 12, 2018

Hi all,

I want to include the global Confluence CSS (defined in the Admin section) to the CSS of a space with

@import url("base.css");

That way, I don't have to maintain the global CSS twice and can focus on the elements that differ from the global CSS.

But where can I find this file on my Confluence instance? It must be somewhere in the filesystem?

Cheers,
Kirstin

2 answers

0 votes
Bill Bailey
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.
September 13, 2018

Interesting thought. Use the inspect function of your browser to figure out the path of the global CSS file.

Kirstin Seidel-Gebert
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.
September 13, 2018

It's a strange and very complex URL. I'd rather try uploading the CSS as an attachment.
Thanks,
Kirstin

Bill Bailey
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.
September 14, 2018

You can take a look here, to see if you can identify the file:

/opt/atlassian/confluence/confluence/includes/css

Kirstin Seidel-Gebert
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.
September 25, 2018

Sorry, Bill. Can't find it there.
I rather think it's stored in the database.

Bill Bailey
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.
September 25, 2018

Then it is probably a generated style sheet, starting with something like LESS.

0 votes
Victor Mutambuki
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.
September 12, 2018

Kirstin,

Please see the documentation
https://confluence.atlassian.com/doc/styling-confluence-with-css-166528400.html

Also, take note of the areas in the documentation marked as NOTES.

victor

Kirstin Seidel-Gebert
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.
September 13, 2018

Hi Victor,

I've read the pages you linked. What did you think of?
Is it a good idea to upload a CSS file as an attachment to a page and then include this file to both - the global stylesheet and the space stylesheet?

I'll try this next week.
Cheers,
Kirstin

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events