Fix styling for featured badges on category

pull/2059/head
syeopite 4 years ago
parent 1b569bbc99
commit f2c35b975f
No known key found for this signature in database
GPG Key ID: 6FA616E5A5294A82

@ -610,6 +610,7 @@ hr {
display: inline-block; display: inline-block;
} }
/* Split into .badge and #.featured */
.category .badge.featured { .category .badge.featured {
background: #005aa7; background: #005aa7;
color: white; color: white;
@ -617,6 +618,7 @@ hr {
border-radius: 5px; border-radius: 5px;
font-size: 14px; font-size: 14px;
margin-left: 10px; margin-left: 10px;
display: inline;
} }
/* Temp */ /* Temp */

@ -48,7 +48,7 @@
<% else %> <% else %>
<div class="category pure-u-1"> <div class="category pure-u-1">
<div class="category-heading h-box"> <div class="category-heading h-box">
<p> <%= category.title %> </p> <span class="category-title"> <%= category.title %> </span>
<% if (badges = category.badges).is_a? Array %> <% if (badges = category.badges).is_a? Array %>
<% badges.each do | badge |%> <% badges.each do | badge |%>
<% if badge[0] == "BADGE_STYLE_TYPE_FEATURED" %> <% if badge[0] == "BADGE_STYLE_TYPE_FEATURED" %>

Loading…
Cancel
Save