Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-69978

Can't override template CSS using _custom.scss with the Liferay theme generator

Details

    • Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • 7.0.0 DXP FP9
    • 7.0.X, Master
    • Themes Infrastructure
    • None
    • 1.5

    Description

      when I run yo liferay-theme, and create a theme, I edit _custom.scss in the src/css folder. If I add something simple like:

      /* These inject tags are used for dynamically creating imports for themelet styles, you can place them where ever you like in this file. */
      
      /* inject:imports */
      /* endinject */
      
      /* This file allows you to override default styles in one central location for easier upgrade and maintenance. */
      
      .control-menu-level-1 {
      	background-color: #425563;
      	background-image: none;
      }
      

      it doesn't work, it adds but the precedence is wrong. See screenshot for details.

      Attachments

        Activity

          People

            linda.sui Linda Sui
            brett.swaim Brett Swaim (Inactive)
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              4 years, 48 weeks, 3 days ago

              Packages

                Version Package
                7.0.X
                Master