In an existing project, the CSS files are compiled with less
. In web/css/
I have three files: all.less
, main.less
and styles.less
:
web/css/all.less
:
@import '../vendor/bootstrap-2.3.2/less/bootstrap.less';
@import 'styles.less';
@import 'main.less';
In styles.less
file I've added the next line:
.btn {
font-size: 13px !important;
}
This class (.btn
), has not more !important
tags.
Then I compile the all.less
file with command line:
lessc web/css/all.less
and the compiled file (web/compiled/b2b7f11.css
) has the added lines (.btn {...
).
This CSS file is called from a template:
{% stylesheets output='compiled/css/*.css' 'css/all.less' %}
<link rel="stylesheet" href="{{ asset_url }}" />
{% endstylesheets %}
but when I reload the browser (after clearing browser cache), the changes (font-size
) are not loaded. The font-size
rule still keep the older value (14px
). Any idea of what I'm missing?
I'm working on a development environment, so I don't need to clear cache.