UNPKG

karin-plugin-kkk

Version:

Karin 的「抖音」「B 站」视频解析/动态推送插件

426 lines (390 loc) 8.97 kB
.container { background-color: #f4f4f4; margin: 0; padding: 20px; width: 1440px; height: auto; } body.dark-mode .logo { width: 133%; height: 245px; margin: 0 0 50px -55px; background-size: cover; background-position: center; background-attachment: fixed; background-image: url(../../../image/kuaishou/logo.png); } body.light-mode .logo { width: 133%; height: 245px; margin: 0 0 50px -55px; background-size: cover; background-position: center; background-attachment: fixed; background-image: url(../../../image/kuaishou/logo.png); } .comment-container { max-width: 100%; /* 宽度设置为百分之百,以适应不同屏幕大小 */ margin: 0 auto; overflow: auto; /* 添加滚动条以处理大量评论 */ } .comment { display: -webkit-box; display: -webkit-flex; display: -moz-box; display: -ms-flexbox; display: flex; /* border-bottom: 1px solid #e7d8d8; */ padding: 40px; /* 调整填充以改善间距 */ } .user-avatar { margin-bottom: 50px; width: 187.5px; /* 调整尺寸 */ height: 187.5px; /* 调整尺寸 */ border-radius: 50%; margin-right: 33.75px; /* 调整边距 */ -o-object-fit: cover; object-fit: cover; -webkit-box-shadow: 0 20px 50px 0 rgb(0 0 0 / 30%); box-shadow: 0 20px 50px 0 rgb(0 0 0 / 30%); } .comment-content { -webkit-box-flex: 1; -webkit-flex: 1; -moz-box-flex: 1; -ms-flex: 1; flex: 1; /* overflow: hidden; */ } .user-info { margin-bottom: 50px; font-size: 50px; color: #888; position: relative; /* 将容器设置为相对定位 */ } .Z3o6vw6l { display: inline-block; padding: 2px 20px 2px 20px; border-radius: 13px; margin-left: 10px; font-size: 45px; } .comment-imgbox { display: -webkit-box; display: -webkit-flex; display: -moz-box; display: -ms-flexbox; display: flex; margin: 20px 0; overflow: hidden; -webkit-box-shadow: 0 20px 50px 0 rgba(0, 0, 0, 0.3); box-shadow: 0 20px 50px 0 rgba(0, 0, 0, 0.3); border-radius: 25px; width: 95%; -webkit-box-flex: 1; -webkit-flex: 1; -moz-box-flex: 1; -ms-flex: 1; flex: 1; /* 让容器自动调整大小 */ } .comment-imgbox_1 { border-radius: 25px; -o-object-fit: contain; object-fit: contain; /* 图片按原比例完整显示在容器内 */ width: 100%; /* 让图片宽度充满父容器 */ height: 100%; /* 让图片高度充满父容器 */ } .comment-text { font-size: 60px; -webkit-box-align: center; -webkit-align-items: center; -moz-box-align: center; -ms-flex-align: center; align-items: center; letter-spacing: 0.5px; position: relative; line-height: 1.6; } .comment-text img { display: inline-block; vertical-align: middle; -webkit-transform: translateY(-10%) scale(0.9); -moz-transform: translateY(-10%) scale(0.9); -ms-transform: translateY(-10%) scale(0.9); -o-transform: translateY(-10%) scale(0.9); transform: translateY(-10%) scale(0.9); } .like-section { display: -webkit-box; display: -webkit-flex; display: -moz-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -webkit-align-items: center; -moz-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: justify; -webkit-justify-content: space-between; -moz-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; /* 将子元素分别靠左和靠右 */ color: #888; margin-top: 37.5px; white-space: nowrap; /* 防止文本换行 */ } .info-content { display: -webkit-box; display: -webkit-flex; display: -moz-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -webkit-align-items: center; -moz-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-flex: 1; -webkit-flex: 1; -moz-box-flex: 1; -ms-flex: 1; flex: 1; } .additional-info { font-size: 45px; letter-spacing: 2px; /* 调整字间距*/ } .like_info { display: -webkit-box; display: -webkit-flex; display: -moz-box; display: -ms-flexbox; display: flex; margin-left: auto; } .like-icon { display: -webkit-box; display: -webkit-flex; display: -moz-box; display: -ms-flexbox; display: flex; margin-left: auto; } .like-count { display: -webkit-box; display: -webkit-flex; display: -moz-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -webkit-align-items: center; -moz-box-align: center; -ms-flex-align: center; align-items: center; font-size: 50px; /* 调整字体大小 */ margin-left: auto; } .video_info_container { display: -webkit-box; display: -webkit-flex; display: -moz-box; display: -ms-flexbox; display: flex; -webkit-box-pack: justify; -webkit-justify-content: space-between; -moz-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; -webkit-box-align: center; -webkit-align-items: center; -moz-box-align: center; -ms-flex-align: center; align-items: center; /* 垂直居中 */ max-width: 1200px; margin: 0 auto; padding: 20px; color: #3a3a3a; } .svg_container { margin-top: 10px; display: -webkit-box; display: -webkit-flex; display: -moz-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -webkit-flex-direction: column; -moz-box-orient: vertical; -moz-box-direction: normal; -ms-flex-direction: column; flex-direction: column; margin: 0 30px 0 -45px; } .svg_container img { width: 650px; height: auto; margin-bottom: 20px; } .top-info { /* margin-top: 50px; 添加顶部间距 */ -webkit-box-align: center; -webkit-align-items: center; -moz-box-align: center; -ms-flex-align: center; align-items: center; padding: 10px; letter-spacing: 6px; /* 调整字间距*/ font-size: 45px; white-space: normal; /* 允许自动换行 */ word-break: break-all; /* 如果单词过长,允许在任意位置换行 */ text-align: left; } .qrcode_box { display: -webkit-box; display: -webkit-flex; display: -moz-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -webkit-flex-direction: column; -moz-box-orient: vertical; -moz-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -webkit-box-align: center; -webkit-align-items: center; -moz-box-align: center; -ms-flex-align: center; align-items: center; margin-right: -40px; } .qrcode { margin-top: 80px; } .qrcode_text { font-size: 45px; margin-top: 20px; /* 调整垂直间距 */ } /* 深色模式样式 */ body.dark-mode { background-color: #121212; color: #fff; /* 其他深色模式下的样式 */ } /* 浅色模式样式 */ body.light-mode { background-color: #f4f4f4; color: #333; /* 其他浅色模式下的样式 */ } body.dark-mode .container { background-color: #121212; color: #fff; } /* 针对特定元素的样式 */ body.dark-mode .comment-text { color: #f4f4f4; } body.dark-mode .video_info_container { color: #c3c3c3; } body.dark-mode .comment-text img { display: inline-block; vertical-align: middle; -webkit-transform: translateY(-10%) scale(0.9); -moz-transform: translateY(-10%) scale(0.9); -ms-transform: translateY(-10%) scale(0.9); -o-transform: translateY(-10%) scale(0.9); transform: translateY(-10%) scale(0.9); } body.light-mode .comment-text { color: #333; } body.light-mode .comment-imgbox { display: -webkit-box; display: -webkit-flex; display: -moz-box; display: -ms-flexbox; display: flex; margin: 20px 0; overflow: hidden; -webkit-box-shadow: 0 20px 50px 0 rgba(0, 0, 0, 0.3); box-shadow: 0 20px 50px 0 rgba(0, 0, 0, 0.3); border-radius: 25px; width: 95%; -webkit-box-flex: 1; -webkit-flex: 1; -moz-box-flex: 1; -ms-flex: 1; flex: 1; } .user-avatar .comment-imgbox { display: -webkit-box; display: -webkit-flex; display: -moz-box; display: -ms-flexbox; display: flex; margin: 20px 0; overflow: hidden; -webkit-box-shadow: 0 20px 50px 0 rgba(0, 0, 0, 0.3); box-shadow: 0 20px 50px 0 rgba(0, 0, 0, 0.3); border-radius: 25px; width: 95%; -webkit-box-flex: 1; -webkit-flex: 1; -moz-box-flex: 1; -ms-flex: 1; flex: 1; } body.dark-mode .comment-imgbox { display: -webkit-box; display: -webkit-flex; display: -moz-box; display: -ms-flexbox; display: flex; margin: 20px 0; overflow: hidden; -webkit-box-shadow: 0px 10px 100px 0px #ffffff1f; box-shadow: 0px 10px 100px 0px #ffffff1f; border-radius: 25px; width: 95%; -webkit-box-flex: 1; -webkit-flex: 1; -moz-box-flex: 1; -ms-flex: 1; flex: 1; } body.dark-mode .user-avatar { margin-bottom: 50px; width: 187.5px; height: 187.5px; border-radius: 50%; margin-right: 33.75px; -o-object-fit: cover; object-fit: cover; -webkit-box-shadow: 0px 10px 20px 0px #ffffff1a; box-shadow: 0px 10px 20px 0px #ffffff1a; }