简体   繁体   中英

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

I cant seem to figure out what i am doing wrong. I have added custom files. I have tried to override the current ones.

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
 */

i should be able to just add another style sheet correct?

What i had to do was add

@import '<insert file name here>'

It then worked.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM