Skip to content

Commit ada7683

Browse files
committed
fix(docs): Fixed the navbar.
1 parent ae5476f commit ada7683

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

docs/components/BonsoirHeader.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ const theme = useTheme()
4646
text-align: center;
4747
4848
.hand {
49-
@include wave-animation();
49+
@include wave-animation;
5050
}
5151
52-
&:before {
52+
&::before {
5353
animation: fade-in-animation;
5454
animation-delay: 1s;
5555
animation-duration: 1s;
@@ -64,7 +64,7 @@ const theme = useTheme()
6464
background-repeat: no-repeat;
6565
}
6666
67-
&.theme-dark:before {
67+
&.theme-dark::before {
6868
filter: hue-rotate(225deg);
6969
}
7070
}
@@ -75,6 +75,7 @@ const theme = useTheme()
7575
0% {
7676
opacity: 0;
7777
}
78+
7879
100% {
7980
opacity: 1;
8081
}

docs/components/Page/PageNavbar.vue

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const theme = useTheme()
99
v-b-color-mode="theme"
1010
class="navbar"
1111
:data-bs-theme="theme"
12+
toggleable="lg"
1213
>
1314
<b-navbar-brand
1415
class="brand"
@@ -58,14 +59,15 @@ const theme = useTheme()
5859
</template>
5960

6061
<style lang="scss" scoped>
62+
@import 'assets/bootstrap-mixins';
6163
@import 'assets/colors';
6264
@import 'assets/wave';
6365
6466
.navbar {
6567
&.navbar-dark {
6668
background-color: $body-dark !important;
6769
68-
.brand:before {
70+
.brand::before {
6971
filter: hue-rotate(225deg);
7072
}
7173
}
@@ -81,7 +83,7 @@ const theme = useTheme()
8183
vertical-align: sub;
8284
}
8385
84-
&:before {
86+
&::before {
8587
position: absolute;
8688
top: 0.62em;
8789
left: 0;
@@ -93,7 +95,11 @@ const theme = useTheme()
9395
}
9496
9597
&:hover .logo {
96-
@include wave-animation();
98+
@include wave-animation;
99+
}
100+
101+
@include media-breakpoint-down(lg) {
102+
margin-right: 0;
97103
}
98104
}
99105
}

0 commit comments

Comments
 (0)