@import '../../../assets/css/variable';
@import "../../../assets/css/util";

.header {
    height: $header-height;
    min-height: $header-height;
    line-height: $header-height;
    box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
    position: relative;
    padding: 0 12px 0 0;
    background-color: $white;
    text-align: right;
    .headerList-hover {
        display: inline-block;
        padding: 0 10px;
        transition: background-color .2s ease-out;
        &:hover {
            background-color: rgba($main-color, 0.1);
        }
        span + span {
            margin-left: 10px;
        }
        .box-trigger {
            padding: 0 10px;
            margin: 0 -10px;
        }
    }

    .headerList-icon {
        i:before {
            font-size: 20px;
            color: #999;
        }
        .red-dot {
            position: relative;
            &:after {
                width: 8px;
                height: 8px;
                position: absolute;
                top: -3px;
                right: 6px;
            }
        }
    }

    .userInfo{
        cursor: pointer;
        padding: 0 10px;
        margin-right: 20px;
        display: inline-block;
        transition: all .3s;
        height: 100%;
        &:hover {
            background:rgba(0,0,0,.025)
        }
    }
}

.divider{
    margin: 0 8px;
    display: inline-block;
    height: .9em;
    width: 1px;
    vertical-align: middle;
    position: relative;
    top: -.06em;

    font-family: Chinese Quote,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;
    font-size: 14px;
    font-variant: tabular-nums;
    line-height: 1.5;
    color: rgba(0,0,0,.65);
    box-sizing: border-box;
    padding: 0;
    list-style: none;
    background: #e8e8e8;
}

.user-role {
    background-color: $main-color;
    font-size: 14px;
    color: #fff;
    padding: 2px 5px;
    border-radius: 2px;
    cursor: pointer;
}

.header-content {
    margin: 0 auto;
    @include content-width;

    .tag {
        color: #c68f3a;
        border-color: #c68f3a;
    }

    .apply-ok {
        color: $main-color;
    }

    .apply-warning {
        color: $global-font-color-inactive;
    }
}

.message-body {
    width: 300px;
    .message{
        height: 250px;
        overflow-y: auto;
    }
    li {
        padding: 20px 0;
        & + li {
            border-top: 1px solid $global-border-color;
        }
        p{
            margin: 0;
            word-wrap: break-word;
            &:first-child{
                &:before{
                    @include red-dot;
                }
            }
            &.time{
                text-align: right;
            }
        }
    }
    .read-more{
        box-shadow: 0 -2px 5px $global-border-color;
        margin: 5px -10px -6px;
        line-height: 1.8;
        text-align: center;
        .ne-btn{
            width: 100%;
        }
    }
}
