aboutsummaryrefslogtreecommitdiff
path: root/less/dropdowns.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-06-27 20:49:29 -0700
committerMark Otto <[email protected]>2013-06-27 20:49:29 -0700
commitbf3c5e070e2ee74181aa8b2c75f32387827b01c2 (patch)
tree19364b1710f2fc562572a794632a2dc4dced4c8e /less/dropdowns.less
parent89117ec6b2c814c9629f2a2a0763a64582af1cce (diff)
downloadbootstrap-bf3c5e070e2ee74181aa8b2c75f32387827b01c2.tar.xz
bootstrap-bf3c5e070e2ee74181aa8b2c75f32387827b01c2.zip
remove submenus. for more context: http://www.youtube.com/watch?v=ggWyUEuGcWY&feature=youtu.be&t=48s
Diffstat (limited to 'less/dropdowns.less')
-rw-r--r--less/dropdowns.less62
1 files changed, 1 insertions, 61 deletions
diff --git a/less/dropdowns.less b/less/dropdowns.less
index 3e0152788..f2ddc4392 100644
--- a/less/dropdowns.less
+++ b/less/dropdowns.less
@@ -63,9 +63,7 @@
// Hover/Focus state
// -----------
.dropdown-menu > li > a:hover,
-.dropdown-menu > li > a:focus,
-.dropdown-submenu:hover > a,
-.dropdown-submenu:focus > a {
+.dropdown-menu > li > a:focus {
text-decoration: none;
color: @dropdown-link-hover-color;
#gradient > .vertical(@start-color: @dropdown-link-hover-bg; @end-color: darken(@dropdown-link-hover-bg, 5%));
@@ -153,64 +151,6 @@
}
}
-// Sub menus
-// ---------------------------
-.dropdown-submenu {
- position: relative;
-}
-// Default dropdowns
-.dropdown-submenu > .dropdown-menu {
- top: 0;
- left: 100%;
- margin-top: -6px;
- margin-left: -1px;
- border-top-left-radius: 0; // Nuke the closest corner as appropriate
-}
-.dropdown-submenu:hover > .dropdown-menu {
- display: block;
-}
-
-// Dropups
-.dropup .dropdown-submenu > .dropdown-menu {
- top: auto;
- bottom: 0;
- margin-top: 0;
- margin-bottom: -2px;
- border-bottom-left-radius: 0; // Nuke the closest corner as appropriate
-}
-
-// 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-bg, 20%);
- margin-top: 5px;
- margin-right: -10px;
-}
-.dropdown-submenu:hover > a:after {
- border-left-color: @dropdown-link-hover-color;
-}
-
-// 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-top-right-radius: 0; // Remove the rounded corner here
- }
-}
-
// Tweak nav headers
// ---------------------------
// Increase padding from 15px to 20px on sides