解决首页在 IOS 移动端下 FAQ 重叠的问题
This commit is contained in:
parent
4edb6f7e3b
commit
d35012c600
@ -101,8 +101,15 @@ const handleRouteChangeComplete = async (to: string) => {
|
|||||||
router.onBeforeRouteChange = handleRouteChangeStart;
|
router.onBeforeRouteChange = handleRouteChangeStart;
|
||||||
router.onAfterRouteChange = handleRouteChangeComplete;
|
router.onAfterRouteChange = handleRouteChangeComplete;
|
||||||
|
|
||||||
|
const allowHomeAnimationRoutes = [
|
||||||
|
'/openmcp/',
|
||||||
|
'/openmcp/zh/',
|
||||||
|
'/openmcp/en/',
|
||||||
|
'/openmcp/ja/',
|
||||||
|
];
|
||||||
|
|
||||||
function makeHomeAnimation() {
|
function makeHomeAnimation() {
|
||||||
if (router.route.path !== '/openmcp/') {
|
if (!allowHomeAnimationRoutes.includes(router.route.path)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -135,6 +135,12 @@ onMounted(() => {
|
|||||||
gap: 8px;
|
gap: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 741px) {
|
||||||
|
.k-tabs-tags {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.k-tabs-tag-item {
|
.k-tabs-tag-item {
|
||||||
background-color: var(--vp-button-alt-bg);
|
background-color: var(--vp-button-alt-bg);
|
||||||
border-radius: .5em;
|
border-radius: .5em;
|
||||||
@ -165,6 +171,25 @@ html[lang="ja"] .k-tabs-content {
|
|||||||
min-height: 600px;
|
min-height: 600px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@media screen and (max-width: 741px) {
|
||||||
|
html[lang="zh"] .k-tabs-content {
|
||||||
|
position: relative;
|
||||||
|
min-height: 600px;
|
||||||
|
}
|
||||||
|
|
||||||
|
html[lang="en"] .k-tabs-content {
|
||||||
|
position: relative;
|
||||||
|
min-height: 900px;
|
||||||
|
}
|
||||||
|
|
||||||
|
html[lang="ja"] .k-tabs-content {
|
||||||
|
position: relative;
|
||||||
|
min-height: 760px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.k-tabs-content>* {
|
.k-tabs-content>* {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
@ -123,6 +123,13 @@ onMounted(() => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 741px) {
|
||||||
|
.bilibili-player-container iframe {
|
||||||
|
width: 95%;
|
||||||
|
height: 230px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.bilibili-player-container:hover {
|
.bilibili-player-container:hover {
|
||||||
border-color: var(--vp-c-brand-1);
|
border-color: var(--vp-c-brand-1);
|
||||||
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
|
||||||
|
@ -217,6 +217,12 @@ iframe {
|
|||||||
transition: border-color 0.3s ease;
|
transition: border-color 0.3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 741px) {
|
||||||
|
iframe {
|
||||||
|
height: 210px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.VPMenu {
|
.VPMenu {
|
||||||
background-color: rgba(255, 255, 255, 0.55) !important;
|
background-color: rgba(255, 255, 255, 0.55) !important;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user