CoreFiles by mySites.guru
_media-modal.scss97 lines, 1,537 bytes, from Joomla_4.0.4-Stable-Full_Package.zip
Raw History Compare with 4.0.3
md5
edad10d5f665a0b9081539b6b0c3d02d
sha1
fb1c84f6c5b05cf08723b98508cdd0e9db3034b0
sha256
0eff2de71f5dc57a2adfc475853e5a8d824ea95d72819d4f042724b980ec1e90
.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 {
    display: grid !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .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: 200%;
    }
  }
  .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;
  }
}

@media (min-width: 576px) {
  .media-preview-modal {
    .modal-dialog {
      max-width: unset !important;
    }
  }
}

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

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

The same content is in 30 releases, Joomla 4.0.0-rc4 to 4.1.0. See them all, or every version of this file.