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:
-
Change each CSS file name’s suffix in your theme from
.css
to.scss
, then prepend an underscore (_
) to all Sass partial file names, exceptmain.scss
andaui.scss
. The Lunar Resort’s updated files are shown below:- `css/` - `_aui_variables.scss` - `_custom.scss`
-
Rename any CSS files that use the name
aui
in your theme to use the nameclay
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.css | clay.scss |
base.css | _base.scss |
custom.css | _custom.scss |
dockbar.css | removed |
extras.css | _extras.scss |
layout.css | _layout.scss |
main.css | main.scss |
navigation.css | _navigation.scss |
portal.css | _portal.scss |
portlet.css | _portlet.scss |
taglib.css | _taglib.scss |