Advertisement
Guest User

Danbooru: floating navigation panel

a guest
Mar 18th, 2013
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.85 KB | None | 0 0
  1. @-moz-document domain("donmai.us") {
  2. /* This style changes the Danbooru pool/search navigation element from a bar below the */
  3. /*  image (and subject to scrolling) to a small panel fixed in the upper right of the  */
  4. /*  window, which stays there even when you scroll around a large image.               */
  5. /* It has been designed to work with the Small Mode base style, but should work fine   */
  6. /*  as a standalone style alteration.  All Danbooru navigation keys remain intact.     */
  7.  
  8. /* Last updated 2013-03-14 by kounishin                      */
  9. /* May break if Danbooru page styles change after that date. */
  10.  
  11. /* float pool/search list to top right */
  12. #nav-links {
  13.   position: fixed !important;
  14.   top: 0 !important; right: 0 !important;
  15.   margin: 0 !important;
  16.   padding: 0 !important;
  17.   z-index: 1700 !important;   /* translation notes are z-index: 1500 under Danbooru 2 */
  18.   background: rgba(232,232,255,0.8);
  19.   opacity: 0.5 !important;
  20.   border: 2px solid #006ffa !important;
  21.   border-right: none !important;
  22.   border-top: none !important;
  23.   border-radius: 0 !important;
  24.   border-bottom-left-radius: 10px !important;
  25. }
  26. #nav-links:hover {
  27.   opacity: 0.9 !important;
  28.   border-width: 2px !important;
  29. }
  30.  
  31. /* ...and hide the remainder of the nav-links div ("keyboard shortcuts available" link) */
  32. /* Ugly kludge, but required prior to rearrangement in 2013-03-09 site design           */
  33. /*
  34. #nav-links {
  35.   height: 0 !important; padding: 0 !important; border: 0 !important;
  36. }
  37. #nav-links > * {
  38.   display: none !important;
  39. }
  40. #nav-links > #pool-nav {
  41.   display: block !important;
  42. }
  43. */
  44.  
  45. /* reorder things so the pool/search name is left of the «/» links   */
  46. #nav-links span.pool-name,
  47. #nav-links span.search-name {
  48.   float: left !important;
  49.   margin: 0 0.5em !important;
  50. }
  51. #nav-links .next,
  52. #nav-links .prev {
  53.   position: static !important;
  54.   font-weight: normal !important;  /* bold for active row throws off columns */
  55. }
  56. #nav-links li {
  57.   text-align: right !important;
  58. }
  59. #nav-links span.next,
  60. #nav-links span.prev {
  61.   color: gray !important;          /* so any end-of-pool links appear faded */
  62. }
  63.  
  64. /* highlight active pool */
  65. /* 2013-03-10 02:41 +1300: styling changed again; now search tags put .active on the li, */
  66. /*  but pools only put it on the links.  Hopefully this is just a temporary bug.          */
  67. /*
  68. #nav-links li.active {
  69.   background: rgba(103,103,145,0.4) !important;
  70. }
  71. */
  72.  
  73. #nav-links > div:first-child li:first-child {
  74.   background: rgba(128,128,160,0.5);
  75. }
  76.  
  77. /* curve corner of last pool to match nav div        */
  78. /* also override gray background if there's only one */
  79. #nav-links > div:last-child li:last-child {
  80.   background: rgba(232,232,255,0.8);
  81.   border-bottom-left-radius: 9px !important;
  82. }
  83.  
  84. #nav-links li:hover {
  85.   background: #aae !important;
  86. }
  87. #nav-links a:hover {
  88.   color: white !important;
  89. }
  90.  
  91. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement