kai-jacobsen/kontentblocks

View on GitHub
css/sass/partials/_modules/_module-styles.scss

Summary

Maintainability
Test Coverage
/*------------------------------------*\
    Module Body
\*------------------------------------*/

.kb-module__body {
  //  overflow: hidden;
  background: #fff;
  margin-left: 1px;
  border: 1px solid #e6e6e6;
}

.kb-module__header {
  -webkit-border-radius: 0px;
  -moz-border-radius: 0px;
  border-radius: 2px;
  border: 1px solid #eee;
  border-top-color: #f2f2f2;
  border-left: 3px #92cd81;
  height: 34px;
  line-height: 35px;
  position: relative;
  //  text-shadow: 1px -1px 0 #333;
  color: black;
  width: 100%;
  word-wrap: break-word;
  /*cursor: move;*/
  /*z-index: 3;*/
  background-color: #f9f9f9;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  position: relative;
  font-weight: 100;
}

div.kb-module-draft {
  .kb-module__header {
    border-left: 3px solid $orange;
  }

  .kb-status-draft {
    color: $orange;
    font-weight: bold;
    cursor: pointer;
  }
}

.kb-module.kb_inactive .kb-module__header, .kb-module.deactivated .kb-module__header {
  border-left: 3px solid red;
}

/*------------------------------------*\
    Module Header and Controls
\*------------------------------------*/

.kb-name .kb-module-name {
  border: none;
  border-bottom: 1px solid $grey-300;
  margin-left: 10px;

  &:hover {
  }

  &:focus {
    width: 100%;
    border: none;
    box-shadow: none;
    border-bottom: 1px solid $lightblue;

  }
}

.ui-wrap {
  float: left;
  overflow: hidden;
  height: 34px;
}

.ui-actions {
  margin: 0;
  font-size: 0;
  padding: 0;
  list-style: none;
  display: inline-block;

  div {
    display: inline-block;
    margin: 0;
    cursor: pointer;
    color: #999;
    line-height: 35px;
    &:hover {
      color: #333;
    }
  }
}

.kb-move {
  cursor: move;
  color: #999;

  &:before {
    content: '\f436';
    font-family: 'genericons';
    font-size: 24px;
  }
}

.kb-toggle {
  &:hover {
    color: #333;
  }
  position: relative;
  top: -3px;

  &:before {
    content: "\f347";
    font-family: "dashicons";
    position: relative;
    font-size: 20px;
  }
}

.kb-toggle-open .kb-toggle:before{
  content: "\f343";
}

.kb-disabled {
  position: relative;
  top: 2px;
  padding: 0 5px;
}

.kb-fullscreen {

  color: #999;
  //  height: 35px;
  //  float: left;
  //border-right: 1px solid #ccc;
  cursor: pointer;

  &:hover {
    color: #333;
  }

  &:before {
    content: '\f474';
    font-family: 'genericons';
    top: -5px;
    position: relative;
    font-size: 16px;

  }
}

.kb-tpl-desc {
  font-size: 11px !important;
  color: $grey-700;
  line-height: 100%;
  font-style: italic;
}

.kb-field-wrapper.kb-fields-no-options {
  padding: $halfpadding;
  p {
    font-size: 12px;
  }
}