Improves styles for tags

This commit is contained in:
Alberto Garcia Cabeza
2016-01-07 12:47:21 +01:00
parent 2948a2ebe4
commit 9b2ab35b98
2 changed files with 6 additions and 28 deletions

View File

@@ -565,18 +565,17 @@ footer {
.tags, .tag-cloud {
a {
background: $border;
background: #ececec;
border-radius: rem-calc(6);
color: #4d4d4d;
color: $text;
display: inline-block;
font-size: $small-font-size;
margin-bottom: $line-height/3;
padding: 0 $line-height/3;
padding: $line-height/4 $line-height/3;
text-decoration: none;
&:hover {
color: $link;
cursor: pointer;
background: #E5F1F8;
background: #e0e0e0;
}
}
}
@@ -592,27 +591,6 @@ footer {
padding-top: $line-height/4;
text-transform: uppercase;
}
a {
background: white;
border: 2px solid $border;
padding: $line-height/4 $line-height/3;
.label {
color: white;
&.info {
background: rgba(0,0,0,.5);
}
}
&:hover {
.label {
background: $brand;
}
}
}
}
// 05. Auth pages

View File

@@ -5,7 +5,7 @@
<% tag_cloud @tag_cloud, %w[s m l] do |tag, css_class| %>
<%= link_to taggable_path(taggable, tag.name), class: css_class do %>
<%= tag.name %>
<span class='label round info'><%= tag.send(taggable_counter_field(taggable)) %></span>
(<%= tag.send(taggable_counter_field(taggable)) %>)
<% end %>
<% end %>
</div>