Font-awesome hide buttons, close #226
This commit is contained in:
parent
feca837cbc
commit
526783d273
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -151,8 +151,8 @@ PostHiding =
|
|||||||
|
|
||||||
makeButton: (post, type) ->
|
makeButton: (post, type) ->
|
||||||
span = $.el 'span',
|
span = $.el 'span',
|
||||||
className: "brackets-wrap"
|
className: "fa fa-#{if type is 'hide' then 'minus' else 'plus'}-square-o"
|
||||||
textContent: "\u00A0#{if type is 'hide' then '-' else '+'}\u00A0"
|
textContent: ""
|
||||||
a = $.el 'a',
|
a = $.el 'a',
|
||||||
className: "#{type}-reply-button"
|
className: "#{type}-reply-button"
|
||||||
href: 'javascript:;'
|
href: 'javascript:;'
|
||||||
|
|||||||
@ -146,7 +146,7 @@ ThreadHiding =
|
|||||||
makeButton: (thread, type) ->
|
makeButton: (thread, type) ->
|
||||||
a = $.el 'a',
|
a = $.el 'a',
|
||||||
className: "#{type}-thread-button"
|
className: "#{type}-thread-button"
|
||||||
innerHTML: "<span class=brackets-wrap> #{if type is 'hide' then '-' else '+'} </span>"
|
innerHTML: "<span class='fa fa-#{if type is 'hide' then 'minus' else 'plus'}-square'></span>"
|
||||||
href: 'javascript:;'
|
href: 'javascript:;'
|
||||||
a.dataset.fullID = thread.fullID
|
a.dataset.fullID = thread.fullID
|
||||||
$.on a, 'click', ThreadHiding.toggle
|
$.on a, 'click', ThreadHiding.toggle
|
||||||
|
|||||||
10
src/General/css/font-awesome.css
vendored
10
src/General/css/font-awesome.css
vendored
File diff suppressed because one or more lines are too long
@ -728,7 +728,20 @@ a.hide-announcement {
|
|||||||
.hide-thread-button,
|
.hide-thread-button,
|
||||||
.hide-reply-button {
|
.hide-reply-button {
|
||||||
float: left;
|
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 ~ * {
|
.stub ~ * {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user