From a141c67d8b22d7ab3b809d151b07533d45b1ac22 Mon Sep 17 00:00:00 2001 From: KUN1007 Date: Wed, 18 Oct 2023 19:55:28 +0800 Subject: [PATCH] pref: adjust non moe page mobile --- src/views/non-moe/NonMoe.vue | 42 ++++++++++++++++++++++++---- src/views/non-moe/components/Log.vue | 10 +++++++ 2 files changed, 47 insertions(+), 5 deletions(-) diff --git a/src/views/non-moe/NonMoe.vue b/src/views/non-moe/NonMoe.vue index c49fac54..a4173d3a 100644 --- a/src/views/non-moe/NonMoe.vue +++ b/src/views/non-moe/NonMoe.vue @@ -63,12 +63,14 @@ onMounted(async () => { /* 根容器 */ .container { /* 固定宽高 */ - height: 600px; - max-width: 800px; + height: 70vh; + width: 80vw; + min-height: 600px; + max-width: 1000px; /* 居中 */ margin: auto; background-color: var(--kungalgame-trans-white-5); - border: 1px solid var(--kungalgame-red-4); + border: 1px solid var(--kungalgame-blue-1); overflow: hidden; border-radius: 7px; /* 模糊背景 */ @@ -107,7 +109,7 @@ onMounted(async () => { /* 文章部分 */ .article { background-color: var(--kungalgame-trans-white-5); - border-left: 1px solid var(--kungalgame-red-4); + border-left: 1px solid var(--kungalgame-blue-1); display: flex; flex-direction: column; align-items: center; @@ -124,7 +126,6 @@ onMounted(async () => { .content { width: 100%; height: 100%; - height: 500px; /* y 轴溢出滚动 */ overflow-y: scroll; padding: 0 10px; @@ -141,4 +142,35 @@ onMounted(async () => { scrollbar-width: thin; scrollbar-color: var(--kungalgame-blue-4) var(--kungalgame-blue-1); /* Firefox 64+ */ } + +@media (max-width: 700px) { + .root { + width: 95%; + margin: 0 auto; + } + .container { + flex-direction: column; + height: 100%; + width: 95%; + } + .title { + width: 100%; + } + .title-cn { + writing-mode: unset; + } + .title-en { + writing-mode: unset; + transform: rotate(0); + } + + .article { + border-left: none; + border-top: 1px solid var(--kungalgame-blue-1); + } + + .content { + height: calc(100% - 150px); + } +} diff --git a/src/views/non-moe/components/Log.vue b/src/views/non-moe/components/Log.vue index bcd6ce49..5039e1db 100644 --- a/src/views/non-moe/components/Log.vue +++ b/src/views/non-moe/components/Log.vue @@ -92,4 +92,14 @@ const logs = computed(() => props.logs) color: var(--kungalgame-red-3); } } + +@media (max-width: 700px) { + .log { + margin: 20px 10px; + + &:nth-child(1) { + margin-top: 0; + } + } +}