@import "mixin.scss";
@import "dropdown-list.scss";
header {
  font-size: 12px;
  * {
    box-sizing: content-box;
  }
  & > ul {
    display: flex;
    align-items: center;
    height: 30px;
    margin: 0;
    padding: 0;
    background-color: #e1e1e1;
    li {
      line-height: 30px;
      display: inline-flex;
      width: 80px;
      height: 100%;
      list-style: none;
      a {
        font-size: 14px;
        width: inherit;
        text-align: center;
        text-decoration: none;
        color: #337ab7;
      }
      a:hover,
      a:focus {
        color: #23527c;
      }
    }
    li.selected {
      background: #fff;
      a {
        color: #000;
      }
    }
  }
}

.mind_tab-content {
  border-bottom: 1px solid #eee;
  .el-tabs__header {
    margin-bottom: 0;
  }
}

.mind-tab-panel {
  width: 100%;
  height: 100%;
  padding-block: 6px;
  .menu-container {
    display: flex;
    min-height: 52px;
    & > div {
      display: flex;
      overflow: hidden;
      flex-wrap: wrap;
      padding: 4px 10px;
      line-height: 12px;
      &:not(:last-of-type) {
        border-right: 1px dashed #eee;
      }
    }
    .expand-group,
    .selection-group {
      flex-direction: column;
      align-items: center;
      justify-content: space-around;
      .el-dropdown-link {
        display: flex;
        gap: 4px;
      }
      button {
        border: none;
        outline: none;
        padding: 10px 20px;
      }
      span {
        font-size: 12px;
      }
    }
    .expand-group .tab-icons {
      background-position: center -995px;
    }
    .selection-group .tab-icons {
      background-position: 7px -1175px;
    }
    .insert-group {
      max-width: 208px;
      .menu-btn {
        padding: 0 4px;
      }
      .insert-sibling-box .tab-icons {
        background-position: 0 -20px;
      }
      .insert-parent-box .tab-icons{
        background-position: 0 -40px;
      }
    }
    .move-group,
    .edit-del-group {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-around;
    }
    .move-group {
      .move-up .tab-icons {
        background-position: 3px -280px;
      }
      .move-down .tab-icons {
        background-position: 3px -300px;
      }
    }
    .edit-del-group {
      .edit .tab-icons {
        background-position: 0 -60px;
      }
      .del .tab-icons {
        background-position: 0 -80px;
      }
    }
  }
  .menu-btn {
    cursor: pointer;
    gap: 4px;
    @include flexcenter;
  }
  .menu-btn:not([disabled]):hover {
    background-color: $btn-hover-color;
  }
  .tab-icons {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("../../assets/minder/icons.png");
    background-repeat: no-repeat;
  }
  .do-group {
    width: 40px;
    height: 100%;
    padding: 0 5px;
    p {
      height: 50%;
      margin: 0;
      @include flexcenter;
    }
    .undo i {
      background-position: 0 -1240px;
    }
    .redo i {
      background-position: 0 -1220px;
    }
  }
  .attachment-group {
    width: 185px;
    @include flexcenter;
    .el-dropdown-link {
      font-size: 12px;
    }
    button {
      font-size: inherit;
      width: 45px;
      height: 20px;
      padding: 0;
      background-repeat: no-repeat;
      background-position: right;
      @include button;
      @include flexcenter;
      span {
        margin-left: 15px;
      }
    }
    button:hover {
      background-color: $btn-hover-color;
    }
    & > div {
      font-size: inherit;
      flex-wrap: wrap;
      height: 100%;
      @include flexcenter;
    }
    .insert {
      height: 25px;
      background-repeat: no-repeat;
    }
    .link {
      .insert {
        background-position: 50% -100px;
      }
    }
    .img {
      .insert {
        background-position: 50% -125px;
      }
    }
    .remark {
      .insert {
        background-position: 50% -1150px;
      }
    }
    .el-dropdown {
      cursor: default;
    }
  }
  .progress-group {
    ul {
      width: 116px;
      margin: 0;
      padding: 0;
      list-style: none;
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
      li {
        width: 20px;
        height: 20px;
        transform: scale(1.1);
        background-image: url("../../assets/minder/iconprogress.png");
      }
    }
    @for $i from 0 through 9 {
      .progress-#{$i} {
        background-position: 0 -20px * (-1 + $i);
      }
    }
  }
  .mold-group {
    @for $i from 1 through 6 {
      .mold-#{$i} {
        background-position: (1-$i) * 50px 0;
      }
    }
    .dropdown-toggle {
      font-size: 12px;
      .current-mold {
        display: inline-block;
        width: 50px;
        height: 42px;
        line-height: 42px;
        padding: 0;
        vertical-align: middle;
      }
      i {
        vertical-align: middle;
      }
    }
  }
  .theme-group {
    .dropdown-toggle {
      font-size: 12px;
      .current-theme {
        font-size: 12px;
        display: inline-block;
        text-align: center;
        width: 70px;
        height: 30px;
        line-height: 30px;
        padding: 0;
      }
    }
  }
  .arrange-group {
    .arrange {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .tab-icons {
      display: inline-block;
      width: 25px;
      height: 25px;
      margin: 0;
      background-repeat: no-repeat;
      background-position: 0 -150px;
    }
  }
  .style-group {
    align-items: center;
    gap: 8px;
    .clear-style-btn,
    .copy-paste-panel {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .clear-style-btn {
      .tab-icons {
        display: inline-block;
        width: 25px;
        height: 25px;
        margin: 0;
        background-repeat: no-repeat;
        background-position: 0 -175px;
      }
    }
    .copy-paste-panel {
      gap: 4px;
      .tab-icons {
        display: inline-block;
        width: 20px;
        height: 20px;
      }
      .copy-style {
        .tab-icons {
          background-position: 0 -200px;
        }
      }
      .paste-style {
        .tab-icons {
          background-position: 0 -220px;
        }
      }
    }
  }
  .font-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    .el-input__inner {
      width: 80px;
      height: 22px !important;
      line-height: 22px !important;
    }
    .el-input__suffix {
      right: 0;
    }
    .el-input__icon {
      line-height: 22px !important;
    }
    .font-bold,
    .font-italic {
      display: inline-block;
      width: 20px;
      height: 16px;
      margin: 0 3px;
    }
    .font-bold {
      background-position: 0 -242px;
    }
    .font-italic {
      background-position: 0 -262px;
    }
  }
}
