Move the sticky/closed icons off of Saint Stallman's face.

This commit is contained in:
Mayhem 2014-02-03 14:16:36 +01:00
parent 811da4ec73
commit 8951e9cd16
3 changed files with 15 additions and 10 deletions

View File

@ -441,15 +441,21 @@ a[href="javascript:;"] {
height: 13px;
padding: 20px 36px;
}
.thread-icons {
.thread-icons > img {
width: 1em;
height: 1em;
margin: 0;
vertical-align: text-top;
}
.thumb:not(:hover) > .menu-button > i {
display: none;
}
.thumb > .menu-button {
position: absolute;
top: 1px;
right: 1px;
}
.thumb:not(:hover) .menu-button > i {
display: none;
}
.thread-icons > .menu-button > i {
.thumb > .menu-button > i {
font-size: 14px;
}
.thread-stats {

View File

@ -1,8 +1,7 @@
<a href="/#{thread.board}/res/#{thread.ID}" target="_blank" class="thumb">
<div class="thread-icons"></div>
</a>
<a href="/#{thread.board}/res/#{thread.ID}" target="_blank" class="thumb"></a>
<div class="thread-stats" title="Post count / File count / Page count">
<span class="post-count">#{postCount}</span> / <span class="file-count">#{fileCount}</span> / <span class="page-count">#{pageCount}</span>
<span class="thread-icons"></span>
</div>
#{subject}
<div class="comment">#{comment}</div>

View File

@ -27,7 +27,7 @@ Menu =
innerHTML: '<i class="fa fa-bars"></i>'
href: 'javascript:;'
$.on menuButton, 'click', Menu.toggle
$.add @nodes.icons, menuButton
$.add @nodes.thumb, menuButton
makeButton: ->
clone = Menu.frag.cloneNode true
@ -39,7 +39,7 @@ Menu =
# Posts, inlined posts, hidden replies.
post = Get.postFromNode @
catch
post = if fullID = @parentNode.parentNode.parentNode.dataset.fullID
post = if fullID = @parentNode.parentNode.dataset.fullID
g.threads[fullID].OP
else
# Hidden threads.