@import 'iconfont.scss';
@import 'components.scss';
@import 'common.scss';
@import 'animation.scss';

#debugger-page {
  height: 100%;
}

.logo {
  display: inline;
  img{
    width: 120px;
    vertical-align: middle;
    height: 100%;
    margin: 0 15px 0 25px;
  }
}

.header {
    height: 100px;
    background: rgb(64, 64, 64);
    position: relative;
    .switch {
        position: relative;
        width: 70px;
        display: inline-block;
        user-select: none;
        top: 4px;
    }
    .switch-checkbox {
        display: none;
    }
    .switch-label {
        display: block;
        overflow: hidden;
        cursor: pointer;
        border: 1px solid #666;
        border-radius: 20px;
    }
    .switch-inner {
        width: 200%;
        margin-left: -100%;
        -moz-transition: margin 0.3s ease-in 0s;
        -webkit-transition: margin 0.3s ease-in 0s;
        -o-transition: margin 0.3s ease-in 0s;
        transition: margin 0.3s ease-in 0s;
        div {
            float: left;
            width: 50%;
            height: 20px;
            padding: 0;
            line-height: 20px;
            font-size: 14px;
            color: white;
            text-align: left;
            font-family: Trebuchet, Arial, sans-serif;
            font-weight: bold;
            -moz-box-sizing: border-box;
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
        }
        .switch-active {
            padding-left: 10px;
            background-color: #44ADE2;
            color: #FFFFFF;
        }
        .switch-inactive {
            padding-right: 6px;
            background-color: #EEEEEE;
            color: #999999;
            text-align: right;
        }
    }
    .switch-switch {
        width: 18px;
        margin: 3px 4px;
        background: #FFFFFF;
        border: 1px solid #999999;
        border-radius: 20px;
        position: absolute;
        top: 0;
        bottom: 0;
        right: 42px;
        -moz-transition: all 0.3s ease-in 0s;
        -webkit-transition: all 0.3s ease-in 0s;
        -o-transition: all 0.3s ease-in 0s;
        transition: all 0.3s ease-in 0s;
    }
    .switch-checkbox:checked+.switch-label .switch-inner {
        margin-left: 0;
    }
    .switch-checkbox:checked+.switch-label .switch-switch {
        right: 0px;
    }
    .selector {
        width: 80px;
        font-size: 16px;
        background-color: #EEEEEE;
        color: #666;
    }
}

.loading-ctn {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    transition: 0.5s;
    height: 85%;
    .loading {
        width: 80px;
        position: absolute;
        top: 50%;
        left: 50%;
        margin-left: -40px;
        z-index: 1;
        margin-top: -45px;
        span {
            display: inline-block;
            width: 8px;
            height: 100%;
            border-radius: 4px;
            background: lightgreen;
            animation: load 1s ease infinite;
            &:nth-child(2) {
                animation-delay: 0.2s;
            }
            &:nth-child(3) {
                animation-delay: 0.4s;
            }
            &:nth-child(4) {
                animation-delay: 0.6s;
            }
            &:nth-child(5) {
                animation-delay: 0.8s;
            }
        }
    }
}

@keyframes load {
    0%,
    100% {
        height: 40px;
        background: #44ADE2;
    }
    50% {
        height: 70px;
        margin: -15px 0;
        background: lightblue;
    }
}

.info-ctn {
    display: inline-block;
    vertical-align: middle;
    border-left: 2px solid #aaa;
    padding: 4px 0 5px 15px;
    .column {
        display: inline-block;
        height: 52px;
        margin-right: 40px;
        vertical-align: middle;
    }
    .line {
        line-height: 28px;
        span {
            font-size: 16px;
            color: rgba(255, 255, 255, 0.75);
            width: 100px;
            display: inline-block;
        }
        b {
            font-size: 16px;
            font-weight: bolder;
            color: #fff;
            width: 300px;
            overflow: hidden;
            display: inline-block;
            text-align: right;
            vertical-align: top;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        &.short {
            span {
                width: 100px;
            }
            b {
                width: 80px;
                text-align: left;
            }
        }
        &.middle {
            span {
                width: 125px;
            }
            b {
                width: 80px;
                text-align: left;
            }
        }
    }
}

@media screen and (max-width: 1400px) {
    .info-ctn>.app-info-panel {
        display: none;
    }
}

@media screen and (max-width: 950px) {
    .info-ctn {
        display: none;
    }
    .widget-anchor-show {
        display: none!important;
    }
}

#inspector {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(100%);
    z-index: 10;
    background: rgba(255, 255, 255, 0);
}

