Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated the theming guide following matomo-org/matomo#7951
- Loading branch information
Showing
1 changed file
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,9 +45,12 @@ To change the font you override the font variable: | |
@theme-fontFamily-base: Verdana, sans-serif; | ||
``` | ||
|
||
You get the point. It is a common convention among themes to put all color values in a `_colors.less` file. This is already done for you if you have created your theme using the above mentioned console command. Just uncomment the variables you want to change. For a list of available variables have a look at the [Example Theme plugin](https://github.com/piwik/piwik/tree/master/plugins/ExampleTheme/stylesheets). | ||
You get the point. The list of all variables that you can override is defined in the Morpheus plugin: | ||
|
||
Please note in case you are not using the theme generator: overriding variables will only work if they are defined in a less file that is imported by another less file. | ||
- [base theme variables](https://github.com/piwik/piwik/blob/master/plugins/Morpheus/stylesheets/theme.less) | ||
- [advanced theme variables](https://github.com/piwik/piwik/blob/master/plugins/Morpheus/stylesheets/theme-advanced.less) | ||
|
||
Please note in case you are writing Less rules outside of `theme.less`: overriding variables will only work if they are defined in a less file that is imported by the main `theme.less`. | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
mnapoli
Author
Contributor
|
||
|
||
Although we do not recommend to do so, you can change the colors of a specific element directly, for example: | ||
|
||
|
@mnapoli now that leafo/lessphp#302 was fixed in lessphp maybe this could be removed/ outdated?