@use 'gjs_main_mixins';
@use 'gjs_vars';
@use 'gjs_category_general';

.#{gjs_vars.$app-prefix}dropzone {
  display: none;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 11;
  width: 100%;
  height: 100%;
  transition: opacity 0.25s;
  pointer-events: none;
}

.#{gjs_vars.$app-prefix}dropzone-active {
  .#{gjs_vars.$app-prefix}dropzone {
    display: block;
    opacity: 1;
  }
}

.#{gjs_vars.$am-prefix}assets {
  height: 290px;
  overflow: auto;
  clear: both;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
}

.#{gjs_vars.$am-prefix}assets-header {
  padding: 5px;
}

.#{gjs_vars.$am-prefix}add-asset {
  .#{gjs_vars.$am-prefix}add-field {
    width: 70%;
    float: left;
  }

  button {
    width: 25%;
    float: right;
  }
}

.#{gjs_vars.$am-prefix}preview-cont {
  position: relative;
  height: 70px;
  width: 30%;
  background-color: var(--gjs-main-color);
  border-radius: 2px;
  float: left;
  overflow: hidden;
}

.#{gjs_vars.$am-prefix}preview {
  position: absolute;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 100%;
  width: 100%;
  z-index: 1;
}

.#{gjs_vars.$am-prefix}preview-bg {
  @include gjs_main_mixins.opacity(0.5);

  position: absolute;
  height: 100%;
  width: 100%;
  z-index: 0;
}

.#{gjs_vars.$am-prefix}dimensions {
  @include gjs_main_mixins.opacity(0.5);

  font-size: 10px;
}

.#{gjs_vars.$am-prefix}meta {
  width: 70%;
  float: left;
  font-size: 12px;
  padding: 5px 0 0 5px;
  box-sizing: border-box;

  > div {
    margin-bottom: 5px;
  }
}

.#{gjs_vars.$am-prefix}close {
  @extend .btn-cl;

  cursor: pointer;
  position: absolute;
  right: 5px;
  top: 0;
  display: none;
}

.#{gjs_vars.$am-prefix}asset {
  border-bottom: 1px solid gjs_main_mixins.darken-color(var(--gjs-main-dark-color), 3%);
  padding: 5px;
  cursor: pointer;
  position: relative;
  box-sizing: border-box;
  width: 100%;

  &:hover .#{gjs_vars.$am-prefix}close {
    display: block;
  }
}

.#{gjs_vars.$am-prefix}highlight {
  background-color: var(--gjs-main-light-color);
}

.#{gjs_vars.$am-prefix}assets-cont {
  background-color: var(--gjs-secondary-dark-color);
  border-radius: 3px;
  box-sizing: border-box;
  padding: 10px;
  width: 45%;
  float: right;
  height: 325px;
  overflow: hidden;
}
