image-modal.css 1.0 KB

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