@import "../../shared/ui-components/styles/variables";

.item {
  width: 180px;
  height: 180px;
  margin-top: 8px;
  margin-right: 8px;
}

.snippet {
  border-radius: 3px;
  position: relative;
  text-align: center;
  background: #efefef;

  &.loading {
    background: white;
  }

  img {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    max-width: 150px;
    max-height: 130px;
  }

  img.loading {
    background-image: url("../../assets/icons/Spinner.svg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 24px;
  }
}

.image-var {
  position: absolute;
  color: $blue-300;
  padding: 1px 5px 0px 5px;
  bottom: 1px;
  left: 50%;
  height: 20px;
  transform: translateX(-50%);
  width: 100%;
}

.html-wrap {
  width: 180px;
  height: 180px;
  padding: 0;
  overflow: hidden;
}

.html-viewer {
  resize: both;
  overflow: auto;
  border: 1px solid black;
  transform: scale(0.44);
  transform-origin: 0 0;
}
.html-snippet {
  &:hover {
    .toolbar {
      opacity: 1;
      visibility: visible;
    }
  }

  .toolbar {
    display: flex;
    position: absolute;
    bottom: 8px;
    left: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
  }
}

.clickable-icon {
  background-color: #efefef;
  padding: 4px 24px;
  border-radius: 4px;
}

