Commit c849cf12 by Tang

feat: nav部分样式修改

parent be679517
...@@ -85,7 +85,7 @@ export default { ...@@ -85,7 +85,7 @@ export default {
<span vOn:click={() => { <span vOn:click={() => {
this.$emit('itemClick', {...item, root: {...this.nav}}) this.$emit('itemClick', {...item, root: {...this.nav}})
}} }}
class="pointer gs-hover" class="pointer link-item gs-hover"
>{item.name} >{item.name}
</span> </span>
</div>) </div>)
...@@ -114,7 +114,7 @@ export default { ...@@ -114,7 +114,7 @@ export default {
// 导航item下拉 // 导航item下拉
.dropdown-menu.gs-nav-dropdown { .dropdown-menu.gs-nav-dropdown {
border: none; border: none;
background: #FFFFFF; background: #ffffff;
box-shadow: 0px 4px 15px 2px rgba(4, 64, 141, 0.08); box-shadow: 0px 4px 15px 2px rgba(4, 64, 141, 0.08);
border-radius: 0px 0px 6px 6px; border-radius: 0px 0px 6px 6px;
padding: 20px 40px; padding: 20px 40px;
...@@ -122,7 +122,7 @@ export default { ...@@ -122,7 +122,7 @@ export default {
.title { .title {
font-size: 18px; font-size: 18px;
font-weight: bold; font-weight: bold;
color: #04408D; color: #04408d;
line-height: 25px; line-height: 25px;
padding-bottom: 10px; padding-bottom: 10px;
margin-bottom: 29px; margin-bottom: 29px;
...@@ -143,7 +143,7 @@ export default { ...@@ -143,7 +143,7 @@ export default {
.rect-title { .rect-title {
font-weight: 500; font-weight: 500;
color: #04408D; color: #04408d;
line-height: 22px; line-height: 22px;
font-size: 16px; font-size: 16px;
padding-bottom: 13px; padding-bottom: 13px;
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
> >
<!-- Dropdown Menu --> <!-- Dropdown Menu -->
<HeaderDropdown :nav="nav" @itemClick="handleItemClick"/> <HeaderDropdown :nav="nav" @itemClick="handleItemClick" />
<!-- End Dropdown Menu --> <!-- End Dropdown Menu -->
</li> </li>
<li <li
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
<!-- End Collapse --> <!-- End Collapse -->
<!-- Button --> <!-- Button -->
<HeaderBtn/> <HeaderBtn />
<!-- End Button --> <!-- End Button -->
</nav> </nav>
</div> </div>
...@@ -205,6 +205,7 @@ export default { ...@@ -205,6 +205,7 @@ export default {
.header-btn { .header-btn {
display: flex; display: flex;
align-items: center; align-items: center;
margin-left: 15px;
} }
// 导航item样式 // 导航item样式
...@@ -230,8 +231,13 @@ export default { ...@@ -230,8 +231,13 @@ export default {
font-size: 14px; font-size: 14px;
font-weight: bold; font-weight: bold;
color: #002c6c; color: #002c6c;
padding: 10px 8px; padding: 10px 15px;
margin: 0 16px; // margin: 0 16px;
border-radius: 4px;
&:hover {
background-color: #e5f0fc;
}
} }
} }
...@@ -267,22 +273,26 @@ export default { ...@@ -267,22 +273,26 @@ export default {
margin-left: 0; margin-left: 0;
font-size: 0.875rem; font-size: 0.875rem;
} }
.link-item {
color: #00799e;
}
} }
@media (max-width: 1400px) { @media (max-width: 1400px) {
//导航item边距 //导航item边距
.gs-header-nav .gs-nav-item.nav-item { // .gs-header-nav .gs-nav-item.nav-item {
> a { // > a {
margin: 0 8px; // margin: 0 8px;
} // }
} // }
} }
@media (max-width: 1200px) { @media (max-width: 1200px) {
//导航item边距 //导航item边距
.gs-header-nav .gs-nav-item.nav-item { .gs-header-nav .gs-nav-item.nav-item {
> a { > a {
margin: 0 2px; padding: 10px 10px;
} }
} }
} }
...@@ -300,5 +310,10 @@ export default { ...@@ -300,5 +310,10 @@ export default {
.navbar-expand-lg.navbar-end .navbar-sticky-top-scroller { .navbar-expand-lg.navbar-end .navbar-sticky-top-scroller {
margin-left: auto; margin-left: auto;
} }
// .gs-header-nav .gs-nav-item.nav-item {
// > a {
// }
// }
} }
</style> </style>
...@@ -544,7 +544,7 @@ export const nav = [ ...@@ -544,7 +544,7 @@ export const nav = [
id: "5", id: "5",
name: "资讯中心", name: "资讯中心",
index: 5, index: 5,
link: "", link: "/News/index",
children: [ children: [
{ {
id: uuid("gs_nav"), id: uuid("gs_nav"),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment