-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes to Bootstrap Font Variables not working #333
Comments
I always have to make sure that the right controller is mapped to the corresponding layout (unless application wide) and the corresponding scss file. The arrangement of precedence matters. Just brainstorm some pointers |
Hi @theoptips, thanks for the help, but it is an application wide css file, with no other import statements. All my other variables work perfectly, that's what confuses me. I have checked to make sure the gem is updated as well:
|
marketing.css.scss shows me that it is a specific scss styling for views in the marketing controller can you check your view/layout file? marketing.html.erb? If stylesheet isn't linked to the corresponding scss file, styling won't take effect. <%= stylesheet_link_tag "placeholder" %> Got an online repo to share? :3 |
$baseFontSize works for me but not the others ($fontSizeLarge, $fontSizeSmall and $fontSizeMini) $baseFontSize: 10px;
$fontSizeLarge: 13px;
$fontSizeSmall: 14px;
$fontSizeMini: 16px;
@import 'bootstrap';
.test {
font-size: $baseFontSize; // 10px
font-size: $fontSizeLarge; // 12.5px (which is 10 * 1.25)
font-size: $fontSizeSmall; // 8.5px (10 * 0.85)
font-size: $fontSizeMini; // 7.5px (10 * 0.75)
} This error come from _bootstrap-sass/vendor/assets/stylesheets/bootstrap/variables.scss |
I just pushed 2.3.1.1, which fixes this. Thank you. |
In my
marketing.css.scss
file I have the following:Unfortunately, as I note above, any changes to the
fontSizeLarge
andbaseFontSize
variables do not seem to have any effect on the generated Bootstrap css file.The text was updated successfully, but these errors were encountered: