0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00

new nav styles

This commit is contained in:
Mark Otto 2017-05-27 17:36:35 -07:00
parent 4564f7e3ef
commit ded32a682a
2 changed files with 14 additions and 8 deletions

View File

@ -18,8 +18,9 @@
// padding-left: 0;
// margin-bottom: 2rem;
background-color: #fff;
background-clip: padding-box;
border-bottom: 1px solid rgba(0,0,0,.1);
box-shadow: 0 6px 12px rgba(0,0,0,.05);
box-shadow: 0 .5rem 1rem rgba(0,0,0,.05);
.navbar-nav {
.nav-link {

View File

@ -5,23 +5,28 @@
//
.bd-sidebar {
padding-top: 1rem;
background-color: #f5f5f5;
border-right: 1px solid rgba(0,0,0,.1);
@include media-breakpoint-up(md) {
position: -webkit-sticky;
position: sticky;
top: 5rem;
top: 4rem;
max-height: calc(100vh - 4rem);
overflow-y: auto;
}
}
.bd-links {
margin-right: -15px;
margin-left: -15px;
// padding-top: .25rem;
// padding-bottom: .25rem;
border: 1px solid $gray-lighter;
border-radius: .25rem;
// border: 1px solid $gray-lighter;
// border-radius: .25rem;
@include media-breakpoint-up(md) {
margin-right: 1.5rem;
// margin-right: 1.5rem;
}
}
@ -80,7 +85,7 @@
display: block;
// padding-top: .25rem;
// padding-bottom: .25rem;
padding: .75rem 1rem;
padding: .75rem 1.5rem;
color: $gray;
}
.bd-toc-link:hover,
@ -118,7 +123,7 @@
display: block;
// padding-top: .25rem;
// padding-bottom: .25rem;
padding: .25rem 1rem;
padding: .25rem 1.5rem;
font-size: 90%;
color: #99979c;
}