[英]Sass $base_color change not working on Sencha Touch
我是SaaS和Sencha Touch的新手,但我试图将基础颜色更改为漂亮的绿色。 这是我的rbTheme.scss文件中的代码:
$base_color: #546346;
// The following two lines import the default Sencha Touch theme. If you are building
// a new theme, remove them and the add your own CSS on top of the base CSS (which
// is already included in your app.json file).
@import 'sencha-touch/default';
@import 'sencha-touch/default/all';
// Custom code goes here..
// Examples of using the icon mixin:
// @include icon('user');
我已将app.json中的CSS路径更改为rbTheme.css,并且我也使用罗盘进行了编译,但似乎没有什么不同。
经过仔细检查,它似乎已插入CSS,但仍未显示?
根据此博客文章 ,也许您可能在base_color
变量上需要一个额外的!default
属性。 像这样:
$base_color: #546346 !default;
// The following two lines import the default Sencha Touch theme. If you are building
// a new theme, remove them and the add your own CSS on top of the base CSS (which
// is already included in your app.json file).
@import 'sencha-touch/default';
@import 'sencha-touch/default/all';
// Custom code goes here..
// Examples of using the icon mixin:
// @include icon('user');
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.