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
Interesting thought. Use the inspect function of your browser to figure out the path of the global CSS file.
It's a strange and very complex URL. I'd rather try uploading the CSS as an attachment.
Thanks,
Kirstin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can take a look here, to see if you can identify the file:
/opt/atlassian/confluence/confluence/includes/css
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, Bill. Can't find it there.
I rather think it's stored in the database.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Then it is probably a generated style sheet, starting with something like LESS.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.