如何避免导入的css覆盖其他css

时间:2014-04-21 01:58:26

标签: css ruby-on-rails ruby-on-rails-4 compass-sass

@import "compass";会覆盖

*= require_tree ../lenord-single-page-theme/css
*= require_tree ../ace-admin-theme/css

如何在不覆盖其他css文件的情况下导入@compass?

application.css

@import "compass";

/*
 * 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 top of the
 * compiled file, but it's generally better to create a new file per style scope.
 *
 *= require_tree ../lenord-single-page-theme/css
 *= require_tree ../ace-admin-theme/css
 *= require_self
 *= require_tree .
 */

0 个答案:

没有答案