
// the welcome panel in wp-admin for the plugin
.tdw-welcome-panel {
  margin-top: 30px;
  .welcome-panel {
    margin-top: 60px;
    h2 {
      margin-bottom: 20px;
    }
  }
}



// Drop shadows
.box-shadow(@shadow) {
  -webkit-box-shadow: @shadow !important;
  -moz-box-shadow: @shadow !important;
  box-shadow: @shadow !important;
}



/*
  the sidebar and base css window
 */
.tdw-drag-dialog {
  left:0;
  height: 100%;
  background-color: white;

  font-family: Arial,"Helvetica Neue",Helvetica,sans-serif !important;
  line-height: 19px !important;
  font-size:14px !important;




  header {
    height: 35px;
    display: block;



    // dialog title
    .tdw-dialog-title {
      float: left;
      font-size: 12px;
      padding: 9px 0px 0px 19px;
      pointer-events: none;
      color:black;
    }



    // detach the css editor window
    .tdw-expand-collapse {
      width: 35px;
      height: 35px;
      float: right;
      cursor: pointer;
      position: relative;
      background: url(../images/css-live-sprite.png);

      background-repeat: no-repeat;
      background-position: -70px 0;
      &:hover {
        background-color: #efefef;
      }

    }

    .tdw-close {
      display: none;
    }
  }

  .tdw-content {
    display: block;
    height: ~"calc(100% - 37px)";
    background-color: #fff;
    position: relative;
    color: #444;
  }
}

.tdw-less-info {
  width: 11px;
  height: 11px;
  position: absolute;
  bottom: 7px;
  left: 7px;
  border-radius: 50%;
  background-color: #068f12;
  z-index: 10;
  cursor: pointer;
}

.tdw-less-info.tdw-less-error {
  background-color: #b40000 !important;
  cursor: pointer;
}

/*
  expanded css window
 */

.tdw-css-writer-expand.tdw-css-writer-expand-hidden {
  visibility: hidden !important;
}


.tdw-css-writer-expand {
  box-sizing: border-box;
  position: fixed;
  border: 1px solid #ddd;
  .box-shadow(0px 0px 20px 1px rgba(0, 0, 0, 0.15));
  top: 42px;
  user-select: none;
  min-width: 300px;
  min-height: 300px;
  visibility: visible !important;

  header {
    margin: -1px -1px 0 -1px;
    height: 35px !important;
    background-color: #000;
    cursor:pointer;


    // dialog title
    .tdw-dialog-title {
      float: left;
      font-size: 12px;
      padding: 9px 0 0 19px;
      pointer-events: none;
      color: #fff;
    }


    // attache the css editor back to the sidebar
    .tdw-expand-collapse {
      background-position: -35px 0;
      &:hover {
        background-color: #268ac2;
      }
    }

    // close the modal window of the css editor
    .tdw-close {
      width: 35px;
      height: 35px;
      float: right;
      cursor: pointer;
      position: relative;
      display: block !important;

      background: url(../images/css-live-sprite.png);
      background-repeat: no-repeat;
      background-position: 0 0;
      &:hover {
        background-color: #268ac2;
      }
    }
  }

  .tdw-content {
    height: ~"calc(100% - 61px)" !important;
  }

  footer {
    //width: 100%;
    //display: block !important;
    height: 27px !important;

    //padding: 0;
    background-color: #f1f1f1;
    //border-top-color: #e3e3e3;
    //box-sizing: border-box;

    .tdw-resize {
      width: 15px;
      height: 15px;

      position: absolute;
      right: 0;
      bottom: 0;
      display: block !important;


      background: url(../images/css-live-sprite.png);
      background-repeat: no-repeat;
      background-position: -105px 0;

      cursor:nw-resize;;
    }


  }

  .tdw-tab-editor {
    user-select: none;
  }


  .td-code-editor {
    border-top: none;
  }
}


.tdw-visible {
  display: block !important;
}

.tdw-tabs-content {
  display: none;
  height: 100%;
}
.tdc-tab-content-active {
  display: block;
}
.td-code-editor {
  height: 100%;
  border-top: 1px solid #f5f5f5;

  .ace_gutter {
    background-color: #f5f5f5 !important;
  }



}

.tdw-css-writer-editor {
  display: none;
}

.tdc-sidebar-modal-live-css {
  z-index: 2; // was inherit
  padding-top: 0;
  padding-bottom: 0;

  .tdc-sidebar-modal-content {
    padding-left: 0;
  }
}


.tdc-sidebar-modal-live-css.tdw-sidebar-modal-hidden{
  opacity: 1;

  .tdw-css-writer-expand {
    visibility: visible;
  }
}


.tdw-sidebar-modal-hidden {
  z-index: auto;
}

// view live css button
.tdc-live-css {
  position: absolute;
  top: 0;
  right: 43px;
  .tdc-icon-view {
    position: absolute;
    top: 12px;
    right: 10px;
    background: url('../images/extension.png');
    background-repeat: no-repeat;
    //.stitches-sprite(-63px, -124px, 24px, 20px);
    width: 24px;
    height: 20px;
  }
}


.tdc-iframe-cover-transparent {
  opacity: 0 !important;
  pointer-events: all !important;
}

.tdw-inactive {
//  &:after {
//    content: '';
//    position: absolute;
//    top: 0;
//    left: 0;
//    width: 100%;
//    height: 100%;
//    pointer-events: all;
//    z-index: inherit;
//  }

  header {
    background-color: #cecece !important;
  }
}
