This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-83ea3d14-090b-4a90-ac07-ca7de09c8a48 XWIKI-25761 Open

Replace the color theme gradients of the dashboard, menu and user profile stylesheets with flat colors from CSS variables

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-685d2a3a-953b-45b4-a468-25579e293f92 Charpentier Lucas created this issue on 13/Nov/26 16:04
 
Summary: Replace the color theme gradients of the dashboard, menu and user profile stylesheets with flat colors from CSS variables
Issue Type: cid:jira-generated-image-avatar-83ea3d14-090b-4a90-ac07-ca7de09c8a48 Improvement
Affects Versions: 17.10.15
Assignee: Unassigned
Components: Dashboard, Menu, User - User Profile
Created: 13/Nov/26 16:04
Priority: cid:jira-generated-image-static-major-aa7596b7-3b55-4b0e-ba89-e6fe498b1943 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.

The stylesheets of the dashboard, of the menu macro and of the user profile still take their colors from the color theme Velocity variables. Some of these colors make gradients, built with Velocity macros from a pair of color theme variables:

  • panelHeaderGradientColor and panelHeaderBackgroundColor in uicomponents/dashboard/dashboard.css
  • menuGradientColor and menuBackgroundColor in Menu.MenuMacro
  • menuContentGradientColor and menuContentBackgroundColor in XWiki.XWikiUserSheet

The gradient colors have no CSS variable equivalent and we should not add one. They come from the Colibri skin and are not mapped to anything in Flamingo: with a Flamingo theme they keep the white default of colorThemeInit.vm.

We should:

  • Replace each gradient with a flat background that uses the CSS variable of its background color, -panel-header-bg for the dashboard and -navbar-default-bg for the menu.
  • Remove the text shadow of the dashboard gadget title, which uses the gradient color.
  • Remove the .skin-colibri rule of XWiki.XWikiUserSheet, which holds the third gradient. The Flamingo skin does not set this class.
  • Replace the other color theme Velocity variables of these three stylesheets with their CSS variables.

Visible change: the dashboard gadget header and the menu bar get a uniform background instead of a gradient.