From de5ba012e1d716dff8b952a7d28a3e3d8fc23639 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Mon, 14 Jan 2019 17:28:07 -0800 Subject: [PATCH] icons: Fixes for switching to fork-awesome - Update documentation pointing to Bootstrap Glyphicons. - Consistently use trash-o. It is also more clear at the sizes we are using. - Use hourglass-o instead of hourglass. - Use diaspora icon instead of generic icon for diaspora app. - In cards, don't set 3x size. It is not used. Instead we are setting our custom size. - Remove unused CSS rule for .sidebar .fa - Align the FreedomBox logo to center with 'Home' text. - Fix swapped icons for 'Client Apps' button. Signed-off-by: Sunil Mohan Adapa --- plinth/menu.py | 4 ++-- plinth/modules/backups/templates/backups_repository.inc | 4 ++-- plinth/modules/diagnostics/templates/diagnostics.html | 2 +- plinth/modules/diaspora/__init__.py | 3 +-- plinth/modules/ikiwiki/templates/ikiwiki_manage.html | 2 +- plinth/modules/sharing/templates/sharing.html | 2 +- plinth/templates/cards.html | 2 +- static/themes/default/css/plinth.css | 9 ++++----- 8 files changed, 13 insertions(+), 15 deletions(-) diff --git a/plinth/menu.py b/plinth/menu.py index b2576d26a..2dbd79964 100644 --- a/plinth/menu.py +++ b/plinth/menu.py @@ -27,8 +27,8 @@ class Menu(object): """label is the text that is displayed on the menu. icon is the icon to be displayed next to the label. - Choose from the Glyphicon set: - http://twitter.github.com/bootstrap/base-css.html#icons + Choose from the Fork Awesome set: + https://forkawesome.github.io/Fork-Awesome/icons/ url is the url location that will be activated when the menu item is selected. diff --git a/plinth/modules/backups/templates/backups_repository.inc b/plinth/modules/backups/templates/backups_repository.inc index 91942e0cc..e73b8e713 100644 --- a/plinth/modules/backups/templates/backups_repository.inc +++ b/plinth/modules/backups/templates/backups_repository.inc @@ -65,7 +65,7 @@ - {% endif %} @@ -91,7 +91,7 @@ - diff --git a/plinth/modules/diagnostics/templates/diagnostics.html b/plinth/modules/diagnostics/templates/diagnostics.html index 767129e82..2fe323ab4 100644 --- a/plinth/modules/diagnostics/templates/diagnostics.html +++ b/plinth/modules/diagnostics/templates/diagnostics.html @@ -69,7 +69,7 @@ {% if module_results %} {% include "diagnostics_results.html" with results=module_results %} {% else %} -

+

{% endif %} {% endfor %} {% endif %} diff --git a/plinth/modules/diaspora/__init__.py b/plinth/modules/diaspora/__init__.py index 4dde6f73e..4bcc49327 100644 --- a/plinth/modules/diaspora/__init__.py +++ b/plinth/modules/diaspora/__init__.py @@ -76,8 +76,7 @@ clients = clients def init(): """Initialize the Diaspora module.""" menu = main_menu.get('apps') - menu.add_urlname(name, 'fa-thumbs-o-up', 'diaspora:index', - short_description) + menu.add_urlname(name, 'fa-diaspora', 'diaspora:index', short_description) global service setup_helper = globals()['setup_helper'] diff --git a/plinth/modules/ikiwiki/templates/ikiwiki_manage.html b/plinth/modules/ikiwiki/templates/ikiwiki_manage.html index 8053cd922..e1956e5b5 100644 --- a/plinth/modules/ikiwiki/templates/ikiwiki_manage.html +++ b/plinth/modules/ikiwiki/templates/ikiwiki_manage.html @@ -53,7 +53,7 @@ class="btn btn-default btn-sm pull-right" role="button" title="{% blocktrans %}Delete site {{ site }}{% endblocktrans %}"> - diff --git a/plinth/modules/sharing/templates/sharing.html b/plinth/modules/sharing/templates/sharing.html index 8133e5b7c..5ca2b7395 100644 --- a/plinth/modules/sharing/templates/sharing.html +++ b/plinth/modules/sharing/templates/sharing.html @@ -81,7 +81,7 @@
{% csrf_token %} -
diff --git a/plinth/templates/cards.html b/plinth/templates/cards.html index 38c9ae155..a819332bb 100644 --- a/plinth/templates/cards.html +++ b/plinth/templates/cards.html @@ -40,7 +40,7 @@
{{ item.name }}
{% if 'fa-' in item.icon %} - + {% else %} {% endif %} diff --git a/static/themes/default/css/plinth.css b/static/themes/default/css/plinth.css index 95f40c36c..6fee2d584 100644 --- a/static/themes/default/css/plinth.css +++ b/static/themes/default/css/plinth.css @@ -67,14 +67,13 @@ body { list-style-type: none; } -.nav .fa, -.sidebar .fa { +.nav .fa { margin-right: 4px; } .navbar-brand .fa { float: left; - margin-top: -15px; + margin-top: -19px; padding: 8px; } @@ -226,11 +225,11 @@ footer license-info p { #clients-button .fa:before, .no-js #clients-button.collapsed .fa:before { - content: "\f054"; + content: "\f078"; } #clients-button.collapsed .fa:before { - content: "\f078"; + content: "\f054"; } /* No-JS fallbacks for collapsible content in clients.html */