The already posted questions on this topic didn't solve my problem:
I am trying to use Google Web Fonts in a Bootstrap website which compiles CSS with the LESS preprocessor. I am importing all relevant style sheets at the top of my frontend.less
as follows:
@import 'base.less';
@import '/bower_components/fontawesome/less/font-awesome.less';
@import (less) '/app/assets/less/superslides.css';
@import url(http://fonts.googleapis.com/css?family=Dancing+Script);
I can currently only apply the Web Fonts to tags on a global, non-nested level like so:
h2 {
font-family: 'Dancing Script', cursive;
}
However, when I try to use 'Dancing Script' on all h2
-tags within a specific div like #slideshow
, the web font is not working, e.g.:
#slideshow {
h2 { font-family: 'Dancing Script', cursive;
}
}
or
#slideshow h2 { font-family: 'Dancing Script', cursive;
}
Is this a bug or how do you correctly apply the font types to nested LESS?