Guest User

Untitled

a guest
Oct 19th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. <label class="button success tiny" for="modal-1">Email this user</label>
  2.  
  3. <input class="modal-state" id="modal-1" type="checkbox" />
  4. <div class="modal">
  5. <label class="modal__bg" for="modal-1"></label>
  6. <div class="modal__inner">
  7. <label class="modal__close" for="modal-1"></label>
  8. <h2>Modal Inside Title</h2>
  9. <p><?php echo do_shortcode('[gravityform id="80" title="false" description="false"]'); ?>
  10. </p>
  11. </div>
  12. </div>
  13.  
  14. /* [Object] Modal
  15. * =============================== */
  16. .modal {
  17. opacity: 0;
  18. visibility: hidden;
  19. position: fixed;
  20. top: 0;
  21. right: 0;
  22. bottom: 0;
  23. left: 0;
  24. text-align: left;
  25. background: rgba(0,0,0, .9);
  26. transition: opacity .25s ease;
  27. }
  28.  
  29. .modal__bg {
  30. position: absolute;
  31. top: 0;
  32. right: 0;
  33. bottom: 0;
  34. left: 0;
  35. cursor: pointer;
  36. }
  37.  
  38. .modal-state {
  39. display: none;
  40. }
  41.  
  42. .modal-state:checked + .modal {
  43. opacity: 1;
  44. visibility: visible;
  45. }
  46.  
  47. .modal-state:checked + .modal .modal__inner {
  48. top: 0;
  49. }
  50.  
  51. .modal__inner {
  52. transition: top .25s ease;
  53. position: absolute;
  54. top: -20%;
  55. right: 0;
  56. bottom: 0;
  57. left: 0;
  58. width: 50%;
  59. margin: auto;
  60. overflow: auto;
  61. background: #fff;
  62. border-radius: 5px;
  63. padding: 1em 2em;
  64. height: 50%;
  65. }
  66.  
  67. .modal__close {
  68. position: absolute;
  69. right: 1em;
  70. top: 1em;
  71. width: 1.1em;
  72. height: 1.1em;
  73. cursor: pointer;
  74. }
  75.  
  76. .modal__close:after,
  77. .modal__close:before {
  78. content: '';
  79. position: absolute;
  80. width: 2px;
  81. height: 1.5em;
  82. background: #ccc;
  83. display: block;
  84. transform: rotate(45deg);
  85. left: 50%;
  86. margin: -3px 0 0 -1px;
  87. top: 0;
  88. }
  89.  
  90. .modal__close:hover:after,
  91. .modal__close:hover:before {
  92. background: #aaa;
  93. }
  94.  
  95. .modal__close:before {
  96. transform: rotate(-45deg);
  97. }
  98.  
  99. @media screen and (max-width: 768px) {
  100.  
  101. .modal__inner {
  102. width: 90%;
  103. height: 90%;
  104. box-sizing: border-box;
  105. }
  106. }
Add Comment
Please, Sign In to add comment