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

Provide an empty less/custom.less that can be overridden easily from XWikiSkins objects

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 9.7-rc-1
    • Fix Version/s: 9.8-rc-1
    • Component/s: Flamingo Skin
    • Labels:
      None
    • Difficulty:
      Unknown
    • Pull Request Status:
      Pull Request accepted
    • Similar issues:

      Description

      If you want to build a custom skin on top of Flamingo you need to:
      1. override 'less/style.less.vm'
      2. add a new import at the end of the list, like '@import "custom"'
      3. write your own 'less/custom.less'

      The idea is to add the import to 'custom' (or another name) to the 'style.less.vm' by default. This way the users that want to reuse Flamingo just need to make step 3.

      It's a very similar idea to what we do with 'layoutExtraVars.vm' or with the 'advanced' section of Flamingo Themes.

      The only rules for the custom.less is that it needs to be the last in the list of imports and it needs to be empty by default.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                evalica Ecaterina Moraru (Valica)
                Reporter:
                evalica Ecaterina Moraru (Valica)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: