What is the priority of asset pipeline?
I am trying to replace a part of ace.css
style with user.css.scss
.
The stylesheet file ace.css
in the vendor folder should be overridden by user.css.scss
.
However, it did not work as expected even when I included ace.css between user.css.scss, essentially importing user.css twice.
user.css.scss
div#user_bottom a.btn{
color: red;
background-color: #ffffff;
}
ace.css
.btn {
display: inline-block;
color: #FFF !important;
background-image: none !important;
}
layout file
I attempted to include user.css.scss TWICE.
Once before ace.css and once after ace.css.
= stylesheet_link_tag params[:controller]
%link{href: asset_path("ace-admin-theme/css/uncompressed/ace.css"), rel: "stylesheet"}/
= stylesheet_link_tag params[:controller]
The haml
%div#user_bottom
%a.btn{class: "btn-#{button_color}",href: url }
result
user.css.scss is still being overridden by ace.css.