@import "color.less";

.setting-view {
  overflow: hidden;
  position: relative;

  //設定勾選框
  input[type="checkbox"] {
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    background-color: #fafafa;
    border: 1px solid #cacece;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05),
      inset 0px -15px 10px -12px rgba(0, 0, 0, 0.05);
    padding: 9px;
    border-radius: 3px;
    display: inline-block;
    position: relative;
    top: 4px;
    margin-right: 4px;
  }
  input[type="checkbox"]:active,
  input[type="checkbox"]:checked:active {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05),
      inset 0px 1px 3px rgba(0, 0, 0, 0.1);
  }
  input[type="checkbox"]:checked {
    background-color: @primary;

    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05),
      inset 0px -15px 10px -12px rgba(0, 0, 0, 0.05),
      inset 15px 10px -12px rgba(255, 255, 255, 0.1);
    color: #ffffff;
  }

  input[type="checkbox"]:checked:after {
    content: "\2714";
    font-size: 14px;
    position: absolute;
    top: 0px;
    left: 3px;
    color: #ffffff;
    outline: none;
  }
  //設定勾選框

  .menu-bar {
    float: left;
    background-color: #f4f3f3;
    height: 95.9vh;
    padding: 0px !important;

    @media screen and (max-width: 767px) {
      height: auto;
      overflow: scroll;
    }
    .list-block {
      .list-item {
        list-style-type: none;
        width: 100%;
        border-bottom: 1px solid @border;

        //background: linear-gradient(270deg, #eeeeee, #ffffff);
        &:hover {
          background: @bgcHover;
          color: @titleHover;
          cursor: pointer;
        }
        width: 100%;

        padding: 24px 45px 20px 45px;
        font-weight: bolder;
        font-size: 16px;
        &:last-child {
          border-bottom: none;
        }
      }
    }
    .list-item-selected {
      background: @bgcHover;
      color: @titleHover;
      cursor: pointer;
      width: 100%;
      .list-item-typeMark {
        color: white !important;
        background-color: @secondary !important ;
        transition: ease-in 0.2s;
      }
    }
  }
  .menu-content {
    float: right;

    padding: 30px 50px !important;
    background-color: #fafafa;
    height: 95.9vh;
    @media screen and (max-width: 1366px) {
      height: 95.9vh;
      overflow: scroll;
    }
    .edit {
      cursor: pointer;
      position: relative;
      input[type="file"] {
        display: none;
      }
      .user-avatar {
        width: 80px !important;
        height: 80px !important;
        border-radius: 50%;
      }
      .edit-btn {
        position: absolute;
        text-align: center;
        padding: 2px;
        top: -10px;
        right: -2px;
        width: 25px;
        height: 25px;
        color: rgb(230, 230, 230);
        background-color: #00ad6c;
        border-radius: 50%;
      }
    }

    .user-name {
      font-weight: bolder;
      white-space: nowrap;
    }
    .user-link-group li {
      margin-left: 10px;
      margin-right: 20px;
      list-style: none;
      text-align: center;
      display: inline-block;
    }
    .user-setting {
      font-weight: bolder;
      h4 {
        margin-left: 10px;
      }
      input {
        font-weight: bolder;
        color: #484848;
        background-color: rgb(230, 230, 230);
        width: 100%;
        height: 20px;
        margin-top: 10px;
        padding: 15px 10px;
        border-radius: 4px;
        border: 2px solid transparent;
        &:disabled {
          color: rgb(143, 143, 143);
        }
        &:focus {
          outline: none;
          background-color: rgb(255, 255, 255);
          border: 2px solid @primary;
        }
      }
      .user-link {
        cursor: pointer;
        font-size: 40px;
        border-radius: 50%;
        margin: 12px 0px 5px 0px;
      }
    }
    .dropdown {
      margin-top: 15px;
      margin-left: -10px;
      padding: 2px 10px;
      border: 1px solid @border;
      border-radius: 4px;
      a {
        text-decoration: none;
        font-weight: bolder;
        color: @primary;
      }
    }
    .testBtn {
      display: inline-block;
      font-weight: bolder;
      text-align: center;
      font-size: 12px;

      margin-top: -5px;
      margin-right: 20px;

      .lightbg {
        border-radius: 4px;
        background: linear-gradient(#ffffff, #d2e0d5);
        border: 1px solid rgb(201, 201, 201);
        width: 75px;
        height: 30px;
        margin-bottom: 8px;
      }
      .darkbg {
        background: linear-gradient(#414141, #000000);
        width: 75px;
        border-radius: 4px;
        height: 30px;
        margin-bottom: 8px;
      }
      &:hover {
        cursor: pointer;
      }

      input[type="radio"] {
        visibility: hidden;
        margin-left: 40px;
      }

      input[type="radio"]:checked ~ .darkbg,
      input[type="radio"]:checked ~ .lightbg {
        color: #fff;
        font-weight: bolder;

        border: 3px solid @primary !important;
      }
    }
  }
}
