官术网_书友最值得收藏!

Theming up SASS

Ionic has support for SASS (CSS extension language) to create, customize, and maintain CSS. It eases the process of customizing the existing colors and themes of Ionic for specific platforms. Ionic 3 as a default has SASS setup and you will find that inside the theme folder there will be an variable.scss file. In this file we will be doing custom color changes and overriding platform variables.
Earlier in Ionic 1x, the application was hooked to the Ionic's precompiled files, which you can find at the www/lib/ionic/css directory, and file resources and paths are linked in index.html. Previously, in Ionic 1x, we used to set up SASS using CLI:

    $ ionic setup sass

This used to automatically remove other file paths and uncomment the ionic.app.css files used for SASS styling inside index.html. Now with Ionic 3 we don't have to set up SASS, it comes by default when we start or create an application.

主站蜘蛛池模板: 南川市| 石河子市| 宜宾市| 宝兴县| 武穴市| 宁陕县| 蓬莱市| 云龙县| 呼玛县| 隆子县| 中阳县| 沂水县| 新兴县| 柯坪县| 海晏县| 综艺| 锦州市| 黄山市| 安溪县| 安仁县| 乌什县| 陕西省| 株洲市| 兴安县| 巴塘县| 凤凰县| 唐河县| 武鸣县| 青田县| 沐川县| 临朐县| 延川县| 庆城县| 浦城县| 扎囊县| 文成县| 扎兰屯市| 天全县| 凌源市| 全州县| 淳化县|