// .btn {
//     display: inline-block;
//     padding: 5px;
//     text-decoration: none;
//     width: 50%;
//     text-align: center;
//     background: #000;
//     z-index: 2;
//     color: #fff;
//     border: 0;
//     box-sizing: border-box;
//     font-size: 18px;
//     line-height: 40px;
//     cursor: pointer;
//     &:first-child {
//       border-right: 1px solid #fff;
//     }
//     &:hover {
//       color: #fff;
//       background: #333;
//     }
// }
// .tips {
//     width: 20px;
//     height: 20px;
//     position: absolute;
//     border-radius: 50%;
//     border: 1px solid #aaa;
//     right: 35px;
//     bottom: 76px;
//     text-align: center;
//     line-height: 23px;
//     font-weight: bold;
//     cursor: help;
//     color: #aaa;
//     /* background: rgb(76,183,238); */
//     z-index: 4;
// }
// .tips:hover+.mask {
//     transform: scale(45);
// }
// .tips:hover+.mask+.help {
//     opacity: 1;
// }
.mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999;
    display: none;
    p {
        text-align: center;
    }
    &.bundle-qrcode {
        z-index: 998;
    }
}

.qrcode-ctn {
    position: absolute;
    width: 1000px;
    height: 400px;
    left: 50%;
    margin-left: -500px;
    margin-top: -200px;
    top: 50%;
    color: #fff;
    text-align: center;
}

#qrcode_bundle,
#qrcode {
    display: inline-block;
    padding: 15px;
    background: #fff;
}

.bundle-qr {
    position: relative;
    padding-bottom: 32px;
    display: inline-block;
    margin: 0 5px;
    p {
        position: absolute;
        color: #000;
        bottom: 0;
        margin: 0;
        white-space: nowrap;
        height: 30px;
        width: 100%;
        display: block;
        text-overflow: ellipsis;
        line-height: 30px;
        overflow: hidden;
        word-wrap: break-word;
        max-height: 30px;
    }
}

#qrcode_btn {
    position: relative;
    visibility: hidden;
    width: 52px;
    height: 52px;
    display: inline-block;
    cursor: pointer;
    span {
        color: #fff;
        text-align: center;
        line-height: 52px;
        font-size: 52px;
    }
    .bundle_tip {
        opacity: 0;
        padding: 5px 2px;
        position: absolute;
        color: #fff;
        top: -20px;
        font-size: 14px;
        line-height: 20px;
        width: 110px;
        text-align: center;
        left: calc((110px - 100%)/-2);
        transition: all ease .2s;
    }
    &:hover>.bundle_tip {
        opacity: 1;
        top: -35px;
    }
}

#qrcode_bundle {
    max-height: 500px;
    overflow: auto;
}

.tips-mask {
    z-index: 100 !important;
}

.help {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 30px;
    vertical-align: middle;
    color: #fff;
    border: 1px solid #fff;
    text-align: center;
    line-height: 30px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 101;
    &:hover {
        background: #fff;
        color: #000;
    }
    span {
        display: block;
        width: 30px;
        height: 30px;
        line-height: 30px;
    }
    .line.short>span:nth-child(1) {
      position: relative;
      z-index: 101;
    }
    .line.middle>span:nth-child(1) {
      position: relative;
      z-index: 101;
    }
}

.page-switch-btn {
    position: absolute;
    text-decoration: none;
    display: block;
    top: 50%;
    right: 15px;
    margin-top: -15px;
    padding: 0 15px;
    border-radius: 6px;
    height: 30px;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    line-height: 30px;
    font-size: 20px;
    cursor: pointer;
    transition: all .5s ease;
    &:hover {
      transform: translateX(10px);
    }
}

.bug_report {
    display: block;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    position: fixed;
    right: 20px;
    bottom: 20px;
    background-color: rgb(187, 35, 35);
    z-index: 999;
    opacity: .2;
    transition: all .2s ease;
    text-decoration: none;
    i {
        display: block;
        font-size: 28px;
        color: #fff;
        text-align: center;
        line-height: 50px;
    }
    &:hover {
        opacity: 1;
    }
}