Skip to content

Commit

Permalink
(less) Address twbs#9873 and fix twbs#9774
Browse files Browse the repository at this point in the history
* Update styling of justified nav links to be more mobile friendly
(with all four rounded corners and some margin between items)
* Add note to docs to callout bogus WebKit rendering on component and
example
  • Loading branch information
mdo committed Aug 27, 2013
1 parent a73005e commit c29e50d
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions navs.less
Original file line number Diff line number Diff line change
Expand Up @@ -159,28 +159,47 @@
float: none;
> a {
text-align: center;
margin-bottom: 5px;
}
}

@media (min-width: @screen-sm-min) {
> li {
display: table-cell;
width: 1%;
> a {
margin-bottom: 0;
}
}
}
}

// Move borders to anchors instead of bottom of list
.nav-tabs-justified {
border-bottom: 0;
> li > a {
border-bottom: 1px solid @nav-tabs-justified-link-border-color;

> li > a {
// Override margin from .nav-tabs
margin-right: 0;
border-radius: @border-radius-base;
}

> .active > a,
> .active > a:hover,
> .active > a:focus {
border: 1px solid @nav-tabs-justified-link-border-color;
}
> .active > a {
border-bottom-color: @nav-tabs-justified-active-link-border-color;

@media (min-width: @screen-sm-min) {
> li > a {
border-bottom: 1px solid @nav-tabs-justified-link-border-color;
border-radius: @border-radius-base @border-radius-base 0 0;
}
> .active > a,
> .active > a:hover,
> .active > a:focus {
border-bottom-color: @nav-tabs-justified-active-link-border-color;
}
}
}

Expand Down

0 comments on commit c29e50d

Please sign in to comment.