@import "./common/var.scss";
@import "./mixins/mixin.scss";
//@import "./iconfont/iconfont.css";

@include b(editor){
  width: 100%;
  height: 100%;
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
    /*background-color: #ddd;*/
  }
  /*滑块*/
  ::-webkit-scrollbar-thumb {
    background-color: #BFBFBF;
    border-radius: 10px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background-color: #BFBFBF;
  }
  /*滑道*/
  ::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px #BFBFBF;
    border-radius: 10px;
  }
  &-left,
  &-right {
    position: absolute;
    width: 270px;
    top: 0;
    bottom: 0
  }
  &-left{
    left:0;
    box-shadow: 0 0 5px #ccc;
    &-item{
      width: 250px ;
      margin:20px auto;
      display: flex;
      justify-content: center;
      align-items: center;
      background: #fff;
      padding:20px;
      box-sizing: border-box;
      cursor:move;
      user-select: none;
      min-height: 100px;
      position: relative;
      > span{
        position: absolute;
        top:0;
        left:0;
        background: rgb(96, 205, 224);
        color:#fff;
        padding:4px;
      }
      &::after{
        content:'';
        position: absolute;
        top:0;
        left:0;
        right:0;
        bottom:0;
        background: #ccc;
        opacity: 0.2;
      }
    }
  }
  &-right{
    right:0;
    box-shadow: 0 0 5px #ccc;
  }
  &-top{
    position: absolute;
    right:280px;
    left:280px;
    height:80px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 5px #ccc;
    &-button{
      width:60px;
      height:60px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      //background: #ECF5FF;
      user-select: none;
      cursor: pointer;
      color: #606266;
      &+&{
        margin-left:3px
      }
      &:hover{
        background: #409EFF;
        color: #fff;
        border-radius: 4px;
      }
    }
  }
  &-container{
    padding: 90px 280px 0;
    height: 100%;
    box-sizing: border-box;
    &-canvas{
      overflow-y: auto;
      height:100%;
      padding: 10px;
      box-sizing: border-box;
      &__content{
        margin: 0px auto;
        position: relative;
        //background: #ECF5FF;
        box-shadow: inset 0 0 5px #ccc;
      }
    }
  }
}

@include b(editor-block){
  position: absolute;
  &::after{
    content:'';
    position: absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
  }
}

@include b(editor-block-focus){
  &::after{
    border: 2px dashed #2E73FF;
  }
}

@include b(editor-block-preview){
  &::after{
    display: none;
  }
}

// 移动left值
@include b(line-x){
  position: absolute;
  top:0;
  bottom:0;
  border-left: 1px dashed red;
}

// 移动的是top 值
@include b(line-y){
  position: absolute;
  left:0;
  right:0;
  border-top: 1px dashed red;
}

.dropdown {
  display: none;
  position: absolute;
  background: #fff;
  box-shadow:  2px 2px #ccc;
}
.dropdown-isShow{
  display: block;
}
.dropdown-item{
  line-height: 30px;
  width: 100px;
  border-bottom: 1px solid #ccc;
  text-align: center;
  user-select: none;
  cursor: pointer;
}

.range {
  display: inline-flex;
  width: 220px;
  min-height: 30px;
  align-items: center;

  input {
    flex: 1;
    width: 100%;

  }

  span {
    margin: 0 4px;
    display: inline-flex;
  }
}

.block-resize {
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgb(15, 65, 204);
  z-index: 1000;
  user-select: none;
}

.block-resize-top {
  top: -4px;
  left: calc(50% - 4px)
}

.block-resize-bottom {
  bottom: -4px;
  left: calc(50% - 4px)
}

.block-resize-left {
  top: calc(50% - 4px);
  left: -4px
}

.block-resize-right {
  top: calc(50% - 4px);
  right: -4px
}
.block-resize-top-left {
  top: -4px;
  left: -4px;

}
.block-resize-top-right {
  top: -4px;
  right: -4px;

}
.block-resize-bottom-left {
  bottom: -4px;
  left: -4px;

}
.block-resize-bottom-right {
  bottom: -4px;
  right: -4px;
}

.el-button,.el-input{
  transition: none;
}

