SHARE
TWEET

Yotsuba B for Endchan v1.1

a guest Apr 4th, 2017 123 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* ============================================================================
  2. Yotsuba B for Endchan v1.1
  3.  
  4. This stylesheet was made for Endchan as an attempt to mimic the popular
  5. Yotsuba B theme used in other imageboards like 4chan and 8chan.
  6.  
  7. Please note that LynxChan (the engine Endchan runs on) is a work-in-progress,
  8. and this stylesheet uses many "hacks" to modify HTML elements that currently
  9. lack unique IDs or classes. Eventually this stylesheet will need to be modified
  10. or rewritten to reflect forthcoming changes to the software Endchan uses.
  11.  
  12. Hopefully OdiliTime will just make this the default theme for Endchan.
  13.  
  14. This stylesheet has been tested only on Firefox and Chrome. This has been made
  15. for Endchan but should theoretically work in other instances of LynxChan.
  16. ============================================================================ */
  17.  
  18. /* set top border color similar to 8chan */
  19. nav {border-bottom: 1px solid #89A;}
  20.  
  21. /* raise board banner to similar margin-top as 8chan */
  22. .boardHeader {margin-top: 2em;}
  23.  
  24. /* set font sizes and colors similar to 4chan/8chan */
  25. nav {font-size: 1.1em;}
  26. a, #threadList #divThreads, #threadList #threadLinks, label {font-size: 0.8em;}
  27. .innerPost a, .opCell a {font-size: 1em;}
  28. .boardHeader p#labelName {font-size: 1.7em; font-weight: bold;}
  29. .boardHeader p#labelDescription {font-size: 0.7em;}
  30. .form-post .small {font-size: 0.6em;}
  31. .quoteblock {font-size: 1.1em;}
  32. .panelBacklinks a {font-size: 0.85em;}
  33. .threadPages {font-size: 1em;}
  34. .contentOmissionIndicator, .labelOmission {color: #707070;}
  35. .spoiler:hover {color: white; background-color: black;}
  36. #threadReport, #divThreads [id^="Show"] a {font-size: 1em;}
  37. pre {font-size: 1.2em;}
  38. .contentAction a {font-size: 0.6em;}
  39.  
  40. /* underline catalog like in 8chan */
  41. .boardHeader a {text-decoration: underline;}
  42.  
  43. /* hide boards and bottom links */
  44. .boardHeader [href^="../boards"], .boardHeader [href^="#bottom"] {display: none;}
  45.  
  46. /* reduce margin above post form */
  47. #postBox {margin-top: 0em;}
  48.  
  49. /* set post form font size and borders similar to 4chan */
  50. .form-post th {
  51.   font-size: 1.1em;
  52.   border: 1px solid #000;
  53. }
  54.  
  55. /* increase post textboxes similar to 4chan/8chan */
  56. #fieldName, #fieldEmail, #fieldSubject {width: 20em;}
  57.  
  58. /* set textbox border style similar to 4chan/8chan */
  59. input#fieldName, input#fieldEmail, input#fieldSubject, textarea, input#fieldPostingPassword, input#oekakiWidth, input#oekakiHeight, input#checkboxSpoiler,
  60. input#reportFieldReason, input#deletionFieldPassword {
  61.   margin: 0px;
  62.   margin-right: 2px;
  63.   padding: 2px 4px 3px 4px;
  64.   border: 1px solid #AAA;
  65.   outline: none;
  66.   font-family:inherit;
  67.   font-size:1.1em;
  68. }
  69. input#fieldCaptchaReport {
  70.   margin: 0px;
  71.   margin-right: 2px;
  72.   padding: 2px 4px 3px 4px;
  73.   border: 1px solid #AAA;
  74.   outline: none;
  75.   font-family:inherit;
  76.   font-size:1em;
  77. }
  78.  
  79. /* append words "all files" to spoiler for clarity */
  80. .spoilerCheckbox::after {content: " all files";}
  81.  
  82. /* downsize xbox-hueg captchas, give nice grey border */
  83. #captchaImage {width: 50%; border: 1px solid #AAA;}
  84. #captchaImageReport {width: 68%; border: 1px solid #AAA;}
  85.  
  86. /* align captcha center */
  87. #postBox #captchaDiv {text-align: center;}
  88.  
  89. /* decrease post edited message font size and italicize */
  90. .labelLastEdit {font-size: 0.85em; font-style: italic;}
  91.  
  92. /* remove some underlines like in 4chan */
  93. .contentOmissionIndicator a, .labelOmission a {text-decoration: none;}
  94.  
  95. /* reduce margin in "message too long" */
  96. .contentOmissionIndicator {margin-top: 0; margin-bottom: 0;}
  97.  
  98. /* prepend a missing space before "Expand thread" link */
  99. .labelOmission a::before {content: " ";}
  100.  
  101. /* adjust omitted message margin similar to 4chan */
  102. .labelOmission {
  103.   margin-top: 0.875em;
  104.   margin-bottom: -0.9em;
  105. }
  106.  
  107. /* fix links that don't hover red */
  108. nav a:hover, .boardHeader a:hover, #postBox a:hover, .opCell a:hover, .innerPost a:hover, .markedPost a:hover, .threadPages a:hover, #divThreads [id^="Show"], .bottomNav a:hover, a:hover
  109. {
  110.   color: #dd0000;
  111. }
  112. .innerPost :not(divMessage) a:hover {color: #dd0000;}
  113.  
  114. /* keep hovered name field green, set important rule to override opCell and innerPost */
  115. .noEmailName:hover {color: #117743 !important;}
  116.  
  117. /* align "message too long" with innerPost assuming both set to same margin-left */
  118. .postCell .contentOmissionIndicator {margin-left: 2.4em;}
  119.  
  120. /* slightly reduce multi-file horizontal margin for better fitting of 5 images */
  121. .uploadCell {margin-right: 0.1em;}
  122. /* reduce file info max width similar to 4chan's for better fitting */
  123. .uploadDetails {white-space: nowrap;
  124.   overflow: hidden;
  125.   text-overflow: ellipsis;
  126.   max-width: 23.4em;
  127. }
  128.  
  129. /* unbold board owner/volunteer label */
  130. .labelRole {font-weight: normal;}
  131. /* prepend ## to label like in 4chan/8chan */
  132. .labelRole::before {content: "## ";}
  133.  
  134. /* hide post Preview links */
  135. .linkPreview {display: none;}
  136.  
  137. /* hide del */
  138. a.delLink, a[href="#bottom"] {display: none !important;}
  139.  
  140. /* move post # left to cover unnecessary space between "No." and the number, like 4chan */
  141. .linkQuote {position: relative; right: 0.5ch;}
  142.  
  143. /* hide Hide User */
  144. a[id^="hide"][id*="User"] {display: none;}
  145.  
  146. /* Replace [X] with [--] and move it far left like in 8chan */
  147. .opHead a[id^="hide"] {
  148.   color: transparent;
  149.   visibility: hidden;
  150. }
  151. .opHead a[id^="hide"][id*="Thread"]::after {
  152.   color: initial;
  153.   content: "[--]";
  154.   text-decoration: underline;
  155.   visibility: visible;
  156.   float: left;
  157. }
  158. /* move OP backlinks (reply ID links) leftwards to make up for hiding [X]  */
  159. .opHead .panelBacklinks a {position: relative; right: 2em !important;}
  160.  
  161. /* move reply backlink leftwards for similar reason, be more like 4chan/8chan */
  162. .innerPost .panelBacklinks a {position: relative; right: 0.5em !important;}
  163.  
  164. /* reduce backlinks padding-left from 0.5em like in 4chan */
  165. .panelBacklinks a {padding-left: 0.4em;}
  166.  
  167. /* Hide all [X] post hiders (not including OP) */
  168. .innerPost a[id^="hide"] {display: none;}
  169.  
  170. /* remove underline in Reply like in 4chan */
  171. .linkReply {text-decoration: none;}
  172.  
  173. /* set OP's margin-left similar to 4chan/8chan */
  174. :not(.postCell) .divMessage {margin-left: 0em;}
  175.  
  176. /* increase post padding and margins similar to 8chan */
  177. .innerPost, .markedPost {padding: 0.3em 0.3em 0.4em 0.1em;}
  178. .postCell .divMessage {
  179.   margin-left: 2.4em;
  180.   padding-right: 3em;
  181. }
  182. .quoteblock .innerPost {padding: 0.3em 1.2em 0.4em 0.8em;}
  183.  
  184. /* remove vertical spacing between aa tags */
  185. .aa {display: inline-block;}
  186.  
  187. /* page navigation bg and border similar to 4chan/8chan */
  188. .threadPages {
  189.   background: #D6DAF0;
  190.   display: inline-block;
  191.   padding: 8px;
  192.   margin: 8px 0 4px 0;
  193.   border-right: 1px solid #B7C5D9;
  194.   border-bottom: 1px solid #B7C5D9;
  195. }
  196.  
  197. /* add brackets between page navigation links like in 4chan/8chan*/
  198. .threadPages [href^="#top"]::before {
  199.   content: "[";
  200.   color: #89A;
  201. }
  202. .threadPages [href^="#top"]::after {
  203.   content: "]";
  204.   color: #89A;
  205. }
  206. .threadPages [href^="index"]::before, .threadPages [href^="1"]::before, .threadPages [href^="2"]::before, .threadPages [href^="3"]::before,
  207. .threadPages [href^="4"]::before, .threadPages [href^="5"]::before, .threadPages [href^="6"]::before, .threadPages [href^="7"]::before,
  208. .threadPages [href^="8"]::before, .threadPages [href^="9"]::before
  209. {
  210.   content: "[";
  211.   color: #89A;
  212. }
  213. .threadPages [href^="index"]::after, .threadPages [href^="1"]::after, .threadPages [href^="2"]::after, .threadPages [href^="3"]::after,
  214. .threadPages [href^="4"]::after, .threadPages [href^="5"]::after, .threadPages [href^="6"]::after, .threadPages [href^="7"]::after,
  215. .threadPages [href^="8"]::after, .threadPages [href^="9"]::after
  216. {
  217.   content: "]";
  218.   color: #89A;
  219. }
  220. .threadPages span {color: transparent;}
  221.  
  222. /* hide Manage links */
  223. #linkManagement, #linkModeration {display: none;}
  224.  
  225. /* move post deleter/reporter right, reduce vertical margins */
  226. .contentAction {
  227.   float: right;
  228.   margin-top: -0.8em;
  229.   margin-bottom: 0.1em;
  230. }
  231.  
  232. /* hide long message about file deletion references, no one cares richard */
  233. #threadReport label.checkbox {
  234.   white-space: nowrap;
  235.   overflow: hidden;
  236.   text-overflow: ellipsis;
  237.   max-width: 9.1em;
  238. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top