User tests: Successful: Unsuccessful:
Pull Request for Issue # .
In this PR I I added the "!default" setting to all the Cassiopeia variables. There where some variables who had already this setting in place, but now all variables are set as default. Setting the"!default" makes is easier for developers to create custom styling based on the Cassiopeia template for child themes for instance.
Use case:
After a child theme is created, create in the media/templates/site/CHILD_THEME a /scss folder
in this folder create a template.scss with the following content:
$secondary: red;
$success: red;
$info: red;
$warning: red;
$danger: red;
@import "../../cassiopeia/scss/template.scss";
// Your extra custom styling below
Next copy the template-rtl.scss from the media/templates/site/cassiopeia/scss folder to the child theme /scss folder.
Compile the template.scss and template-rtl.scss to the /css folder of the child theme
After compiling the CSS is build and the variable overrides are respected.
Set the child theme under the template settings in the backend and see the result.
Checkout this PR and compile the styling with npm ci.
Everything should work a normal.
Status | New | ⇒ | Pending |
Category | ⇒ | Repository NPM Change |
Labels |
Added:
NPM Resource Changed
?
|
I have tested this item
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Labels |
Added:
?
|
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-04-02 13:25:04 |
Closed_By | ⇒ | laoneo |
Thanks!
I have tested this item✅ successfully on ab8a55e
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37360.