Created
November 2, 2014 15:23
-
-
Save eiriksm/1e8ff37c8c0e8641f1e7 to your computer and use it in GitHub Desktop.
First style hack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
print '<style>'; | |
$style = '' | |
foreach ($css as $c) { | |
// Do some checking of some media query stuff. | |
// ... | |
// Then store the raw CSS. | |
$style .= file_get_contents($c['data']); | |
} | |
//do some regex to remove some stuff, and remove whitespace. | |
print $style . '</style>'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment