/**
 * Copyright IBM Corp. 2021
 *
 * This source code is licensed under the IBM Public License Version 1.0 found in the
 * LICENSE file in the root directory of this source tree.
 */

.triImage {
  background-position: center center;
  background-repeat: no-repeat;
}

.triImage__placeholder > * {
  margin: 0 auto;
  width: 100%;
  height: 100%;
}


.TriImageSkeleton {
  position: relative;
  padding: 0;
  border: none;
  color: black;
  background: #e8e8e8;
  box-shadow: none;
  pointer-events: none;

  &:hover,
  &:focus,
  &:active {
    border: none;
    cursor: default;
    outline: none;
  }

  &::before {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: 3000ms ease-in-out skeleton infinite;
    color: lightgray;
    background: #c1c7cd;
    content: '';
    will-change: transform-origin, transform, opacity;

    @media (prefers-reduced-motion: reduce) {
      animation: none;
    }
  }
}
