簡體   English   中英

我無法將自定義CSS添加到我的rails / bootstrap項目中

[英]i can't add custom css to my rails / bootstrap project

我似乎無法弄清楚我在做什么錯。 我添加了自定義文件。 我試圖覆蓋當前的。

application.css.scss

@import 'bootstrap-sprockets';
@import 'bootstrap';

/*
 * This is a manifest file that'll be compiled into application.css, which will include all the    files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
 * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any styles
 * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
 * file per style scope.
 *
 *= require_tree .
 *= require_self
 */

我應該能夠只添加另一個樣式表正確嗎?

我要做的就是添加

@import '<insert file name here>'

然后它起作用了。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM