aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-10-01 16:15:26 -0700
committerMark Otto <[email protected]>2012-10-01 16:15:26 -0700
commit7763cab6082700e052c12add8df71b22358b24ae (patch)
tree0a87d361035619c5a4dec26325d7d4722d9f8304
parent5cf7c803e284052106f4f22897f2f0a511952565 (diff)
parent6aa15eb01f2e50e394ae172ff41e5bc0583de6da (diff)
downloadbootstrap-7763cab6082700e052c12add8df71b22358b24ae.tar.xz
bootstrap-7763cab6082700e052c12add8df71b22358b24ae.zip
Merge branch '2.1.2-wip' of https://github.com/advancedrei/bootstrap into advancedrei-2.1.2-wip
-rw-r--r--less/dropdowns.less35
1 files changed, 34 insertions, 1 deletions
diff --git a/less/dropdowns.less b/less/dropdowns.less
index bed158612..9622d2d46 100644
--- a/less/dropdowns.less
+++ b/less/dropdowns.less
@@ -163,7 +163,6 @@
.dropdown-submenu {
position: relative;
}
-
// Default dropdowns
.dropdown-submenu > .dropdown-menu {
top: 0;
@@ -207,6 +206,40 @@
border-left-color: @dropdownLinkColorHover;
}
+// Left-opening Sub menus
+// ---------------------------
+.dropdown-submenu-left {
+ position: relative;
+}
+.dropdown-submenu-left > .dropdown-menu {
+ top: 0;
+ left: -100%;
+ margin-top: -6px;
+ margin-left: -1px;
+ -webkit-border-radius: 6px 0px 6px 6px;
+ -moz-border-radius: 6px 0px 6px 6px;
+ border-radius: 6px 0px 6px 6px;
+}
+.dropdown-submenu-left:hover > .dropdown-menu {
+ display: block;
+}
+
+.dropdown-submenu-left > a:before {
+ display: block;
+ content: " ";
+ float: left;
+ width: 0;
+ height: 0;
+ border-color: transparent;
+ border-style: solid;
+ border-width: 5px 5px 5px 0px;
+ border-right-color: darken(@dropdownBackground, 20%);
+ margin-top: 5px;
+ margin-left: -10px;
+}
+.dropdown-submenu-left:hover > a:after {
+ border-right-color: @dropdownLinkColorHover;
+}
// Tweak nav headers
// -----------------