| 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. |