Skip to content

Commit b5ebcfc

Browse files
committed
ADD: Bootstrap import
1 parent b88e171 commit b5ebcfc

File tree

3 files changed

+45
-34
lines changed

3 files changed

+45
-34
lines changed

package-lock.json

Lines changed: 39 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"vue-router": "^4.1.6"
1818
},
1919
"devDependencies": {
20+
"@types/bootstrap": "^5.2.6",
2021
"@types/node": "^18.14.0",
2122
"@vitejs/plugin-vue": "^4.0.0",
2223
"@vue/tsconfig": "^0.1.3",

src/components/Nav.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
</template>
6161

6262
<script lang="ts" setup>
63+
import { Collapse } from "bootstrap";
6364
import { computed } from "vue";
6465
import { useRouter } from "vue-router";
6566
import { routes } from "@/router";
@@ -71,19 +72,18 @@ const isActive = (path: string) => path === activeRoute.value;
7172

7273
<style lang="scss" scoped>
7374
$blc: #000;
74-
$lblc: rgba($blc, 0.65);
75+
$lblc: rgba($blc, 0.5);
7576
7677
a {
7778
text-decoration: none;
7879
color: $lblc;
7980
transition: all 0.25s;
81+
82+
&.nav-link.router-link-active.router-link-exact-active,
83+
&:hover { color: $blc; }
8084
}
8185
8286
ul {
8387
list-style: none;
8488
}
85-
86-
.nav-link { border-top: 1px solid rgba($lblc, 0.01); }
87-
88-
.nav-link.router-link-active.router-link-exact-active { border-top: 1px solid rgba($lblc, 0.2); }
8989
</style>

0 commit comments

Comments
 (0)