tor: Refactor showing loader icon

- So that it can be used for other applications also.

- Also remove second status icon in green and use the status loading in
  it's place.  This is more consistent placement of status icon.

- Also reduce the size of the icon as it is not indication for page
  loading (page loading icons are large because they substitute page
  content until it is loaded).  This makes it consistent with other
  status icon.
This commit is contained in:
Sunil Mohan Adapa 2016-08-22 18:03:46 +05:30 committed by James Valleroy
parent 2aa0646dae
commit 164948c75e
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
2 changed files with 16 additions and 18 deletions

View File

@ -27,22 +27,6 @@
<meta http-equiv="refresh" content="3" />
{% endif %}
<style type="text/css">
.loader {
border: 16px solid #f3f3f3; /* Light grey */
border-top: 16px solid #3498db; /* Blue */
border-radius: 50%;
width: 80px;
height: 80px;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
</style>
{% endblock %}
@ -53,10 +37,9 @@
{% if config_running %}
<p class="running-status-parent">
<span class="running-status active"></span>
<span class="running-status loading"></span>
{% trans "Tor configuration is being updated" %}
</p>
<div class="loader"></div>
{% else %}

View File

@ -37,6 +37,21 @@ body {
background-color: rgb(228, 66, 66);
}
.running-status.loading {
border: 4px solid #f3f3f3; /* Light grey */
border-top: 4px solid #3498db; /* Blue */
border-radius: 50%;
width: 16px;
height: 16px;
display: inline-block;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.form-diagnostics-button {
display: inline-block;
}