$font-color: red;
$card-width: 700px;
$img-width: 250px;

/*
author: ourfor
date: 2019-08-01
天气阴☁️ 状态一般 心情还行
*/

body,html{
    padding: 0;
    margin: 0;
    text-align: center;
}

.post-card{
    margin: 15px auto;
    text-align: left;
    width: $card-width;
    border: 1px solid #e9e9e9;
    padding: 20px 10px;
    padding-bottom: 5px;
    border-radius: 4px;
    box-shadow: 4px 3px 0 0 rgba(0,0,0,0.1),2px 2px 0 0 rgba(0,0,0,0.07);

    img{
        width: $img-width;
    }

    .post-title{
        // font-weight: 300;
        // font-size: 1.1em;
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 10px;
        position: relative;
        margin-left: 2px;
        background: linear(#f3f3f3,#e9e9e9);
        padding: 2px 5px;
        box-shadow: 0 1px 2px 0 rgba(0,0,0,.07);
        border-radius: 2px;

        &::before{
            content: "";
            display: block;
            position: absolute;
            background: red;
            width: 3px;
            height: 80%;
            top: 10%;
            left: -10px;

        }
    }

    .post-info{
        display: flex;
        
        .post-desc{
            margin: 10px 1em;
            font-size: 1.056em;
            color: #1a1a1a;
            white-space: normal;
            word-break: break-word;
            line-height: 1.6;
            letter-spacing: .06em;
            font-family: -apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;

            a{
                color: #175199;
                text-decoration-line: none;
            }
        }

        .post-desc::first-letter{
            font-size: 1.5em;
            color: red;
        }
    }

    .post-stats{
        margin-top: 20px;
        margin-bottom: 0;
        padding-bottom: 4px;
        font-weight: 400;
        display: flex;
        justify-content: left;
        align-items: center;
        color: #6b6c6e;

        span{
            margin: 0;
            padding: 0;
            display: flex;
            align-items: center;
        }


        span>div{
            width: 1.4em;
            height: 1.4em;
            // font-size: 1.4em;
            color: #54427d;
            padding-right: 6px;
            padding-left: 4px;
        }

        .post-info-share{
            &:hover{
                cursor: pointer;
            }
        }
    }

    

}


.hidden{

    span{
        width: 20px;
        height: 20px;
        top: -10px;
        left: 38px;
        position: absolute;
        border: 1px solid #e9e9e9;
        background: white;
        padding: 0;
        margin: 0;
        transform: rotate(45deg);
        z-index: 40;

        &::after{
            content: '';
            top: 8px;
            display: block;
            width: 24px;
            height: 24px;
            background: white;
        }
    }
    .menu{
        display: none;
        width: 400px;
        position: absolute;
        width: 100px;
        transform: translate(-50%,0);
        z-index: 520;

        // &::before {
        //     content: "";
        //     display: block;
        //     width: 0;
        //     height: 0;
        //     top: 0;
        //     left: 50%;
        //     position: relative;
        //     z-index: 555;
        //     border: 15px solid transparent;
        //     border-style: solid;
        //     border-bottom-color: gold;
        //     transform: translate(-50%,-100%);
        // }
        div{
            border: 1px solid #e9e9e9;
            border-radius: 5px;
            background: white;
        }

        p{
            height: 18px;
            color: red;
            text-align: left;
            padding-left: 5px;
            display: flex;
            align-items: center;
            font-size: 95%; 

            svg{
                margin-right: 5px;

            }

            &:last-child svg{
                margin-right: 1px;
            }
        }
        
    }

}
