use fontawesome

This commit is contained in:
Athou
2013-04-14 19:02:24 +02:00
parent 5be7c487ad
commit 405d68168b
4 changed files with 28 additions and 7 deletions

View File

@@ -20,6 +20,8 @@ import com.commafeed.frontend.references.angularui.AngularUIReference;
import com.commafeed.frontend.references.angularuibootstrap.AngularUIBootstrapReference;
import com.commafeed.frontend.references.angularuistate.AngularUIStateReference;
import com.commafeed.frontend.references.codemirror.CodeMirrorCssReference;
import com.commafeed.frontend.references.codemirror.CodeMirrorReference;
import com.commafeed.frontend.references.fontawesome.FontAwesomeReference;
import com.commafeed.frontend.references.mousetrap.MouseTrapReference;
import com.commafeed.frontend.references.nggrid.NGGridReference;
import com.commafeed.frontend.references.nginfinitescroll.NGInfiniteScrollReference;
@@ -48,7 +50,9 @@ public class HomePage extends BasePage {
SpinJSReference.renderHead(response);
MouseTrapReference.renderHead(response);
NGGridReference.renderHead(response);
CodeMirrorReference.renderHead(response);
CodeMirrorCssReference.renderHead(response);
FontAwesomeReference.renderHead(response);
response.render(JavaScriptHeaderItem.forUrl("js/main.js"));
response.render(JavaScriptHeaderItem.forUrl("js/controllers.js"));

View File

@@ -0,0 +1,23 @@
package com.commafeed.frontend.references.fontawesome;
import org.apache.wicket.markup.head.CssHeaderItem;
import org.apache.wicket.markup.head.IHeaderResponse;
import org.apache.wicket.request.Url;
import org.apache.wicket.request.resource.UrlResourceReference;
public class FontAwesomeReference extends UrlResourceReference {
private static final long serialVersionUID = 1L;
public static final FontAwesomeReference INSTANCE = new FontAwesomeReference();
public FontAwesomeReference() {
super(
Url.parse("https://netdna.bootstrapcdn.com/font-awesome/3.0.2/css/font-awesome.css"));
}
public static void renderHead(final IHeaderResponse response) {
response.render(CssHeaderItem.forReference(INSTANCE));
}
}

View File

@@ -1,9 +1,3 @@
@import url(http://weloveiconfonts.com/api/?family=openwebicons);
[class*="openwebicons-"]:before {
font-family: 'OpenWeb Icons', sans-serif;
}
.pointer {
cursor: pointer;
}

View File

@@ -1,6 +1,6 @@
<div ng-controller="SubscribeCtrl">
<div class="btn-group">
<button class="btn" ng-click="open()"><span class="openwebicons-feed-simple"></span> Subscribe</button>
<button class="btn" ng-click="open()"><span class="icon-rss"></span> Subscribe</button>
<button class="btn dropdown-toggle" data-toggle="dropdown">
<span class="caret"></span>
</button>