diff options
author | SkyArrow <tommy351@gmail.com> | 2012-01-27 16:58:49 +0100 |
---|---|---|
committer | SkyArrow <tommy351@gmail.com> | 2012-01-27 16:58:49 +0100 |
commit | f49d174f61bcfcaba2affb0ee671ff74315c8174 (patch) | |
tree | e792a2a1e985a10911bc770f73762f9be7d8bd8d /sass/parts | |
parent | 792a2615c86ef3415fd7383622dc590a3334bed7 (diff) | |
download | octopress-theme-jeyzu-f49d174f61bcfcaba2affb0ee671ff74315c8174.zip octopress-theme-jeyzu-f49d174f61bcfcaba2affb0ee671ff74315c8174.tar.gz |
multi-level menu
Diffstat (limited to 'sass/parts')
-rw-r--r-- | sass/parts/_header.scss | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/sass/parts/_header.scss b/sass/parts/_header.scss index 4af00e4..d5a3a82 100644 --- a/sass/parts/_header.scss +++ b/sass/parts/_header.scss @@ -20,7 +20,6 @@ header{ >li{ display: inline-block; margin-left: 50px; - position: relative; &:hover{ >a{ color: $main; @@ -44,32 +43,47 @@ header{ white-space: nowrap; background: $gray04; border: 1px solid $gray03; - @include border-radius(0 0 5px 5px); - box-shadow: 0 4px 8px $gray04; list-style: none; display: none; + @include box-shadow(0 4px 8px rgba(0,0,0,0.1)); + @include border-radius(0 0 5px 5px); + ul{ + @include border-radius(0 5px 5px 5px); + } li{ - @include border-shadow(#eee, $gray03); + @include border-shadow($background, $gray03); &:hover{ background: #d5d5d5; } &:first-of-type{ border-top: none; + ul{ + @include border-radius(0 0 5px 5px); + } } &:last-of-type{ border-bottom: none; } - a{ + >a{ + background: image-url('detail-sub.png') right center no-repeat; display: block; - padding: 5px 15px; - width: 100%; + padding: 5px 30px 5px 15px; &:hover{ color: $gray01; } + &:only-child{ + background: none; + padding-right: 15px; + } } } + ul{ + top: 0; + left: 100%; + } } li{ + position: relative; &:hover{ >ul{ display: block; |