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

Allow advanced color units when specifing the color in the Color Theme Editor

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Won't Fix
    • Minor
    • None
    • 3.1 RC1
    • {Unused} Color Themes
    • None
    • Unknown

    Description

      Now we are supporting HEX RGB values: #f00, #ff0000, f00, ff0000. When you enter these values the editor automatically converts them to #FF0000.

      Would be very nice to be able to add values like:

      • transparent
      • currentColor

      Also we could have this values for color "red":

      • RGB
        • rgb(255,0,0)
        • rgb(100%,0%,0%)
      • RGBA
        • rgba(255,0,0,0.5)
        • rgba(100%, 0%, 0%, 0.5
      • HSL
        • hsl(0, 100%, 50%)
      • HSLA
        • hsla(0, 100%, 50%, 0.5)
      • Extended color keywords
        • red
        • tomato
        • etc

      See reference: http://www.w3.org/TR/css3-color/ for additional informations.


      The previewer works without problems, the issue is that when the input loses it's focus, for the values specified above the input is converted to a RGB HEX value (like #BBBBBB, etc, depends on the value entered).
      See step1 and step2.png for the input "hsl(0, 100%, 50%)"

      Attachments

        Activity

          People

            evalica Ecaterina Moraru (Valica)
            evalica Ecaterina Moraru (Valica)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: