It continues~
This commit is contained in:
parent
a730a0bc17
commit
eb12134f6c
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -269,13 +269,16 @@ Header =
|
|||||||
top -= headRect.top + headRect.height
|
top -= headRect.top + headRect.height
|
||||||
window.scrollBy 0, top
|
window.scrollBy 0, top
|
||||||
|
|
||||||
addShortcut: (el, order) ->
|
addShortcut: do ->
|
||||||
order = order[if Conf["Icon Orientation"] is "horizontal" then 0 else 1]
|
span = $.el 'span',
|
||||||
shortcut = $.el 'span',
|
className: 'shortcut'
|
||||||
className: 'shortcut brackets-wrap'
|
|
||||||
shortcut.style.cssText = "order: #{order}; -webkit-order: #{order};"
|
(el, order) ->
|
||||||
$.add shortcut, el
|
order = order[if Conf["Icon Orientation"] is "horizontal" then 0 else 1]
|
||||||
$.prepend Header.shortcuts, shortcut
|
shortcut = span.cloneNode()
|
||||||
|
shortcut.style.cssText = "order: #{order}; -webkit-order: #{order};"
|
||||||
|
$.add shortcut, el
|
||||||
|
$.prepend Header.shortcuts, shortcut
|
||||||
|
|
||||||
menuToggle: (e) ->
|
menuToggle: (e) ->
|
||||||
Header.menu.toggle e, @, g
|
Header.menu.toggle e, @, g
|
||||||
|
|||||||
1132
src/General/css/font-awesome.css
vendored
1132
src/General/css/font-awesome.css
vendored
File diff suppressed because it is too large
Load Diff
@ -1,30 +1,35 @@
|
|||||||
#main-menu,
|
#main-menu,
|
||||||
body > div.navLinks > a:first-of-type::after,
|
#returnIcon,
|
||||||
.slideout-watcher #sowIcon,
|
#sowIcon,
|
||||||
.announcements-slideout #psaIcon,
|
#psaIcon,
|
||||||
#slideNav,
|
#slideNav,
|
||||||
#img-controls,
|
#img-controls,
|
||||||
#catalog,
|
#catalog,
|
||||||
#fappeTyme {
|
#fappeTyme,
|
||||||
|
.shortcut .icon {
|
||||||
z-index: 18;
|
z-index: 18;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 15px;
|
width: 15px;
|
||||||
height: 15px;
|
height: 15px;
|
||||||
content: "";
|
content: "";
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
.invisible-icons #main-menu,
|
.invisible-icons #main-menu,
|
||||||
.invisible-icons body > div.navLinks > a:first-of-type::after,
|
.invisible-icons #returnIcon,
|
||||||
.invisible-icons.slideout-watcher #sowIcon,
|
.invisible-icons #sowIcon,
|
||||||
.invisible-icons.announcements-slideout #psaIcon,
|
.invisible-icons #psaIcon,
|
||||||
.invisible-icons #slideNav,
|
.invisible-icons #slideNav,
|
||||||
.invisible-icons #img-controls,
|
.invisible-icons #img-controls,
|
||||||
.invisible-icons #catalog,
|
.invisible-icons #catalog,
|
||||||
.invisible-icons #fappeTyme {
|
.invisible-icons #fappeTyme,
|
||||||
|
.invisible-icons #navPrev,
|
||||||
|
.invisible-icons #navNext,
|
||||||
|
.invisible-icons .shortcut .icon {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
#navtopright .exlinksOptionsLink,
|
#navtopright .exlinksOptionsLink,
|
||||||
body > div.navLinks > a:first-of-type,
|
#returnIcon,
|
||||||
#{if Conf['Slideout Watcher'] then '#thread-watcher,' else ''}
|
#{if Conf['Slideout Watcher'] then '#thread-watcher,' else ''}
|
||||||
#{if Conf['Announcements'] is 'slideout' then '#globalMessage,' else ''}
|
#{if Conf['Announcements'] is 'slideout' then '#globalMessage,' else ''}
|
||||||
#boardNavDesktopFoot,
|
#boardNavDesktopFoot,
|
||||||
@ -32,27 +37,24 @@ body > div.navLinks > a:first-of-type,
|
|||||||
z-index: 16;
|
z-index: 16;
|
||||||
}
|
}
|
||||||
#navtopright .exlinksOptionsLink:hover,
|
#navtopright .exlinksOptionsLink:hover,
|
||||||
body > div.navLinks > a:first-of-type:hover,
|
#returnIcon:hover,
|
||||||
.slideout-watcher #thread-watcher:hover,
|
#thread-watcher:hover,
|
||||||
.announcements-slideout #globalMessage:hover,
|
#globalMessage:hover,
|
||||||
#slideNav:hover,
|
#slideNav:hover,
|
||||||
#img-controls,
|
#img-controls,
|
||||||
#catalog:hover {
|
#catalog:hover {
|
||||||
z-index: 17;
|
z-index: 17;
|
||||||
}
|
}
|
||||||
#main-menu {
|
#main-menu {
|
||||||
visibility: visible;
|
|
||||||
background-position: 0 0;
|
background-position: 0 0;
|
||||||
cursor: pointer;
|
|
||||||
}
|
}
|
||||||
body > div.navLinks > a:first-of-type::after {
|
#returnIcon {
|
||||||
cursor: pointer;
|
|
||||||
background-position: 0 -15px;
|
background-position: 0 -15px;
|
||||||
}
|
}
|
||||||
.slideout-watcher #sowIcon {
|
#sowIcon {
|
||||||
background-position: 0 -30px;
|
background-position: 0 -30px;
|
||||||
}
|
}
|
||||||
.announcements-slideout #psaIcon {
|
#psaIcon {
|
||||||
background-position: 0 -45px;
|
background-position: 0 -45px;
|
||||||
}
|
}
|
||||||
#slideNav {
|
#slideNav {
|
||||||
@ -61,27 +63,25 @@ body > div.navLinks > a:first-of-type::after {
|
|||||||
#img-controls {
|
#img-controls {
|
||||||
background-position: 0 -90px;
|
background-position: 0 -90px;
|
||||||
}
|
}
|
||||||
#navtopright .exlinksOptionsLink::after {
|
|
||||||
background-position: 0 -105px;
|
|
||||||
}
|
|
||||||
#catalog {
|
#catalog {
|
||||||
visibility: visible;
|
|
||||||
background-position: 0 -120px;
|
background-position: 0 -120px;
|
||||||
}
|
}
|
||||||
#fappeTyme {
|
#fappeTyme {
|
||||||
background-position: 0 -135px;
|
background-position: 0 -135px;
|
||||||
}
|
}
|
||||||
#slideNav:hover,
|
#slideNav:hover,
|
||||||
.announcements-slideout #psaIcon:hover,
|
#psaIcon:hover,
|
||||||
#img-controls:hover,
|
#img-controls:hover,
|
||||||
#navlinks a:hover,
|
#navPrev:hover,
|
||||||
|
#navNext:hover,
|
||||||
#appchanOptions:hover,
|
#appchanOptions:hover,
|
||||||
#main-menu:hover,
|
#main-menu:hover,
|
||||||
#qr #qrtab,
|
#qr #qrtab,
|
||||||
.slideout-watcher #sowIcon:hover,
|
#sowIcon:hover,
|
||||||
.thumbnail#selected,
|
.thumbnail#selected,
|
||||||
div.navLinks > a:first-of-type:hover::after,
|
#returnIcon:hover,
|
||||||
#catalog:hover::after,
|
#catalog:hover,
|
||||||
#fappeTyme:hover {
|
#fappeTyme:hover,
|
||||||
|
.shortcut .icon:hover {
|
||||||
opacity: 1 !important;
|
opacity: 1 !important;
|
||||||
}
|
}
|
||||||
@ -55,7 +55,6 @@ body > hr {
|
|||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
/* Hidden UI */
|
/* Hidden UI */
|
||||||
#navlinks,
|
|
||||||
#navtopright,
|
#navtopright,
|
||||||
#svg_filters,
|
#svg_filters,
|
||||||
.cataloglink,
|
.cataloglink,
|
||||||
@ -184,19 +183,18 @@ th {
|
|||||||
content: "] ";
|
content: "] ";
|
||||||
}
|
}
|
||||||
/* Thread / Reply Nav */
|
/* Thread / Reply Nav */
|
||||||
#navlinks a {
|
#navPrev,
|
||||||
position: fixed;
|
#navNext {
|
||||||
z-index: 12;
|
|
||||||
opacity: 0.5;
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
border-right: 6px solid transparent;
|
border-right: 6px solid transparent;
|
||||||
border-left: 6px solid transparent;
|
border-left: 6px solid transparent;
|
||||||
margin: 1.5px;
|
opacity: 0.5;
|
||||||
|
margin: 3px 2px;
|
||||||
}
|
}
|
||||||
#navlinks a:first-of-type {
|
#navPrev {
|
||||||
border-bottom: 11px solid rgb(130,130,130);
|
border-bottom: 11px solid rgb(130,130,130);
|
||||||
}
|
}
|
||||||
#navlinks a:last-of-type {
|
#navNext {
|
||||||
border-top: 11px solid rgb(130,130,130);
|
border-top: 11px solid rgb(130,130,130);
|
||||||
}
|
}
|
||||||
/* Header */
|
/* Header */
|
||||||
@ -256,9 +254,17 @@ th {
|
|||||||
word-spacing: 2px;
|
word-spacing: 2px;
|
||||||
}
|
}
|
||||||
#shortcuts {
|
#shortcuts {
|
||||||
float: right;
|
position: fixed;
|
||||||
display: flex;
|
display: flex;
|
||||||
display: -webkit-flex;
|
display: -webkit-flex;
|
||||||
|
top: 1px;
|
||||||
|
}
|
||||||
|
.sidebar-location-right #shortcuts {
|
||||||
|
right: 0;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
.sidebar-location-left #shortcuts {
|
||||||
|
left: 0;
|
||||||
}
|
}
|
||||||
.fixed #header-bar.autohide {
|
.fixed #header-bar.autohide {
|
||||||
z-index: 24;
|
z-index: 24;
|
||||||
@ -487,7 +493,7 @@ th {
|
|||||||
}
|
}
|
||||||
/* Icons */
|
/* Icons */
|
||||||
.icons-4chan-ss #main-menu,
|
.icons-4chan-ss #main-menu,
|
||||||
.icons-4chan-ss .navLinks > a:first-of-type::after,
|
.icons-4chan-ss #returnIcon,
|
||||||
.icons-4chan-ss #sowIcon,
|
.icons-4chan-ss #sowIcon,
|
||||||
.icons-4chan-ss #psaIcon,
|
.icons-4chan-ss #psaIcon,
|
||||||
.icons-4chan-ss #slideNav,
|
.icons-4chan-ss #slideNav,
|
||||||
@ -497,7 +503,7 @@ th {
|
|||||||
background-image: url("data:image/png;base64,<%= grunt.file.read("src/General/img/icons/4chanSS.png", {encoding: "base64"}) %>");
|
background-image: url("data:image/png;base64,<%= grunt.file.read("src/General/img/icons/4chanSS.png", {encoding: "base64"}) %>");
|
||||||
}
|
}
|
||||||
.icons-oneechan #main-menu,
|
.icons-oneechan #main-menu,
|
||||||
.icons-oneechan .navLinks > a:first-of-type::after,
|
.icons-oneechan #returnIcon,
|
||||||
.icons-oneechan #sowIcon,
|
.icons-oneechan #sowIcon,
|
||||||
.icons-oneechan #psaIcon,
|
.icons-oneechan #psaIcon,
|
||||||
.icons-oneechan #slideNav,
|
.icons-oneechan #slideNav,
|
||||||
|
|||||||
@ -341,15 +341,15 @@ a .name {
|
|||||||
#selectrice li:not(:first-of-type) {
|
#selectrice li:not(:first-of-type) {
|
||||||
border-top: 1px solid #{if Style.lightTheme then "rgba(0,0,0,0.05)" else "rgba(255,255,255,0.025)"};
|
border-top: 1px solid #{if Style.lightTheme then "rgba(0,0,0,0.05)" else "rgba(255,255,255,0.025)"};
|
||||||
}
|
}
|
||||||
#navtopright .exlinksOptionsLink::after,
|
|
||||||
#main-menu,
|
#main-menu,
|
||||||
.navLinks > a:first-of-type::after,
|
#returnIcon,
|
||||||
#thread-watcher::after,
|
#sowIcon,
|
||||||
#globalMessage::after,
|
#psaIcon,
|
||||||
#boardNavDesktopFoot::after,
|
#slideNav,
|
||||||
#img-controls,
|
#img-controls,
|
||||||
#catalog,
|
#catalog,
|
||||||
#fappeTyme {
|
#fappeTyme,
|
||||||
|
.icon {
|
||||||
#{unless Style.lightTheme then "<%= filter %>: url(\"#icons-filter\");" else ""}
|
#{unless Style.lightTheme then "<%= filter %>: url(\"#icons-filter\");" else ""}
|
||||||
}
|
}
|
||||||
.alternate-post-colors #threads > .thread:nth-of-type(2n+1),
|
.alternate-post-colors #threads > .thread:nth-of-type(2n+1),
|
||||||
|
|||||||
@ -21,8 +21,6 @@ Nav =
|
|||||||
$.on prev, 'click', @prev
|
$.on prev, 'click', @prev
|
||||||
$.on next, 'click', @next
|
$.on next, 'click', @next
|
||||||
|
|
||||||
$.on d, '4chanXInitFinished', append
|
|
||||||
|
|
||||||
prev: ->
|
prev: ->
|
||||||
if g.VIEW is 'thread'
|
if g.VIEW is 'thread'
|
||||||
window.scrollTo 0, 0
|
window.scrollTo 0, 0
|
||||||
|
|||||||
@ -8,7 +8,7 @@ ThreadStats =
|
|||||||
id: 'thread-stats'
|
id: 'thread-stats'
|
||||||
title: 'Post Count / File Count' + (if Conf["Page Count in Stats"] then " / Page Count" else "")
|
title: 'Post Count / File Count' + (if Conf["Page Count in Stats"] then " / Page Count" else "")
|
||||||
$.ready ->
|
$.ready ->
|
||||||
Header.addShortcut sc, [10,10]
|
Header.addShortcut [$.tn('['), sc, $.tn("]\u00A0")], [10,10]
|
||||||
else
|
else
|
||||||
@dialog = sc = UI.dialog 'thread-stats', 'bottom: 0px; right: 0px;',
|
@dialog = sc = UI.dialog 'thread-stats', 'bottom: 0px; right: 0px;',
|
||||||
"<div class=move title='Post Count / File Count#{if Conf["Page Count in Stats"] then " / Page Count" else ""}'><span id=post-count>0</span> / <span id=file-count>0</span>#{if Conf["Page Count in Stats"] then " / <span id=page-count>0</span>" else ""}</div>"
|
"<div class=move title='Post Count / File Count#{if Conf["Page Count in Stats"] then " / Page Count" else ""}'><span id=post-count>0</span> / <span id=file-count>0</span>#{if Conf["Page Count in Stats"] then " / <span id=page-count>0</span>" else ""}</div>"
|
||||||
|
|||||||
@ -9,7 +9,7 @@ ThreadUpdater =
|
|||||||
innerHTML: "<span id=update-status></span><span id=update-timer title='Update now'></span>"
|
innerHTML: "<span id=update-status></span><span id=update-timer title='Update now'></span>"
|
||||||
id: 'updater'
|
id: 'updater'
|
||||||
$.ready ->
|
$.ready ->
|
||||||
Header.addShortcut sc [0,0]
|
Header.addShortcut [$.tn('['), sc, $.tn("]\u00A0")], [0,0]
|
||||||
else
|
else
|
||||||
@dialog = sc = UI.dialog 'updater', 'bottom: 0px; left: 0px;',
|
@dialog = sc = UI.dialog 'updater', 'bottom: 0px; left: 0px;',
|
||||||
"<div class=move><span id=update-status></span><span id=update-timer title='Update now'></span></div>"
|
"<div class=move><span id=update-status></span><span id=update-timer title='Update now'></span></div>"
|
||||||
|
|||||||
@ -17,8 +17,8 @@ QR =
|
|||||||
return unless Conf['Header Shortcut'] or Conf['Page Shortcut']
|
return unless Conf['Header Shortcut'] or Conf['Page Shortcut']
|
||||||
|
|
||||||
sc = $.el 'a',
|
sc = $.el 'a',
|
||||||
className: "qr-shortcut icon icon-comment #{unless Conf['Persistent QR'] then 'disabled' else ''}"
|
className: "qr-shortcut icon #{unless Conf['Persistent QR'] then 'disabled' else ''}"
|
||||||
textContent: 'QR'
|
textContent: '\uf075'
|
||||||
title: 'Quick Reply'
|
title: 'Quick Reply'
|
||||||
href: 'javascript:;'
|
href: 'javascript:;'
|
||||||
|
|
||||||
|
|||||||
@ -133,7 +133,11 @@ Style =
|
|||||||
silhouette: ([fg]) ->
|
silhouette: ([fg]) ->
|
||||||
"0 0 0 0 #{fg.r} 0 0 0 0 #{fg.g} 0 0 0 0 #{fg.b}"
|
"0 0 0 0 #{fg.r} 0 0 0 0 #{fg.g} 0 0 0 0 #{fg.b}"
|
||||||
|
|
||||||
layout: """<%= grunt.file.read('src/General/css/layout.css').replace(/\s+/g, ' ').trim() %>"""
|
layout: """<%=
|
||||||
|
grunt.file.read('src/General/css/layout.css').replace(/\s+/g, ' ').trim()
|
||||||
|
+ ' ' +
|
||||||
|
grunt.file.read('src/General/css/font-awesome.css').replace(/\s+/g, ' ').replace(/\\/g, '\\\\').trim()
|
||||||
|
%>"""
|
||||||
|
|
||||||
dynamic: ->
|
dynamic: ->
|
||||||
sidebarLocation = if Conf["Sidebar Location"] is "left"
|
sidebarLocation = if Conf["Sidebar Location"] is "left"
|
||||||
@ -174,7 +178,7 @@ Style =
|
|||||||
# Slideout Navigation
|
# Slideout Navigation
|
||||||
slideNav = $.el 'i', id: 'slideNav'
|
slideNav = $.el 'i', id: 'slideNav'
|
||||||
$.add $.id('boardNavDesktopFoot'), slideNav
|
$.add $.id('boardNavDesktopFoot'), slideNav
|
||||||
Header.addShortcut slideNav, [120, 110] if Conf['Slideout Navigation'] isnt 'hide'
|
Header.addShortcut slideNav, [50, 110] if Conf['Slideout Navigation'] isnt 'hide'
|
||||||
|
|
||||||
# Announcements
|
# Announcements
|
||||||
if Conf['Announcements'] is 'slideout'
|
if Conf['Announcements'] is 'slideout'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user