
@mixin preview-theme($t) {
    .#{$t} {
        .preview-container {
            .header {
                width: 100%;
                height: 50px;
                line-height: 50px;
                color: white;
                position: absolute;
                background: rgba(0, 0, 0, 1);
                text-align: center;
                top: 0;

                a {
                    color: #fff;
                    &:hover {
                        color: $color-mint-hover;
                    }
                    &.active {
                        color: $color-mint;
                    }
                }

                a.fa-user {
                    float: left;
                    margin-left: 10px;
                    font-size: 22px;
                    margin-top: 12px;
                }
                a.fa-mobile-phone {
                    float: right;
                    margin-right: 15px;
                    font-size: 30px;
                    margin-top: 10px;
                }
            }
            .tools {
                width: 100%;
                position: absolute;
                top: 50px;
                background: rgba(0, 0, 0, 1);
                border-top: 1px solid #333;
                text-align: center;

                .tool-line {
                    height: 30px;
                    line-height: 30px;
                }

                .tool-qrcode {
                    width: 100%;
                    text-align: center;
                    padding: 20px 0;
                    .qrcode {
                        background: #fff;
                        margin: 0 auto;
                        width: 140px;
                        padding: 10px 0;
                    }
                    img {
                        display: block;
                        margin: 0 auto;
                    }
                }

                .tool-input {
                    padding: 20px 0;
                    input {
                        width: 140px;
                        height: 28px;
                        line-height: 24px;
                        font-size: 14px;
                        text-indent: 10px;
                    }
                }

                .tool-usb {
                    padding: 10px 0;
                    .usb-tip {
                        margin-top: 20px;
                        list-style: none;
                        font-size: 12px;
						text-align: left;
                        margin-left: 20px;
                        li {
                            margin: 6px 0;

                            a {
                                font-size: 12px;
                                text-decoration: underline;
                                color: $color-mint;
                            }
                        }
                    }

                    button {
						display: inline-block;
						padding: 8px 10px;
                        font-size: 14px;
						i {
                            margin-right: 10px;
                        }
                    }

                }

                p {
                    font-size: 12px;
                }

                .tool-line {
                    a {
                        font-size: 16px;
                        margin: 0 20px;
                        color: #fff;
                        &:hover {
                            color: $color-mint-hover;
                        }
                        &.active {
                            color: $color-mint;
                        }
                    }
                }
            }

            .user-block {
                border-top: 1px solid #333;
                text-align: left;
                padding-left: 20px;
                p {
                    margin: 15px 0;
                    font-size: 14px;
                }
                a {
                    font-size: 14px;
                    margin: 0;
                    text-decoration: underline;
                }
                .logout {
                    width: 120px;
                    padding: 6px 0;
                }
            }

            .update-info {
                border-top: 1px solid #333;
                a {
                    font-size: 12px;
                    color: $color-mint;
                    text-decoration:  underline;
                    margin: 0;
                }
            }

            .trial-expire {
                border-top: 1px solid #333;
                text-align: left;
                padding-left: 20px;
                padding-bottom: 10px;
                .logout {
                    width: 120px;
                    padding: 6px 0;
                }
            }

            .device-list {
                border-top: 1px solid #333;
                text-align: left;
                p {
                    font-size: 14px;
                    padding-left: 10px;
                }
                ul {
                    list-style: none;
                    padding: 0;
                    margin: 0;
                    li {
                        border-bottom: 1px dashed #666;
						height: 30px;
                        line-height: 30px;
                        padding: 0 10px;
                        font-size: 12px;
                        overflow: hidden;
                        i {
                            color: $color-mint;
							margin-right: 8px;
                        }
                        strong {
                            color: $color-mint;
                        }
                        span {
                            float: right;
                        }
                        &:last-child {
                            border: none;
                        }
                    }
                }
            }

            .preview-inner {
                text-align: center;
                vertical-align: middle;
            }

            .checking {
                position: absolute;
                top: 200px;
                width: 100%;
                text-align: center;
            }

            .user-guide {
                position: absolute;
                width: calc(80vw);
                margin: 0 auto;
                top: calc(30vh);
                margin-left: calc(20vw/2);
                z-index: 10;
                background: rgba(0, 0, 0, 0.8);
                font-size: 14px;
                border-radius: 3px;
                p {
                    margin-left: 10px;
                }
                button {
                    width: 100px;
                    padding: 6px 0;
                }
            }
        }

    }
}

@include preview-theme('black');
@include preview-theme('dark');
@include preview-theme('gray');
@include preview-theme('white');