Advertisement
Guest User

Danbooru: full-width text posts

a guest
Mar 18th, 2013
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.16 KB | None | 0 0
  1. @-moz-document domain("donmai.us") {
  2. /* Designed to work with the Small Mode style, but should be mostly fine on its own.  */
  3. /* Expands various parts of the Danbooru design to use the full (or nearly full) page */
  4. /*  width, rather than being restricted to a specific (small) amount.                 */
  5. /* The greatest effect can be seen on forum posts and longer image comments.          */
  6. /* 2013-03-19: no longer needed for forum posts; those are full-width by default now. */
  7. /*  Still applies to pool descriptions and post comments; also avoids the case where  */
  8. /*  where posts with a very long tag list (eg, post #896521) may (will?) have all but */
  9. /*  the first comment pushed down to only appear after the tag list.                  */
  10.  
  11. /* Last updated 2013-03-19 by kounishin                           */
  12. /* May break if/when Danbooru page styles change after that date. */
  13.  
  14. /* There is a small risk of the right-hand JList ad (in the iframe) running over the */
  15. /*  end of long post comments, particularly if you're using a floating sidebar.      */
  16. /* If that happens and you don't want to block the ad, reduce the #content max-width */
  17. /*  a bit; you my need to do this in the sidebar-specific style fragment.            */
  18.  
  19. /* pool descriptions; restricted at an annoyingly specific level */
  20. #c-pools p {
  21.   width: auto !important;
  22. }
  23.  
  24. /*
  25. #a-show { display: table-row !important; width: 100% !important; }
  26. #sidebar { display: table-cell !important; float: none !important; }
  27. #content {
  28.   display: table-cell !important;
  29.   width: auto !important;
  30.   float: none !important;
  31.   padding-left: 4px !important;
  32. }
  33. */
  34.  
  35. /* general content: allow full width */
  36. #content {
  37.   width: auto !important;
  38.   max-width: 100% !important;
  39. }
  40.  
  41. /* content on posts pages: constrain to 80%, which is a kludge to allow for the sidebar */
  42. #c-posts #content {
  43.   max-width: 80% !important;
  44. }
  45.  
  46. /* enable comments / forum posts to be full-width, by making them act like a table. */
  47. /* CAVEAT: padding and margins don't do anything for table rows...                  */
  48. div.list-of-comments,
  49. div.list-of-forum-posts {
  50.   display: table !important;
  51.   width: 100% !important;
  52. }
  53. div.list-of-comments > article,
  54. div.list-of-forum-posts > article
  55. {
  56.   display: table-row !important;
  57.   float: none !important;
  58. }
  59. article > div.author,
  60. article > div.content {
  61.   display: table-cell !important;
  62.   float: none !important;
  63.   padding: 3px !important;
  64. }
  65. /* don't need the clear fix - we're not floating things - so remove it to avoid padding issues */
  66. article > div.clearfix {
  67.   display: none !important;
  68. }
  69.  
  70. /* allow pseudo-columns to autosize */
  71. div.author {
  72.   width: 10.5em !important;
  73. }
  74. div.content {
  75.   width: auto !important;
  76. }
  77. div.prose {
  78.   max-width: none !important;
  79. }
  80.  
  81. /* same for preview areas */
  82. .dtext-preview {
  83.   width: auto !important;
  84. }
  85. /* the edit areas are trickier, but this works okay so far...  */
  86. /*  (it's 98% of the container element, not the whole page; we */
  87. /*  don't use 100%, because textareas butting right up against */
  88. /*  the right page margin look kind of weird.                  */
  89. .dtext-previewable textarea {
  90.   width: 98% !important;
  91. }
  92.  
  93. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement