Add back checkmark for selected grammar

This commit is contained in:
Kevin Sawicki
2013-02-25 15:09:21 -08:00
parent c757bf489f
commit f51f097615
2 changed files with 17 additions and 2 deletions

View File

@@ -22,9 +22,9 @@ class GrammarView extends SelectList
itemForElement: (grammar) ->
if grammar is @currentGrammar
grammarClass = 'current-grammar'
grammarClass = 'active-item'
else
grammarClass = 'grammar'
grammarClass = 'inactive-item'
$$ ->
@li grammar.name, class: grammarClass

View File

@@ -45,3 +45,18 @@
color: white;
text-shadow: 0 1px 0 #4E0000;
}
.select-list li.active-item:before {
font-family: 'Octicons Regular';
font-size: 14px;
width: 14px;
height: 14px;
margin-right: 5px;
-webkit-font-smoothing: antialiased;
color: #9d9d9d;
content: '\f03a';
}
.select-list li.inactive-item {
padding-left: 29px;
}