mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
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 <sunil@medhas.org>
This commit is contained in:
parent
5d68f6bf52
commit
de5ba012e1
@ -27,8 +27,8 @@ class Menu(object):
|
|||||||
"""label is the text that is displayed on the menu.
|
"""label is the text that is displayed on the menu.
|
||||||
|
|
||||||
icon is the icon to be displayed next to the label.
|
icon is the icon to be displayed next to the label.
|
||||||
Choose from the Glyphicon set:
|
Choose from the Fork Awesome set:
|
||||||
http://twitter.github.com/bootstrap/base-css.html#icons
|
https://forkawesome.github.io/Fork-Awesome/icons/
|
||||||
|
|
||||||
url is the url location that will be activated when the menu
|
url is the url location that will be activated when the menu
|
||||||
item is selected.
|
item is selected.
|
||||||
|
|||||||
@ -65,7 +65,7 @@
|
|||||||
<a title="{% trans 'Remove Location. This will not delete the remote backup.' %}"
|
<a title="{% trans 'Remove Location. This will not delete the remote backup.' %}"
|
||||||
role="button" class="repository-remove btn btn-sm btn-default"
|
role="button" class="repository-remove btn btn-sm btn-default"
|
||||||
href="{% url 'backups:repository-remove' uuid %}">
|
href="{% url 'backups:repository-remove' uuid %}">
|
||||||
<span class="fa fa-trash" aria-hidden="true">
|
<span class="fa fa-trash-o" aria-hidden="true">
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -91,7 +91,7 @@
|
|||||||
</a>
|
</a>
|
||||||
<a class="archive-delete btn btn-sm btn-default"
|
<a class="archive-delete btn btn-sm btn-default"
|
||||||
href="{% url 'backups:delete' uuid archive.name %}">
|
href="{% url 'backups:delete' uuid archive.name %}">
|
||||||
<span class="fa fa-trash" aria-hidden="true">
|
<span class="fa fa-trash-o" aria-hidden="true">
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@ -69,7 +69,7 @@
|
|||||||
{% if module_results %}
|
{% if module_results %}
|
||||||
{% include "diagnostics_results.html" with results=module_results %}
|
{% include "diagnostics_results.html" with results=module_results %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<p><span class="fa fa-hourglass"></span></p>
|
<p><span class="fa fa-hourglass-o"></span></p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@ -76,8 +76,7 @@ clients = clients
|
|||||||
def init():
|
def init():
|
||||||
"""Initialize the Diaspora module."""
|
"""Initialize the Diaspora module."""
|
||||||
menu = main_menu.get('apps')
|
menu = main_menu.get('apps')
|
||||||
menu.add_urlname(name, 'fa-thumbs-o-up', 'diaspora:index',
|
menu.add_urlname(name, 'fa-diaspora', 'diaspora:index', short_description)
|
||||||
short_description)
|
|
||||||
|
|
||||||
global service
|
global service
|
||||||
setup_helper = globals()['setup_helper']
|
setup_helper = globals()['setup_helper']
|
||||||
|
|||||||
@ -53,7 +53,7 @@
|
|||||||
class="btn btn-default btn-sm pull-right"
|
class="btn btn-default btn-sm pull-right"
|
||||||
role="button"
|
role="button"
|
||||||
title="{% blocktrans %}Delete site {{ site }}{% endblocktrans %}">
|
title="{% blocktrans %}Delete site {{ site }}{% endblocktrans %}">
|
||||||
<span class="fa fa-trash"
|
<span class="fa fa-trash-o"
|
||||||
aria-hidden="true"></span>
|
aria-hidden="true"></span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|||||||
@ -81,7 +81,7 @@
|
|||||||
<form class="form form-inline" method="post"
|
<form class="form form-inline" method="post"
|
||||||
action="{% url 'sharing:remove' share.name %}">
|
action="{% url 'sharing:remove' share.name %}">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<button class="share-remove btn btn-sm btn-default fa fa-trash"
|
<button class="share-remove btn btn-sm btn-default fa fa-trash-o"
|
||||||
type="submit"></button>
|
type="submit"></button>
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@ -40,7 +40,7 @@
|
|||||||
<div class="card-title">{{ item.name }}</div>
|
<div class="card-title">{{ item.name }}</div>
|
||||||
<div class="card-icon">
|
<div class="card-icon">
|
||||||
{% if 'fa-' in item.icon %}
|
{% if 'fa-' in item.icon %}
|
||||||
<span class="fa {{ item.icon }} fa-3x"></span>
|
<span class="fa {{ item.icon }}"></span>
|
||||||
{% else %}
|
{% else %}
|
||||||
<img src="{% static 'theme/icons/' %}{{ item.icon }}.png"/>
|
<img src="{% static 'theme/icons/' %}{{ item.icon }}.png"/>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@ -67,14 +67,13 @@ body {
|
|||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav .fa,
|
.nav .fa {
|
||||||
.sidebar .fa {
|
|
||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar-brand .fa {
|
.navbar-brand .fa {
|
||||||
float: left;
|
float: left;
|
||||||
margin-top: -15px;
|
margin-top: -19px;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -226,11 +225,11 @@ footer license-info p {
|
|||||||
|
|
||||||
#clients-button .fa:before,
|
#clients-button .fa:before,
|
||||||
.no-js #clients-button.collapsed .fa:before {
|
.no-js #clients-button.collapsed .fa:before {
|
||||||
content: "\f054";
|
content: "\f078";
|
||||||
}
|
}
|
||||||
|
|
||||||
#clients-button.collapsed .fa:before {
|
#clients-button.collapsed .fa:before {
|
||||||
content: "\f078";
|
content: "\f054";
|
||||||
}
|
}
|
||||||
|
|
||||||
/* No-JS fallbacks for collapsible content in clients.html */
|
/* No-JS fallbacks for collapsible content in clients.html */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user