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

Flamingo Theme preview is broken (on view mode) when "lessCode" is filled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 6.3-rc-1, 6.2.4
    • 6.3-milestone-2, 6.2.3
    • Flamingo Theme
    • None
    • Unknown
    • N/A
    • N/A

    Description

      1. Create a new flamingo theme
      2. On the "advanced" category, put in the "lessCode" field the following code:
        @base: #f938ab;
        
        #mainContentArea .xcontent {
          color: saturate(@base, 5%);
          border-color: lighten(@base, 30%);
        }
        
      3. Save the theme
        Now, in the preview of the view mode, you see the following error:
        ParseError: Unrecognised input
        in style.less.vm?colorTheme=no on line 143, column 1:
            @lessCode: @base: #f938ab;    #mainContentArea .xcontent {    color: saturate(@base, 5%);    border-color: lighten(@base, 30%);  };
        

      There is a bug there because the preview is not supposed to handle the "lessCode" field.

      Attachments

        Activity

          People

            gdelhumeau Guillaume Delhumeau
            gdelhumeau Guillaume Delhumeau
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: