image-modal.css 813 B

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