Skip to content

Commit

Permalink
Navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmbacon committed Jun 27, 2014
1 parent 29168b2 commit cb47531
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 0 deletions.
49 changes: 49 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,55 @@ img {

/* NAV
--------------------------------------------------------------*/
/* overwriting bootstrap 3's philosophical opposition to drop down menus. */
.dropdown-submenu {
position: relative;
}

.dropdown-submenu > .dropdown-menu {
top: 0;
left: 100%;
margin-top: -6px;
margin-left: -1px;
-webkit-border-radius: 0 6px 6px 6px;
-moz-border-radius: 0 6px 6px 6px;
border-radius: 0 6px 6px 6px;
}

.dropdown-submenu:hover > .dropdown-menu {
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: #cccccc;
margin-top: 5px;
margin-right: -10px;
}

.dropdown-submenu:hover > a:after {
border-left-color: #ffffff;
}

.dropdown-submenu .pull-left {
float: none;
}

.dropdown-submenu.pull-left > .dropdown-menu {
left: -100%;
margin-left: 10px;
-webkit-border-radius: 6px 0 6px 6px;
-moz-border-radius: 6px 0 6px 6px;
border-radius: 6px 0 6px 6px;
}

.navbar-collapse {
max-height: none;
}
Expand Down
48 changes: 48 additions & 0 deletions style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,54 @@ img {

/* NAV
--------------------------------------------------------------*/
/* overwriting bootstrap 3's philosophical opposition to drop down menus. */
.dropdown-submenu{
position:relative;
}

.dropdown-submenu > .dropdown-menu {
top:0;
left:100%;
margin-top:-6px;
margin-left:-1px;
-webkit-border-radius:0 6px 6px 6px;
-moz-border-radius:0 6px 6px 6px;
border-radius:0 6px 6px 6px;
}

.dropdown-submenu:hover > .dropdown-menu{
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:#cccccc;
margin-top:5px;
margin-right:-10px;
}

.dropdown-submenu:hover > a:after{
border-left-color:#ffffff;
}

.dropdown-submenu .pull-left{
float:none;
}

.dropdown-submenu.pull-left > .dropdown-menu{
left:-100%;
margin-left:10px;
-webkit-border-radius:6px 0 6px 6px;
-moz-border-radius:6px 0 6px 6px;
border-radius:6px 0 6px 6px;
}

.navbar-collapse {
max-height:none;
Expand Down

0 comments on commit cb47531

Please sign in to comment.