Skip to content

Instantly share code, notes, and snippets.

@jlong
Created October 13, 2011 20:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jlong/1285388 to your computer and use it in GitHub Desktop.
Save jlong/1285388 to your computer and use it in GitHub Desktop.
New UserVoice Menu
#application-menu
font-size: 13px
font-weight: 100
padding-right: 0.35em
+text-shadow(rgba(black, 0.75) 0 1px 0)
.menubar
float: right
height: $header-height - 1px
.menubar-item
+inline-block
position: relative
vertical-align: center
margin-right: -0.35em
.menubar-item + .menubar-item
&:before
border-left: 1px solid rgba(black, 0.3)
border-right: 1px solid rgba(white, 0.12)
content: "\200C"
display: block
overflow: hidden
position: absolute
width: 0
height: 24px
top: ($header-height - 24px) / 2
left: 0
&.open
&:before
height: 38px
.menubar-item.open + .menubar-item
&:before
height: 38px
.menubar-item.open
&:after
background: #30456c
content: "\200C"
overflow: hidden
position: absolute
left: 2px
right: 0
bottom: 2px
height: 1px
z-index: $menu-z-index + 1
.menubar-item > a
color: darken(#cbcdd4, 5)
cursor: pointer
height: $header-height - 1px
+inline-block
line-height: $header-height - 1px
padding: 0 12px 0 14px
text-decoration: none
img
+opacity(0.8)
&:hover
color: white
img
+opacity(1)
.menubar-item.open > a
color: white
background: rgba(white, 0.1)
+background(linear-gradient(#293e65, #202f4c, #38507d))
img
+opacity(1)
.menu
background: #30456c
+border-bottom-radius(6px)
+box-shadow(rgba(white, 0.1) 0 1px 0 inset, #152034 1px 1px 0, rgba(black, 0.32) 0 4px 18px)
display: none
font-size: 15px
min-width: 15em
padding: 8px 0
position: absolute
right: 0
top: $header-height - 4px
z-index: $menu-z-index
.menubar-item.open .menu
display: block
.menu-item
clear: both
padding: 7px 16px
.menu-item > a
display: block
line-height: 1.2
color: lighten(#cbcdd4, 5)
text-decoration: none
margin: -7px -16px
padding: 7px 16px
&:hover
background-color: #202f4a
.menu-separator
border-top: 1px solid rgba(black, 0.3)
border-bottom: 1px solid rgba(white, 0.1)
height: 0
overflow: hidden
margin: 4px 8px
padding: 0
.menu-item.highlight > a
color: #c8ddb3
.submenu-title
color: lighten(#7e99c1, 5)
display: block
font-size: 12px
text-transform: uppercase
margin-bottom: 6px
.submenu
font-size: 13px
margin: 0 -16px -7px
.submenu-item
@extend .menu-item
> a
padding: 5px 16px 5px 46px
&.checked > a
background-image: image_url("admin/header/check.png")
background-position: 20px 50%
background-repeat: no-repeat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment