Skip to content

Commit ba57fbd

Browse files
committed
change navigation floating style
closes #10
1 parent 6229c85 commit ba57fbd

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.vitepress/theme/Layout.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import Info from './Info.vue'
1010

1111
<template>
1212
<div class="antialiased">
13-
<header class="h-auto layouts">
13+
<header class="header layouts">
1414
<Navigation />
1515
</header>
1616

@@ -95,12 +95,16 @@ import Info from './Info.vue'
9595
@apply px-6 sm:px-6 xl:px-6;
9696
}
9797
98+
.header {
99+
@apply fixed w-full h-auto bg-white;
100+
}
101+
98102
.contents {
99-
@apply h-auto;
103+
@apply relative h-auto;
100104
}
101105
102106
.hero {
103-
@apply pt-6;
107+
@apply pt-16;
104108
}
105109
106110
.about {

.vitepress/theme/Navigation.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
<style scoped>
3131
.navigation {
32-
@apply flex justify-between items-center py-6 font-bold;
32+
@apply flex justify-between items-center py-2 font-bold;
3333
}
3434
3535
.logo a {

0 commit comments

Comments
 (0)