Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Manual inline #1

Closed
ai opened this issue Nov 19, 2014 · 1 comment
Closed

Manual inline #1

ai opened this issue Nov 19, 2014 · 1 comment

Comments

@ai
Copy link
Contributor

ai commented Nov 19, 2014

Automatic inline by file size is a bad way (it is come from early Grunt tools). For example, I connect font files and I know, that italic bold version is used very rare. So I should have some inline() function:

@font-face {
  font-family: "Franklin Gothic";
  font-weight: normal;
  font-style: normal;
  src: inline("franklin-gothic/regular.woff") format("woff");
}

@font-face {
  font-family: "Franklin Gothic";
  font-weight: bold;
  font-style: normal;
  src: inline("franklin-gothic/demi.woff") format("woff");
}

@font-face {
  font-family: "Franklin Gothic";
  font-weight: bold;
  font-style: italic;
  src: font-url("franklin-gothic/demi-italic.woff") format("woff");
}

In Rails Assets we no use Rails Sass Images for this tasks with inline function.

/cc @borodean

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants