_imageview.scss 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /**
  2. * @copyright 2014 by Tobias Reich
  3. */
  4. #imageview {
  5. position: fixed;
  6. display: none;
  7. width: 100%;
  8. height: 100%;
  9. background-color: rgba(10, 10, 10, .98);
  10. transition: background-color .3s;
  11. /* Modes ------------------------------------------------*/
  12. &.view { background-color: inherit; }
  13. &.full { background-color: rgba(0, 0, 0, 1); }
  14. /* ImageView ------------------------------------------------*/
  15. #image {
  16. position: absolute;
  17. top: 60px;
  18. right: 30px;
  19. bottom: 30px;
  20. left: 30px;
  21. background-repeat: no-repeat;
  22. background-position: 50% 50%;
  23. background-size: contain;
  24. transition: top .3s, right .3s, bottom .3s, left .3s, margin-top .3s, opacity .2s, transform .3s cubic-bezier(.51, .92, .24, 1.15);
  25. animation-name: zoomIn;
  26. animation-duration: .3s;
  27. animation-timing-function: cubic-bezier(.51, .92, .24, 1.15);
  28. &.small {
  29. top: 50%;
  30. right: auto;
  31. bottom: auto;
  32. left: 50%;
  33. }
  34. &.full {
  35. top: 0;
  36. right: 0;
  37. bottom: 0;
  38. left: 0;
  39. }
  40. }
  41. /* Previous/Next Buttons ------------------------------------------------*/
  42. .arrow_wrapper {
  43. position: fixed;
  44. width: 20%;
  45. height: calc(100% - 60px);
  46. top: 60px;
  47. z-index: 1;
  48. &.previous { left: 0; }
  49. &.next { right: 0; }
  50. a#previous { left: 20px; }
  51. a#next { right: 20px; }
  52. a {
  53. position: fixed;
  54. top: 50%;
  55. margin-top: -10px;
  56. color: #fff;
  57. font-size: 50px;
  58. text-shadow: 0 1px 2px #000;
  59. cursor: pointer;
  60. opacity: 0;
  61. z-index: 2;
  62. transition: opacity .2s;
  63. }
  64. &:hover a { opacity: .2; }
  65. }
  66. }