2
Good afternoon, I’m trying to work with bootstrap-sass
and sass
, However, by including an icon in my class, nothing happens. Below follows the line of code that represents the same, I wonder if I should configure something else to use Bs fonts or if I’m doing something wrong.
Note: I do not know if it comes to the case but for the backend I am using Django 1.9.
@import "../vendor/bootstrap/assets/stylesheets/_bootstrap-sprockets.scss";
@import "../vendor/bootstrap/assets/stylesheets/_bootstrap.scss";
.tablestyle{
@extend .col-md-6, .col-md-offset-2;
.table{
@extend .table, .table-striped;
.info{
@extend .btn, .btn-info, .btn-xs;
}
.edit{
@extend .glyphicon, .glyphicon-edit;
}
}
}
If you only use the Glyph class, does it work? Directly to Glyph class in html.
– celsomtrindade
Bootstrap already imports glyphicons, so you don’t need to import again, just use directly
<span class="glyphicon glyphicon-edit></span>"
. Another thing is that in Bootstrap you reference the glyphicon byglyphicon glyphicon-user
, example. You don’t need the.scss
in their@import
. Check this out: http://stackoverflow.com/questions/18369036/bootstrap-3-glyphicons-are-notworking– StillBuggin
@Celsomtrindade already tried this and it doesn’t work either.
– dhelbegor
@Eduardoalmeida used what was in Question that you indicated me, I overwritten the font-face path and it worked. thanks!
– dhelbegor
I’m glad I could help!
– StillBuggin
Put your solution and mark as answer, please.
– StillBuggin