_footer.css 2.78 KB
.yoho-footer {
    position: relative;
    width: 100%;
    background-color: #fff;
    font-size: 24px;

    .op-row {
        padding: 0 30px;
        height: 120px;
        line-height: 120px;

        span {
            display: inline-block;
            overflow: hidden;
        }

        a {
            display: inline-block;
            overflow: hidden;
        }

        .user-name {
            margin-right: 1em;
            margin-left: 0.3em;
            max-width: 200px;
            text-decoration: underline;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .back-to-top {
            position: absolute;
            right: 40px;
        }

        .sep-line {
            margin: 0 0.3em;
        }
    }

    .copyright {
        height: 120px;
        border-top: 1px solid #ccc;
        background-color: #eee;
        color: #666;
        text-align: center;
        line-height: 120px;
    }

    &.bottom {
        position: fixed;
        bottom: 0;
        width: 100%;
    }
}

.float-layer {
        height: 128px;
        background: rgba(68, 68, 68, 0.95);
        position: fixed;
        width: 100%;
        bottom: 0;
        left: 0;
        z-index: 9999;
        padding: 20px 0;
        .float-layer-left {
            padding-left: 44px;
            overflow: hidden;
            float: left;
            img {
                height: 44px;
                float: left;
                margin-right: 20px;
            }
            p {
                float: left;
                font-size: 32px;
                height: 88px;
                line-height: 88px;
                color: white;
            }
            .yoho-icon {
                float: left;
                margin-right: 10px;
                font-size: 44px;
                line-height: 88px;
                width: 88px;
                height: 88px;
                text-align: center;
                color: #fff;
                border-radius: 20px;
                background-image: linear-gradient(#323232, #0f0f0f);
            }
        }
    }
    #float-layer-close {
        position: absolute;
        left: 0;
        top: 0;
        width: 100px;
        height: 100px;
        .close-icon {
            position: absolute;
            left: 0;
            top: 0;
            color: #C0C0C0;
            z-index: 2;
        }
    }
    #float-layer-btn {
        position: absolute;
        top: 50%;
        right: 15px;
        font-size: 32px;
        padding: 0 10px;
        height: 54px;
        line-height: 54px;
        background: white;
        border-radius: 5px;
        margin-top: -26px;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.5);
        &:link,
        &:visited,
        &:hover,
        &:actived {
            color: #000;
        }
    }