image-modal.css 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #dialog-image-modal {
  2. position: fixed;
  3. background-color: rgba(255, 255, 255, .8);
  4. width: 100%;
  5. height: 100%;
  6. margin: 0;
  7. border: 0;
  8. padding: 0;
  9. }
  10. #dialog-image-modal::backdrop,
  11. #dialog-image-modal::-webkit-backdrop {
  12. background: #ffffff00;
  13. }
  14. #modal-image-container {
  15. margin-top: var(--header-space);
  16. }
  17. #modal-image {
  18. -o-object-fit: cover;
  19. object-fit: cover;
  20. height: calc(100vh - var(--header-space) - var(--body-margin) - var(--tile-margin));
  21. }
  22. #img-prev {
  23. margin-right: calc(2 * var(--tile-margin))
  24. }
  25. #img-next {
  26. margin-left: calc(2 * var(--tile-margin))
  27. }
  28. #img-prev, #img-next {
  29. width: var(--tile-margin);
  30. }
  31. #close-modal {
  32. position: absolute;
  33. -ms-flex-item-align: end;
  34. align-self: flex-end;
  35. width: calc(2.5 * var(--tile-margin));
  36. -webkit-transform: translate(50%, -50%);
  37. transform: translate(50%, -50%);
  38. -webkit-transition: .3s ease;
  39. transition: .3s ease;
  40. }
  41. #close-modal:hover {
  42. -webkit-transform: translate(50%, -50%) rotate(45deg);
  43. transform: translate(50%, -50%) rotate(45deg);
  44. -webkit-transition: .3s ease;
  45. transition: .3s ease;
  46. }