aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-08-25 01:02:27 +0300
committerGravatar Vitaly Takmazov2016-08-25 01:19:11 +0300
commitdd132c3ef780200aebe3939f9249879495212d8a (patch)
treec610c06a6fc417dab92df4736704aeeb8143f3cd
parentf02157b46f0a922ae437f094fbb2b3cec1a53761 (diff)
www: evil icons
-rw-r--r--juick-www/package.json4
-rw-r--r--juick-www/src/main/java/com/juick/www/PageTemplates.java4
-rw-r--r--juick-www/src/main/static/style.css8
-rw-r--r--juick-www/webpack.config.js6
4 files changed, 13 insertions, 9 deletions
diff --git a/juick-www/package.json b/juick-www/package.json
index 151e678a..f26580db 100644
--- a/juick-www/package.json
+++ b/juick-www/package.json
@@ -28,7 +28,7 @@
"autosize": "^3.0.16",
"classlist.js": "^1.1.20150312",
"element-closest": "^2.0.1",
- "whatwg-fetch": "^1.0.0",
- "font-awesome": "^4.6.3"
+ "evil-icons": "^1.8.0",
+ "whatwg-fetch": "^1.0.0"
}
}
diff --git a/juick-www/src/main/java/com/juick/www/PageTemplates.java b/juick-www/src/main/java/com/juick/www/PageTemplates.java
index 2efdf6cf..be9a024c 100644
--- a/juick-www/src/main/java/com/juick/www/PageTemplates.java
+++ b/juick-www/src/main/java/com/juick/www/PageTemplates.java
@@ -469,10 +469,10 @@ public class PageTemplates {
out.print(" <nav class=\"s\">");
if (msg.Likes > 0) {
- out.print("<a href=\"/" + msg.getUser().getUName() + "/" + msg.getMID() + "\" class=\"likes\"><i class=\"fa fa-heart-o\"></i>&nbsp;" + msg.Likes + "</a>");
+ out.print("<a href=\"/" + msg.getUser().getUName() + "/" + msg.getMID() + "\" class=\"likes\"><i data-icon=\"ei-heart\" data-size=\"s\"></i>&nbsp;" + msg.Likes + "</a>");
}
if (msg.Replies > 0) {
- out.print("<a href=\"/" + msg.getUser().getUName() + "/" + msg.getMID() + "\" class=\"replies\"><i class=\"fa fa-comment-o\"></i>&nbsp;" + msg.Replies + "</a>");
+ out.print("<a href=\"/" + msg.getUser().getUName() + "/" + msg.getMID() + "\" class=\"replies\"><i data-icon=\"ei-comment\" data-size=\"s\"></i>&nbsp;" + msg.Replies + "</a>");
}
out.println("</nav>");
out.print("</article>");
diff --git a/juick-www/src/main/static/style.css b/juick-www/src/main/static/style.css
index 096af366..0ec4b778 100644
--- a/juick-www/src/main/static/style.css
+++ b/juick-www/src/main/static/style.css
@@ -69,7 +69,7 @@ article .irbr { clear: right; }
article>nav.l { display: inline-block; font-size: 10pt; }
article>nav.l a { color: #888; border-bottom: 1px dotted #AAA; margin-right: 15px; }
article>nav.s { display: inline-block; text-align: right; float: right; }
-article>nav.s a { color: #222; }
+article>nav.s a { color: #222; vertical-align: middle; }
article a.likes { padding-left: 20px; }
article a.replies { margin-left: 18px; }
article footer.comm { margin: 13px 0 0 0; }
@@ -216,9 +216,13 @@ q { border-left: 1px dashed #CCC; margin: 10px 0 10px 10px; padding-left: 10px;
.ico32-fb { background: #3b579d url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAAXNSR0IArs4c6QAAADNQTFRFO1edX3ewl6bLnKrOoK3QrrrYvMXe2N7r3OLu3+Tv5urz7O/29vf6+Pn7+vv9/Pz9////ykQjsQAAAEZJREFUOMtjYBgFuAATO68ADxdOaUYuATDAqYBbAL8CFgECCjiBcqz4XMiPz3oQEKCtAgEkwEdIAQchBWyEFDAPkDdHsAIAhZkIwz/VK/UAAAAASUVORK5CYII=") no-repeat; }
.ico32-lj { background: #888888 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAAXNSR0IArs4c6QAAAlJQTFRFAAAAAAAAAFVVADNmACRtAEBgADNmADdtADBgADljADNmADFiADFjADVpADJjADRpADRoADFnADNmADJkADVlADJnADRnADJlADJnADJlADRnADNmADJnADNmADJmADRmADNlADRmADNnADNmADJmADRmADNmADRmADJmADNlADNmADNmADJmADNnADNlADNnADNmADNlADN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jDd9zijqNDpXHhBy6Qk7GA+H0SuOSp0lAKFG5mGMM6toMTZrAT3DhByiRcgaLUqQDgBE2DXrGG9V+KX6FgazoRXSAfHbGMe+P378eXiCP67ETcQ45Y8uf0YMFAaoeSqHB66RAggY1u1JnzzwilRBQDDdlrJvaPDTrwsDQlLfFaUtfp9PmBL8YqhYcesRsiQEJGscgZwIgYlp2xJC0z8XJH2ZPhmkKgAAAABJRU5ErkJggg==") no-repeat; }
.ico32-gp { background: #dc4a38 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAAAAXNSR0IArs4c6QAAAa9JREFUSMftlTFoU1EUhr/3EguZFFzSIVVehyq03dxEJy3iIiJCi4Nr6eQmLoKggg46CaKj6FBB0OIgXcRJiQiKiFIf2KEJVsSCTWlN+Bx8eaQtaa5Dt57tP+/+/33n3P/cCzuxPeFh7/nRFdvxxtFw8m4f+tojJl62qT4xsRBOj511yT0Zuqjq5P/8/Lj6LEd9LqoLRt0Z8QY8Dqy2QbTGI6CfSrjAADDYgd8BUAgXWABG3Z/jH8Ai81lJE97pJfAYiJnK8RBwJWplaISTvZpYcEZteh7AQ9a90fH1ut96n0Ofl0zVOT/Y8mZurapVa65atert7iUQrUXXooQS9xkm5m6WbpCS8osmKSn1EEdcVfVWpweCSsgXH7Ch6rSlrQSKm9vICY4xxF5qVNjFGcqORQ0AXrLUa98x55x30oPG4LCfVDubtjX9tE2/tEcpm81XasNiCL1oTT23Idvvb7USYuURypmZO4+1xnv+8DNE4N8UHt20Zh9Po+WwHrxVGx5fl7tg3YHunHVXhYO8IEFmeE7KCglnKTMRfQ63T8kpZ/1uy2W/+sBTxjuPzLbHX6Ju9rcCQGEmAAAAAElFTkSuQmCC") no-repeat; }
-.fa-comment-o {
+.icon {
+ vertical-align: middle;
margin-top: -2px;
}
+.icon--ei-comment {
+ margin-top: -4px;
+}
/******************************************************************************/
@media screen and (max-width: 850px) {
diff --git a/juick-www/webpack.config.js b/juick-www/webpack.config.js
index ace447f6..8f4e344a 100644
--- a/juick-www/webpack.config.js
+++ b/juick-www/webpack.config.js
@@ -6,7 +6,8 @@ module.exports = {
entry: {
"scripts" : globby.sync([
__dirname + "/src/main/static/*.*",
- require.resolve('font-awesome/css/font-awesome.css')
+ require.resolve('evil-icons/assets/evil-icons.css'),
+ require.resolve('evil-icons/assets/evil-icons.js')
])
},
output: {
@@ -19,8 +20,7 @@ module.exports = {
],
loaders: [
{ test: /\.css$/, loader: ExtractTextPlugin.extract("style-loader", "css-loader") },
- { test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: "url-loader?limit=100000000000" },
- { test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: "url-loader?limit=10000000000" },
+ { test: /\.svg$/, loader: "url-loader?limit=10000000000" },
]
},
plugins: [