Revert CSS fixes for April 1 material design theme.
Revert "More CSS fixes for MD theme, even though it's removed now." This reverts commit 14a81213a11ab75717f064f4fb62d6af5c38be65. Revert "Fix image expansion under current 4chan theme." This reverts commit 3d5077c8e5046f3227ee73bcb35cd53849153589. Revert "Also fix the quote preview / inlining CSS for MD theme." This reverts commit b1921c72c0cb7b6804e7e80f8a3194e818130fd3. Revert "md2016-specific CSS fixes." This reverts commit 069a4030562da409fce22ba7bfcbd5c6c80dc93c.
This commit is contained in:
parent
a68236efa3
commit
9bc1195eec
@ -195,11 +195,6 @@ Main =
|
||||
Main.setClass()
|
||||
|
||||
setClass: ->
|
||||
if (md2016 = $ 'link[rel="stylesheet"][href^="//s.4cdn.org/css/md2016."]', d.head)
|
||||
md2016.removeAttribute 'media'
|
||||
if getComputedStyle(d.body).backgroundColor is 'rgb(245, 245, 245)' # not blocked
|
||||
$.addClass doc, 'md2016'
|
||||
|
||||
if g.VIEW is 'catalog'
|
||||
$.addClass doc, $.id('base-css').href.match(/catalog_(\w+)/)[1].replace('_new', '').replace /_+/g, '-'
|
||||
return
|
||||
@ -390,7 +385,7 @@ Main =
|
||||
$.ready ->
|
||||
cb() if Main.isThisPageLegit()
|
||||
|
||||
css: `<%= importCSS('font-awesome', 'style', 'yotsuba', 'yotsuba-b', 'futaba', 'burichan', 'tomorrow', 'photon', 'md2016', 'supports') %>`
|
||||
css: `<%= importCSS('font-awesome', 'style', 'yotsuba', 'yotsuba-b', 'futaba', 'burichan', 'tomorrow', 'photon', 'supports') %>`
|
||||
|
||||
cssWWW: `<%= importCSS('www') %>`
|
||||
|
||||
|
||||
@ -178,7 +178,6 @@ ImageExpand =
|
||||
el.src = src or file.url
|
||||
|
||||
el.className = 'full-image'
|
||||
$.addClass el, 'expanded-thumb' if $.hasClass doc, 'md2016'
|
||||
$.after thumb, el
|
||||
|
||||
if isVideo
|
||||
|
||||
@ -1,35 +0,0 @@
|
||||
/* Adapted from https://s.4cdn.org/css/md2016.651.css */
|
||||
:root.md2016 .page-num {
|
||||
color: #999;
|
||||
}
|
||||
:root.md2016 .summary {
|
||||
border-radius: 0 0 2px 2px;
|
||||
background-color: #f5f5f5;
|
||||
width: 80%;
|
||||
display: block;
|
||||
margin: -1px auto 0 auto;
|
||||
box-shadow: 0 2px 2px 0 rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.2), 0 1px 5px 0 rgba(0,0,0,.12);
|
||||
border-top: 1px solid rgba(0,0,0,0.1);
|
||||
text-indent:10px;
|
||||
padding:10px 0;
|
||||
}
|
||||
|
||||
:root.md2016 #hoverUI div.postContainer,
|
||||
:root.md2016 .inline div.postContainer {
|
||||
width: auto;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
:root.md2016 #hoverUI div.post,
|
||||
:root.md2016 .inline div.post {
|
||||
max-width: 100%;
|
||||
}
|
||||
:root.md2016 #unread-line {
|
||||
display: block;
|
||||
position: relative;
|
||||
top: 7.5px;
|
||||
}
|
||||
:root.md2016 .threadContainer {
|
||||
margin-left: 26px;
|
||||
border-left: none;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user