Skip to content

Commit

Permalink
Merge pull request #2072 from nextcloud/backport/2069/stable23
Browse files Browse the repository at this point in the history
[stable23] Adapt branding css variables
  • Loading branch information
juliusknorr authored Feb 28, 2022
2 parents 3473730 + 1ebf4a3 commit 38dac07
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/helpers/coolParameters.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ const generateCSSVarTokens = () => {
'--color-border': '--co-border',
'--color-border-dark': '--co-border-dark',
'--border-radius-pill': '--co-border-radius-pill',
'--font-face': '--loleaflet-font:--mobile-font:--vex-font:--jquery-ui-font:--docs-font',
'--image-logoheader': '--co-image-logo',
}
let str = ''
try {
Expand All @@ -73,7 +71,7 @@ const generateCSSVarTokens = () => {
if (!cStyle) continue // skip if it is not set
const varNames = cssVarMap[cssVarKey].split(':')
for (let i = 0; i < varNames.length; ++i) {
str += varNames[i] + '=' + cStyle + ';'
str += varNames[i] + '=' + cStyle.trim() + ';'
}
}
} catch (e) {
Expand All @@ -82,7 +80,7 @@ const generateCSSVarTokens = () => {

const customLogo = loadState('richdocuments', 'theming-customLogo', false)
if (customLogo) {
str += ';--co-image-logo=url(' + customLogo.replace('?useSvg=1&', '?') + ');'
str += ';--nc-custom-logo=' + window.OCA?.Theming?.cacheBuster ?? 0 + ';'
}
return str
}
Expand Down

0 comments on commit 38dac07

Please sign in to comment.