Skip to content

Commit

Permalink
Use the fa-pulse spinner built in with Font Awesome
Browse files Browse the repository at this point in the history
  • Loading branch information
knu committed Apr 27, 2015
1 parent db63908 commit 914bbb4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 26 deletions.
25 changes: 0 additions & 25 deletions app/assets/stylesheets/application.css.scss.erb
Original file line number Diff line number Diff line change
Expand Up @@ -292,28 +292,3 @@ $service-colors: #55acee #8fc857 #444444 #2c4762 #007EE5;
.label-service {
@include services;
}

// Font Awesome Spinner

.fa-spin-custom {
@include animation(spin 1000ms infinite linear);
}

@mixin keyframes($name)
{
@-webkit-keyframes $name {
@content;
}
@keyframes $name {
@content;
}
}

@include keyframes(spin) {
0% {
@include rotate(0deg);
}
100% {
@include rotate(359deg);
}
}
2 changes: 1 addition & 1 deletion app/views/agents/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
<p id="memory" data-agent-id="<%= @agent.id %>">
<b>Memory:</b>
<% if @agent.memory.present? %>
<i class="fa fa-spinner fa-spin spinner"></i>
<i class="fa fa-spinner fa-pulse spinner"></i>
<i class="fa fa-trash action-icon clear"></i>
<% end %>
<pre class="memory"><%= Utils.pretty_jsonify @agent.memory || {} %></pre>
Expand Down

0 comments on commit 914bbb4

Please sign in to comment.