-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Fix: @font-face path if importing bootstrap.less from another directory. #10941
Conversation
src: ~"url('@{icon-font-path}@{icon-font-name}.eot?iefix') format('embedded-opentype')", | ||
~"url('@{icon-font-path}@{icon-font-name}.woff') format('woff')", | ||
~"url('@{icon-font-path}@{icon-font-name}.ttf') format('truetype')", | ||
~"url('@{icon-font-path}@{icon-font-name}.svg#glyphicons-halflingsregular') format('swg')"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Um, "swg" ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no idea, how i made this typo. Thanks for noticing.
…-wip Conflicts: less/glyphicons.less
Travis build has failed because of some network timeout errors, weird. |
Fixed manually given conflicts and several commits here. Thanks! |
…strap.less from another directory
I don't think that this fix is necessary. The less parser should be used with the |
+1 @jhnns I would give a veto to the fix. can we re-open this issue? @mdo |
👍 |
Let the less compiler handle `url`s. See `--relative-urls` flag of `lessc`. This should result in correct behavior if bootstrap is `@import`ed from another less file.
…strap.less from another directory
This includes @font-face path fix, if bootstrap.less is included from another directory.
For example:
Project.less file includes bootstrap.less from above directory, then @font-face path would be relative to bootstrap.less file itself not to project.less files.
This commit makes @font-face paths relative to actual project.less file.
Same issues is with v2.3.2, for which i have created pull request also.