File tree Expand file tree Collapse file tree 5 files changed +434
-427
lines changed Expand file tree Collapse file tree 5 files changed +434
-427
lines changed Original file line number Diff line number Diff line change 18
18
font-variation-settings : ' wght' 480 ;
19
19
letter-spacing : 0.015rem ;
20
20
word-spacing : 0.1rem ;
21
+
22
+ --mdui-breakpoint-md : 767px ;
23
+ --mdui-breakpoint-sm : 424px ;
21
24
}
22
25
23
26
body {
65
68
}
66
69
67
70
mdui- top- app- bar,
68
- .footer {
69
- color : var (--bar-text-color );
71
+ footer {
72
+ color : rgb (var (--mdui-color-on-surface-variant ));
73
+ background-color : rgb (var (--mdui-color-surface-variant ));
70
74
}
71
75
72
76
.body {
Original file line number Diff line number Diff line change 1
1
<template >
2
- <ClientOnly >
3
- <mdui-top-app-bar style = " position : fixed " >
2
+ <header class = " header " style = " position : fixed ; top : 0 ; left : 0 ; right : 0 " >
3
+ <mdui-top-app-bar >
4
4
<mdui-button-icon @click =" $emit('open-drawer')" >
5
5
<mdui-icon-menu ></mdui-icon-menu >
6
6
</mdui-button-icon >
14
14
<NavDarkChangeButton />
15
15
<NavChangeWebColor />
16
16
<NavShareButton />
17
- <!-- < NavMoreButton /> -- >
17
+ <NavMoreButton />
18
18
</div >
19
19
</mdui-top-app-bar >
20
- </ClientOnly >
20
+ </header >
21
21
</template >
22
22
23
23
<script lang="ts" setup>
@@ -32,11 +32,12 @@ import '@mdui/icons/share.js'
32
32
</script >
33
33
34
34
<style scoped>
35
- mdui-top-app-bar {
35
+ .header {
36
36
top : 0 ;
37
37
left : 0 ;
38
38
right : 0 ;
39
39
z-index : 100 ;
40
- background-color : rgb (var (--mdui-color-surface-variant ));
40
+ position : fixed ;
41
+ height : 64px ;
41
42
}
42
43
</style >
Original file line number Diff line number Diff line change @@ -20,6 +20,10 @@ const list = data.value[0].meta.body
20
20
</script >
21
21
22
22
<style scoped>
23
+ mdui-list {
24
+ padding-top : 64px ;
25
+ }
26
+
23
27
mdui-list-item {
24
28
padding-left : 4px ;
25
29
}
Original file line number Diff line number Diff line change 3
3
<DefaultNav @open-drawer =" toggleDrawer" >
4
4
<template #topic-text ><slot name =" topic-text" /></template >
5
5
</DefaultNav >
6
- <mdui-navigation-drawer
7
- modal
8
- close-on-overlay-click
9
- close-on-esc
10
- :open =" drawerStatus"
11
- @close =" drawerStatus = false"
12
- >
13
- <NavigationDrawerList />
14
- </mdui-navigation-drawer >
6
+ <aside >
7
+ <mdui-navigation-drawer
8
+ modal
9
+ close-on-overlay-click
10
+ close-on-esc
11
+ :open =" drawerStatus"
12
+ @close =" drawerStatus = false"
13
+ >
14
+ <NavigationDrawerList />
15
+ </mdui-navigation-drawer >
16
+ </aside >
15
17
<mdui-layout-main >
16
18
<slot name =" full-width" ></slot >
17
19
<AppContainer >
@@ -37,26 +39,21 @@ useHead({
37
39
},
38
40
],
39
41
})
40
-
41
- useSeoMeta ({
42
- ogImage: ' /__og-image__/static/og.png' ,
43
- })
44
42
</script >
45
43
46
44
<style lang="less" scoped>
47
45
mdui- layout {
48
46
scroll-behavior : smooth ;
49
47
min-width : 320px ;
50
- overflow : hidden ;
51
- position : relative ;
52
48
}
53
49
// top-app-bar 的 z-index 值为100
54
50
// navigation-drawer 的 z-index 值为99
51
+
52
+ aside {
53
+ z-index : 99 ;
54
+ }
55
+
55
56
mdui- navigation- drawer {
56
57
--shape-corner : 0px ;
57
- --z-index : 99 ;
58
- mdui- list {
59
- padding-top : 64px ;
60
- }
61
58
}
62
59
</style >
You can’t perform that action at this time.
0 commit comments