Skip to content

Commit

Permalink
Merge pull request #83 from humhub/enh/360-replace-theme-variables
Browse files Browse the repository at this point in the history
Replace theme variables with CSS variables
  • Loading branch information
luke- authored Sep 13, 2024
2 parents 4ad616b + 197faee commit 2386660
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Changelog
-------------------------
- Fix #74: save datetime of last update of a page
- Fix #80: Remove module name translation
- Enh #83: Replace theme variables with CSS variables

1.4.1 (November 28, 2023)
-------------------------
Expand Down
8 changes: 4 additions & 4 deletions widgets/views/cookies.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "<?= $this->theme->variable('primary'); ?>",
"text": "<?= $this->theme->variable('text-color-contrast') ?>"
"background": "var(--primary)",
"text": "var(--text-color-contrast)"
},
"button": {
"background": "<?= $this->theme->variable('success'); ?>",
"text": "<?= $this->theme->variable('text-color-contrast') ?>"
"background": "var(--success)",
"text": "var(--text-color-contrast)"
}
},
"showLink": false,
Expand Down

0 comments on commit 2386660

Please sign in to comment.