Permalink
Browse files

Inline and compress CSS

  • Loading branch information...
rafaeleyng committed Nov 1, 2015
1 parent 96187be commit 12ed5810d2edf6a967154cd14ee77b69ccf25c7f
Showing with 20 additions and 17 deletions.
  1. +6 −1 _includes/head.html
  2. +1 −0 _includes/inline.scss
  3. +13 −13 _sass/config/_typography.scss
  4. +0 −3 {assets/css → _sass}/main.scss
View
@@ -31,7 +31,12 @@
<!-- CSS
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<link rel="stylesheet" href="{{ "/assets/css/main.css" | prepend: site.baseurl }}">
<style type="text/css">
{% capture include_to_scssify %}
{% include inline.scss %}
{% endcapture %}
{{ include_to_scssify | scssify }}
</style>
<!-- Favicon
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
View
@@ -0,0 +1 @@
@import "main";
@@ -1,18 +1,18 @@
@font-face {
font-family: 'GothamBold';
src: url("../fonts/gotham-bold.eot");
src: url("../fonts/gotham-bold.eot") format("embedded-opentype"),
url("../fonts/gotham-bold.woff2") format("woff2"),
url("../fonts/gotham-bold.woff") format("woff"),
url("../fonts/gotham-bold.ttf") format("truetype"),
url("../fonts/gotham-bold.svg#GothamBold") format("svg");
src: url("../assets/fonts/gotham-bold.eot");
src: url("../assets/fonts/gotham-bold.eot") format("embedded-opentype"),
url("../assets/fonts/gotham-bold.woff2") format("woff2"),
url("../assets/fonts/gotham-bold.woff") format("woff"),
url("../assets/fonts/gotham-bold.ttf") format("truetype"),
url("../assets/fonts/gotham-bold.svg#GothamBold") format("svg");
}
@font-face {
font-family: 'GothamBook';
src: url("../fonts/gotham-book.eot");
src: url("../fonts/gotham-book.eot") format("embedded-opentype"),
url("../fonts/gotham-book.woff2") format("woff2"),
url("../fonts/gotham-book.woff") format("woff"),
url("../fonts/gotham-book.ttf") format("truetype"),
url("../fonts/gotham-book.svg#GothamBook") format("svg");
}
src: url("../assets/fonts/gotham-book.eot");
src: url("../assets/fonts/gotham-book.eot") format("embedded-opentype"),
url("../assets/fonts/gotham-book.woff2") format("woff2"),
url("../assets/fonts/gotham-book.woff") format("woff"),
url("../assets/fonts/gotham-book.ttf") format("truetype"),
url("../assets/fonts/gotham-book.svg#GothamBook") format("svg");
}
View
@@ -1,6 +1,3 @@
---
# Only the main Sass file needs front matter (the dashes are enough)
---
@charset "utf-8";
@import

0 comments on commit 12ed581

Please sign in to comment.