_home.css 3.86 KB
.my-page {
    color: #444;
    background: #f0f0f0;

    a {
        color: #000;
    }

    .my-header {
        background: resolve("home/header-bg.png");
        background-size: cover;

        .setting {
            float: left;
            margin-top: 40px;
            margin-left: 15px;
            font-size: 46px;
        }
    }

    .user-info {
        display: block;
        position: relative;
        padding: 0 30px;
        margin: 0 180px;
        color: #000;
        font-size: 34px;
        line-height: 138px;
        height: 469px;
        text-align: center;

        .user-avatar {
            display: inline-block;
            position: relative;
            top: 100px;
            width: 200px;
            height: 200px;
            border-radius: 50%;
            border: 6px solid #a7a8a9;
            background: resolve("home/user-icon.png");
            background-size: 100%;
        }

        .username {
            display: inline-block;
            padding: 0 16px;
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
            font-size: 32px;
            max-width: 260px;
        }
    }

    .login-btn {
        display: inline-block;
        top: 40px;
        left: 194px;
        width: 244px;
        height: 82px;
        line-height: 82px;
        color: #fff;
        border: 4px solid #fff;
        margin: 150px auto;
    }

    .my-order {
        margin-bottom: 30px;
        border-top: 1px solid #e0e0e0;
        border-bottom: 1px solid #e0e0e0;
        background: #fff;

        .order-title {
            display: block;
            padding: 0 29px;
            font-size: 34px;
            line-height: 88px;

            &.highlight {
                background: #eee;
            }

            .read-order {
                color: #b0b0b0;
                font-size: 30px;
                float: right;
            }
        }

        .order-type {
            padding: 20px 30px;
            text-align: center;
            border-top: 1px solid #e0e0e0;

            .icon {
                font-size: 45px;
            }

            .type-item {
                position: relative;
                float: left;
                color: #444;
                font-size: 24px;
                line-height: 1.5;
                width: 170px;

                &.highlight {
                    background: #eee;
                }

                .num {
                    position: absolute;
                    top: -35px;
                    right: 20px;
                    width: 72px;
                    height: 72px;
                    font-size: 34px;
                    line-height: 72px;
                    color: #fff;
                    background: #f03d35;
                    text-align: center;
                    border-radius: 50%;
                    transform: scale(0.5);
                }
            }
        }
    }

    .group-list {
        margin-bottom: 30px;
        border-top: 1px solid #e0e0e0;
        border-bottom: 1px solid #e0e0e0;
        background: #fff;

        .list-item {
            display: block;
            position: relative;
            padding: 0 30px;
            font-size: 34px;
            line-height: 90px;
            overflow: hidden;

            &.highlight {
                background: #eee;
            }

            &:after {
                content: "";
                position: absolute;
                right: 0;
                bottom: 0;
                width: 100%;
                height: 0;
                border-top: 1px solid #f0f0f0;
            }

            &:last-child:after {
                content: none;
            }
        }

        .icon {
            margin-right: 5px;
            font-size: 34px;
            vertical-align: top;
        }

        .num {
            color: #b0b0b0;
            float: right;
        }
    }
}