2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-30 15:24:08 +03:00

add docs for sub menu support on dropdowns, add caret via :after to submenu toggles

This commit is contained in:
Mark Otto
2012-07-27 10:35:15 -07:00
parent 9d5c431223
commit 16b4ac0d8f
4 changed files with 123 additions and 26 deletions
+18 -1
View File
@@ -176,7 +176,7 @@
.dropdown-submenu > .dropdown-menu {
top: 0;
left: 100%;
margin-top: -5px;
margin-top: -6px;
margin-left: -1px;
-webkit-border-radius: 0 6px 6px 6px;
-moz-border-radius: 0 6px 6px 6px;
@@ -186,6 +186,23 @@
display: block;
}
.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(@dropdownBackground, 20%);
margin-top: 5px;
margin-right: -10px;
}
.dropdown-submenu:hover > a:after {
border-left-color: @dropdownLinkColorHover;
}
// Tweak nav headers
// -----------------