User tests: Successful: Unsuccessful:
Overriding the Cassiopeia template CSS can be sometimes difficult because of the long class selectors. Encapsulating the default styling in a layer, resets the specificity making CSS changes via the user.css much more pleasant and easy.
Added a layer to the CSS
nav span,
nav a,
nav button {
color: green;
}
@layer
property@layer template {
/* Template CSS code goes here */
}
Not all links in the navbar are colored green. Only the ones in the dropdown.
All links are colored green and layer is added to the browser inspector.
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
Status | New | ⇒ | Pending |
Category | ⇒ | Repository NPM Change |
FWIW @layer
was introduced on March 2022 universally on all 3 major engines (gecko/blink/webkit). Although the B/C promise is fulfilled (2 latest versions) this seems too early to adopt (especially for the front end template). 2 years is not that huge timeframe especially for the non tech people to update their OS/browsers.
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-04-15 13:54:09 |
Closed_By | ⇒ | RickR2H | |
Labels |
Added:
NPM Resource Changed
PR-5.1-dev
|
Agreed that it's a bit early. I'll close the PR.
@RickR2H my comment wasn't supposed to be a show stopper but rather a hint to get some decision from the maintainers. Please reopen the PR and let's ask @laoneo, @LadySolveig and the other maintainers for some decision
Status | Closed | ⇒ | New |
Closed_Date | 2024-04-15 13:54:09 | ⇒ | |
Closed_By | RickR2H | ⇒ |
Status | New | ⇒ | Pending |
@dgrammatiko Thanks for the comment. I opened the PR again. I'll leave it for the other to decide.
This pull request has been automatically rebased to 5.2-dev.
Title |
|
This pull request has been automatically rebased to 5.3-dev.
Title |
|
Labels |
Added:
Feature
PR-5.3-dev
Removed: PR-5.1-dev |
@RickR2H I assume you mean “difficult” and not “default”. Got hit by the spellchecker’s auto correction?