Advertisement
kromm77

Modal Part 2 - Css

Sep 15th, 2017
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.32 KB | None | 0 0
  1. .modalDialog {
  2.     position: fixed;
  3.     font-family: Arial, Helvetica, sans-serif;
  4.     top: 0;
  5.     right: 0;
  6.     bottom: 0;
  7.     left: 0;
  8.     background: rgba(0, 0, 0, 0.8);
  9.     z-index: 99999;
  10.     opacity: 0;
  11.     -webkit-transition: opacity 400ms ease-in;
  12.     -moz-transition: opacity 400ms ease-in;
  13.     transition: opacity 400ms ease-in;
  14.     pointer-events: none;
  15. }
  16.  
  17.     .modalDialog:target {
  18.         opacity: 1;
  19.         pointer-events: auto;
  20.     }
  21.  
  22.     .modalDialog > div {
  23.         width: 60%;
  24.         position: relative;
  25.         margin: 10% auto;
  26.         padding: 5px 20px 13px 20px;
  27.         border-radius: 10px;
  28.         background: #fff;
  29.         background: -moz-linear-gradient(#fff, #999);
  30.         background: -webkit-linear-gradient(#fff, #999);
  31.         background: -o-linear-gradient(#fff, #999);
  32.     }
  33.  
  34. .close {
  35.     background: #606061;
  36.     color: #FFFFFF;
  37.     line-height: 25px;
  38.     position: absolute;
  39.     right: -12px;
  40.     text-align: center;
  41.     top: -10px;
  42.     width: 24px;
  43.     text-decoration: none;
  44.     font-weight: bold;
  45.     -webkit-border-radius: 12px;
  46.     -moz-border-radius: 12px;
  47.     border-radius: 12px;
  48.     -moz-box-shadow: 1px 1px 3px #000;
  49.     -webkit-box-shadow: 1px 1px 3px #000;
  50.     box-shadow: 1px 1px 3px #000;
  51. }
  52.  
  53.     .close:hover {
  54.         background: #00d9ff;
  55.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement