Add all brackets as .fourchanx-link pseudo-elements, close #67

This commit is contained in:
Jordan Bates 2013-05-09 23:53:41 -07:00
parent 952d3dcf9c
commit 4e7846a7de
8 changed files with 34 additions and 34 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -134,7 +134,7 @@ PostHiding =
makeButton: (post, type) ->
a = $.el 'a',
className: "#{type}-reply-button"
innerHTML: "<span>[&nbsp;#{if type is 'hide' then '-' else '+'}&nbsp;]</span>"
innerHTML: "<span class=fourchanx-link>&nbsp;#{if type is 'hide' then '-' else '+'}&nbsp;</span>"
href: 'javascript:;'
$.on a, 'click', PostHiding.toggle
a

View File

@ -111,7 +111,7 @@ ThreadHiding =
makeButton: (thread, type) ->
a = $.el 'a',
className: "#{type}-thread-button"
innerHTML: "<span>[&nbsp;#{if type is 'hide' then '-' else '+'}&nbsp;]</span>"
innerHTML: "<span class=fourchanx-link>&nbsp;#{if type is 'hide' then '-' else '+'}&nbsp;</span>"
href: 'javascript:;'
a.setAttribute 'data-fullid', thread.fullID
$.on a, 'click', ThreadHiding.toggle

View File

@ -112,7 +112,7 @@ Header =
boardList = $.el 'span',
id: 'board-list'
innerHTML: "<span id=custom-board-list></span><span id=full-board-list hidden>[<a href=javascript:; class='hide-board-list-button'> - </a>] #{fourchannav.innerHTML}</span>"
innerHTML: "<span id=custom-board-list></span><span id=full-board-list hidden><a href=javascript:; class='hide-board-list-button fourchanx-link'>&nbsp;&nbsp;-&nbsp;&nbsp;</a> #{fourchannav.innerHTML}</span>"
fullBoardList = $ '#full-board-list', boardList
btn = $ '.hide-board-list-button', fullBoardList
$.on btn, 'click', Header.toggleBoardList
@ -301,7 +301,7 @@ Header =
addShortcut: (el) ->
shortcut = $.el 'span',
className: 'shortcut'
className: 'shortcut fourchanx-link'
$.add shortcut, el
$.prepend Header.shortcuts, shortcut

View File

@ -202,12 +202,6 @@ a {
#shortcuts {
float: right;
}
.shortcut::after {
content: "]";
}
.shortcut::before {
content: "[";
}
.shortcut {
margin-left: 3px;
}
@ -218,7 +212,13 @@ a {
#toggleMsgBtn {
display: none !important;
}
/* 4chan X link brackets */
.fourchanx-link::after {
content: "]";
}
.fourchanx-link::before {
content: "[";
}
/* Notifications */
#notifications {
position: fixed;

View File

@ -18,8 +18,8 @@ Menu =
a = null
(post) ->
a or= $.el 'a',
className: 'menu-button'
innerHTML: '[<i></i>]'
className: 'menu-button fourchanx-link'
innerHTML: '<i></i>'
href: 'javascript:;'
clone = a.cloneNode true
clone.setAttribute 'data-postid', post.fullID