Fix catalog, add some CSS for index features
This commit is contained in:
parent
0a8719172c
commit
ca153df551
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -44,11 +44,11 @@ Main =
|
||||
|
||||
$.get Conf, (items) ->
|
||||
$.extend Conf, items
|
||||
Main.initFeatures()
|
||||
$.asap (-> Favicon.el = $ 'link[rel="shortcut icon"]', d.head), Main.initFeatures()
|
||||
|
||||
initFeatures: ->
|
||||
# Check if the current board we're on is SFW or not, so we can handle options that need to know that.
|
||||
Favicon.el = $ 'link[rel="shortcut icon"]', d.head
|
||||
|
||||
Favicon.el.type = 'image/x-icon'
|
||||
{href} = Favicon.el
|
||||
Favicon.SFW = /ws\.ico$/.test href
|
||||
|
||||
@ -57,8 +57,7 @@ body > hr {
|
||||
/* Hidden UI */
|
||||
#navtopright,
|
||||
#svg_filters,
|
||||
.cataloglink,
|
||||
.navLinks {
|
||||
.cataloglink {
|
||||
z-index: 7;
|
||||
position: fixed;
|
||||
top: 100%;
|
||||
@ -77,6 +76,48 @@ body > hr {
|
||||
.werkTyme .post .file {
|
||||
display: none;
|
||||
}
|
||||
/* Index Features */
|
||||
:root.index-loading .navLinks,
|
||||
:root.index-loading .board,
|
||||
:root.index-loading .pagelist {
|
||||
display: none;
|
||||
}
|
||||
#index-search {
|
||||
padding-right: 1.5em;
|
||||
width: 100px;
|
||||
transition: color .25s, border-color .25s, width .25s;
|
||||
}
|
||||
#index-search:focus,
|
||||
#index-search[data-searching] {
|
||||
width: 200px;
|
||||
}
|
||||
#index-search-clear {
|
||||
margin-left: -1em;
|
||||
}
|
||||
<% if (type === 'crx') { %>
|
||||
/* ``::-webkit-*'' selectors break selector lists on Firefox. */
|
||||
#index-search::-webkit-search-cancel-button,
|
||||
<% } %>
|
||||
#index-search:not([data-searching]) + #index-search-clear {
|
||||
display: none;
|
||||
}
|
||||
.index #returnlink,
|
||||
.index #bottomlink,
|
||||
.thread #index-last-refresh,
|
||||
.thread #index-search-clear,
|
||||
.thread #index-search {
|
||||
display: none;
|
||||
}
|
||||
#returnlink::before,
|
||||
#bottomlink::before,
|
||||
#index-last-refresh::before {
|
||||
content: '[';
|
||||
}
|
||||
#returnlink::after,
|
||||
#bottomlink::after,
|
||||
#index-last-refresh::after {
|
||||
content: ']';
|
||||
}
|
||||
/* Defaults */
|
||||
a {
|
||||
text-decoration: none;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user