Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-25760

Use CSS variables instead of color theme Velocity variables in the notification, print and job log styles

    XMLWordPrintable

Details

    • Unknown

    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.

      Three places use color theme Velocity variables in a context that needs more than a one to one replacement:

      • uicomponents/widgets/notification.css: the four notification colors are stored in a Velocity list and the rules are generated by a Velocity loop.
      • print.css of the Flamingo skin: textPrimaryColor is used in the print styles.
      • init.vm: highlightColor is used in the inline style of the job log.

      We should replace these 6 usages with CSS variables, after checking for each that the CSS variables are available where the style applies, in particular for the print view and the PDF export.

      Visible change: none expected beyond small color differences.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Lucas C Charpentier Lucas
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: