2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-05 16:42:29 +03:00

Address #9873 and fix #9774

* 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
This commit is contained in:
Mark Otto
2013-08-26 17:37:52 -07:00
parent 8f83a6010a
commit 4d23aa4ef5
6 changed files with 73 additions and 13 deletions
+23 -4
View File
@@ -159,6 +159,7 @@
float: none;
> a {
text-align: center;
margin-bottom: 5px;
}
}
@@ -166,6 +167,9 @@
> li {
display: table-cell;
width: 1%;
> a {
margin-bottom: 0;
}
}
}
}
@@ -173,14 +177,29 @@
// 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 {
border-bottom-color: @nav-tabs-justified-active-link-border-color;
> .active > a,
> .active > a:hover,
> .active > a:focus {
border: 1px solid @nav-tabs-justified-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;
}
}
}