_share.css 2.19 KB
.share-wrapper {
    @each $icon in weibo, tweibo, renren, qzone, qq, douban, weixin {
        .$(icon) {
            background: url(/share/$(icon).png) no-repeat;
        }
    }

    position: relative;

    i {
        display: block;
        float: left;
        margin-left: 5px;
        width: 16px;
        height: 16px;
        cursor: pointer;
    }

    .weixin-share-box {
        position: absolute;
        top: 22px;
        right: -26px;
        z-index: 2;
        display: none;
        padding-top: 9px;
        width: 282px;
        height: 302px;
        text-align: center;
        font-family: Microsoft Yahei, Arial, Verdana, sans-serif;

        em,
        em i {
            position: absolute;
            width: 0;
            height: 0;
            border-width: 0 10px 9px;
            border-style: dashed dashed solid;
            font-size: 0;
        }

        em {
            top: 0;
            left: 50%;
            margin-left: -10px;
            border-color: transparent transparent #d6d6d6;
        }

        em i {
            top: 1px;
            left: -15px;
            overflow: hidden;
            border-color: transparent transparent #e8e8e8;
        }

        .con {
            position: relative;
            overflow: hidden;
            width: 280px;
            height: 300px;
            border: 1px solid #d6d6d6;
            background-color: #fff;
            box-shadow: 0 2px 4px #d1d1d1;
        }

        h2 {
            display: block;
            height: 46px;
            background-color: #e8e8e8;
            color: #000;
            font-size: 18px;
            line-height: 46px;
        }

        .pic,
        .pic img {
            width: 168px;
            height: 168px;
        }

        .pic {
            overflow: hidden;
            margin: 16px auto;
        }

        .w {
            color: #9f9f9f;
            font-size: 13px;
            line-height: 20px;
        }

        .close {
            position: absolute;
            top: 0;
            right: 0;
            overflow: hidden;
            width: 45px;
            height: 45px;
            color: #999;
            font-size: 16px;
            line-height: 45px;
        }
    }
}