diff --git a/src/components/KUNGalgameAlert/Info.vue b/src/components/KUNGalgameAlert/Info.vue index e5a86063..6cb5f33a 100644 --- a/src/components/KUNGalgameAlert/Info.vue +++ b/src/components/KUNGalgameAlert/Info.vue @@ -57,6 +57,8 @@ const handleClose = () => { color: var(--kungalgame-font-color-3); background-color: var(--kungalgame-trans-white-5); backdrop-filter: blur(2px); + box-shadow: var(--shadow); + border-top: 1px solid var(--kungalgame-blue-1); position: fixed; bottom: 0; left: 0; diff --git a/src/components/KUNGalgameSearchBox.vue b/src/components/KUNGalgameSearchBox.vue index f2c21065..89672750 100644 --- a/src/components/KUNGalgameSearchBox.vue +++ b/src/components/KUNGalgameSearchBox.vue @@ -51,6 +51,7 @@ defineProps(['isMainPage']) /* 页面缩小不换行 */ white-space: nowrap; background-color: var(--kungalgame-trans-blue-2); + border: 1px solid var(--kungalgame-blue-4); flex-grow: 2; /* 相对于二级菜单定位 */ position: relative; @@ -91,7 +92,7 @@ defineProps(['isMainPage']) background-color: var(--kungalgame-trans-white-5); color: var(--kungalgame-font-color-3); &::placeholder { - color: var(--kungalgame-font-color-2); + color: var(--kungalgame-font-color-1); } } /* 搜索按钮 */ diff --git a/src/components/KUNGalgameTopBar.vue b/src/components/KUNGalgameTopBar.vue index aca5fa3d..0fe561b0 100644 --- a/src/components/KUNGalgameTopBar.vue +++ b/src/components/KUNGalgameTopBar.vue @@ -34,25 +34,14 @@ const topBarItem: topBar[] = [ { index: 5, name: 'return', router: '/kun' }, ] -// 初始进入页面 header 没有附加样式 -let topicStyle = {} - // 接受父组件的传值 -const props = defineProps(['isMainPage', 'isTopicPage', 'isAboutPage']) +const props = defineProps(['isMainPage']) const isMain = props.isMainPage -const isTopicPage = props.isTopicPage // 如果是主页的话删除 “返回主页” 项目 if (isMain) { topBarItem.pop() } -// 如果是帖子页的话定位为 sticky,距离底部 10px -if (isTopicPage) { - topicStyle = { - top: 0, - position: 'sticky', - } -} // 根据导航条的项目个数操作 css 中导航条的宽度 let navItemNum = topBarItem.length @@ -69,7 +58,7 @@ onBeforeMount(() => {