Skip to content
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

Closed
wants to merge 4 commits into from
Closed

Fix: @font-face path if importing bootstrap.less from another directory. #10941

wants to merge 4 commits into from

Conversation

raido
Copy link

@raido raido commented Oct 4, 2013

This includes @font-face path fix, if bootstrap.less is included from another directory.

For example:

Project root /
  bower_components/bootstrap/less/bootstrap.less
  less/project.less

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.

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')";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Um, "swg" ?

Copy link
Author

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.

@raido
Copy link
Author

raido commented Nov 11, 2013

Travis build has failed because of some network timeout errors, weird.

@mdo mdo closed this in 556d6ce Dec 1, 2013
@mdo
Copy link
Member

mdo commented Dec 1, 2013

Fixed manually given conflicts and several commits here. Thanks!

@jhnns
Copy link

jhnns commented Apr 11, 2014

I don't think that this fix is necessary. The less parser should be used with the --relative-urls-option in this case. They even suggest to regress this commit.

@normanzb
Copy link

normanzb commented May 1, 2014

+1 @jhnns
it would be actually good idea to make sure fonts are relative to bootstrap.less (when --relative-urls is used) as i don't have to copy over the fonts from bower folder to project folder, a simple bower install should do the job.

I would give a veto to the fix.

can we re-open this issue? @mdo

@jhnns
Copy link

jhnns commented May 3, 2014

👍

sokra added a commit to sokra/bootstrap that referenced this pull request May 8, 2014
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.
mdo added a commit that referenced this pull request May 8, 2014
mdo added a commit that referenced this pull request Jun 8, 2014
@mdo mdo mentioned this pull request Jun 8, 2014
stempler pushed a commit to stempler/bootstrap that referenced this pull request Nov 4, 2014
stempler pushed a commit to stempler/bootstrap that referenced this pull request Nov 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants