use CSS chevron instead of fa-chevron-right

This commit is contained in:
Jeff Atwood 2014-11-14 00:10:46 -08:00
parent 529a0cdcf2
commit fdacb67c71
3 changed files with 15 additions and 11 deletions

View File

@ -4,12 +4,12 @@
<li {{bind-attr class="showingIndex:active"}}>
{{#link-to 'group.index' model}}{{i18n groups.posts}}
<span class='count'>({{counts.posts}})</span>
<span class='fa fa-chevron-right'></span>{{/link-to}}
{{/link-to}}
</li>
<li {{bind-attr class="showingMembers:active"}}>
{{#link-to 'group.members' model}}{{i18n groups.members}}
<span class='count'>({{counts.members}})</span>
<span class='fa fa-chevron-right'></span>{{/link-to}}
{{/link-to}}
</li>
</ul>
</section>

View File

@ -1223,7 +1223,6 @@ button.ru {
and (max-width : 850px) {
.nav-stacked {
.glyph {width: auto; position: relative;}
.fa-chevron-right {display: none;}
> li > a {padding: 13px}
}
}

View File

@ -66,21 +66,26 @@
}
}
.active > a,
.active .fa-chevron-right {
{
color: $secondary;
background-color: $quaternary;
}
.active > a::after,
{
left: 90%;
top: 28%;
border: solid transparent;
content: " ";
position: absolute;
border-width: 10px;
border-left-color: $secondary;
}
.count {
font-size: 12px;
line-height: 16px;
}
.fa-chevron-right {
float: right;
margin: 0;
color: scale-color($primary, $lightness: 60%);
font-size: 14px;
line-height: 20px;
}
.glyph {
font-size: 12px;