Advertisement
Guest User

Danbooru: Small Modo base style

a guest
Mar 9th, 2013
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 5.06 KB | None | 0 0
  1. @-moz-document domain("donmai.us") {
  2. /* Danbooru "Small Mode" style sheet */
  3. /* Aim: maximise space for images, keep everything else out of the way */
  4. /* Also add navigation convenience where possible                      */
  5. /* DOES NOT eliminate ads - that's a choice for individual users - but */
  6. /*  aims to work correctly whether ads are displayed or not.           */
  7.  
  8. /* Originally written by Socialery; it used to have a regular home at          */
  9. /*  http://userstyles.org/styles/35130, but UserStyles purged anything NSFW.   */
  10. /* Adapted, and later extended with CSS3 elements, by kounishin                */
  11. /* Rewritten for Danbooru 2.0 in February 2013 by kounishin, taking some parts */
  12. /*  from the cleanup/page-width style posted by flynch in forum #84531.        */
  13. /* Separated into multiple components in March 2013, to better allow users to  */
  14. /*  get the parts they liked and avoid the ones they didn't.                   */
  15.  
  16. /* Last updated 2013-03-10 by kounishin                           */
  17. /* May break if/when Danbooru page styles change after that date. */
  18.  
  19. /* Adapted from flynch: Smaller, more consistent font. */
  20. body {
  21.   font-family: Verdana, Helvetica, sans-serif !important;
  22.   font-size: 0.8em !important;
  23. }
  24.  
  25. /* remove "Danbooru" header */
  26. #top h1 {
  27.   display: none !important;
  28. }
  29.  
  30. /* collapse menu bars (but not site news!) into a small favicon */
  31. #top nav {
  32.   /* z-index needs to be >1500 to ensure it's above translation notes, and >1800 to be above pull-out sidebar */
  33.   z-index: 2000;
  34.   background-image: url("http://danbooru.donmai.us/favicon.ico") !important;
  35.   background-repeat: no-repeat !important;
  36.   background-color: rgba(232,232,255,0.8) !important;
  37.   height: 18px !important; width: 18px !important;
  38.   overflow: hidden !important;
  39.   position: fixed !important; top: 0px; left: 0px;
  40.   border-right: 2px solid #006FFA !important;
  41.   border-bottom: 2px solid #006FFA !important;
  42.   opacity: 0.5 !important;
  43.   float: left !important;
  44.   border-bottom-right-radius: 10px !important;
  45. }
  46. #top nav > menu {
  47.   display: none !important;
  48. }
  49.  
  50. #top nav:hover {
  51.   height: auto !important;
  52.   width: auto !important;
  53.   background-color: transparent !important;  /* set bgcolor on the menu elements only */
  54.   opacity: 1 !important;
  55. }
  56. #top nav:hover > menu {
  57.   display: block !important;
  58. }
  59.  
  60. /* remove remaining header margins: the negative margin on */
  61. /*  the submenu is ugly with translucent backgrounds.      */
  62. #top, #top menu {
  63.   margin: 0 !important;
  64. }
  65.  
  66. /* reduce page l/r margins (default is 1em, 0 t/b) */
  67. #page {
  68.   margin: 0 0.5em !important;
  69. }
  70.  
  71. /* adjust menu colours to account for transparency */
  72. menu.main {
  73.   background: rgba(232,232,255,0.8) !important;
  74. }
  75. /* selected main-menu option should match submenu */
  76. li.current a, menu.main + menu {
  77.   background: rgba(192,192,240,0.9) !important;
  78. }
  79. /* optional: add clear feedback for option under cursor */
  80. nav a:hover {
  81.   background: rgba(160,160,255,0.8) !important;
  82.   color: #f0f0f0 !important;
  83. }
  84.  
  85. /* Add space on site news div (if shown) for menu icon; also pool/forum topic/etc headers */
  86. #news-updates,
  87. #a-show > h1,
  88. #a-index > h1 {
  89.   padding-left: 22px !important;
  90. }
  91.  
  92.  
  93. /* smaller text notices of other kinds */
  94. div[id$="notice"], div.notice {
  95.   font-size: 0.8em !important;
  96.   padding: 0.3em !important;
  97.   margin: 0.5em !important;
  98. }
  99.  
  100. /* remove headings from sidebar sections */
  101. #sidebar h1, #sidebar h2 {
  102.   display: none;
  103. }
  104. /* shrink sidebar font */
  105. #sidebar {
  106.   font-size: 0.85em !important;
  107. }
  108. /* adjust history link text to account for loss of heading */
  109. #sidebar a[href*="_versions?"]:after {
  110.   content: " History" !important;
  111. }
  112.  
  113. /* shrink margins between different tag types */
  114. #tag-list ul {
  115.   margin-bottom: 0.3em !important;
  116. }
  117.  
  118. /* shrink top margins for post-page sections */
  119. div#c-posts div#a-show section {
  120.   margin-top: 0.3em !important;
  121. }
  122.  
  123. /* compress comments / forum posts */
  124. #comments {
  125.   font-size: 0.9em !important;
  126. }
  127.  
  128. article.comment, #c-forum-topics article, .prose p, .prose blockquote {
  129.   margin-bottom: 0.5em !important;
  130. }
  131. .prose blockquote {
  132.   padding: 0.75em !important;  
  133. }
  134. div.content menu {
  135.   font-size: 0.8em !important;
  136. }
  137.  
  138. /* remove bottom margin from last paragraph in blockquotes; otherwise */
  139. /*  it adds to the padding already there and creates unwanted space   */
  140. blockquote > p:last-child {
  141.   margin-bottom: 0em !important;
  142. }
  143.  
  144. /* make post separation a little clearer */
  145. div.list-of-comments > article:nth-child(even),
  146. div.list-of-forum-posts > article:nth-child(even) {
  147.   background: rgba(128,128,128,0.05) !important;
  148. }
  149.  
  150. /* if you prefer separation lines, you could comment out */
  151. /*  the nth-child bit above and use these instead        */
  152. /* adapted from flynch's Darkbooru style */
  153. /*
  154. div.list-of-comments > article,
  155. div.list-of-forum-posts > article {
  156.   border-bottom: 1px solid rgba(128,128,128,0.2) !important;
  157.   padding-bottom: 0.5em !important;
  158. }
  159. div.list-of-comments > article:last-of-type,
  160. div.list-of-forum-posts article:last-of-type {
  161.   border-bottom: 0px !important;
  162. }
  163. */  
  164.  
  165. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement