Switch the menu button on posts to the fontawesome icon.

This commit is contained in:
Mayhem 2014-02-08 18:43:40 +01:00
parent bbf7abd6fa
commit 0fac43ee46
2 changed files with 2 additions and 15 deletions

View File

@ -978,14 +978,6 @@ a.remove {
.menu-button {
position: relative;
}
.menu-button i:not(.fa-bars) {
border-top: 6px solid;
border-right: 4px solid transparent;
border-left: 4px solid transparent;
display: inline-block;
margin: 2px;
vertical-align: middle;
}
@media screen and (resolution: 1dppx) {
.fa-bars {
font-size: 14px;

View File

@ -4,7 +4,7 @@ Menu =
a = $.el 'a',
className: 'menu-button'
innerHTML: '[<i></i>]'
innerHTML: '<i class="fa fa-bars"></i>'
href: 'javascript:;'
@frag = $.nodes [$.tn(' '), a]
@ -22,12 +22,7 @@ Menu =
return
$.add @nodes.info, Menu.makeButton()
catalogNode: ->
menuButton = $.el 'a',
className: 'menu-button'
innerHTML: '<i class="fa fa-bars"></i>'
href: 'javascript:;'
$.on menuButton, 'click', Menu.toggle
$.add @nodes.thumb, menuButton
$.add @nodes.thumb, Menu.makeButton()
makeButton: ->
clone = Menu.frag.cloneNode true