diff --git a/configuration.php b/configuration.php index 69ebaa76..81295f56 100644 --- a/configuration.php +++ b/configuration.php @@ -221,7 +221,6 @@ namespace Icinga\Module\Icingadb $this->provideCssFile('lists.less'); $this->provideCssFile('mixins.less'); $this->provideCssFile('widgets.less'); - $this->provideCssFile('icinga-icons.less'); $this->provideJsFile('action-list.js'); $this->provideJsFile('migrate.js'); diff --git a/library/Icingadb/Widget/IcingaIcon.php b/library/Icingadb/Widget/IcingaIcon.php deleted file mode 100644 index 608d965b..00000000 --- a/library/Icingadb/Widget/IcingaIcon.php +++ /dev/null @@ -1,31 +0,0 @@ -. The given - * name will be used as automatically added CSS class for the icon element in the format 'iicon-$name'. In addition, - * the CSS class 'icon' will be automatically added too. - * - * @param string $name The name of the icon - * @param Attributes|array $attributes The HTML attributes for the element - */ - public function __construct($name, $attributes = null) - { - $this - ->getAttributes() - ->add('class', ['icon', "iicon-$name"]) - ->add($attributes); - } -} diff --git a/library/Icingadb/Widget/ViewModeSwitcher.php b/library/Icingadb/Widget/ViewModeSwitcher.php index aaac4227..45c0771c 100644 --- a/library/Icingadb/Widget/ViewModeSwitcher.php +++ b/library/Icingadb/Widget/ViewModeSwitcher.php @@ -7,6 +7,7 @@ namespace Icinga\Module\Icingadb\Widget; use ipl\Html\BaseHtmlElement; use ipl\Html\Html; use ipl\Web\Url; +use ipl\Web\Widget\IcingaIcon; use ipl\Web\Widget\Link; class ViewModeSwitcher extends BaseHtmlElement diff --git a/public/css/icinga-icons.less b/public/css/icinga-icons.less deleted file mode 100644 index a5a4d5ff..00000000 --- a/public/css/icinga-icons.less +++ /dev/null @@ -1,45 +0,0 @@ -/* Icinga DB Web | (c) 2020 Icinga GmbH | GPLv2 */ - -@font-face { - font-family: 'Icinga-Icons'; - src: url('../icingadb/static?file=font/Icinga-Icons.eot'); - src: url('../icingadb/static?file=font/Icinga-Icons.eot') format('embedded-opentype'), - url('../icingadb/static?file=font/Icinga-Icons.ttf') format('truetype'), - url('../icingadb/static?file=font/Icinga-Icons.woff') format('woff'), - url('../icingadb/static?file=font/Icinga-Icons.svg') format('svg'); - font-weight: normal; - font-style: normal; - font-display: block; -} - -[class^="iicon-"]:before, [class*=" iicon-"]:before { - /* use !important to prevent issues with browser extensions that change fonts */ - font-family: 'Icinga-Icons' !important; - speak: none; - font-style: normal; - font-weight: normal; - font-variant: normal; - text-transform: none; - line-height: 1em; - - /* Better Font Rendering =========== */ - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - - - display: inline-block; - text-decoration: inherit; - width: 1em; - margin-right: .2em; - text-align: center; -} - -.iicon-minimal:before { - content: "\e900"; -} -.iicon-detailed:before { - content: "\e901"; -} -.iicon-default:before { - content: "\e902"; -} diff --git a/public/font/Icinga-Icons.eot b/public/font/Icinga-Icons.eot deleted file mode 100644 index b492a29c..00000000 Binary files a/public/font/Icinga-Icons.eot and /dev/null differ diff --git a/public/font/Icinga-Icons.svg b/public/font/Icinga-Icons.svg deleted file mode 100644 index 697a9514..00000000 --- a/public/font/Icinga-Icons.svg +++ /dev/null @@ -1,13 +0,0 @@ - - - -Generated by IcoMoon - - - - - - - - - \ No newline at end of file diff --git a/public/font/Icinga-Icons.ttf b/public/font/Icinga-Icons.ttf deleted file mode 100644 index 192416e1..00000000 Binary files a/public/font/Icinga-Icons.ttf and /dev/null differ diff --git a/public/font/Icinga-Icons.woff b/public/font/Icinga-Icons.woff deleted file mode 100644 index f7617298..00000000 Binary files a/public/font/Icinga-Icons.woff and /dev/null differ