diff options
author | Mandragorat Wandystanu <wktir@wandystan.eu> | 2020-03-13 01:57:27 +0100 |
---|---|---|
committer | Mandragorat Wandystanu <wktir@wandystan.eu> | 2020-03-13 01:57:27 +0100 |
commit | 30de2640782789efc723488e85d3618e4e265e64 (patch) | |
tree | a8e7f520cd62983fe87a7eefa02a6f56144908fa | |
parent | 9aaf1955bdb9732d73d892c9effa7e97e6b81d1d (diff) |
Change toolbar icons to SVG icons
-rw-r--r-- | static/css/pomf.css | 10 | ||||
-rw-r--r-- | templates/upload_logged.swig | 2 | ||||
-rw-r--r-- | templates/upload_unlogged.swig | 4 |
3 files changed, 12 insertions, 4 deletions
diff --git a/static/css/pomf.css b/static/css/pomf.css index 1ba083f..3a19eca 100644 --- a/static/css/pomf.css +++ b/static/css/pomf.css @@ -127,13 +127,21 @@ menu li:last-child:after { menu li:first-child { float: left; - font-size: 1.41em; + font-size: 1.5em; } menu li:first-child strong { font-weight: normal; } +menu svg.icon { + margin-right: 0.25em; + width: 1.355em; + height: 1.355em; + vertical-align: -0.25em; + fill: currentColor; +} + /* style formularza uploadu */ #upload-btn { padding: 1em 2em; diff --git a/templates/upload_logged.swig b/templates/upload_logged.swig index 3dda51e..5202b87 100644 --- a/templates/upload_logged.swig +++ b/templates/upload_logged.swig @@ -1,7 +1,7 @@ {% extends "layout.swig" %} {% block menu %} -<li>❌ <a href="//wandystan.eu/w/logout">wyloguj</a></li> +<li><svg aria-hidden="true" class="icon" width="24" height="24" viewBox="0 0 24 24"><path d="M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5a2 2 0 0 0-2 2v4h2V5h14v14H5v-4H3v4a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/></svg><a href="//wandystan.eu/w/logout">wyloguj</a></li> {% endblock %} {% block body %} diff --git a/templates/upload_unlogged.swig b/templates/upload_unlogged.swig index f95f980..3c4d510 100644 --- a/templates/upload_unlogged.swig +++ b/templates/upload_unlogged.swig @@ -1,8 +1,8 @@ {% extends "upload_logged.swig" %} {% block menu %} -<li>∗ <a href="//wandystan.eu/w/profile,register">zarejestruj</a></li> -<li>∗ <a href="//wandystan.eu/w/login">zaloguj</a></li> +<li><svg aria-hidden="true" class="icon" width="24" height="24" viewBox="0 0 24 24"><path d="M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm-9-2V7H4v3H1v2h3v3h2v-3h3v-2H6zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg><a href="//wandystan.eu/w/profile,register">zarejestruj</a></li> +<li><svg aria-hidden="true" class="icon" width="24" height="24" viewBox="0 0 24 24"><path d="M12.65 10A5.99 5.99 0 0 0 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6a5.99 5.99 0 0 0 5.65-4H17v4h4v-4h2v-4H12.65zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"/></svg><a href="//wandystan.eu/w/login">zaloguj</a></li> {% endblock %} {% block form %} |