mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-29 11:24:18 +01:00
c064eef67b
- Simpler main nav on all pages - Back to purple masthead on homepage instead of dark graphite - Active link styles on the main nav - Cleaned up sidebar nav - New docs layout name - Homepage copy edits - Updated bright purple docs color
198 lines
3.4 KiB
SCSS
198 lines
3.4 KiB
SCSS
//
|
|
// Navs
|
|
// --------------------------------------------------
|
|
|
|
.nav {
|
|
padding-left: 0;
|
|
margin-bottom: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.nav-link {
|
|
display: inline-block;
|
|
|
|
@include hover-focus {
|
|
text-decoration: none;
|
|
}
|
|
|
|
// Disabled state lightens text and removes hover/tab effects
|
|
.disabled > &,
|
|
&.disabled {
|
|
color: $nav-disabled-link-color;
|
|
|
|
@include plain-hover-focus {
|
|
color: $nav-disabled-link-hover-color;
|
|
cursor: $cursor-disabled;
|
|
background-color: transparent;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
// Nav inline
|
|
|
|
.nav-inline {
|
|
.nav-link + .nav-link {
|
|
margin-left: 1rem;
|
|
}
|
|
}
|
|
|
|
|
|
//
|
|
// Base styles
|
|
//
|
|
|
|
// .nav {
|
|
// padding-left: 0;
|
|
// margin-bottom: 0;
|
|
// list-style: none;
|
|
// @include clearfix();
|
|
// }
|
|
//
|
|
// .nav-item {
|
|
// position: relative;
|
|
// display: inline-block;
|
|
// }
|
|
//
|
|
// .nav-link {
|
|
// display: inline-block;
|
|
//
|
|
// @include hover-focus {
|
|
// text-decoration: none;
|
|
// background-color: $nav-link-hover-bg;
|
|
// }
|
|
//
|
|
// // Disabled state sets text to gray and nukes hover/tab effects
|
|
// .disabled > &,
|
|
// &.disabled {
|
|
// color: $nav-disabled-link-color;
|
|
//
|
|
// @include plain-hover-focus {
|
|
// color: $nav-disabled-link-hover-color;
|
|
// cursor: $cursor-disabled;
|
|
// background-color: transparent;
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
|
|
//
|
|
// Tabs
|
|
//
|
|
|
|
.nav-tabs {
|
|
border-bottom: 1px solid $nav-tabs-border-color;
|
|
|
|
.nav-item {
|
|
float: left;
|
|
// Make the list-items overlay the bottom border
|
|
margin-bottom: -1px;
|
|
|
|
+ .nav-item {
|
|
margin-left: .2rem;
|
|
}
|
|
}
|
|
|
|
.nav-link {
|
|
display: block;
|
|
padding: $nav-link-padding;
|
|
border: 1px solid transparent;
|
|
@include border-radius($border-radius $border-radius 0 0);
|
|
|
|
@include hover-focus {
|
|
border-color: $nav-tabs-link-hover-border-color $nav-tabs-link-hover-border-color $nav-tabs-border-color;
|
|
}
|
|
}
|
|
|
|
.open > .nav-link,
|
|
.active > .nav-link,
|
|
.nav-link.open,
|
|
.nav-link.active {
|
|
@include plain-hover-focus {
|
|
color: $nav-tabs-active-link-hover-color;
|
|
background-color: $nav-tabs-active-link-hover-bg;
|
|
border-color: $nav-tabs-active-link-hover-border-color $nav-tabs-active-link-hover-border-color transparent;
|
|
}
|
|
}
|
|
|
|
.disabled > .nav-link,
|
|
.nav-link.disabled {
|
|
@include plain-hover-focus {
|
|
color: $nav-disabled-link-color;
|
|
background-color: transparent;
|
|
border-color: transparent;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
//
|
|
// Pills
|
|
//
|
|
|
|
.nav-pills {
|
|
.nav-item {
|
|
float: left;
|
|
|
|
+ .nav-item {
|
|
margin-left: .2rem;
|
|
}
|
|
}
|
|
|
|
.nav-link {
|
|
display: block;
|
|
padding: $nav-link-padding;
|
|
@include border-radius($nav-pills-border-radius);
|
|
}
|
|
|
|
.open > .nav-link,
|
|
.active > .nav-link,
|
|
.nav-link.open,
|
|
.nav-link.active {
|
|
@include plain-hover-focus {
|
|
color: $component-active-color;
|
|
cursor: default;
|
|
background-color: $component-active-bg;
|
|
}
|
|
}
|
|
}
|
|
|
|
.nav-stacked {
|
|
.nav-item {
|
|
display: block;
|
|
float: none;
|
|
|
|
+ .nav-item {
|
|
margin-top: .2rem;
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
//
|
|
// Tabbable tabs
|
|
//
|
|
|
|
// Hide tabbable panes to start, show them when `.active`
|
|
.tab-content {
|
|
> .tab-pane {
|
|
display: none;
|
|
}
|
|
> .active {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
|
|
//
|
|
// Dropdowns
|
|
//
|
|
|
|
.nav-tabs .dropdown-menu {
|
|
// Make dropdown border overlap tab border
|
|
margin-top: -1px;
|
|
// Remove the top rounded corners here since there is a hard edge above the menu
|
|
@include border-top-radius(0);
|
|
}
|