Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. .collapsible {
  2. background-color: #E3872D;
  3. color: #FFF;
  4. cursor: pointer;
  5. padding: 18px;
  6. width: 75%;
  7. border: none;
  8. text-align: left;
  9. outline: none;
  10. font-size: 15px;
  11. font-weight: bold;
  12. border-radius: 5px;
  13.  
  14. }
  15.  
  16. .collapsible:after {
  17. content: '\02795'; /* Unicode character for "plus" sign (+) */
  18. font-size: 13px;
  19. color: #E3872D;
  20. float: right;
  21. margin-left: 5px;
  22. }
  23.  
  24. .collapsible:active {
  25. content: "\2796"; /* Unicode character for "minus" sign (-) */
  26. }
  27.  
  28. /* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
  29. .active, .collapsible:hover {
  30. background-color: #333;
  31. }
  32.  
  33.  
  34.  
  35. /* Style the collapsible content. Note: hidden by default */
  36. .content {
  37. padding: 0 18px;
  38. background-color: white;
  39. max-height: 0;
  40. overflow: hidden;
  41. transition: max-height 0.2s ease-out;
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement