ifont: Reorganize files and drop use less attributes

fixes #6417
This commit is contained in:
Marius Hein 2015-01-29 11:25:37 +01:00
parent ab95ae622c
commit c1df1f822e
18 changed files with 14 additions and 19 deletions

View File

@ -1,8 +1,8 @@
@font-face {
font-family: 'ifont';
src: url('@{baseurl}/fonts/fontello-ifont/font/ifont.eot?75097146');
src: url('@{baseurl}/fonts/fontello-ifont/font/ifont.eot?75097146#iefix') format('embedded-opentype'),
url('@{baseurl}/fonts/fontello-ifont/ifont.svg?75097146#ifont') format('svg');
src: url('../font/ifont.eot?75097146');
src: url('../font/ifont.eot?75097146#iefix') format('embedded-opentype'),
url('../font/ifont.svg?75097146#ifont') format('svg');
font-weight: normal;
font-style: normal;
}

View File

@ -0,0 +1,9 @@
# fontello-ifont font files moved
New target is: public/font
The font directory has been moved to the public structure because of
Internet Explorer version 8 compatibility. The common way for browsers is to
include the binary embeded font type in the javascript. IE8 falls back and
include one of the provided font sources. Therefore it is important to have
the font files available public and exported by the HTTP server.

View File

@ -38,19 +38,11 @@ class LessCompiler
/**
* Create a new instance
*
* @param string $basePath Provide web base path optional
*/
public function __construct($basePath = null)
{
require_once 'lessphp/lessc.inc.php';
$this->lessc = new lessc();
$this->lessc->setVariables(
array(
'baseurl' => '\'' . $basePath. '\''
)
);
}
public function compress()

View File

@ -11,7 +11,7 @@ use Icinga\Web\LessCompiler;
class StyleSheet
{
protected static $lessFiles = array(
'fonts/fontello-ifont/css/ifont-embedded.less',
'../application/fonts/fontello-ifont/css/ifont-embedded.css',
'css/vendor/tipsy.css',
'css/icinga/defaults.less',
'css/icinga/layout-colors.less',
@ -97,7 +97,7 @@ class StyleSheet
return;
}
$less = new LessCompiler(dirname($_SERVER['PHP_SELF']));
$less = new LessCompiler();
foreach ($lessFiles as $file) {
$less->addFile($file);
}

View File

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 52 KiB

View File

@ -1,6 +0,0 @@
# fontello-ifont has been moved
The font directory has been moved to the public structure because of Internet Explorer version 8 compatibility. The
common way for browsers is to include the binary embeded font type in the javascript. IE8 falls back and include one of
the provided font sources. Therefore it is important to have the font files available public and exported by the
HTTP server.