summaryrefslogtreecommitdiffstats
path: root/sass/parts
diff options
context:
space:
mode:
authorSkyArrow <tommy351@gmail.com>2012-01-24 18:14:46 +0100
committerSkyArrow <tommy351@gmail.com>2012-01-24 18:14:46 +0100
commit4ab58d4e816bc5e998a936cc1ae5361f2dc46dfe (patch)
tree47f80e5067ae5823aaae9a25562ca00d0ad9c55c /sass/parts
parent3780bd9f5f1978a85c1adb3a113f2eb0c6e8954b (diff)
downloadoctopress-theme-jeyzu-4ab58d4e816bc5e998a936cc1ae5361f2dc46dfe.zip
octopress-theme-jeyzu-4ab58d4e816bc5e998a936cc1ae5361f2dc46dfe.tar.gz
2-level menu
Diffstat (limited to 'sass/parts')
-rw-r--r--sass/parts/_header.scss52
1 files changed, 50 insertions, 2 deletions
diff --git a/sass/parts/_header.scss b/sass/parts/_header.scss
index 7c17a86..e792976 100644
--- a/sass/parts/_header.scss
+++ b/sass/parts/_header.scss
@@ -16,14 +16,62 @@ header{
}
nav{
margin-left: 30px;
- ul{
+ >ul{
list-style: none;
- li{
+ padding-right: 30px;
+ >li{
float: left;
margin-left: 50px;
+ position: relative;
+ >a{
+ padding: 35px 30px 35px 0;
+ margin-top: -35px;
+ background: image-url('detail.png') right center no-repeat;
+ &:only-child{
+ padding-right: 0;
+ background: none;
+ }
+ }
}
ul{
+ position: absolute;
+ top: 60px;
+ left: 0;
+ z-index: 10;
+ white-space: nowrap;
+ background: #ddd;
+ border: 1px solid #ccc;
+ border-radius: 0 0 5px 5px;
+ box-shadow: 0 4px 8px #DDDDDD;
+ list-style: none;
display: none;
+ li{
+ @include border-shadow(#eee, #ccc);
+ &:hover{
+ background: #d5d5d5;
+ }
+ &:first-of-type{
+ border-top: none;
+ }
+ &:last-of-type{
+ border-bottom: none;
+ }
+ a{
+ display: block;
+ padding: 5px 15px;
+ width: 100%;
+ &:hover{
+ color: #666;
+ }
+ }
+ }
+ }
+ li{
+ &:hover{
+ >ul{
+ display: block;
+ }
+ }
}
}
}