-
-
Notifications
You must be signed in to change notification settings - Fork 10
Customising CSS
Both the HTML and CSS are fully overridable using standard core Joomla! features.
The CSS output can be overridden by means of Media Files Overrides. We recommend consulting the official Joomla! documentation on Media File Overrides to get an overview of the process.
The following guide assumes that you are familiar with that basic Joomla concept.
CSS files are provided in two forms: human readable source in the SCSS format (.scss
extension) and the compiled and minified result (.css
extension). You are NOT supposed to modify the .css
file directly. You are supposed to customise the SCSS source and compile it.
Please DO NOT modify the files in media/com_engage/css
directly. They will be overwritten on update or re-installation of Akeeba Engage. Instead, here is what you should do.
Create a new folder /templates/YOUR_TEMPLATE/css/com_engage
where YOUR_TEMPLATE is the name of your site's template.
Copy all .scss
files and the sources
directory from /media/com_engage/css
into /templates/YOUR_TEMPLATE/css/com_engage
.
Modify / customise the SCSS files. The files in the sources
directory are includes, the .scss
files in the main directory are the ones that needs to be compiled. Make sure your generated files have a .css
extension (NOT .min.css
). Joomla will be using them instead of the files shipped with Akeeba Engage.
In Akeeba Engage 3 and later (Joomla 4 only) the main SCSS files are as follows:
-
backend.scss
Always loaded in the backend of your site. It's really only used to set up the component icon. -
comments.scss
Loaded in the frontend of your site when the Load Custom CSS option is enabled in the component's Options page. This file includes both light and dark mode CSS.
Please note that Akeeba Engage 3 does not provide Dark Mode CSS for the backend of the site. Instead, it uses the standard Joomla 4 and Bootstrap 5 CSS classes. Any Dark Mode solution for the backend (e.g. the DarkMagic plugin) will work with Akeeba Engage as well.
In Akeeba Engage 2 (Joomla 3 and 4) the main SCSS files are as follows:
-
amp.scss
Used for the AMP (Accelerated Mobile Pages) version of your site when using the third party wbAMP extension. -
backend.scss
Always loaded in the backend of your site. Implements both visual layout and the Light Mode colors. -
backend_dark.scss
Used in the backend of your site for Dark Mode. Only overrides colors for Dark Mode. -
comments.scss
Always loaded in the frontend of your site. Implements both visual layout and the Light Mode colors. -
comments_dark.scss
Used in the frontend of your site for Dark Mode. Only overrides colors for Dark Mode.
Akeeba Engage and its documentation are Copyright © 2020-2023 Nicholas K. Dionysopoulos / Akeeba Ltd.
Akeeba Engage is Open Source Software, distributed under the GNU General Public License, version 3 of the license, or (at your option) any later version.
The Akeeba Engage Wiki content is provided under the GNU Free Documentation License, version 1.3 of the license, or (at your option) any later version.
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 can be found on the GNU site.