diff --git a/Gruntfile.js b/Gruntfile.js
index 4516193f..9ffe3269 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -178,6 +178,26 @@ module.exports = function (grunt) {
}
},
+ /**
+ * Compile our SVG's into fonts. This is a utility method only which
+ * needs to be executed manually.
+ */
+ webfont: {
+ custom_icons: {
+ src: dir.source + '/fonts/src/*.svg',
+ dest: dir.source + '/fonts',
+ destCss: dir.source + '/theme/base',
+ options: {
+ font: 'custom_icons',
+ syntax: 'bem',
+ htmlDemo: false,
+ stylesheet: 'css',
+ relativeFontPath: '../../fonts',
+ hashes: false
+ }
+ }
+ },
+
/**
* grunt html2js
*
diff --git a/package.json b/package.json
index 1253b13a..083ad292 100644
--- a/package.json
+++ b/package.json
@@ -53,6 +53,7 @@
"grunt-protractor-runner": "0.2.3",
"selenium-standalone": "2.39.0-2.7.0",
"karma-html-reporter": "0.1.1",
- "grunt-connect-proxy": "0.1.10"
- }
+ "grunt-connect-proxy": "0.1.10",
+ "grunt-webfont": "0.4.2"
+ }
}
diff --git a/src/app/storyboard/template/header_menu.html b/src/app/storyboard/template/header_menu.html
index 61d0f646..f322976a 100644
--- a/src/app/storyboard/template/header_menu.html
+++ b/src/app/storyboard/template/header_menu.html
@@ -31,7 +31,10 @@
diff --git a/src/fonts/custom_font_icons.eot b/src/fonts/custom_font_icons.eot
deleted file mode 100644
index a2c2073a..00000000
Binary files a/src/fonts/custom_font_icons.eot and /dev/null differ
diff --git a/src/fonts/custom_font_icons.ttf b/src/fonts/custom_font_icons.ttf
deleted file mode 100644
index 7df7ca39..00000000
Binary files a/src/fonts/custom_font_icons.ttf and /dev/null differ
diff --git a/src/fonts/custom_font_icons.woff b/src/fonts/custom_font_icons.woff
deleted file mode 100644
index 18df7d64..00000000
Binary files a/src/fonts/custom_font_icons.woff and /dev/null differ
diff --git a/src/fonts/custom_icons.eot b/src/fonts/custom_icons.eot
new file mode 100644
index 00000000..2f076219
Binary files /dev/null and b/src/fonts/custom_icons.eot differ
diff --git a/src/fonts/custom_icons.svg b/src/fonts/custom_icons.svg
new file mode 100644
index 00000000..7843ec99
--- /dev/null
+++ b/src/fonts/custom_icons.svg
@@ -0,0 +1,37 @@
+
+
+
+
diff --git a/src/fonts/custom_icons.ttf b/src/fonts/custom_icons.ttf
new file mode 100644
index 00000000..b8c1b68a
Binary files /dev/null and b/src/fonts/custom_icons.ttf differ
diff --git a/src/fonts/custom_icons.woff b/src/fonts/custom_icons.woff
new file mode 100644
index 00000000..5110ba70
Binary files /dev/null and b/src/fonts/custom_icons.woff differ
diff --git a/src/fonts/src/openstack.svg b/src/fonts/src/openstack.svg
new file mode 100644
index 00000000..ea799163
--- /dev/null
+++ b/src/fonts/src/openstack.svg
@@ -0,0 +1,87 @@
+
+
+
+
\ No newline at end of file
diff --git a/src/fonts/src/storyboard.svg b/src/fonts/src/storyboard.svg
new file mode 100644
index 00000000..d3fdb3cc
--- /dev/null
+++ b/src/fonts/src/storyboard.svg
@@ -0,0 +1,21 @@
+
+
+
diff --git a/src/theme/base/body.less b/src/theme/base/body.less
index 34808b29..6deb08d6 100644
--- a/src/theme/base/body.less
+++ b/src/theme/base/body.less
@@ -43,8 +43,4 @@ body {
body {
margin-left: @navbar-fixed-side-width-lg;
}
-}
-
-i.icon {
- line-height: .5em;
-}
+}
\ No newline at end of file
diff --git a/src/theme/base/custom_font_icons.less b/src/theme/base/custom_font_icons.less
deleted file mode 100644
index e396a3cb..00000000
--- a/src/theme/base/custom_font_icons.less
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright (c) 2014 Hewlett-Packard Development Company, L.P.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License. You may obtain
- * a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations
- * under the License.
- */
-
-@font-face {
- font-family: custom_font_icons;
- src: url(../../fonts/custom_font_icons.eot);
- src: url(../../fonts/custom_font_icons.eot?#iefix) format("embedded-opentype"), url(../../fonts/custom_font_icons.woff) format("woff"), url(../../fonts/custom_font_icons.ttf) format("truetype");
- font-weight: 400;
- font-style: normal
-}
-
-.icon {
- font-family: custom_font_icons;
- display: inline-block;
- font-weight: 400;
- font-style: normal;
- speak: none;
- text-decoration: inherit;
- text-transform: none;
- text-rendering: optimizeLegibility;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale
-}
-
-.icon_openstack:before {
- content: "\f100"
-}
\ No newline at end of file
diff --git a/src/theme/base/custom_icons.less b/src/theme/base/custom_icons.less
new file mode 100644
index 00000000..7dc6c149
--- /dev/null
+++ b/src/theme/base/custom_icons.less
@@ -0,0 +1,58 @@
+// Generated by grunt-webfont
+
+
+
+@font-face {
+ font-family:"custom_icons";
+ src:url("../fonts/custom_icons.eot");
+ font-weight:normal;
+ font-style:normal;
+}
+@font-face {
+ font-family:"custom_icons";
+ src:url("../fonts/custom_icons.eot");
+ src:url("../fonts/custom_icons.eot?#iefix") format("embedded-opentype"),
+ url("../fonts/custom_icons.woff") format("woff"),
+ url("../fonts/custom_icons.ttf") format("truetype"),
+ url("../fonts/custom_icons.svg?#custom_icons") format("svg");
+ font-weight:normal;
+ font-style:normal;
+}
+
+.icon {
+ font-family:"custom_icons";
+ display:inline-block;
+ vertical-align:middle;
+ line-height:1;
+ font-weight:normal;
+ font-style:normal;
+ speak:none;
+ text-decoration:inherit;
+ text-transform:none;
+ text-rendering:optimizeLegibility;
+ -webkit-font-smoothing:antialiased;
+ -moz-osx-font-smoothing:grayscale;
+}
+
+
+// Icons
+
+.icon-openstack() {
+ &:before {
+ content:"\e001";
+ }
+
+}
+.icon_openstack{
+ .icon-openstack();
+}
+
+.icon-storyboard() {
+ &:before {
+ content:"\e002";
+ }
+
+}
+.icon_storyboard{
+ .icon-storyboard();
+}
diff --git a/src/theme/main.less b/src/theme/main.less
index d1d7693a..c2ef5127 100644
--- a/src/theme/main.less
+++ b/src/theme/main.less
@@ -30,7 +30,7 @@
// Addons to the bootstrap theme.
@import './base/bootstrap_addons.less';
// Add our own custom icon font.
-@import './base/custom_font_icons.less';
+@import './base/custom_icons.less';
// Module specific styles
@import './base/notification.less';
@import './base/body.less';