Skip to content

Commit

Permalink
(less) Merge branch 'master' into pr/11614
Browse files Browse the repository at this point in the history
Conflicts:
	dist/css/bootstrap.min.css
  • Loading branch information
mdo committed Nov 28, 2013
2 parents 0cdeba2 + 07bae4d commit bba77d3
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 94 deletions.
31 changes: 0 additions & 31 deletions button-groups.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,6 @@
// Button groups
// --------------------------------------------------

// Button carets
//
// Match the button text color to the arrow/caret for indicating dropdown-ness.

.caret {
.btn-default & {
border-top-color: @btn-default-color;
}
.btn-primary &,
.btn-success &,
.btn-warning &,
.btn-danger &,
.btn-info & {
border-top-color: #fff;
}
}
.dropup {
.btn-default .caret {
border-bottom-color: @btn-default-color;
}
.btn-primary,
.btn-success,
.btn-warning,
.btn-danger,
.btn-info {
.caret {
border-bottom-color: #fff;
}
}
}

// Make the div behave like a button
.btn-group,
.btn-group-vertical {
Expand Down
4 changes: 2 additions & 2 deletions dropdowns.less
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
height: 0;
margin-left: 2px;
vertical-align: middle;
border-top: @caret-width-base solid @dropdown-caret-color;
border-top: @caret-width-base solid;
border-right: @caret-width-base solid transparent;
border-left: @caret-width-base solid transparent;
}
Expand Down Expand Up @@ -161,7 +161,7 @@
// Reverse the caret
.caret {
border-top: 0;
border-bottom: @caret-width-base solid @dropdown-caret-color;
border-bottom: @caret-width-base solid;
content: "";
}
// Different positioning for bottom up menu
Expand Down
3 changes: 0 additions & 3 deletions mixins.less
Original file line number Diff line number Diff line change
Expand Up @@ -403,9 +403,6 @@
+ .panel-collapse .panel-body {
border-top-color: @border;
}
& > .dropdown .caret {
border-color: @heading-text-color transparent;
}
}
& > .panel-footer {
+ .panel-collapse .panel-body {
Expand Down
36 changes: 1 addition & 35 deletions navbar.less
Original file line number Diff line number Diff line change
Expand Up @@ -414,33 +414,17 @@
border-color: @navbar-default-border;
}

// Dropdown menu items and carets
// Dropdown menu items
.navbar-nav {
// Caret should match text color on hover
> .dropdown > a:hover .caret,
> .dropdown > a:focus .caret {
border-top-color: @navbar-default-link-hover-color;
border-bottom-color: @navbar-default-link-hover-color;
}

// Remove background color from open dropdown
> .open > a {
&,
&:hover,
&:focus {
background-color: @navbar-default-link-active-bg;
color: @navbar-default-link-active-color;
.caret {
border-top-color: @navbar-default-link-active-color;
border-bottom-color: @navbar-default-link-active-color;
}
}
}
> .dropdown > a .caret {
border-top-color: @navbar-default-link-color;
border-bottom-color: @navbar-default-link-color;
}


@media (max-width: @screen-xs-max) {
// Dropdowns get custom display when collapsed
Expand Down Expand Up @@ -561,24 +545,6 @@
color: @navbar-inverse-link-active-color;
}
}
> .dropdown > a:hover .caret {
border-top-color: @navbar-inverse-link-hover-color;
border-bottom-color: @navbar-inverse-link-hover-color;
}
> .dropdown > a .caret {
border-top-color: @navbar-inverse-link-color;
border-bottom-color: @navbar-inverse-link-color;
}
> .open > a {
&,
&:hover,
&:focus {
.caret {
border-top-color: @navbar-inverse-link-active-color;
border-bottom-color: @navbar-inverse-link-active-color;
}
}
}

@media (max-width: @screen-xs-max) {
// Dropdowns get custom display
Expand Down
20 changes: 0 additions & 20 deletions navs.less
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@
&:focus {
background-color: @nav-link-hover-bg;
border-color: @link-color;

.caret {
border-top-color: @link-hover-color;
border-bottom-color: @link-hover-color;
}
}
}

Expand Down Expand Up @@ -138,11 +133,6 @@
&:focus {
color: @nav-pills-active-link-hover-color;
background-color: @nav-pills-active-link-hover-bg;

.caret {
border-top-color: @nav-pills-active-link-hover-color;
border-bottom-color: @nav-pills-active-link-hover-color;
}
}
}
}
Expand Down Expand Up @@ -243,16 +233,6 @@
// Dropdowns
// -------------------------

// Make dropdown carets use link color in navs
.nav .caret {
border-top-color: @link-color;
border-bottom-color: @link-color;
}
.nav a:hover .caret {
border-top-color: @link-hover-color;
border-bottom-color: @link-hover-color;
}

// Specific dropdowns
.nav-tabs .dropdown-menu {
// make dropdown border overlap tab border
Expand Down
3 changes: 0 additions & 3 deletions variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,6 @@

@dropdown-header-color: @gray-light;

@dropdown-caret-color: #000;


// COMPONENT VARIABLES
// --------------------------------------------------
Expand Down Expand Up @@ -321,7 +319,6 @@
@nav-disabled-link-hover-color: @gray-light;

@nav-open-link-hover-color: #fff;
@nav-open-caret-border-color: #fff;

// Tabs
@nav-tabs-border-color: #ddd;
Expand Down

0 comments on commit bba77d3

Please sign in to comment.