forked from geosolutions-it/geonode-mapstore-client
-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add theme variables documentation (#823)
- Loading branch information
1 parent
a84bf4f
commit 13205e1
Showing
3 changed files
with
582 additions
and
0 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
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Custom theme colors | ||
|
||
The GeoNode theme allows to override colors with [css variables](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties) in this ways the layout CSS structure will be always aligned with the version in use but with a customized look. | ||
|
||
Here the steps to overrides the variables: | ||
|
||
- add a style tag in the template. it is possible to use the `geonode-mapstore-client/snippets/custom_theme.html` template included in all the pages. | ||
|
||
```html | ||
<style> | ||
</style> | ||
``` | ||
|
||
- add the `.gn-theme` class in the style tag with the css variable to override | ||
|
||
```html | ||
<style> | ||
/* msgapi is the selector wrapper of the page */ | ||
.msgapi .gn-theme { | ||
--gn-primary: #74cfe2; | ||
} | ||
</style> | ||
``` | ||
|
||
It is possible to use this [page/tool](theme.html) to customize and get the style snippet to apply to the theme. |
Oops, something went wrong.