mirror of
https://github.com/fireinrain/JHS-enhance.git
synced 2026-11-17 01:54:23 +08:00
修复高亮演员
This commit is contained in:
@@ -7,7 +7,10 @@ class FoldCategoryPlugin extends BasePlugin {
|
||||
}
|
||||
async initCss() {
|
||||
const settingObj = await storageManager.getSetting();
|
||||
return `\n <style>\n #tags a.tag, .tags a.tag {\n position:relative;\n }\n .highlight-btn {\n position: absolute;\n top: -10px;\n right: -10px;\n background-color: #4CAF50;\n color: white;\n border: none;\n border-radius: 50%;\n width: 24px;\n height: 24px;\n font-size: 14px;\n line-height: 24px;\n text-align: center;\n cursor: pointer;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n display: none;\n z-index: 999;\n }\n /* 当父元素被高亮时,按钮变为其他颜色 */\n .highlighted .highlight-btn {\n background-color: #FF5722;\n }\n /* 高亮状态下的标签样式 */\n .highlighted {\n /* 浅黄色 */\n border: ${settingObj.highlightedTagNumber || 1}px solid ${settingObj.highlightedTagColor || "#ce2222"};\n }\n </style>\n `;
|
||||
return `\n <style>\n #tags a.tag, .tags a.tag {\n position:relative;\n }\n .highlight-btn {\n position: absolute;\n top: -10px;\n right: -10px;\n background-color: #4CAF50;\n color: white;\n border: none;\n border-radius: 50%;\n width: 24px;\n height: 24px;\n font-size: 14px;\n line-height: 24px;\n text-align: center;\n cursor: pointer;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n display: none;\n z-index: 999;\n }\n /* 当父元素被高亮时,按钮变为其他颜色 */\n .highlighted .highlight-btn {\n background-color: #FF5722;\n }\n /* 高亮状态下的标签样式 */\n .highlighted {
|
||||
/* 浅黄色 */
|
||||
border: ${settingObj.highlightedTagNumber || 1}px solid ${settingObj.highlightedTagColor || "#ce2222"} !important;
|
||||
}\n </style>\n `;
|
||||
}
|
||||
async handle() {
|
||||
if (window.isListPage && !currentHref.includes("advanced_search")) {
|
||||
@@ -82,4 +85,4 @@ class FoldCategoryPlugin extends BasePlugin {
|
||||
}
|
||||
|
||||
|
||||
export { FoldCategoryPlugin };
|
||||
export { FoldCategoryPlugin };
|
||||
Reference in New Issue
Block a user