diff --git a/src/views/Home/content/article/header/ArticleHeader.vue b/src/views/Home/content/article/header/ArticleHeader.vue index 9966e1bb..0d820f1e 100644 --- a/src/views/Home/content/article/header/ArticleHeader.vue +++ b/src/views/Home/content/article/header/ArticleHeader.vue @@ -1,50 +1,23 @@ @@ -59,71 +32,9 @@ import KUNGalgameSearchBox from '@/components/KUNGalgameSearchBox.vue' border-bottom: 1px solid var(--kungalgame-trans-blue-4); color: var(--kungalgame-font-color-3); } -/* 筛选、搜索帖子、更多 */ -.nav-article-sort-container { - height: 100%; - width: 1px; - /* 居中弹性盒 */ - display: flex; - justify-content: center; - align-items: center; - /* 页面缩小不换行 */ - white-space: nowrap; -} -/* 筛选 */ -.nav-article-sort-container { - background-color: var(--kungalgame-trans-red-3); - flex-grow: 1; - border-radius: 5px 0 0 0; - position: relative; - border-right: 1px solid var(--kungalgame-trans-blue-4); - box-sizing: border-box; - cursor: pointer; -} -.nav-article-sort-container:hover { - background-color: var(--kungalgame-trans-white-5); -} -.sort-container { - width: 100%; - top: 100%; - position: absolute; -} -.filter { - font-size: 18px; - margin-left: 5px; -} -.sort-submenu { - display: none; - flex-direction: column; - box-shadow: 1px 2px 1px 1px var(--kungalgame-trans-blue-4); -} -.nav-article-sort-container:hover .sort-submenu { - display: flex; -} -.sort-submenu > div { - padding: 10px 0; - background-color: var(--kungalgame-trans-white-2); - font-size: 14px; - color: var(--kungalgame-font-color-3); - text-decoration: none; - display: flex; - align-items: center; - justify-content: center; -} -/* 单个二级菜单 hover */ -.sort-submenu > div:hover { - background-color: var(--kungalgame-trans-blue-1); - backdrop-filter: blur(5px); -} -.sort-submenu > div:active { - background-color: var(--kungalgame-trans-blue-2); -} -.icon-item { - color: var(--kungalgame-font-color-2); - padding-right: 3px; -} + /* 更多 */ -.nav-article-more-topic { +.more { height: 100%; width: 1px; /* 居中弹性盒 */ @@ -132,19 +43,20 @@ import KUNGalgameSearchBox from '@/components/KUNGalgameSearchBox.vue' align-items: center; /* 页面缩小不换行 */ white-space: nowrap; - background-color: var(--kungalgame-trans-purple-3); + background-color: var(--kungalgame-trans-blue-3); flex-grow: 1; border-radius: 0 5px 0 0; cursor: pointer; border-left: 1px solid var(--kungalgame-trans-blue-4); box-sizing: border-box; + color: var(--kungalgame-font-color-3); } -.nav-article-more-topic:hover { - background-color: var(--kungalgame-trans-white-5); -} -.nav-article-more-topic:active { +.more:hover { background-color: var(--kungalgame-trans-blue-2); } +.more:active { + background-color: var(--kungalgame-trans-blue-4); +} .all-topic { font-size: 18px; } diff --git a/src/views/Home/content/article/header/SortTopic.vue b/src/views/Home/content/article/header/SortTopic.vue new file mode 100644 index 00000000..269e4872 --- /dev/null +++ b/src/views/Home/content/article/header/SortTopic.vue @@ -0,0 +1,126 @@ + + + + + diff --git a/src/views/edit/components/Tags.vue b/src/views/edit/components/Tags.vue index 275c25b0..f8931d1f 100644 --- a/src/views/edit/components/Tags.vue +++ b/src/views/edit/components/Tags.vue @@ -152,7 +152,9 @@ const validateTagName = (tagName: string) => { .selected-tag { border: 1px solid var(--kungalgame-blue-1); margin: 5px; - display: block; + display: flex; + justify-content: center; + align-items: center; white-space: nowrap; font-size: 14px; padding: 3px; @@ -162,6 +164,10 @@ const validateTagName = (tagName: string) => { } } +.close-btn { + margin: 0 5px; +} + /* 标签输入框 */ .input { background-color: var(--kungalgame-trans-white-9);