This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-10d16254-d692-4fab-a1da-b5db69c7515c XWIKI-25762 Open

Use CSS variables instead of color theme Velocity variables in the distribution wizard stylesheet

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-a2847455-bb04-4f50-a30f-9609626d4755 Charpentier Lucas created this issue on 13/Nov/26 16:04
 
Summary: Use CSS variables instead of color theme Velocity variables in the distribution wizard stylesheet
Issue Type: cid:jira-generated-image-avatar-10d16254-d692-4fab-a1da-b5db69c7515c Improvement
Affects Versions: 17.10.15
Assignee: Unassigned
Components: Extension - Distribution
Created: 13/Nov/26 16:04
Priority: cid:jira-generated-image-static-major-d0b86514-3310-49c9-9d00-2c4000ff7fc6 Major
Reporter: Charpentier Lucas
Description:

Part of the removal of the color theme Velocity variables ($theme, loaded with colorThemeInit.vm) from the stylesheets of XWiki Standard, following XWIKI-25649. The CSS variables introduced by XWIKI-22667 expose the same colors.

uicomponents/extension/distribution.css uses the color theme Velocity variables in two ways:

  • A Velocity condition on headerBackgroundImage picks the background of the wizard header: the header image of the color theme when there is one, header.png otherwise.
  • borderColor is used for a border.

We should replace both with CSS variables. The header image needs care: --xwiki-page-header-bg-image is set to an empty string when the color theme has no image, so a plain var() fallback to header.png never applies.

Visible change: none expected.