cssbox.css 903 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* The work below, CSSBox, is released under the Creative Commons Zero 1.0 license
  2. and is available on https://notabug.org/SylvieLorxu/CSSBox */
  3. span.cssbox_full {
  4. position: fixed;
  5. height: 100%;
  6. width: 100%;
  7. background-color: rgba(0,0,0,0.8);
  8. top: 0;
  9. left: 0;
  10. opacity: 0;
  11. visibility: hidden;
  12. transition: visibility 0s, opacity 0.5s linear;
  13. }
  14. span.cssbox_full img {
  15. position: fixed;
  16. background-color: white;
  17. margin: 0;
  18. padding: 0;
  19. max-height: 90%;
  20. max-width: 90%;
  21. top: 50%;
  22. left: 50%;
  23. margin-right: -50%;
  24. transform: translate(-50%, -50%);
  25. box-shadow: 0 0 20px black;
  26. }
  27. img.cssbox_thumb:focus + span.cssbox_full {
  28. visibility: visible;
  29. opacity: 1;
  30. }
  31. img.cssbox_thumb, span.cssbox_full {
  32. cursor: pointer;
  33. }
  34. /* The work above, CSSBox, is released under the Creative Commons Zero 1.0 license
  35. and is available on https://notabug.org/SylvieLorxu/CSSBox */