Skip to content
This repository has been archived by the owner on Feb 2, 2018. It is now read-only.

Commit

Permalink
Use same throbber styles as Spartacus (bug 1066100)
Browse files Browse the repository at this point in the history
  • Loading branch information
muffinresearch committed Sep 24, 2014
1 parent 29e922f commit 2278231
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 35 deletions.
Binary file added media/images/throbber-53.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed media/images/throbber.png
Binary file not shown.
44 changes: 9 additions & 35 deletions media/stylus/_throbber.styl
@@ -1,55 +1,29 @@
.throbber {
// This will normally be overlaid hence it needs it's own background.
background: rgba(244, 244, 244, 0.9);
bottom: 0;
min-height: 100%;
grain();
left: 0;
padding-top: 90px;
padding-top: 80px;
position: fixed;
right: 0;
top: 0;
width: 100%;
z-index: 10;

&:before {
// embedurl will embed as base64.
background-image: embedurl('throbber.png');
background: transparent embedurl('throbber-53.gif') no-repeat 50% 50%;
content: '';
display: block;
height: 53px;
margin: 0 auto;
width: 50px;
height: 50px;
animation(unquote('.9s spin infinite linear'));
width: 53px;
}

span {
display: block;
margin-top: 1em;
margin: 0 auto;
max-width: 320px;
text-align: center;
margin-top: 1em;
}
}

@-webkit-keyframes spin {
from {
-webkit-transform: rotate(0deg);
}
to {
-webkit-transform: rotate(365deg);
}
}
@-moz-keyframes spin {
from {
-moz-transform: rotate(0deg);
}
to {
-moz-transform: rotate(365deg);
}
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(365deg);
}
}

1 change: 1 addition & 0 deletions templates/base.html
Expand Up @@ -2,6 +2,7 @@
<html lang="{% if lang %}{{ lang }}{% else %}en-us{% endif %}" dir="{% if lang_dir %}{{ lang_dir }}{% else %}ltr{% endif %}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1">
<title>{% block title %}{{ title }}{% endblock %}</title>
{% block style %}<link rel="stylesheet" href="/css/docs.css">{% endblock %}
</head>
Expand Down

0 comments on commit 2278231

Please sign in to comment.