diff --git a/src/views/Home/KUNGalgameMainPage.vue b/src/views/Home/KUNGalgameMainPage.vue index f43f5560..d1635d45 100644 --- a/src/views/Home/KUNGalgameMainPage.vue +++ b/src/views/Home/KUNGalgameMainPage.vue @@ -18,7 +18,7 @@ import MainPageFooter from './footer/MainPageFooter.vue' height: 1500px; display: flex; flex-direction: column; - // background-image: url(../../assets/images/bg/bg1.png); + background-image: url(../../assets/images/bg/bg1.png); /* background-image: url(../../assets/images/bg/bg2.png); */ background-repeat: no-repeat; background-position: center; diff --git a/src/views/Home/content/MainPageContent.vue b/src/views/Home/content/MainPageContent.vue index 77934db0..7892331d 100644 --- a/src/views/Home/content/MainPageContent.vue +++ b/src/views/Home/content/MainPageContent.vue @@ -23,11 +23,6 @@ import MainPageArticle from './article/MainPageArticle.vue' width: 100%; height: 1px; flex-grow: 21; - /* 背景图片 */ - /* background-image: url(../img/bg.png); - background-repeat: no-repeat; - background-position: center; - background-size: cover; */ } .main-container { height: 100%; @@ -39,8 +34,6 @@ import MainPageArticle from './article/MainPageArticle.vue' width: 80%; /* 可视页面的最小宽度 */ min-width: 700px; - /* 盒子边线在内部,页面缩小到最小时右侧不留白 */ - box-sizing: border-box; height: 100%; margin: 0 auto; /* 可视内容区为弹性盒 */ @@ -53,6 +46,5 @@ import MainPageArticle from './article/MainPageArticle.vue' /* 设置背景边框和圆角 */ border-radius: 5px; padding: 5px; - overflow: hidden; } diff --git a/src/views/Home/content/aside/MainPageAside.vue b/src/views/Home/content/aside/MainPageAside.vue index 507de1c1..e21597a2 100644 --- a/src/views/Home/content/aside/MainPageAside.vue +++ b/src/views/Home/content/aside/MainPageAside.vue @@ -4,8 +4,7 @@ import { Icon } from '@iconify/vue' // 导入 Vue 函数 import { ref } from 'vue' import AsideActive from './components/AsideActive.vue' -// 导入 animate css -import 'animate.css' + import Aside from './components/Aside.vue' // 用户点击折叠左侧区域 @@ -36,26 +35,15 @@ const handleFold = () => { style="font-size: 17px" v-if="!isActive" /> - 折叠左侧区域 + 折叠左侧区域 + +
+ +
+ +
+
- -
- -
-
- -
-
-
@@ -79,9 +67,10 @@ const handleFold = () => { } /* 侧边栏交互 */ .nav-aside { - height: 38px; + height: 40px; /* 内容居中(折叠左侧区域) */ display: flex; + flex-shrink: 0; justify-content: center; align-items: center; text-align: center; @@ -90,9 +79,14 @@ const handleFold = () => { color: @kungalgame-font-color-3; cursor: pointer; } -.item { - height: 100%; +/* 激活后的左侧区域 */ +.item-active { display: flex; + flex-grow: 1; flex-direction: column; } +/* 未激活的左侧区域 */ +.item { + height: 96.6%; +} diff --git a/src/views/Home/content/aside/components/AsideActive.vue b/src/views/Home/content/aside/components/AsideActive.vue index 7a6321b4..bb0e9a53 100644 --- a/src/views/Home/content/aside/components/AsideActive.vue +++ b/src/views/Home/content/aside/components/AsideActive.vue @@ -1,5 +1,5 @@ @@ -8,7 +8,7 @@ import singleTopic from './topic'
-
今日热门话题
+
今日热门话题
@@ -28,7 +28,8 @@ import singleTopic from './topic' flex-direction: column; } /* “今日热门话题”六个字的样式 */ -.top-topic-title-name { +.title { + height: 100%; border: 3px dashed @kungalgame-trans-blue-1; border-bottom: none; /* 设置(今日热门话题)居中 */ diff --git a/src/views/Home/content/aside/topic/components/SingleTopic.vue b/src/views/Home/content/aside/topic/components/SingleTopic.vue index e3c9ec74..6469a92f 100644 --- a/src/views/Home/content/aside/topic/components/SingleTopic.vue +++ b/src/views/Home/content/aside/topic/components/SingleTopic.vue @@ -8,7 +8,9 @@ console.log(props)