Advertisement
Guest User

Danbooru: dark colour scheme

a guest
Aug 4th, 2013
517
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 6.51 KB | None | 0 0
  1. @-moz-document domain("donmai.us") {
  2. /* This style updates colours used on Danbooru to make it a generally light-on-dark */
  3. /*  theme, rather than the dark-on-white that is the site default.                  */
  4. /* It changes *only* colours; no other styling is affected.                         */
  5.  
  6. /* It was originally based on flynch's "Darkbooru" style; that was rebuilt because  */
  7. /*  the original Darkbooru also contained many other style adjustments, so wasn't   */
  8. /*  terribly well suited to working with Small Mode.                                */
  9. /* This style contains some rules for Small Mode elements, but should generally be  */
  10. /*  fine to use by itself as well.                                                  */
  11.  
  12. /* Last updated 2013-07-02 by kounishin                      */
  13. /* May break if Danbooru page styles change after that date. */
  14.  
  15. /* 2013-07-02: #page and #page-footer now explicitly set background as well */
  16. /* 2013-07-06: div#expandable should match blockquote */
  17. /* 2013-07-19: pools list has last-page links too now */
  18. /* 2013-07-22: fix colour of text/links in spoilers */
  19.  
  20. body,
  21. div#page,
  22. footer#page-footer {
  23.   background: #222 !important;
  24.   color: #CCC !important;
  25. }
  26.  
  27. /* borders for Small Mode elements */
  28. header#top nav,
  29. div#nav-links,
  30. div#page aside#sidebar {
  31.   border-color: #569ffa !important;
  32. }
  33.  
  34. /* adjust colours for floating pool navigation */
  35. div#nav-links {
  36.   background: rgba(48,48,96,0.8) !important;
  37. }
  38. div#nav-links li:hover {
  39.   background: #6c6cac !important;
  40. }
  41. div#nav-links > div:last-child li:last-child {
  42.   background: rgba(48,48,96,0.8);
  43. }
  44.  
  45. header#top nav {
  46.   background-color: rgba(48,48,96,0.8) !important;
  47. }
  48.  
  49. /* all header menus (in practice only the main one) */
  50. header#top menu.main {
  51.   background: rgba(48,48,96,0.8) !important;
  52. }
  53.  
  54. /* adjust background for submenu; you want to match the active link in the main one */
  55. header#top menu.main + menu {
  56.   background: rgba(96,96,144,0.9) !important;
  57. }
  58. /* caution: if this is semitransparent, it will combine with the main menu  */
  59. /*  background, so you can't just use the same colour values as the submenu */
  60. header#top menu.main li.current a {
  61.   background: rgba(128,128,176,0.5) !important;
  62. }
  63.  
  64. div#page aside#sidebar,
  65. div#page aside#sidebar:hover {
  66.   background: rgba(48,48,96,0.8) !important;
  67. }
  68.  
  69. blockquote,
  70. div.expandable,
  71. div.prose pre {
  72.   background: #333 !important;
  73. }
  74.  
  75. div.expandable-button {
  76.   background: #444!important;
  77. }
  78.  
  79. div#news-updates {
  80.   /* background: #EEE; */
  81.   background: #777 !important;
  82. }
  83.  
  84. div.ui-state-highlight {
  85.   /* border: 1px solid #fceec1; */
  86.   /* background: #FDF5D9;       */
  87.   /* color: #363636;            */
  88.   border: 1px solid #786F52 !important;
  89.   background: #79735D !important;
  90.   color: #111 !important;
  91. }
  92.  
  93. /* notes still have light backgrounds, so need to default to dark text */
  94. /* but make them a little softer than pure-black-on-pure-white         */
  95. div.note-body {
  96.   background: #f8f8f8 !important;
  97.   color: #111 !important;
  98.   border-color: #111 !important;
  99. }
  100.  
  101. /* default link colours need to be lighter */
  102. a {
  103.   /* color: #0073ff */
  104.   color: #58a3ff !important;
  105. }
  106. a:hover {
  107.   /* color: #80b9ff; */
  108.   color: #C2DDFF !important;
  109. }
  110. div#c-forum-topics a.last-page,
  111. div#c-pools a.last-page {
  112.   /* color: #666 */
  113.   color: #888 !important;
  114. }
  115.  
  116. /* spoilers need their own adjustments */
  117. /* .spoiler{color:black;background:black} */    /* default is fine here */
  118. .spoiler a {        /* needs to be !important to override custom link colors */
  119.   color: black !important;
  120. }
  121. .spoiler:hover {    /* match adjusted body text */
  122.   color: #CCC !important;
  123. }
  124. .spoiler:hover a {  /* needs to be !important to override the non-hovered one */
  125.   color: #58a3ff !important;
  126. }
  127. .spoiler:hover a:hover {  /* and stay consistent with other links */
  128.   color: #C2DDFF !important;
  129. }
  130.  
  131. /* defined in default style sheet this way, thus more specific than the general one above */
  132. div.prose pre {
  133.   background: rgb(51,51,51) !important;
  134. }
  135.  
  136. /* tag history uses wrappers rather than classes for added/deleted tags */
  137. ins > a {
  138.   /* color: green */
  139.   color: #6d6 !important;
  140. }
  141. ins > a:hover {
  142.   color: #bfb !important;
  143. }
  144. del > a {
  145.   /* color: red */
  146.   color: #d66 !important;
  147. }
  148. del > a:hover {
  149.   color: #fbb !important;
  150. }
  151.  
  152. /* general tags just use default style at time of writing */
  153. /*
  154. .category-0 a, a.tag-type-0 {
  155.   color: #0073ff;
  156. }
  157. */
  158.  
  159. /* artist tags */
  160. .category-1 a, a.tag-type-1 {
  161.   /* color: #A00; */
  162.   color: #D66 !important;
  163. }
  164. /* copyright tags */
  165. .category-3 a, a.tag-type-3 {
  166.   /* color: #A0A; */
  167.   color: #D6D !important;
  168. }
  169. /* character tags */
  170. .category-4 a, a.tag-type-4 {
  171.   /* color: #0A0; */
  172.   color: #6D6 !important;
  173. }
  174.  
  175. /* make paginator / footer / forum borders blend better */
  176. div.paginator a,
  177. #page-footer,
  178. table.striped tbody tr {
  179.   border-color: rgba(238,238,238,0.3) !important;
  180. }
  181.  
  182. /* likewise striped tables (ie, the forum) */
  183. table.striped tr.even {
  184.   /* background-color: #FAFAFA; */
  185.   background-color: rgba(128,128,128,0.2) !important;
  186. }
  187. /* needs "tbody" to out-specific the .tr.even definition */
  188. table.striped tbody tr:hover {
  189.   /* background-color: #C5F1FF; */
  190.   background-color: #576265 !important;
  191. }
  192.  
  193. /* pos/neg feedback background colours override odd/even rows in original style */
  194. /* these override the on-hover highlight; that's true in the original too.      */
  195. div#c-user-feedbacks tr.feedback-category-positive {
  196.     background-color: rgba(64,128,64,0.3) !important;
  197. }
  198. div#c-user-feedbacks tr.feedback-category-negative {
  199.     background-color: rgba(128,64,64,0.3) !important;
  200. }
  201. div#c-user-feedbacks tr.feedback-category-neutral {
  202.     background-color: transparent !important;
  203. }
  204.  
  205. /* additions to keep even-row highlights for pos/neg rows */
  206. /*  clashes too much when going from a highlight-coloured */
  207. /*  row to a regular non-highlighted non-coloured one, so */
  208. /*  I've turned it off again.                             */
  209. /*
  210. div#c-user-feedbacks tr.feedback-category-positive.even {
  211.     background-color: rgba(128,192,128,0.3) !important;
  212. }
  213. div#c-user-feedbacks tr.feedback-category-negative.even {
  214.     background-color: rgba(192,128,128,0.3) !important;
  215. }
  216. */
  217.  
  218. /* uncomment to enable hover-highlight on pos/neg rows too */
  219. /* must appear AFTER the pos/neg colours to work correctly */
  220. div#c-user-feedbacks tr:hover {
  221.   /* background-color: #C5F1FF; */
  222.   background-color: #576265 !important;
  223. }
  224.  
  225.  
  226. /* Forum / history column headings */
  227. th {
  228.   color: #888 !important;
  229. }
  230.  
  231. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement