1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | /* 雙圖 趴趴回應數 ver.2.0*/ /*右方趴趴*/ .cboxAnchor[data-type="plurk"]>table{ position: relative; } .cboxAnchor[data-type="plurk"]>table::before{ content:""; color:red; position: absolute; width:70px; height:46px; right: 50px; top:-42px; background-image:url(圖片網址); /*趴趴圖網址*/ z-index:100; background-size:contain; background-repeat: no-repeat; } /*左方趴趴*/ .cboxAnchor[data-type="plurk"]>table{ position: relative; } .cboxAnchor[data-type="plurk"]>table::after{ content:""; color:red; position: absolute; width:70px; height:46px; left: 0px; top:-42px; background-image:url(圖片網址); /*趴趴圖網址*/ z-index:100; background-size:contain; background-repeat: no-repeat; } .timeline-cnt{ position:relative; margin-top: 30px; /* 增加數字避免讓最上面的趴趴撞到上面的bar */ } /* 氣泡框 */ .response_count{ position: relative; top:-52px; left:-40px; border:5px solid transparent; border-radius:30px; background-color:#2d2d2d; /*可自行更換顏色*/ font-size: 10px; text-align:center; z-index:100; width:100%; height:100%; min-width:25px; max-height:20px; color:#8f8f8f; line-height:8px; font-family:微軟正黑體 !important; } /* 氣泡框尾巴 */ .response_count::after { content:""; position:absolute; left:4px; top:10px; border-color: #2d2d2d transparent transparent #2d2d2d; /*可自行更換顏色*/ border-style: solid solid solid solid; border-width: 5px 5px; height: 0px; width: 0px; } /* 新回應氣泡框 */ .new .response_count{ border:5px solid transparent; background-color:#色碼; /*自行更換顏色*/ } /* 新回應氣泡框尾巴尾巴 */ .new .response_count::after { border-color: #色碼 transparent transparent #色碼; /*自行更換顏色*/ } |
Direct link: https://paste.plurk.com/show/Sugp3OqTbDhBU2dXwJXx