Guest User

Untitled

a guest
Dec 19th, 2016
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. .modal {
  2. display: none; /* Hidden by default */
  3. position: fixed; /* Stay in place */
  4. z-index: 1; /* Sit on top */
  5. padding-top: 100px; /* Location of the box */
  6. left: 0;
  7. top: 0;
  8. width: 100%; /* Full width */
  9. height: 100%; /* Full height */
  10. overflow: auto; /* Enable scroll if needed
  11. overflow-y: auto; */
  12. background-color: rgb(0,0,0); /* Fallback color */
  13. background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  14. }
  15.  
  16. /* Modal Content */
  17. .modal-content {
  18. position: relative;
  19. background-color: #fefefe;
  20. margin: auto;
  21. padding: 0;
  22. border: 1px solid #888;
  23. width: 80%;
  24. box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  25. -webkit-animation-name: animatetop;
  26. -webkit-animation-duration: 0.4s;
  27. animation-name: animatetop;
  28. animation-duration: 0.4s
  29. }
  30.  
  31. /* Add Animation */
  32. @-webkit-keyframes animatetop {
  33. from {top:-300px; opacity:0}
  34. to {top:0; opacity:1}
  35. }
  36.  
  37. @keyframes animatetop {
  38. from {top:-300px; opacity:0}
  39. to {top:0; opacity:1}
  40. }
  41.  
  42. /* The Close Button */
  43. .close {
  44. color: white;
  45. float: right;
  46. font-size: 28px;
  47. font-weight: bold;
  48. }
  49.  
  50. .close:hover,
  51. .close:focus {
  52. color: #000;
  53. text-decoration: none;
  54. cursor: pointer;
  55. }
  56.  
  57. .modal-header {
  58. padding: 2px 16px;
  59. background-color: #5cb85c;
  60. color: white;
  61. }
  62.  
  63. .modal-body
  64. {
  65. padding: 2px 16px;
  66. max-height: calc(100vh - 200px);
  67. overflow-y: auto;
  68.  
  69. }
  70.  
  71. .modal-footer {
  72. height: 25px;
  73. background-color: #000000;
  74. color: white;
  75. }
Advertisement
Add Comment
Please, Sign In to add comment