kai-jacobsen/kontentblocks

View on GitHub
css/sass/partials/_common/_common.scss

Summary

Maintainability
Test Coverage
.kb-generic--toggle-title {
  padding: 0px;
  padding-bottom: 5px;
  padding-left: 15px;
  margin: 0px 5px 0 5px;
  background: #f2f2f2;
  border: 1px solid #ccc;
  color: #333;

}

.kb-generic--image-wrapper {
  height: 150px;
  max-width: 300px;
  overflow: hidden;
  background: #f2f2f2;
  padding: 5px !important;
  border: 1px solid #dadada;
  display: inline-block;
  vertical-align: middle;

  img {
    vertical-align: middle;
  }
}

.kb-generic--toggle-box {
  padding: 0 5px 5px;

}

.kb-generic--inner {
  padding: 5px;
}

.kb-generic--list {
  margin: 0;
  list-style: none;
  padding: 20px 0;

  li {
    margin-bottom: 10px;
  }
}

.kb-field--wrap {
  padding: 10px;
}

.kb-js-generic--move:before {
  content: "\f156";
  font-family: 'dashicons';
  width: 15px;
  height: 15px;
  display: inline-block;
  font-size: 20px;
  cursor: move;
}

.kb-js-generic--delete:before {
  content: "\f117";
  font-family: 'dashicons';
  width: 15px;
  height: 15px;
  display: inline-block;
  font-size: 18px;
}

.kb-js-generic--move, .kb-js-generic--delete {
  display: inline-block;
  margin: 0 3px;
  color: #999;
  position: relative;
  top: 6px;
}

.kb-generic--editable-title {
  display: inline-block !important;
  width: 250px !important;
  margin-left: 20px !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.kb-js-add-custom {
  font-size: 13px;
}

#kontentblocks-core-ui a:focus {
  box-shadow: none !important;
}

.kb-button-small {
  font-size: 12px;
  padding: 3px 10px;
  color: #fff;
  background-color: $lightblue;
  text-decoration: none;
  transition: background .3s ease-out;

  &:hover {
    text-decoration: none;
    color: #fff;
    background-color: $lighterblue;

  }
}

.kb-cursor-pointer {
  cursor: pointer;
}

.kbflexwrap {
  display: flex;
}

.kontentblocks-enabled {
  #edittag {
    max-width: 100%;
    .kb-field {
      padding: 12px 12px 12px 0;
      background-color: #fff;
    }
  }
  .form-table td {
    background-color: #fff;
  }
}