Advertisement
Guest User

collapse boxes

a guest
Mar 24th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. ((go to settings -> profile and paste this into the "global characters CSS" bit. it'll work even if you don't have premium. you can fiddle w/ the styling in this code if you want.))
  2.  
  3. /***************************************************************************
  4.  
  5. TOYHOUSE SPOILER BOXES
  6.  
  7. This is the CSS for spoiler boxes. Please see the demo for details!
  8. You can edit the section below to style the spoiler boxes.
  9. The required HTML to make a spoiler box on a page is here:
  10. http://loader.8bitbirdsong.net/text/view/17
  11. Feel free to use/incorporate any part of this
  12. in a separate stylesheet, credit optional.
  13.  
  14. Last updated 2/10/15
  15.  
  16. http://toyhou.se/aleator
  17.  
  18. ***************************************************************************/
  19.  
  20. /*
  21. Basic styling. Feel free to edit this part
  22. */
  23. .spoiler-box
  24. {
  25. padding: 5px;
  26. border: 1px dotted #ddd;
  27. margin-top: 5px;
  28. margin-bottom: 5px;
  29. }
  30. .spoiler-close
  31. {
  32. background-color: #ddd;
  33. padding: 0px 5px;
  34. float: right;
  35. }
  36. .spoiler-content
  37. {
  38. width: 100%;
  39. padding: 5px;
  40. }
  41. .spoiler-title
  42. {
  43. background-color: #777;
  44. color: #fff;
  45. width: 100%;
  46. display: block;
  47. padding: 5px;
  48. position: relative;
  49. }
  50. /*
  51. Hides the spoiler button and content.
  52. Don't touch this!
  53. */
  54. .spoiler-close,
  55. .spoiler-content
  56. {
  57. display: none;
  58. }
  59. /*
  60. Makes the spoiler content/close button show
  61. when the box is clicked. Don't touch this!
  62. */
  63. .spoiler-box:focus .spoiler-content
  64. {
  65. display: block;
  66. }
  67. .spoiler-box:focus .spoiler-close
  68. {
  69. display: block;
  70. }
  71.  
  72. /***************************************************************************
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement