aboutsummaryrefslogtreecommitdiff
path: root/less/dropdowns.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-12-20 00:27:05 -0800
committerMark Otto <[email protected]>2012-12-20 00:27:05 -0800
commitcc6974b74e34bd3b0a69fb8b6334fd8a328ca949 (patch)
treef4f280e196dc6a87c1ab69aecaafe49ad4ee1163 /less/dropdowns.less
parentacde2dc1ee01384ca9a79573ad21c37863697946 (diff)
downloadbootstrap-cc6974b74e34bd3b0a69fb8b6334fd8a328ca949.tar.xz
bootstrap-cc6974b74e34bd3b0a69fb8b6334fd8a328ca949.zip
Remove dropdown submenu CSS
Diffstat (limited to 'less/dropdowns.less')
-rw-r--r--less/dropdowns.less61
1 files changed, 1 insertions, 60 deletions
diff --git a/less/dropdowns.less b/less/dropdowns.less
index 81f8c735c..93fb5e11c 100644
--- a/less/dropdowns.less
+++ b/less/dropdowns.less
@@ -78,8 +78,7 @@
// Hover state
// -----------
.dropdown-menu li > a:hover,
-.dropdown-menu li > a:focus,
-.dropdown-submenu:hover > a {
+.dropdown-menu li > a:focus {
text-decoration: none;
color: @dropdown-link-color-hover;
#gradient > .vertical(@dropdown-link-background-hover, darken(@dropdown-link-background-hover, 5%));
@@ -146,64 +145,6 @@
}
}
-// Sub menus
-// ---------------------------
-.dropdown-submenu {
- position: relative;
-}
-// Default dropdowns
-.dropdown-submenu > .dropdown-menu {
- top: 0;
- left: 100%;
- margin-top: -6px;
- margin-left: -1px;
- border-radius: 0 4px 4px 4px;
-}
-.dropdown-submenu:hover > .dropdown-menu {
- display: block;
-}
-
-// Dropups
-.dropup .dropdown-submenu > .dropdown-menu {
- top: auto;
- bottom: 0;
- margin-top: 0;
- margin-bottom: -2px;
- border-radius: 4px 4px 4px 0;
-}
-
-// Caret to indicate there is a submenu
-.dropdown-submenu > a:after {
- display: block;
- content: " ";
- float: right;
- width: 0;
- height: 0;
- border-color: transparent;
- border-style: solid;
- border-width: 5px 0 5px 5px;
- border-left-color: darken(@dropdown-background, 20%);
- margin-top: 5px;
- margin-right: -10px;
-}
-.dropdown-submenu:hover > a:after {
- border-left-color: @dropdown-link-color-hover;
-}
-
-// Left aligned submenus
-.dropdown-submenu.pull-left {
- // Undo the float
- // Yes, this is awkward since .pull-left adds a float, but it sticks to our conventions elsewhere.
- float: none;
-
- // Positioning the submenu
- > .dropdown-menu {
- left: -100%;
- margin-left: 10px;
- border-radius: 4px 0 4px 4px;
- }
-}
-
// Tweak nav headers
// -----------------
// Increase padding from 15px to 20px on sides