修改首页 样式

This commit is contained in:
lVAL 2021-01-25 10:45:20 +08:00
parent a97013ea95
commit a7ed5bdd57
5 changed files with 26 additions and 4 deletions

View File

@ -16,5 +16,6 @@ body {
text-align: center; text-align: center;
color: #2c3e50; color: #2c3e50;
font-size: 62.5%; font-size: 62.5%;
overflow: hidden;
} }
</style> </style>

View File

@ -13,7 +13,7 @@
<ul class="col-md" v-for="(el, j) in it.children" :key="j"> <ul class="col-md" v-for="(el, j) in it.children" :key="j">
<li> <li>
<b-link v-if="el.href" :href="el.href"> <b-link v-if="el.href" :href="el.href">
<h6 style="color:#666;">{{ el.name }}</h6> <h6 class="text-label">{{ el.name }}</h6>
</b-link> </b-link>
<b-img <b-img
v-else-if="el.src" v-else-if="el.src"
@ -147,8 +147,18 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
a { a {
text-decoration: none; text-decoration: none !important;
}
.text-label {
color: #595757; color: #595757;
font-size: 1.5em;
&:hover {
color: #2b2b2b !important;
}
&:active {
color: #2b2b2b !important;
}
} }
ul, ul,

View File

@ -9,7 +9,7 @@
<b-nav-item-dropdown <b-nav-item-dropdown
:text="node.meta.name" :text="node.meta.name"
right right
style="font-size:16px;" style="font-size:16px;padding:0 1.2em"
@toggle="onMouseDown" @toggle="onMouseDown"
> >
<template v-for="(el, j) in node.children"> <template v-for="(el, j) in node.children">
@ -19,7 +19,10 @@
</b-navbar-nav> </b-navbar-nav>
</template> </template>
<template v-else> <template v-else>
<b-nav-item :href="node.redirect || node.path" style="font-size:16px;"> <b-nav-item
:href="node.redirect || node.path"
style="font-size:16px;padding:0 1.2em"
>
{{ node.meta.name }} {{ node.meta.name }}
</b-nav-item> </b-nav-item>
</template> </template>

View File

@ -27,6 +27,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.flex { .flex {
width: 100%;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;

View File

@ -86,4 +86,11 @@ export default {
width: 100%; width: 100%;
overflow: hidden; overflow: hidden;
} }
@media (min-width: 1200px) {
#nav-collapse {
position: fixed;
width: 100%;
}
}
</style> </style>