Created
July 8, 2013 11:46
-
-
Save jonbellah/5948082 to your computer and use it in GitHub Desktop.
Mobile Navigation Menu: The CSS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.dropdown { | |
position: absolute; | |
z-index: 9999999; | |
display: none; | |
} | |
.dropdown .dropdown-menu, | |
.dropdown .dropdown-panel { | |
list-style: none; | |
background: #FFF; | |
border: solid 1px #DDD; | |
border: solid 1px rgba(0, 0, 0, .2); | |
border-radius: 6px; | |
box-shadow: 0 5px 10px rgba(0, 0, 0, .2); | |
overflow: visible; | |
padding: 4px 0; | |
margin: 0; | |
width: 100%; | |
} | |
.dropdown .dropdown-panel { | |
padding: 10px; | |
} | |
.dropdown.dropdown-tip { | |
margin-top: 8px; | |
} | |
.dropdown.dropdown-tip:before { | |
position: absolute; | |
top: -6px; | |
left: 9px; | |
content: ''; | |
border-left: 7px solid transparent; | |
border-right: 7px solid transparent; | |
border-bottom: 7px solid #CCC; | |
border-bottom-color: rgba(0, 0, 0, 0.2); | |
display: inline-block; | |
} | |
.dropdown.dropdown-tip.dropdown-anchor-right:before { | |
left: auto; | |
right: 9px; | |
} | |
.dropdown.dropdown-tip:after { | |
position: absolute; | |
top: -5px; | |
left: 10px; | |
content: ''; | |
border-left: 6px solid transparent; | |
border-right: 6px solid transparent; | |
border-bottom: 6px solid #FFF; | |
display: inline-block; | |
} | |
.dropdown.dropdown-tip.dropdown-anchor-right:after { | |
left: auto; | |
right: 10px; | |
} | |
.dropdown.dropdown-scroll .dropdown-menu, | |
.dropdown.dropdown-scroll .dropdown-panel { | |
max-height: 358px; | |
overflow: auto; | |
} | |
.dropdown .dropdown-menu li { | |
list-style: none; | |
padding: 0 0; | |
margin: 0; | |
line-height: 18px; | |
} | |
.dropdown .dropdown-menu li > a, | |
.dropdown .dropdown-menu label { | |
display: block; | |
color: #555; | |
text-decoration: none; | |
line-height: 18px; | |
padding: 3px 15px; | |
white-space: nowrap; | |
} | |
.dropdown .dropdown-menu li > a:hover, | |
.dropdown .dropdown-menu label:hover { | |
background-color: #08C; | |
color: #FFF; | |
cursor: pointer; | |
} | |
.dropdown .dropdown-menu .dropdown-divider { | |
font-size: 1px; | |
border-top: solid 1px #E5E5E5; | |
padding: 0; | |
margin: 5px 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment