mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-05 16:42:29 +03:00
update docs to remove old stuff, update to all new classes; no more backwards compatibility
This commit is contained in:
+2
-44
@@ -23,8 +23,6 @@
|
||||
}
|
||||
|
||||
// Hover and active states
|
||||
// h3 for backwards compatibility
|
||||
h3 a:hover,
|
||||
.brand a:hover,
|
||||
ul .active > a {
|
||||
background-color: #333;
|
||||
@@ -33,12 +31,7 @@
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
// Website name
|
||||
// h3 left for backwards compatibility
|
||||
h3 {
|
||||
position: relative;
|
||||
}
|
||||
h3 a,
|
||||
// Website or project name
|
||||
.brand {
|
||||
float: left;
|
||||
display: block;
|
||||
@@ -112,9 +105,7 @@
|
||||
}
|
||||
|
||||
// gradient is applied to it's own element because overflow visible is not honored by ie when filter is present
|
||||
// For backwards compatibility, include .topbar .fill
|
||||
.topbar-inner,
|
||||
.topbar .fill {
|
||||
.topbar-inner {
|
||||
background-color: #222;
|
||||
#gradient > .vertical(#333, #222);
|
||||
@shadow: 0 1px 3px rgba(0,0,0,.25), inset 0 -1px 0 rgba(0,0,0,.1);
|
||||
@@ -127,8 +118,6 @@
|
||||
|
||||
// Topbar Nav
|
||||
// ul.nav for all topbar based navigation to avoid inheritance issues and over-specificity
|
||||
// For backwards compatibility, leave in .topbar div > ul
|
||||
.topbar div > ul,
|
||||
.nav {
|
||||
display: block;
|
||||
float: left;
|
||||
@@ -160,28 +149,19 @@
|
||||
float: right;
|
||||
margin-left: 10px;
|
||||
margin-right: 0;
|
||||
// backwards compatibility
|
||||
.menu-dropdown,
|
||||
.dropdown-menu {
|
||||
right: 0;
|
||||
border: 0;
|
||||
}
|
||||
}
|
||||
// Dropdowns within the .nav
|
||||
// a.menu:hover and li.open .menu for backwards compatibility
|
||||
a.menu:hover,
|
||||
li.open .menu,
|
||||
.dropdown-toggle:hover,
|
||||
.dropdown.open .dropdown-toggle {
|
||||
background: #444;
|
||||
background: rgba(255,255,255,.05);
|
||||
}
|
||||
// .menu-dropdown for backwards compatibility
|
||||
.menu-dropdown,
|
||||
.dropdown-menu {
|
||||
background-color: #333;
|
||||
// a.menu for backwards compatibility
|
||||
a.menu,
|
||||
.dropdown-toggle {
|
||||
color: @white;
|
||||
&.open {
|
||||
@@ -207,22 +187,16 @@
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility with new dropdowns, redeclare dropdown link padding
|
||||
.topbar ul .menu-dropdown li a,
|
||||
.topbar ul .dropdown-menu li a {
|
||||
padding: 4px 15px;
|
||||
}
|
||||
|
||||
// Dropdown Menus
|
||||
// Use the .menu class on any <li> element within the topbar or ul.tabs and you'll get some superfancy dropdowns
|
||||
// li.menu for backwards compatibility
|
||||
li.menu,
|
||||
.dropdown {
|
||||
position: relative;
|
||||
}
|
||||
// The link that is clicked to toggle the dropdown
|
||||
// a.menu for backwards compatibility
|
||||
a.menu:after,
|
||||
.dropdown-toggle:after {
|
||||
width: 0;
|
||||
height: 0;
|
||||
@@ -238,8 +212,6 @@ a.menu:after,
|
||||
.opacity(50);
|
||||
}
|
||||
// The dropdown menu (ul)
|
||||
// .menu-dropdown for backwards compatibility
|
||||
.menu-dropdown,
|
||||
.dropdown-menu {
|
||||
background-color: @white;
|
||||
float: left;
|
||||
@@ -300,18 +272,12 @@ a.menu:after,
|
||||
}
|
||||
|
||||
// Open state for the dropdown
|
||||
// .open for backwards compatibility
|
||||
.open,
|
||||
.dropdown.open {
|
||||
// .menu for backwards compatibility
|
||||
.menu,
|
||||
.dropdown-toggle {
|
||||
color: @white;
|
||||
background: #ccc;
|
||||
background: rgba(0,0,0,.3);
|
||||
}
|
||||
// .menu-dropdown for backwards compatibility
|
||||
.menu-dropdown,
|
||||
.dropdown-menu {
|
||||
display: block;
|
||||
}
|
||||
@@ -360,27 +326,19 @@ a.menu:after,
|
||||
border-bottom-color: transparent;
|
||||
}
|
||||
}
|
||||
// first one for backwards compatibility
|
||||
.menu-dropdown,
|
||||
.dropdown-menu {
|
||||
top: 35px;
|
||||
border-width: 1px;
|
||||
.border-radius(0 6px 6px 6px);
|
||||
}
|
||||
// first one for backwards compatibility
|
||||
a.menu:after,
|
||||
.dropdown-toggle:after {
|
||||
border-top-color: #999;
|
||||
margin-top: 15px;
|
||||
margin-left: 5px;
|
||||
}
|
||||
// first one for backwards compatibility
|
||||
li.open.menu .menu,
|
||||
.open.dropdown .dropdown-toggle {
|
||||
border-color: #999;
|
||||
}
|
||||
// first one for backwards compatibility
|
||||
li.open a.menu:after,
|
||||
.dropdown.open .dropdown-toggle:after {
|
||||
border-top-color: #555;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user