CoreFiles by mySites.guru
_media-modal.scss89 lines, 1,404 bytes, from Joomla_4.0.0-rc3-Release_Candidate-Full_Package.zip
Raw History Compare with 4.0.0-rc2
md5
8e2fb7c9836f00cff32fe7cfdd66a098
sha1
467ba3f937687732e08c97fdddaf4bafa084a406
sha256
0c91b16ecffa1ad598c2b6ac95bcc61b998ec853303529f4d5d6a2ca88d87a61
.media-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1049;
  display: table;
  width: 100%;
  height: 100%;
  background-color: $modal-backdrop-color;

  .modal {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: .5s ease 0s normal none 1 running fadeIn;
  }

  .modal-body {
    width: auto;
    padding: 15px;
  }

  .modal-content {
    box-shadow: $modal-box-shadow;
  }

}

.media-preview-modal {
  color: $modal-preview-text-color;

  .modal-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .modal-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: transparent;
    border: 0;
    box-shadow: none;
  }
  .modal-header {
    padding: 0;
    border: 0;
  }
  .modal-body {
    padding: 0;
    background-color: #fff;
    box-shadow: $modal-box-shadow;
    img {
      max-width: 100%;
    }
  }
  .modal-footer {
    display: none;
  }
}

.media-preview-close {
  position: absolute;
  top: -2rem;
  right: 0;
  font-size: 2rem;
  color: inherit;
  background: none;
  border: 0;
  opacity: .7;
  &:hover {
    cursor: pointer;
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transition: transform .3s ease-out;
    transform: translate(0, -25%);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

The same content is in 3 releases, Joomla 4.0.0-rc1 to 4.0.0-rc3. See them all, or every version of this file.