Make site software and host available to custom CSS (@document is still FF specific).

This commit is contained in:
ccd0 2018-01-24 00:29:08 -08:00
parent 1261ff71ab
commit 62085ec6e7

View File

@ -206,6 +206,8 @@ Main =
# disable the mobile layout
$('link[href*=mobile]', d.head)?.disabled = true
doc.dataset.host = location.host
$.addClass doc, "sw-#{Site.software}"
$.addClass doc, if g.VIEW is 'thread' then 'thread-view' else g.VIEW
$.onExists doc, '.ad-cnt, .adg-rects > .desktop', (ad) -> $.onExists ad, 'img, iframe', -> $.addClass doc, 'ads-loaded'
$.addClass doc, 'autohiding-scrollbar' if Conf['Autohiding Scrollbar']