Advertisement
anonymous_you

Endchan CSS

Jan 3rd, 2023 (edited)
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 8.12 KB | None | 0 0
  1. /* Uses Default layout / Tommorrow theme as base */
  2. html {
  3.     --post-background: #2F343ED0;
  4.     --post-corner-radius: 2px;
  5.     --post-border-style: none;
  6.     --post-border-width: 0px;
  7.     --post-border-color: transparent;
  8.    
  9.     --post-preview-background: #1D1D21EE;
  10.     --post-preview-corner-radius: 2px;
  11.     --post-preview-border-style: solid;
  12.     --post-preview-border-width: 2px;
  13.     --post-preview-border-color: #000000F4;
  14.  
  15.     --post-marked-background: var(--post-preview-background);
  16.     --post-marked-corner-radius: var(--post-preview-corner-radius);
  17.     --post-marked-border-style: var(--post-preview-border-style);
  18.     --post-marked-border-width: var(--post-preview-border-width);
  19.     --post-marked-border-color: var(--post-preview-border-color);
  20.  
  21.     --post-max-height: 400px; /* 640px by default before it starts to scroll */
  22.     --post-max-width: 86vw;  /* 86% viewport width (window) */
  23.     /* this gives 5 files in the same line without overlap on my settings, may require tweaking */
  24.     --attachment-max-width: 16vw;
  25.  
  26.     --spoiler-width: 200px;
  27.     --spoiler-height: var(--spoiler-width);
  28.  
  29.     /* can be a solid color or image */
  30.     /*--page-background: #ABABAB;*/
  31.     --page-background: url(https://i.imgur.com/BiOlhRw.jpeg) no-repeat center fixed;
  32.  
  33.     --link-text: #A5BCD0;
  34.     --link-text-hover: #D2DFEA;
  35.     --green-text: #9FBE75;
  36.  
  37.     /* set to none to hide del link on posts (make sure to select the checkbox at the bottom of the page before it's hidden) */
  38.     /* use something like inline or inherit to show */
  39.     --del-link-display: none;
  40.  
  41.     --reply-form-min-width: 465px;
  42.     --reply-form-min-height: 150px;
  43.     --reply-form-attachments-align: right; /*left by default, right is eaier for drag+drop on single screen*/
  44.  
  45.     --bottom-nav-background: transparent;
  46.     --bottom-nav-align: right;
  47.     --bottom-nav-border-style: none;
  48.     --bottom-nav-border-width: 0px;
  49.     --bottom-nav-border-color: transparent;
  50.  
  51.     --page-indicator-background: var(--post-background);
  52.     --page-indicator-corner-radius: var(--post-corner-radius);
  53.  
  54.     --posting-mode-banner-display: none;
  55.     --announcements-background: #676E7CD0;
  56.     --announcements-corner-radius: 4px;
  57.     --announcements-border-style: 2px;
  58.     --announcements-border-width: inset;
  59.     --announcements-border-color: initial;
  60.  
  61.     /* allows hiding quick reply and toggle reply form buttons if the reply form is opened by defaut through dollchan */
  62.     /* use none instead of inherit/block to hide */
  63.     --quick-reply-display: inherit; /* inherit by default */
  64.     --reply-toggle-display: block; /* block by default */
  65.     --reply-toggle-align:  center; /* center by default */
  66. }
  67.  
  68. /* == Posts & page == */
  69.  
  70. /* Post styling */
  71. .innerPost {
  72.     border-radius: var(--post-corner-radius);
  73.     background-color: var(--post-background);
  74.     padding-right: 12px;
  75.     max-width: var(--post-max-width) !important;
  76.     border-style: var(--post-border-style);
  77.     border-width: var(--post-border-width);
  78.     border-color: var(--post-border-color);
  79. }
  80. /* Marked (selected) post styling */
  81. .markedPost {
  82.     background-color: var(--post-marked-background);
  83.     border-radius: var(--post-marked-corner-radius);
  84.     border-style: var(--post-marked-border-style);
  85.     border-width: var(--post-marked-border-width);
  86.     border-color: var(--post-marked-border-color);
  87. }
  88. /* OP styling */
  89. .innerOP {
  90.     border-radius: var(--post-corner-radius);
  91.     background-color: var(--post-background);
  92.     padding-left: 4px;
  93.     padding-right: 4px;
  94.     padding-top: 8px;
  95.     padding-bottom: 8px;
  96.     border-style: var(--post-border-style);
  97.     border-width: var(--post-border-width);
  98.     border-color: var(--post-border-color);
  99. }
  100. /* Post (reply) previews styling */
  101. .de-pview {
  102.     background-color: var(--post-preview-background);
  103.     border-radius: var(--post-preview-corner-radius);
  104.     border-style: var(--post-preview-border-style);
  105.     border-width: var(--post-preview-border-width);
  106.     border-color: var(--post-preview-border-color);
  107. }
  108. .divMessage {
  109.     max-height: var(--post-max-height);
  110. }
  111.  
  112. /* Text colors (links, greentext) */
  113. a, blockquote a {
  114.     color: var(--link-text);
  115. }
  116. a:hover, blockquote a:hover {
  117.     color: var(--link-text-hover);
  118. }
  119. .greenText {
  120.     color: var(--green-text);
  121. }
  122.  
  123. /* Background */
  124. body {
  125.   background: var(--page-background) !important;
  126.   -webkit-background-size: cover;
  127.   -moz-background-size: cover;
  128.   -o-background-size: cover;
  129.   background-size: cover;
  130. }
  131.  
  132. /* Remove del link */
  133. a.delLink {
  134.     display: var(--del-link-display);
  135. }
  136. label#hideDelLbl {
  137.     display: var(--del-link-display) !important;
  138. }
  139.  
  140. /* Better sizing for file attachments */
  141. div.uploadDetails {
  142.     max-width: var(--attachment-max-width) !important;
  143.     white-space: nowrap;
  144.     overflow: hidden;
  145.     text-overflow: ellipsis;
  146. }
  147. .imgLink > img, .de-img-embed, .de-video-obj {
  148.     opacity: 1.0 !important;
  149.     max-width: var(--attachment-max-width) !important;
  150.     height: auto;
  151. }
  152. img[src*="/.media/"] {
  153.     opacity: 1.0 !important;
  154. }
  155. /* Square spoilers */
  156. img[src*="/ttg/custom.spoiler"] {
  157.     width: var(--spoiler-width);
  158.     height: var(--spoiler-height);
  159. }
  160.  
  161. /* == Reply form (not quick reply) == */
  162.  
  163. /* Anchor reply form to top right */
  164. form.form-post {
  165.     position: fixed;
  166.     top: 20px;
  167.     right: 16px;
  168.     background: var(--post-background);
  169.     padding: 8px !important;
  170.     border-radius: var(--post-corner-radius);
  171. }
  172. /* Larger min size of reply box*/
  173. textarea#fieldMessage {
  174.     min-width: var(--reply-form-min-width) !important;
  175.     min-height: var(--reply-form-min-height) !important;
  176. }
  177. /* Smaller canvas size inputs */
  178. input#oekakiWidth {
  179.     width: 80px;
  180. }
  181. input#oekakiHeight {
  182.     width: 80px;
  183. }
  184. /* actually, just hide those */
  185. td:has(input#oekakiWidth) {
  186.     display: none;
  187. }
  188. /* Hide padding on top of reply form */
  189. div.hField {
  190.     display: none;
  191. }
  192. /* Hide manage board, moderate thread links */
  193. p:has(a#linkManagement) {
  194.     display: none;
  195. }
  196. /* Hide nav links under reply form */
  197. p.topNav {
  198.     display: none;
  199. }
  200. /* Align file attachments in reply form */
  201. div#de-file-area {
  202.     text-align: var(--reply-form-attachments-align);
  203. }
  204.  
  205. /* == Footer == */
  206.  
  207. /* Bottom nav */
  208. .bottomNav {
  209.     text-align: var(--bottom-nav-align);
  210.     float: none !important; /* allows bottom nav alignment on front page */
  211.     background-color: var(--bottom-nav-background) !important;
  212.     font-size: 100% !important;
  213.     border-style: var(--bottom-nav-border-style) !important;
  214.     border-width: var(--bottom-nav-border-width) !important;
  215.     border-color: var(--bottom-nav-border-color) !important;
  216. }
  217. #divPages {
  218.     background-color: var(--page-indicator-background) !important;
  219.     border-radius: var(--page-indicator-corner-radius) !important;
  220. }
  221. /* Configure quick reply link visibility */
  222. a.replyLink {
  223.     display: var(--quick-reply-display);
  224. }
  225. /* Configure Toggle reply form visibility */
  226. div.de-parea > div:first-of-type {
  227.     display: var(--reply-toggle-display);
  228.     text-align: var(--reply-toggle-align);
  229. }
  230.  
  231. /* Content action form (delete/report) */
  232. /* anchor to bottom right of screen, hide content by default, show on hover */
  233. div.contentAction {
  234.     position: fixed;
  235.     bottom: 16px;
  236.     right: 8px;
  237.     min-width: 64px;
  238.     min-height: 8px;
  239.     padding: 8px !important;
  240.     border-radius: var(--post-corner-radius);
  241.     background: var(--post-background);
  242. }
  243. div.contentAction > * {
  244.     display: none !important;
  245. }
  246. div.contentAction:hover > * {
  247.     display: block !important;
  248. }
  249.  
  250. /* == Header == */
  251.  
  252. /* Hide posting mode banner at the top */
  253. div#modeBanner {
  254.     display: var(--posting-mode-banner-display);
  255. }
  256.  
  257. /* Site announcements in header */
  258. details > iframe {
  259.     background-color: var(--announcements-background);
  260.     border-radius: var(--announcements-corner-radius);
  261.     border-style: var(--announcements-border-style);
  262.     border-width: var(--announcements-border-width);
  263.     border-color: var(--announcements-border-color);
  264. }
  265.  
  266. /* == Misc == */
  267.  
  268. /* Dollchan settings panel missing bg */
  269. div.de-win-body {
  270.     background-color: var(--post-background) !important;
  271. }
  272.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement