From d5859575c5a6495764d450a20f866b91d3d81cd4 Mon Sep 17 00:00:00 2001 From: HCLonely Date: Fri, 21 Jan 2022 16:04:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B7=B2=E7=9F=A5BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/templates/bgm-template.ejs | 2 +- lib/templates/index.css | 2 +- lib/templates/pagination.js | 4 ++-- package.json | 4 ++-- src/lib/templates/index.css | 13 +++++++------ 5 files changed, 13 insertions(+), 12 deletions(-) diff --git a/lib/templates/bgm-template.ejs b/lib/templates/bgm-template.ejs index de9f567..223ae27 100644 --- a/lib/templates/bgm-template.ejs +++ b/lib/templates/bgm-template.ejs @@ -1,5 +1,5 @@
-
" <%- lazyload ? ` data-src="${item.cover}"` : '' %> referrerPolicy="no-referrer" width="110" style="width:110px;margin:20px auto;" /> +
" <%- lazyload ? ` data-src="https:${item.cover}"` : '' %> referrerPolicy="no-referrer" width="110" style="width:110px;margin:20px auto;" />
diff --git a/lib/templates/index.css b/lib/templates/index.css index 2b9d115..d30989d 100644 --- a/lib/templates/index.css +++ b/lib/templates/index.css @@ -1 +1 @@ -.bangumi-tabs{margin-bottom:15px;margin-top:15px}.bangumi-tab{padding:5px}a.bangumi-tab{text-decoration:none}.bangumi-active{background:#657b83;color:#fff}.bangumi-item{position:relative;clear:both;padding:10px 0;border-bottom:1px solid #ddd;min-height:180px}@media screen and (max-width:600px){.bangumi-item{width:100%}}.bangumi-picture{position:absolute;left:0;top:10px;width:110px}.bangumi-picture img{margin:10px 0}.bangumi-info{padding-left:120px;margin-top:10px}.bangumi-meta{font-size:12px;padding-right:10px;height:45px}.bangumi-comments{font-size:12px;margin-top:10px}.bangumi-comments>p{word-break:break-all;text-overflow:ellipsis;overflow:hidden;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.bangumi-pagination{margin-top:15px;text-align:center;margin-bottom:10px}.bangumi-button{padding:5px}.bangumi-button:hover{background:#657b83;color:#fff}.bangumi-hide{display:none}.bangumi-show{display:block}.bangumi-title{font-size:18px}.bangumi-title a{line-height:1;text-decoration:none}.bangumi-info-items{font-size:12px;color:#2fd8d8;padding-top:10px;line-height:1;float:left;width:100%}.bangumi-info-item{display:inline-block;width:13%;border-right:1px solid #2fd8d8;text-align:center;height:34px}.bangumi-info-label{display:block;line-height:12px}.bangumi-info-item em{display:block;padding-top:6px;line-height:17px;font-style:normal;font-weight:700}.bangumi-info-total{padding-top:11px;display:block;line-height:12px;font-weight:700}.bangumi-info-item-score{border-right:1px solid #0000;width:50px}.bangumi-info-label-em{color:transparent;opacity:0;visibility:hidden;line-height:6px!important;padding:0!important}@media (max-width:650px){.bangumi-coin{display:none}.bangumi-info-item{width:16%}}@media (max-width:590px){.bangumi-danmaku{display:none}.bangumi-info-item{width:19%}}@media (max-width:520px){.bangumi-play,.bangumi-type{display:none}.bangumi-info-item{width:24%}}@media (max-width:480px){.bangumi-follow,.bangumi-wish{display:none}.bangumi-info-item{width:30%}}@media (max-width:400px){.bangumi-area,.bangumi-doing{display:none}.bangumi-info-item{width:45%}} \ No newline at end of file +.bangumi-tabs{margin-bottom:15px;margin-top:15px}.bangumi-tab{padding:5px}a.bangumi-tab{text-decoration:none}.bangumi-active{background:#657b83;color:#fff}.bangumi-item{position:relative;clear:both;padding:10px 0;border-bottom:1px solid #ddd;min-height:180px}@media screen and (max-width:600px){.bangumi-item{width:100%}}.bangumi-picture{position:absolute;left:0;top:10px;width:110px}.bangumi-picture img{margin:10px 0}.bangumi-info{padding-left:120px;margin-top:10px}.bangumi-meta{font-size:12px;padding-right:10px;height:45px}.bangumi-comments{font-size:12px;margin-top:10px}.bangumi-comments>p{word-break:break-all;text-overflow:ellipsis;overflow:hidden;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.bangumi-pagination{margin-top:15px;text-align:center;margin-bottom:10px}.bangumi-button{padding:5px}.bangumi-button:hover{background:#657b83;color:#fff}.bangumi-hide{display:none}.bangumi-show{display:block}.bangumi-title{font-size:18px}.bangumi-title a{line-height:1;text-decoration:none}.bangumi-info-items{font-size:12px;color:#2fd8d8;padding-top:10px;line-height:1;float:left;width:100%}.bangumi-info-item{display:inline-block;width:13%;border-right:1px solid #2fd8d8;text-align:center;height:34px}.bangumi-info-label{display:block;line-height:12px}.bangumi-info-item em{display:block;padding-top:6px;line-height:17px;font-style:normal;font-weight:700}.bangumi-info-total{padding-top:11px;display:block;line-height:12px;font-weight:700}.bangumi-info-item-score{border-right:1px solid #0000;width:50px}.bangumi-info-label-em{color:transparent;opacity:0;visibility:hidden;line-height:6px!important;padding:0!important}@media (max-width:650px){.bangumi-coin,.bangumi-type{display:none}.bangumi-info-item{width:16%}}@media (max-width:590px){.bangumi-danmaku,.bangumi-wish{display:none}.bangumi-info-item{width:19%}}@media (max-width:520px){.bangumi-doing,.bangumi-play{display:none}.bangumi-info-item{width:24%}}@media (max-width:480px){.bangumi-collect,.bangumi-follow{display:none}.bangumi-info-item{width:30%}}@media (max-width:400px){.bangumi-area{display:none}.bangumi-info-item{width:45%}} \ No newline at end of file diff --git a/lib/templates/pagination.js b/lib/templates/pagination.js index 5d274c1..db8a3f4 100644 --- a/lib/templates/pagination.js +++ b/lib/templates/pagination.js @@ -1,2 +1,2 @@ -"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault"),_slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));/* eslint-disable no-plusplus, func-style */(function(){var a=Math.ceil;function b(b,c){return"".concat(b+1," / ").concat(a(0==c.length/10?1:a(c.length/10)))}function c(){var a=this.parentNode.siblings();g(a,0),this.parentNode.getElementsByClassName("bangumi-pagenum")[0].innerText=b(0,a)}function d(){var a=this.parentNode.siblings(),c=this.parentNode.getElementsByClassName("bangumi-pagenum")[0].innerText;c=c.substr(0,c.indexOf("/")-1),c=parseInt(c,10)-1,0", diff --git a/src/lib/templates/index.css b/src/lib/templates/index.css index 83f1427..5b793e2 100644 --- a/src/lib/templates/index.css +++ b/src/lib/templates/index.css @@ -152,7 +152,8 @@ a.bangumi-tab { } @media (max-width:650px) { - .bangumi-coin{ + .bangumi-coin, + .bangumi-type { display:none; } .bangumi-info-item{ @@ -160,7 +161,8 @@ a.bangumi-tab { } } @media (max-width:590px) { - .bangumi-danmaku { + .bangumi-danmaku, + .bangumi-wish { display: none; } .bangumi-info-item { @@ -170,7 +172,7 @@ a.bangumi-tab { @media (max-width:520px) { .bangumi-play, - .bangumi-type { + .bangumi-doing { display: none; } @@ -181,7 +183,7 @@ a.bangumi-tab { @media (max-width:480px) { .bangumi-follow, - .bangumi-wish { + .bangumi-collect { display: none; } @@ -190,8 +192,7 @@ a.bangumi-tab { } } @media (max-width:400px) { - .bangumi-area, - .bangumi-doing { + .bangumi-area { display: none; }