parent
ab95ae622c
commit
c1df1f822e
|
@ -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;
|
||||
}
|
|
@ -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.
|
|
@ -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()
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 52 KiB |
|
@ -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.
|
Loading…
Reference in New Issue