From e997e1b08a6c5de5e8b1ab8da9f7bbedc745360c Mon Sep 17 00:00:00 2001 From: mappu Date: Sat, 18 Nov 2017 15:04:39 +1300 Subject: [PATCH] replace menu icons with inline SVG from materialdesignicons.com --- pageTemplate.go | 42 +++++++++++++++++++++++++++++++++--------- static/wiki.css | 10 ---------- 2 files changed, 33 insertions(+), 19 deletions(-) diff --git a/pageTemplate.go b/pageTemplate.go index fddbf91..87f1a4b 100644 --- a/pageTemplate.go +++ b/pageTemplate.go @@ -87,23 +87,47 @@ function els(e,s){ // no js exec in innerHTML
-
-
-
+
+ + + +
+
+ + + +
+
+ + + +
{{if .CurrentPageIsArticle }}
-
-
+
+ + + +
+
+ + + +
{{end}}
diff --git a/static/wiki.css b/static/wiki.css index a5e51e5..417fed6 100644 --- a/static/wiki.css +++ b/static/wiki.css @@ -112,16 +112,6 @@ fieldset legend { display:inline-block; width:16px;height:16px; vertical-align:text-bottom; - background-repeat:no-repeat; - background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAwCAYAAABwrHhvAAAGS0lEQVRYw52Y32sVVxDHl4JI+2ApwUj7YCmC0ioJIVQI0YpSUwlRoxQlInmQoBEjBpsI/gR/Iv5Co9GYqKiXoCCiL0pBRUViNBA3EBAlBIwvvvsPnJ7P4cwyd3fv7k0XvnfnnvnO7OyPc2bOBMaY4O7duwncunUrvH37tgHIekz+YyvQ/DSg13yB+ykUCkXo7+8PBwYGzOTkpAMyY1euXHH/OcPTjm7cuBHxNS5evBidL1++HKYGcO3atQgXLlwIz507Z8bHx83nz58dkBk7deqUeffunTl27JiBqx1dvXrVfPz4MYF9+/aZ169fOyAfOXIkTARw6dIlh+PHj4eHDh1yZKJGBsiMIXOhnTt3GvjaUU9Pjws0jtbWVhe0gP+JAE6fPh3s2bMnxPGjR4/M+/fv3UVu3rzpgMwYOuQtW7YYbLQjeTpxnDx50ixZsiQCtokAtm7dGra0tLiLYYTMOxsdHXVAZgwdHGRstKPDhw9HjzoL8BI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/efQyr5EZ87o+uNhgG09i/KfXUPY0tA7rbf52yyfVCx8O+78XL15Ed4XMGDo4cLHBVvoKGnnrf1EAZ8+erWZtZ+0eHh7O3d/DgYsNtrpnoKH7B6U6aIwHtlIJDh48OGDTpesB8NGV2tujgwMXG2x1b0FD9w+YCVKUajAejI6OOuzfv7+7o6Njkkddam+PDg5csSvnMUvnTTpuAsaCt2/fRrCO6ykeSu3t0cHRNuV+bLoDJ+B/YIUI7e3tvZRO5H+mHgUGQGYMHRxtU87FdQdOunAyYwKbaiOsX78+pA9UKBTcB0eLDSAzhg6Otsm6sHTf9EyRKknOwcuXLyPYVPpVphvVjL3YEECW6QlH22QFkDZDGNuwYUMo5+D58+cONsPNqqmpcQXnqlWrJtra2jpFh8wYOjhwRZcVQNoMiXfXnBOfMqsrKipWNDQ09Fp5RUp/YIUNomf27NlLfU6f523n+31/vc/5f6TYNvqaoN7XBPQifnPXlb2+rwdkf1/pawDpD8xV/YGZMRs5Znp9paondH9hjqopZojRf/M9B2Tz737/AAAAAElFTkSuQmCC); -} -.sprite.hm { background-position:0px 0px;} -.sprite.hs { background-position:0px -16px;} -.sprite.sp { background-position:0px -32px;} -.sprite.nw { background-position:-16px 0px;} -.sprite.ed { background-position:-16px -16px;} -.sprite.rn { background-position:-16px -32px;} -.sprite.no { background:none; } .sep {