aboutsummaryrefslogtreecommitdiff
path: root/lib/patterns.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2011-09-17 17:21:43 -0700
committerMark Otto <[email protected]>2011-09-17 17:21:43 -0700
commitec8619a9808b9b6e721334af8e6b5248ccbea8b5 (patch)
treed238f530ddcbca9984cb3320f6e5224db6a4cb16 /lib/patterns.less
parent732ff9ed1c0b590c17951de412024cb7acd5763a (diff)
downloadbootstrap-ec8619a9808b9b6e721334af8e6b5248ccbea8b5.tar.xz
bootstrap-ec8619a9808b9b6e721334af8e6b5248ccbea8b5.zip
update docs to remove old stuff, update to all new classes; no more backwards compatibility
Diffstat (limited to 'lib/patterns.less')
-rw-r--r--lib/patterns.less46
1 files changed, 2 insertions, 44 deletions
diff --git a/lib/patterns.less b/lib/patterns.less
index ce387614e..1ba218c36 100644
--- a/lib/patterns.less
+++ b/lib/patterns.less
@@ -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;
}