pref: adjust non moe page mobile

This commit is contained in:
KUN1007 2023-10-18 19:55:28 +08:00
parent a53ae7bf80
commit a141c67d8b
2 changed files with 47 additions and 5 deletions

View file

@ -63,12 +63,14 @@ onMounted(async () => {
/* 根容器 */ /* 根容器 */
.container { .container {
/* 固定宽高 */ /* 固定宽高 */
height: 600px; height: 70vh;
max-width: 800px; width: 80vw;
min-height: 600px;
max-width: 1000px;
/* 居中 */ /* 居中 */
margin: auto; margin: auto;
background-color: var(--kungalgame-trans-white-5); background-color: var(--kungalgame-trans-white-5);
border: 1px solid var(--kungalgame-red-4); border: 1px solid var(--kungalgame-blue-1);
overflow: hidden; overflow: hidden;
border-radius: 7px; border-radius: 7px;
/* 模糊背景 */ /* 模糊背景 */
@ -107,7 +109,7 @@ onMounted(async () => {
/* 文章部分 */ /* 文章部分 */
.article { .article {
background-color: var(--kungalgame-trans-white-5); 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; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
@ -124,7 +126,6 @@ onMounted(async () => {
.content { .content {
width: 100%; width: 100%;
height: 100%; height: 100%;
height: 500px;
/* y 轴溢出滚动 */ /* y 轴溢出滚动 */
overflow-y: scroll; overflow-y: scroll;
padding: 0 10px; padding: 0 10px;
@ -141,4 +142,35 @@ onMounted(async () => {
scrollbar-width: thin; scrollbar-width: thin;
scrollbar-color: var(--kungalgame-blue-4) var(--kungalgame-blue-1); /* Firefox 64+ */ 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);
}
}
</style> </style>

View file

@ -92,4 +92,14 @@ const logs = computed(() => props.logs)
color: var(--kungalgame-red-3); color: var(--kungalgame-red-3);
} }
} }
@media (max-width: 700px) {
.log {
margin: 20px 10px;
&:nth-child(1) {
margin-top: 0;
}
}
}
</style> </style>