mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 00:34:03 +02:00
parent
ab95ae622c
commit
c1df1f822e
@ -1,8 +1,8 @@
|
|||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'ifont';
|
font-family: 'ifont';
|
||||||
src: url('@{baseurl}/fonts/fontello-ifont/font/ifont.eot?75097146');
|
src: url('../font/ifont.eot?75097146');
|
||||||
src: url('@{baseurl}/fonts/fontello-ifont/font/ifont.eot?75097146#iefix') format('embedded-opentype'),
|
src: url('../font/ifont.eot?75097146#iefix') format('embedded-opentype'),
|
||||||
url('@{baseurl}/fonts/fontello-ifont/ifont.svg?75097146#ifont') format('svg');
|
url('../font/ifont.svg?75097146#ifont') format('svg');
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
9
application/fonts/icingaweb.md
Normal file
9
application/fonts/icingaweb.md
Normal 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.
|
@ -38,19 +38,11 @@ class LessCompiler
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new instance
|
* Create a new instance
|
||||||
*
|
|
||||||
* @param string $basePath Provide web base path optional
|
|
||||||
*/
|
*/
|
||||||
public function __construct($basePath = null)
|
public function __construct($basePath = null)
|
||||||
{
|
{
|
||||||
require_once 'lessphp/lessc.inc.php';
|
require_once 'lessphp/lessc.inc.php';
|
||||||
$this->lessc = new lessc();
|
$this->lessc = new lessc();
|
||||||
|
|
||||||
$this->lessc->setVariables(
|
|
||||||
array(
|
|
||||||
'baseurl' => '\'' . $basePath. '\''
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function compress()
|
public function compress()
|
||||||
|
@ -11,7 +11,7 @@ use Icinga\Web\LessCompiler;
|
|||||||
class StyleSheet
|
class StyleSheet
|
||||||
{
|
{
|
||||||
protected static $lessFiles = array(
|
protected static $lessFiles = array(
|
||||||
'fonts/fontello-ifont/css/ifont-embedded.less',
|
'../application/fonts/fontello-ifont/css/ifont-embedded.css',
|
||||||
'css/vendor/tipsy.css',
|
'css/vendor/tipsy.css',
|
||||||
'css/icinga/defaults.less',
|
'css/icinga/defaults.less',
|
||||||
'css/icinga/layout-colors.less',
|
'css/icinga/layout-colors.less',
|
||||||
@ -97,7 +97,7 @@ class StyleSheet
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$less = new LessCompiler(dirname($_SERVER['PHP_SELF']));
|
$less = new LessCompiler();
|
||||||
foreach ($lessFiles as $file) {
|
foreach ($lessFiles as $file) {
|
||||||
$less->addFile($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…
x
Reference in New Issue
Block a user