In my theme, I want to override some styles of the Orchard.Search module, more specifically the search form (Parts/Search.SearchForm.cshtml). The module styles are defined in a file called
. Those styles are included in the SearchForm template with
I include my style sheets in my Layout.cshtml file using Style.Include("styles.css");
The way I understand it, my styles.css
should be taking precedence over the
so my theme can override module styles, is that correct?
The reality is just the opposite. The module css gets loaded last, so my overrides are not taking effect.
I can work around this using !important; in my style sheet, but I was convinced that in theory, theme styles should take precedence so they can easily override a modules appearance.
Am I overlooking something?