2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-08 17:22:31 +03:00

More navbar CSS and docs cleanup

* Rearrange sections
* Add code snippets for text and links in navbars
* Add .navbar-link back in
* Add mention of .navbar-text, but it still needs to be re-implemented
* Update nav to reflect new order
This commit is contained in:
Mark Otto
2013-05-02 23:13:43 -07:00
parent 94792b9dae
commit e1c67b149f
3 changed files with 62 additions and 14 deletions
+25 -5
View File
@@ -300,7 +300,8 @@
}
// Buttons in navbar
// Buttons in navbars
//
// Vertically center a button within a navbar (when *not* in a form).
@@ -308,10 +309,23 @@
margin-top: ((@navbar-height - @input-height-base) / 2);
}
/*
// Janky solution for now to account for links outside the .nav
// -------------------------
// Text in navbars
//
// Add a class to make any element properly align itself vertically within the navbars.
.navbar-text {
}
// Links in navbars
//
// Add a class to ensure links outside the navbar nav are colored correctly.
// Default navbar variables
.navbar-link {
color: @navbar-link-color;
&:hover {
@@ -319,4 +333,10 @@
}
}
*/
// Use the inverse navbar variables
.navbar-inverse .navbar-link {
color: @navbar-inverse-link-color;
&:hover {
color: @navbar-inverse-link-hover-color;
}
}