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

    a {
        color: #000;
    }

    .blk-header {
        box-sizing: content-box;
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 210;
        padding: 20px 30px;
        height: 70px;
        max-width: 750px;
        margin-left: auto;
        margin-right: auto;
        line-height: 70px;
        font-size: 48px;
        background-color: #fff;
        border-bottom: 1px solid #eee;
        color: #000;

        .icon {
            vertical-align: middle;
        }
    }

    .top-box {
        .blk-header {
            background-color: transparent;
            border-bottom: 0;
        }
    }

    .top-change {
        .blk-header {
            background-color: #fff;
        }
    }

    .blk-header-left {
        float: left;
    }

    .blk-header-gap {
        height: calc(70 + 20 * 2 + 1)px;
        background-color: transparent;
    }

    .my-header {
        height: 469px;
        background: resolve("me/header-bg.png");
        background-size: cover;
    }

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

        .user-avatar {
            display: inline-block;
            position: relative;
            width: 174px;
            height: 174px;
            border-radius: 50%;
            margin: 0 auto;
            border: 3px solid #b0b0b0;
            background: resolve("me/user-icon.png");
            background-size: 100%;
        }
    }

    .username {
        display: block;
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 32px;
        position: relative;
        top: 140px;
    }

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

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

            &.highlight {
                background: #eee;
            }

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

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

            .icon {
                font-size: 45px;
            }

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

                &.highlight {
                    background: #eee;
                }

                &:first-child {
                    margin-left: 34px;
                }

                .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: 20px;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
        background: #fff;

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

            &.highlight {
                background: #eee;
            }

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

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

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

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

.app.ios {
    .blk-header {
        padding-top: 80px;
    }
}