我有一个主要的styles.scss像这样:
//@import "../components/bootstrap/scss/bootstrap"; // Core variables and mixins @import "../components/bootstrap/scss/functions"; @import "../components/bootstrap/scss/mixins"; @import "components/variables"; @import "../components/bootstrap/scss/variables";
我尝试覆盖我的组件/变量中的成功变量,如下所示:
$green:#71c835!important;
但它不断拾取bootstrap variables.scss的颜色
$green:#28a745!默认;
为了创建一个清晰的视图,我已经尝试切换这两个文件的顺序,如下所示:
// Core variables and mixins @import "../components/bootstrap/scss/functions"; @import "../components/bootstrap/scss/mixins"; @import "../components/bootstrap/scss/variables"; @import "components/variables";
它真的让我发疯,我怎么能简单地覆盖引导变量
解决方法
原文地址:https://www.jb51.cc/bootstrap/233917.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。