kai-jacobsen/kontentblocks

View on GitHub
css/sass/partials/_refields/_gallery2.scss

Summary

Maintainability
Test Coverage
.kb-gallery-frame{
  .collection-settings.gallery-settings{
    display: none !important;
  }
}


.kb-gallery2__stage {

  .kb-gallery--image-wrapper {
    box-sizing: border-box;
    display: inline-block;
    width: 150px;
    height: 150px;
    margin-right: 15px;
    border: 1px solid #ccc;
    background: #f2f2f2;
    padding: 6px;
    line-height: 100%;
    margin-bottom: 15px;
    cursor: move;

    img {
      max-width: 100%;
      vertical-align: top;
    }

  }

  .kb-gallery--header {
    display: none;
  }

  .kb-gallery--image-holder {

    position: relative;

    .kb-gallery--js-edit {
      position: absolute;
      top: 5px;
      left: 5px;
      padding: 2px;
      background: rgba(255, 255, 255, .5);
      cursor: pointer;
      font-size: 14px;
      &:hover {
        background: rgba(255, 255, 255, 1);

      }
    }

    .kb-gallery--js-delete {
      position: absolute;
      top: 5px;
      right: 5px;
      padding: 2px;
      background: rgba(255, 255, 255, .5);
      cursor: pointer;
      font-size: 14px;
      &:hover {
        background: rgba(255, 255, 255, 1);

      }
    }

  }

}

.kb-gallery--active-item * {
  box-sizing: border-box;
}

.kb-js--remote-editor * {
  box-sizing: border-box;
}

.kb-gallery--active-item {
  position: fixed;
  top: 10%;
  left: 50%;
  -webkit-transform: translate(-50%, 0%);
  -moz-transform: translate(-50%, 0%);
  -ms-transform: translate(-50%, 0%);
  transform: translate(-50%, 0%);
  z-index: 8888;
  width: 90%;
  max-height: 500px;
  min-height: 350px;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  //  overflow: hidden;
  max-width: 800px;
  box-shadow:1px 1px 4px #999;

  .kb-field{
    background: transparent;
    padding-left: 0px;
  }

  .kb-gallery--left-column {
    width: 70%;
    float: left;
    display: block;
    background: #f9f9f9;
    height: 100%;
    padding: 16px;
  }

  .kb-gallery--right-column {
    display: block;
    background: #f9f9f9;
    width: 30%;
    height: 100%;
    float: left;
    position: relative;
    right: 1px;
  }

  .kb-gallery--image-holder {
    padding: 40px;

    img{
      background: #fff;
      padding: 6px;
    }
  }

  .kb-gallery--image-meta {
    display: block !important;
  }

  .kb-gallery--js-edit, .kb-gallery--js-delete {
    display: none !important;
  }

  .kb-gallery--js-meta-close {
    position: absolute;
    right: 10px;
    top: 7px;
    cursor: pointer;
    z-index: 9999;
    font-size: 14px !important;
  }

  .kb-gallery--tabs-nav li:first-child a {
    padding-left: 0 !important;
    margin-left: 0;
  }

  .kb-gallery--meta-field {
    margin: 0px 0;
  }

  .kb-gallery--tabs-nav {
    padding: 0;
    list-style: none !important;
  }

  .kb-gallery--tabs-nav li {
    background: transparent !important;
  }

  .kb-gallery--header {
    background: #fff;
    z-index: 99;
    position: relative;
    border-bottom: 1px solid #ccc;
    padding: 5px 10px;

    h3 {
      margin: 0;
      font-size: 14px;
      font-family: Open-Sans, sans-serif !important;

    }
  }

}