Updating CSS File Names for Clay and Sass

Although Sass was available in Liferay Portal 6.2, only Sass partial files followed the Sass naming convention (using file suffix .scss). In Liferay DXP 7.1 themes, all Sass files must end in scss, and aui filename prefixes have been replaced with clay to reflect the introduction of Clay (previously Lexicon CSS).

Follow these steps to update your CSS file names manually:

  1. Change each CSS file name’s suffix in your theme from .css to .scss, then prepend an underscore (_) to all Sass partial file names, except main.scss and aui.scss. The Lunar Resort’s updated files are shown below:

    - `css/`
      - `_aui_variables.scss`
      - `_custom.scss`
    
  2. Rename any CSS files that use the name aui in your theme to use the name clay instead. Below are the Lunar Resort’s updated CSS file names:

    - `css/`
      - `_clay_variables.scss`
      - `_custom.scss` 
    

The full list of core files to rename is shown below for reference. If you modified a CSS file shown in the table below, you must update its name. If you didn’t modify the file, no action is required:

CSS File Name Updates

Original CSS File Name Updated CSS File Name
application.css_application.scss
aui.cssclay.scss
base.css_base.scss
custom.css_custom.scss
dockbar.cssremoved
extras.css_extras.scss
layout.css_layout.scss
main.cssmain.scss
navigation.css_navigation.scss
portal.css_portal.scss
portlet.css_portlet.scss
taglib.css_taglib.scss

Running the Gulp Upgrade Task for 6.2 Themes

Updating 6.2 CSS Rules

« Updating 6.2 CSS CodeUpdating 6.2 CSS Rules and Imports »
¿Fue útil este artículo?
Usuarios a los que les pareció útil: 0 de 0