Skip to content

Commit

Permalink
[Fixes #1147] Theme override styles from customization app needs some…
Browse files Browse the repository at this point in the history
… improvement (#1204) (#1206)
  • Loading branch information
DavidQuartz authored Sep 15, 2022
1 parent 1ed0b8a commit ca033be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/customizations/theme.html
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ <h1>GeoNode Theme</h1>
.then(function (text) {
const extraLess = document.getElementById('extra-less-functions').innerText;
function renderLessVariables(init) {
less.render(text + extraLess + ' .gn-theme { .extract-css-variables(@gn-theme-vars); }', { modifyVars: params }, function (error, output) {
less.render(text + extraLess + ' :root { .extract-css-variables(@gn-theme-vars); }', { modifyVars: params }, function (error, output) {
document.getElementById('gn-css-variables').innerHTML = output.css;
textarea.innerHTML = '/* copy this style in the "Custom CSS rules" field of the theme page to apply these new variables */\n' + output.css + '';
if (init) {
Expand Down

0 comments on commit ca033be

Please sign in to comment.