社区文档构建进行中,欢迎编辑。社区答疑群(非官方):717421103
Widget:评论区/css
<style>
- flowthread {
display: none !important; }
- NewWikiComment {
position: relative; }
- NewWikiComment .input {
height: 5em; display: flex; }
- NewWikiComment .input * {
height: 100%; margin: 0 0.5em; }
- NewWikiComment .input textarea {
padding: 0.5em; resize: none; flex: 1; }
- NewWikiComment .input .submit {
aspect-ratio: 1/1; border-radius: 1em; display: flex; justify-content: center; align-items: center; background: #00aeec; color: white; font-weight: bold; }
- NewWikiComment .option {
margin: 1em; }
- NewWikiComment .option .sort {
display: flex; flex-direction: column; align-items: flex-end; }
- NewWikiComment .option .sort > div {
display: flex; align-items: center; }
- NewWikiComment .option .sort [data-type="by"]:before {
content: "按"; }
- NewWikiComment .option .sort > div > div {
padding: 0 0.5em; border-radius: 0.5em; }
- NewWikiComment .option .sort > div > div.active {
background: dimgray; color: white; }
- NewWikiComment ol {
list-style-type: none; margin: 1em; border: 1px solid lightgray; }
- NewWikiComment ol:empty {
display: none; }
- NewWikiComment ol li {
margin: 1em 0; display: flex; flex-direction: column; }
- NewWikiComment ol li .body {
width: 100%; padding-top: 1em; border-top: 1px solid lightgray; display: flex; align-items: flex-start; }
- NewWikiComment ol li .body > div {
display: flex; flex-direction: column; }
- NewWikiComment ol li .left {
padding: 0.5em; }
- NewWikiComment ol li .right {
flex: 1; }
- NewWikiComment ol li .left .avatar img {
width: 48px; height: 48px; border-radius: 50%; }
- NewWikiComment ol li .right .text {
font-size: 1.2em; margin: 0.5em; word-break: break-all; white-space: break-spaces; }
- NewWikiComment ol li .right .foot {
font-size: 0.8em; color: gray; display: flex; flex-direction: column; }
- NewWikiComment ol li .right .foot > div {
display: flex; }
- NewWikiComment ol li .right .foot > div > div {
margin: 0.5em; }
- NewWikiComment ol li .right .foot .info .index:before {
content: "#"; }
- NewWikiComment ol li .right .foot .funBox [data-action="like"]:before {
content: "👍"; }
- NewWikiComment ol li .right .foot .funBox [data-action="dislike"]:before {
content: "🦶"; }
- NewWikiComment ol li .right .foot .funBox [data-action].checked {
font-weight: bold; }
- NewWikiComment ol li .right .foot .funBox [data-action="like"].checked {
color: red; }
- NewWikiComment ol li .right .foot .funBox [data-action="dislike"].checked {
color: black; }
- NewWikiComment ol li .right .foot .funBox [data-action="like"].checked:before {
content: "❤️"; }
- NewWikiComment ol li .right .foot .funBox [data-action="dislike"].checked:before {
content: "🖤"; }
- NewWikiComment ol li .right .foot .funBox [data-action="reply"]:before {
content: "💬"; }
- NewWikiComment ol li .right .foot .funBox [data-action="delete"]:before {
content: "❌"; }
- NewWikiComment .mask {
position: absolute; width: 100%; height: 100%; background: black; top: 0; left: 0; opacity: 0.1; }
- NewWikiComment:not(.loading) .mask {
display: none; }
- NewWikiComment .input .submit,
- NewWikiComment .option .sort > div > div,
- NewWikiComment ol li .right .foot .funBox > div {
cursor: pointer; } </style>