Font-awesome hide buttons, close #226

This commit is contained in:
Jordan 2014-01-09 03:05:46 -07:00
parent feca837cbc
commit 526783d273
6 changed files with 33 additions and 14 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -151,8 +151,8 @@ PostHiding =
makeButton: (post, type) ->
span = $.el 'span',
className: "brackets-wrap"
textContent: "\u00A0#{if type is 'hide' then '-' else '+'}\u00A0"
className: "fa fa-#{if type is 'hide' then 'minus' else 'plus'}-square-o"
textContent: ""
a = $.el 'a',
className: "#{type}-reply-button"
href: 'javascript:;'

View File

@ -146,7 +146,7 @@ ThreadHiding =
makeButton: (thread, type) ->
a = $.el 'a',
className: "#{type}-thread-button"
innerHTML: "<span class=brackets-wrap>&nbsp;#{if type is 'hide' then '-' else '+'}&nbsp;</span>"
innerHTML: "<span class='fa fa-#{if type is 'hide' then 'minus' else 'plus'}-square'></span>"
href: 'javascript:;'
a.dataset.fullID = thread.fullID
$.on a, 'click', ThreadHiding.toggle

File diff suppressed because one or more lines are too long

View File

@ -728,7 +728,20 @@ a.hide-announcement {
.hide-thread-button,
.hide-reply-button {
float: left;
margin-right: 2px;
margin-right: 4px;
padding: 2px;
}
.hide-thread-button:not(:hover),
.hide-reply-button:not(:hover) {
opacity: 0.4;
}
.threadContainer .hide-reply-button {
margin-left: 2px !important;
position: relative;
left: 1px;
}
.hide-thread-button {
margin-top: -1px;
}
.stub ~ * {
display: none !important;