From f3a256e4297e3bb8859045bd4e23252c22ac82f5 Mon Sep 17 00:00:00 2001 From: Lex Lim Date: Fri, 3 Jan 2025 12:56:10 +0000 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8DCitizen=E8=89=B2=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/ext.isekai.collapse.less | 17 +++++++++++ modules/ext.isekai.widgets.global.less | 30 +++++++++++++------ modules/feedList/ext.isekai.feedList.less | 4 --- .../offcanvasTOC/ext.isekai.offcanvasTOC.js | 1 + .../ext.isekai.previewPageList.less | 1 + 5 files changed, 40 insertions(+), 13 deletions(-) diff --git a/modules/ext.isekai.collapse.less b/modules/ext.isekai.collapse.less index e12dcc5..c0f4aa5 100644 --- a/modules/ext.isekai.collapse.less +++ b/modules/ext.isekai.collapse.less @@ -65,4 +65,21 @@ .isekai-indent > .isekai-collapse { padding-left: 0; margin-left: 8px; +} + +// 使用Citizen色板 +.skin-citizen { + .isekai-collapse { + background: var(--color-surface-1); + + .isekai-collapse-title { + background-color: var(--color-surface-2); + color: var(--color-base); + + &::before { + top: 1.5rem; + border-color: transparent transparent transparent var(--color-base); + } + } + } } \ No newline at end of file diff --git a/modules/ext.isekai.widgets.global.less b/modules/ext.isekai.widgets.global.less index 98b68f8..45919d4 100644 --- a/modules/ext.isekai.widgets.global.less +++ b/modules/ext.isekai.widgets.global.less @@ -217,39 +217,51 @@ padding: 0.5em 1em; } -.skin-citizen-dark, .skin-timeless-dark { +.skin-citizen { .isekai-list { a { - color: white; + color: var(--color-base); text-decoration: none; &:hover { - color: white; + color: var(--color-base); text-decoration: none; } &:visited { - color: white; + color: var(--color-base); text-decoration: none; &:hover { - color: white; + color: var(--color-base); text-decoration: none; } } } + + .isekai-list-item { + border-bottom: 1px solid var(--border-color-base); + + &.active { + box-shadow: inset 4px 0 0 0 var(--color-progressive); + } + } } .isekai-well { - background-color: #090909; + background-color: var(--color-surface-1); } .isekai-card { - background-color: #000; + background-color: var(--color-surface-1); .card-header { - background-color: #090909; - color: white; + background-color: var(--color-surface-2); + color: var(--color-base); } + + .card-title { + border-bottom: 1px solid var(--border-color-base); + } } } \ No newline at end of file diff --git a/modules/feedList/ext.isekai.feedList.less b/modules/feedList/ext.isekai.feedList.less index 2b3e37c..7851ae2 100644 --- a/modules/feedList/ext.isekai.feedList.less +++ b/modules/feedList/ext.isekai.feedList.less @@ -1,10 +1,6 @@ @feed-list-height: 23.3rem; @feed-list-height-mobile: 70vh; -.isekai-feed-list-card > .card-header { - height: 2.2rem; -} - .isekai-feed-list { margin: 0; height: @feed-list-height; diff --git a/modules/offcanvasTOC/ext.isekai.offcanvasTOC.js b/modules/offcanvasTOC/ext.isekai.offcanvasTOC.js index d9fc7e5..57e7d9a 100644 --- a/modules/offcanvasTOC/ext.isekai.offcanvasTOC.js +++ b/modules/offcanvasTOC/ext.isekai.offcanvasTOC.js @@ -257,6 +257,7 @@ $(function() { var menuNumStringBuilder = []; headNum[indentNum - 1] ++; for (var i = 0; i < indentNum; i ++) { + if (headNum[i] == 0) continue; menuNumStringBuilder.push(headNum[i]); } for (var i = indentNum; i < headNum.length; i ++) { diff --git a/modules/previewPageList/ext.isekai.previewPageList.less b/modules/previewPageList/ext.isekai.previewPageList.less index f455cdb..2d2b323 100644 --- a/modules/previewPageList/ext.isekai.previewPageList.less +++ b/modules/previewPageList/ext.isekai.previewPageList.less @@ -76,6 +76,7 @@ .card-header { flex: 0 0; + border-top-left-radius: 0; } .back-button-container {