Skip to content

Commit

Permalink
Removed important from css declaration in head element
Browse files Browse the repository at this point in the history
  • Loading branch information
webfonts committed Jul 18, 2012
1 parent a447ccd commit b853371
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified plg_webfonts.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion plugins/webfonts/helpers/head.php
Expand Up @@ -14,7 +14,7 @@ public function addStyleDeclaration($selector, $family, $fallBack = false, $styl
$buffer = (strpos($selector, 'body') !== 0) ? 'body ' : '';
$buffer .= $selector . " {" . PHP_EOL;
$buffer .= "font-family: '" . $family . "'";
$buffer .= ($fallBack) ? ", " . $fallBack . " !important;" . PHP_EOL : '!important;' . PHP_EOL;
$buffer .= ($fallBack) ? ", " . $fallBack . ";" . PHP_EOL : ';' . PHP_EOL;
$buffer .= ($weight && is_numeric($weight)) ? 'font-weight: ' . $weight . ';' . PHP_EOL : '';
$buffer .= ($style && ctype_alpha($style)) ? 'font-style: ' . $style . ';' . PHP_EOL : '';
$buffer .= "}" . PHP_EOL;
Expand Down
2 changes: 1 addition & 1 deletion plugins/webfonts/webfonts.xml
Expand Up @@ -7,7 +7,7 @@
<authorUrl>http://www.bluebridgedev.com</authorUrl>
<copyright>(C) 2011 Copyright Monotype Imaging</copyright>
<license>GPL Version 3 or Newer</license>
<version>2.0</version>
<version>2.0.2</version>
<description>PLG_WEBFONTS_DESCRIPTION</description>
<files>
<filename plugin="webfonts">webfonts.php</filename>
Expand Down

0 comments on commit b853371

Please sign in to comment.