Skip to content

Instantly share code, notes, and snippets.

@splatio
Last active December 22, 2015 01:59
Show Gist options
  • Save splatio/6400227 to your computer and use it in GitHub Desktop.
Save splatio/6400227 to your computer and use it in GitHub Desktop.
No query fallback handling in Omega.
<?php
// Allow themes to specify no-query fallback CSS files.
$mapping = omega_generate_asset_mapping($css);
foreach (preg_grep('/\.no-query(-rtl)?\.css/', $mapping) as $fallback) {
// Don't modify browser settings if they have already been modified.
if ($css[$mapping[$fallback]]['data'] == $fallback && $file['browsers']['IE'] && $file['browsers']['!IE']) {
$file['browsers'] = array(
'!IE' => FALSE,
'IE' => 'lte IE 8',
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment