diff options
author | SkyArrow <tommy351@gmail.com> | 2012-01-24 14:53:22 +0100 |
---|---|---|
committer | SkyArrow <tommy351@gmail.com> | 2012-01-24 14:53:22 +0100 |
commit | 1c574d24b7fdd482499fa9553c19342b6a4d391e (patch) | |
tree | 3381ce235c72044d6fa76243e9d6948c737a6e4f /sass/partials/_header.scss | |
download | octopress-theme-jeyzu-1c574d24b7fdd482499fa9553c19342b6a4d391e.zip octopress-theme-jeyzu-1c574d24b7fdd482499fa9553c19342b6a4d391e.tar.gz |
created
Diffstat (limited to 'sass/partials/_header.scss')
-rw-r--r-- | sass/partials/_header.scss | 140 |
1 files changed, 140 insertions, 0 deletions
diff --git a/sass/partials/_header.scss b/sass/partials/_header.scss new file mode 100644 index 0000000..fb6680e --- /dev/null +++ b/sass/partials/_header.scss @@ -0,0 +1,140 @@ +#header{ + height: 68px; + margin: 30px auto; + text-transform: uppercase; + line-height: 1; + h1{ + a{ + background: #000; + color: #fff; + padding: 30px 10px 10px 100px; + margin-right: 5px; + display: block; + } + } + ul{ + background: $black; + font-size: 14px; + li{ + display: inline-block; + position: relative; + >a{ + color: #fff; + position: relative; + padding: 44px 20px 7px; + display: block; + border-bottom: 3px solid transparent; + &:after{ + font: 13px/1 $symbol; + color: #666; + content: "["; + margin-left: 10px; + } + &:only-child{ + &:after{ + display: none; + } + } + } + &:hover{ + >a{ + background: #000; + border-bottom: 3px solid $main; + &:after{ + color: #ccc; + } + } + >.sub-menu{ + display: block; + } + } + .sub-menu{ + position: absolute; + top: 100%; + left: 0; + background: $main; + white-space: nowrap; + z-index: 5; + text-transform: none; + display: none; + font-size: 13px; + @include box-shadow(0 12px 16px $shadow); + li{ + display: block; + a{ + padding: 10px 40px 10px 20px; + border-bottom: 1px solid lighten($main, 5%); + border-top: 1px solid darken($main, 5%); + &:hover{ + background: darken($main, 10%); + } + &:after{ + content: ">"; + position: absolute; + right: 10px; + font: 13px/1 $symbol; + color: lighten($main, 10%); + } + &:only-child{ + padding-right: 20px; + &:after{ + content: ""; + } + } + } + &:hover{ + >a{ + background: darken($main, 10%); + } + } + &:first-of-type{ + a{ + border-top: none; + } + } + &:last-of-type{ + a{ + border-bottom: none; + } + } + } + .sub-menu{ + top: 0; + left: 100%; + } + } + } + } + .search{ + margin-top: 25px; + input[type="text"]{ + background: rgba(0,0,0,0.2); + border-style: solid; + border-width: 1px 0; + border-color: rgba(0,0,0,0.5) transparent #555; + color: #ccc; + padding: 5px 15px; + margin: 2px 10px 0 0; + width: 150px; + font-size: 13px; + font-family: inherit; + @include border-radius(15px); + &:active, &:focus{ + background: $black; + } + } + input[type="submit"]{ + font: 18px/1 $symbol; + width: 24px; + height: 24px; + @include square(24px); + border: none; + background: none; + color: #fff; + cursor: pointer; + &:hover{ + color: $main; + } + } + } +}
\ No newline at end of file |