-
-
Notifications
You must be signed in to change notification settings - Fork 20
Custom CSS
The SCSS source of the default CSS theme can be found in media/scss/theme.scss
. Subordinate SCSS files can be found in the media/scss/3pd
and media/scss/section
folders.
⚠️ IMPORTANT! Do not edittheme.scss
or the other SCSS files shipped in themedia/scss/3pd
andmedia/scss/section
folders. Instead, create copies of them and edit the copies.
To customise the CSS, first copy the media/scss/theme.scss
to a different name, e.g. media/scss/custom.scss
. You can now edit the file as you please.
Then, you can compile the SCSS to CSS. There are plenty of solutions out there. We use the command-line NPM sass
, but there are GUI tools as well.
Please remember that you will need the Bootstrap source SCSS files to compile Panopticon's SCSS. If you have command-line access you can always run npm install
in Panopticon's root folder to do that.
The compiled file, e.g. custom.css
, must be placed into the media/css
folder.
Then, log into Panopticon as a Super User and go to Administration, System Configuration, Display. Put the name of your custom CSS file, without an extension, in the CSS Theme File setting. In our example, you need to type custom
in there. Click on Save & Close. Panopticon will now use your custom file.
If you have enabled Debug mode you need to have your compiled file with both the .css
and .min.css
extension in the media/css
folder.
If Panopticon cannot find your CSS file it automatically reverts to the built-in media/css/theme.min.css
. If this happens DO NOT try to replace the built-in file; it will be overwritten when you update Panopticon.
Documentation Copyright ©2023–2024 Akeeba Ltd.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".
You can also obtain a copy of the GNU Free Documentation License from the Free Software Foundation
- Overview pages
- Working with sites
- Site Overview
- Backup Management with Akeeba Backup Pro
- Security Management with Admin Tools Pro
- Scheduled Update Summary
- Scheduled Action Summary
- Backup Tasks
- Scanner Tasks
- System Configuration
- Managing Sites
- Mail templates
- Users and Groups
- Tasks
- Log files
- Update Panopticon
- Database Backups
- Fixing your session save path
- The .htaccess file
- Advanced Customisation (user code)
- Plugins
- Custom CSS
- Custom Templates
- Advanced Permissions
- .env For Configuration