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

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.

主站蜘蛛池模板: 那坡县| 七台河市| 临洮县| 鲁甸县| 中牟县| 栾城县| 田林县| 兴安县| 苍梧县| 西安市| 巴东县| 舟曲县| 周口市| 洛隆县| 利川市| 松溪县| 山东省| 田林县| 陆河县| 灵武市| 五华县| 台江县| 永州市| 保山市| 万年县| 南投县| 山丹县| 雷波县| 佛学| 宁阳县| 宁国市| 通辽市| 金山区| 贵德县| 池州市| 敖汉旗| 安义县| 普洱| 广昌县| 澄江县| 沙雅县|