Skip to content

Commit

Permalink
Added backend menu icon
Browse files Browse the repository at this point in the history
  • Loading branch information
sydekumf committed Feb 17, 2017
1 parent c337b28 commit 93d91eb
Show file tree
Hide file tree
Showing 7 changed files with 232 additions and 2 deletions.
4 changes: 2 additions & 2 deletions etc/adminhtml/menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
<menu>
<add id="Magenerds_Dashboard::dashboard"
<add id="Magenerds_Dashboard::magenerds"
title="Magenerds"
module="Magenerds_Dashboard"
sortOrder="9999"
sortOrder="100"
resource="Magento_Backend::content"
action="magenerds/dashboard"
/>
Expand Down
6 changes: 6 additions & 0 deletions view/adminhtml/layout/default.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
<css src="Magenerds_Dashboard::css/menu.css"/>
</head>
</page>
28 changes: 28 additions & 0 deletions view/adminhtml/web/css/menu.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
@charset "UTF-8";
@font-face {
font-family: "magenerds";
src:url("../fonts/magenerds.eot");
src:url("../fonts/magenerds.eot?#iefix") format("embedded-opentype"),
url("../fonts/magenerds.woff") format("woff"),
url("../fonts/magenerds.ttf") format("truetype"),
url("../fonts/magenerds.svg#magenerds") format("svg");
font-weight: normal;
font-style: normal;
}
.admin__menu .item-magenerds > a:before {
font-size: 5.2rem !important;
font-family: "magenerds" !important;
font-style: normal !important;
font-weight: normal !important;
font-variant: normal !important;
text-transform: none !important;
speak: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
content: "\e001" !important;
padding-bottom: 5.3rem !important;
}
.admin__menu .item-magenerds > a {
padding-top: 0 !important;
}
Binary file added view/adminhtml/web/fonts/magenerds.eot
Binary file not shown.
196 changes: 196 additions & 0 deletions view/adminhtml/web/fonts/magenerds.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added view/adminhtml/web/fonts/magenerds.ttf
Binary file not shown.
Binary file added view/adminhtml/web/fonts/magenerds.woff
Binary file not shown.

0 comments on commit 93d91eb

Please sign in to comment.