Skip to content

Commit 3420940

Browse files
committed
Fix & Update: 弹窗层级、头部和底部大小调整
1 parent 2412787 commit 3420940

File tree

7 files changed

+18
-7
lines changed

7 files changed

+18
-7
lines changed

package/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
const { target } = entry;
2525
const { clientWidth } = target as HTMLElement;
2626
if (clientWidth < 1280) {
27-
htmlEl.style.setProperty('font-size', '12px');
27+
htmlEl.style.setProperty('font-size', '13px');
2828
ctl.allowDrag = false;
2929
ctl.hideLeftSidebar = true;
3030
ctl.hideRightSidebar = true;

package/components/NanoHeaderTopNav/index.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
6060
const { theme } = useData();
6161
const route = useRoute();
62-
// console.log('nav --->', theme.value.nav);
6362
6463
const popups = ref<Array<any | null>>([]);
6564

package/components/NanoLogo/index.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@
88
:src="theme.logo"
99
alt="logo"
1010
/>
11-
<span style="font: var(--header-title-font)">{{ site.title }}</span>
11+
<span
12+
class="font-bold text-[calc(var(--header-size)*.4)]"
13+
style="font-family: var(--header-title-font-family), serif"
14+
>
15+
{{ site.title }}
16+
</span>
1217
</a>
1318
</template>
1419

package/components/NanoPopup/index.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<template>
22
<div
3-
class="[display:none] min-w-40 bg-white shadow-2xl"
3+
class="absolute [display:none] z-100 min-w-40 bg-white shadow-2xl"
44
:class="{ 'block!': visible }"
5-
un-absolute="~"
65
un-border="~ .25 solid rounded-2 [#B9BDC9]"
76
>
87
<slot/>

package/components/NanoWindowController/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
5454
function showTip() {
5555
ElMessage({
56-
message: '功能建设中...',
56+
message: '功能开发中...',
5757
type: 'error'
5858
});
5959
}

package/theme/light/variables/footer.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@
44
--footer-border-color: #EBECF0;
55
--footer-path-text-color: #888888;
66
--footer-path-text-hover-color: #333333;
7+
8+
@media screen and (max-width: 1280px) {
9+
--footer-size: 2.4rem;
10+
}
711
}

package/theme/light/variables/header.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,9 @@
44
--header-bg: linear-gradient(90deg, #F7F7F8 0%, #F5E0D5 5%, #F7F8FA 20%, #F7F8FA 100%);
55
--header-nav-color: #333;
66
--header-nav-popup-hover-bg: #D4E2FF;
7-
--header-title-font: bold 1rem 'JetBrains Mono Bold',sans-serif !important;
7+
--header-title-font-family: 'JetBrains Mono Bold' !important;
8+
9+
@media screen and (max-width: 1280px) {
10+
--header-size: 2.6rem;
11+
}
812
}

0 commit comments

Comments
 (0)