style: 微调sidebar滚动区域上下间隙

This commit is contained in:
Argo Zhang 2019-08-15 23:41:16 +08:00
parent c19b76a8fd
commit 2a662d8ae7
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
2 changed files with 5 additions and 10 deletions

View File

@ -10,7 +10,7 @@
</div>
<!-- sidebar menu start-->
<div class="sidebar">
<ul class="nav nav-pills flex-column flex-nowrap">
<ul class="nav-sidebar nav nav-pills flex-column flex-nowrap">
@foreach (var menu in Model.Navigations)
{
@await Html.PartialAsync("SubNavItem", menu)

View File

@ -241,7 +241,6 @@ body, .form-control, .dropdown-menu, .btn:not(.btn-lg):not(.btn-xs), .input-grou
}
.sidebar {
padding: 0;
background: inherit;
}
@ -258,17 +257,13 @@ body, .form-control, .dropdown-menu, .btn:not(.btn-lg):not(.btn-xs), .input-grou
color: #FF6C60;
}
.sidebar ul {
.sidebar .nav-sidebar {
margin: 5px 0;
}
.sidebar ul ul {
margin: 0;
}
.sidebar .nav-link {
color: #aeb2b7;
padding: 10px 10px;
padding: 8px 10px;
transition: background .3s linear, color .3s linear;
display: flex;
align-items: center;