![](/img/trans.png)
[英]How to enable header_editor_enable in graphiql-rails gem?
[英]How to enable flexbox in bootstrap 4 rails gem
我啟動了一個rails項目,並將bootstrap gem添加到Gemfile中。 現在我想啟用flexbox,根據bootstrap 4 文檔,它是通過編輯_variable.scss $enable-flex: true
。
我在global.scss
添加了$enable-flex: true
,並將此文件添加到了application.scss
。 但這不起作用。
添加$enable-flex: true;
在application.scss
,在@import "bootstrap";
行之前 @import "bootstrap";
有用:
application.scss
$enable-flex: true;
// Custom bootstrap variables must be set or imported before bootstrap itself.
@import "bootstrap";
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.