Vulcan/packages/telescope-theme-hubble/lib/client/scss/modules/_nav.scss
2014-08-12 17:34:56 +09:00

193 lines
3.2 KiB
SCSS

// .header{
// background:url("../images/bg-black.png") top center;
// }
// @media only screen and (-webkit-min-device-pixel-ratio: 1.5){
// .header{
// background:url("../images/bg-black@2x.png") top center;
// background-size:10px 10px;
// }
// }
.header{
background:$highlight-color url("/img/bg-header.png") top center;
background-color:$highlight-color;
margin-bottom:$grid-margin;
position:relative;
height: 60px;
@include cf;
padding: 0 20px;
z-index: 100;
@include small{
padding: 0 10px;
}
.site-nav{
float:left;
z-index: 20;
position: relative;
}
.logo{
@extend %vcenter;
position:absolute;
display:block;
text-align:center;
color:white;
@include small{
font-size: 18px;
}
@include medium-large{
font-size:24px;
}
left: 0px;
right: 0px;
a, a:visited{
color:white;
}
}
.logo-image{
line-height: 1;
a{
display:inline-block;
background: no-repeat center center;
font: 0/0 a;
text-shadow: none;
color: transparent;
}
}
.user-nav{
z-index: 20;
position: relative;
float:right;
.submit{
// background:$red;
// display:block;
// padding:0px 10px;
}
}
}
.user-menu{
}
// @media only screen and (-webkit-min-device-pixel-ratio: 1.5){
// .header{
// // background-image:url("/img/bg-header@2x.png");
// // background-size: 10px 10px;
// .logo a{
// background-image: url('/img/logo@2x.png');
// background-size: 124px 37px;
// }
// }
// }
.auth-buttons{
@extend %vcenter;
z-index:20;
float:right;
margin-right: 10px;
#login-buttons{
position:relative;
line-height:26px;
.accounts-dialog{
@extend .popover;
}
.account-link{
display:block;
color:white !important;
margin-bottom:10px;
float:none;
}
a{
text-decoration:none;
color:$text;
}
a.login-link-text{
color:#fff;
font-weight:normal;
display:inline-block;
font-size: 15px;
padding: 0px 8px;
border-radius: 3px;
}
#login-buttons-password{
@extend .button;
float:none !important;
@include text-shadow(none);
width:auto;
line-height:1.5;
height:26px;
margin:10px 0 !important;
}
.login-header{
font-family:inherit;
height:26px;
margin-right:10px;
cursor:pointer;
color:white;
&:before{
color:white(0.5);
content:"Welcome, ";
}
}
#login-buttons-logout{
color:white;
// background:none;
border:none;
font-family:inherit;
font-size:inherit;
padding:0;
height:26px;
text-shadow:none;
}
}
}
.nav{
@include cf;
@extend %vcenter;
>li{
@include horizontal-list-item;
margin:0 10px 0 0;
line-height: 2;
&:last-child{
margin-right: 0px;
}
>a, >div >a{
color:white;
font-size:15px;
font-weight:normal;
&.intercom em{
&:before{
content:'(';
}
&:after{
content:')';
}
}
}
}
}
.search{
position: relative;
.search-field{
font-size: 14px;
padding: 4px 12px;
line-height: 1.3;
border-radius: 20px;
border: 0px;
width: 100px;
-webkit-transition: 0.2s all;
-moz-transition: 0.2s all;
background: white;
&:focus{
outline:none;
}
}
&.empty{
.search-field{
background: white(0.1);
&:focus{
background: white;
}
}
.search-clear{
display: none;
}
}
}