Advertisement
itskrystalized

popup lightbox 01# >> css

Jun 19th, 2015
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.04 KB | None | 0 0
  1. <style type="text/css">
  2. /*
  3.  * overlay.css v1.0.0
  4.  * Copyright 2014 Joah Gerstenberg (www.joahg.com)
  5.  */
  6.  
  7. .overlay { /* háttér */
  8.   visibility: hidden;
  9.   opacity: 0;
  10.   position: fixed;
  11.   top: 0;
  12.   bottom: 0;
  13.   right: 0;
  14.   left: 0;
  15.   z-index: 10;
  16.   width: 100%;
  17.   height: 100%;
  18.   background-color: rgb(0,0,0); /* a háttér színe */
  19.   background-color: rgba(0,0,0,0.85); /* háttér színe újra rgba kóddal ez teszi lehetővé az átlátszóságot */
  20.   cursor: crosshair; /* a kurzor kinézete mikor a háttérre viszed az egeret */
  21.   -webkit-transition: opacity 0.4s ease-in-out;
  22.   -moz-transition: opacity 0.4s ease-in-out;
  23.   -ms-transition: opacity 0.4s ease-in-out;
  24.   -o-transition: opacity 0.4s ease-in-out;
  25.   transition: opacity 0.4s ease-in-out;
  26. }
  27.  
  28. .overlay .modal { /* a megjelenő ablak */
  29.   cursor: auto;
  30.   position: absolute;
  31.   z-index: 11;
  32.   top: 0;
  33.   bottom: 0;
  34.   right: 0;
  35.   left: 0;
  36.   margin: auto;
  37.   max-width: 500px; /* szélesség */
  38.   max-height: 320px; /* magasság */
  39.   padding: 15px; /* a tartalom mennyire legyen távol a szélektől */
  40.   background-color: rgb(255,255,255); /* háttérszín */
  41.   -webkit-border-radius: 0px; /* sarkak lekerekítése chromeban */
  42.   -moz-border-radius: 0px; /* sarkak lekerekítése mozillában */
  43.   border-radius: 0px; /* sarkak lekerekítése */
  44. }
  45.  
  46. .overlay.shown { /* az ablak halványsága */
  47.   opacity: 1;
  48. }
  49.  
  50. modaltitle { /* az ablak címének kinézete */
  51.   font-family: Arial Black;
  52.   font-size: 16px;
  53.   font-style: normal;
  54.   font-weight: solid;
  55.   background-color: #000000;
  56.   color: #ffffff;
  57.   padding: 4px;
  58.   letter-spacing: 0px;
  59.   text-align: center;
  60.   text-decoration: none;
  61.   text-transform: uppercase;
  62.   width: 100%;
  63. }
  64.  
  65. modaltext { /* az ablakba írt szöveg kinézete */
  66.   font-family: Arial;
  67.   font-size: 12px;
  68.   font-style: normal;
  69.   font-weight: solid;
  70.   background-color: transparent;
  71.   color: #000000;
  72.   letter-spacing: 0px;
  73.   line-height: 16px;
  74.   text-align: justify;
  75.   text-decoration: none;
  76.   text-transform: normal;
  77. }</style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement