Vulcan/packages/telescope-theme-hubble/lib/client/scss/modules/_nav.scss

194 lines
3.2 KiB
SCSS
Raw Normal View History

2012-08-25 11:20:17 +09:00
// .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{
2012-08-31 18:58:12 +09:00
background:$highlight-color url("/img/bg-header.png") top center;
background-color:$highlight-color;
2014-08-05 12:25:26 +09:00
margin-bottom:$grid-margin;
2012-08-25 11:20:17 +09:00
position:relative;
2014-07-09 09:46:24 +09:00
height: 60px;
2012-08-25 11:20:17 +09:00
@include cf;
2014-07-10 11:45:34 +09:00
padding: 0 20px;
z-index: 100;
@include small{
padding: 0 10px;
}
2012-08-25 11:20:17 +09:00
.site-nav{
float:left;
2014-07-11 10:38:21 +09:00
z-index: 20;
position: relative;
2012-08-25 11:20:17 +09:00
}
.logo{
2014-07-10 11:45:34 +09:00
@extend %vcenter;
2012-08-25 11:20:17 +09:00
position:absolute;
2014-07-09 09:46:24 +09:00
display:block;
2012-09-29 18:09:00 +09:00
text-align:center;
2012-09-29 12:28:51 +09:00
color:white;
2014-07-14 11:25:27 +09:00
@include small{
font-size: 18px;
}
@include medium-large{
font-size:24px;
}
2014-07-11 10:48:52 +09:00
left: 0px;
right: 0px;
2012-09-29 12:28:51 +09:00
a, a:visited{
color:white;
}
2014-08-12 17:34:56 +09:00
}
.logo-image{
line-height: 1;
a{
display:inline-block;
background: no-repeat center center;
font: 0/0 a;
text-shadow: none;
color: transparent;
2012-08-25 11:20:17 +09:00
}
}
.user-nav{
2014-07-11 10:38:21 +09:00
z-index: 20;
position: relative;
2012-08-25 11:20:17 +09:00
float:right;
.submit{
2012-08-31 18:58:12 +09:00
// background:$red;
// display:block;
// padding:0px 10px;
}
}
}
.user-menu{
2012-08-31 18:58:12 +09:00
}
2012-09-05 10:27:10 +09:00
// @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;
// }
// }
// }
2012-09-05 09:55:09 +09:00
.auth-buttons{
2014-07-10 11:45:34 +09:00
@extend %vcenter;
2012-09-29 18:09:00 +09:00
z-index:20;
2012-09-05 09:55:09 +09:00
float:right;
2014-07-10 11:45:34 +09:00
margin-right: 10px;
2012-09-05 09:55:09 +09:00
#login-buttons{
position:relative;
2012-09-05 10:13:13 +09:00
line-height:26px;
2012-09-05 09:55:09 +09:00
.accounts-dialog{
@extend .popover;
}
2012-10-18 14:51:15 +09:00
.account-link{
display:block;
color:white !important;
margin-bottom:10px;
float:none;
}
2012-09-05 09:55:09 +09:00
a{
text-decoration:none;
color:$text;
}
a.login-link-text{
color:#fff;
font-weight:normal;
display:inline-block;
2014-07-09 09:46:24 +09:00
font-size: 15px;
2014-07-10 11:45:34 +09:00
padding: 0px 8px;
border-radius: 3px;
2012-09-05 09:55:09 +09:00
}
#login-buttons-password{
@extend .button;
float:none !important;
@include text-shadow(none);
width:auto;
line-height:1.5;
height:26px;
margin:10px 0 !important;
2012-09-05 10:13:13 +09:00
}
.login-header{
font-family:inherit;
height:26px;
2012-09-19 09:03:25 +09:00
margin-right:10px;
cursor:pointer;
2013-11-14 23:01:59 -05:00
color:white;
2012-09-05 10:13:13 +09:00
&:before{
2012-09-19 09:03:25 +09:00
color:white(0.5);
2012-09-05 10:13:13 +09:00
content:"Welcome, ";
2012-09-05 09:55:09 +09:00
}
2012-09-05 10:13:13 +09:00
}
#login-buttons-logout{
color:white;
2012-10-18 14:24:36 +09:00
// background:none;
2012-09-05 10:13:13 +09:00
border:none;
font-family:inherit;
font-size:inherit;
padding:0;
height:26px;
2012-09-19 09:03:25 +09:00
text-shadow:none;
2012-09-05 10:13:13 +09:00
}
2012-09-05 09:55:09 +09:00
}
2012-12-21 18:47:06 +01:00
}
.nav{
2012-12-22 11:02:53 +01:00
@include cf;
2014-07-10 11:45:34 +09:00
@extend %vcenter;
2012-12-22 11:02:53 +01:00
>li{
@include horizontal-list-item;
margin:0 10px 0 0;
line-height: 2;
2014-07-10 11:45:34 +09:00
&:last-child{
margin-right: 0px;
}
2014-06-23 11:46:12 +09:00
>a, >div >a{
2012-12-22 11:02:53 +01:00
color:white;
2014-07-09 09:46:24 +09:00
font-size:15px;
2012-12-22 11:02:53 +01:00
font-weight:normal;
2012-12-21 18:47:06 +01:00
2012-12-22 11:02:53 +01:00
&.intercom em{
&:before{
content:'(';
}
&:after{
content:')';
2012-12-21 18:47:06 +01:00
}
}
}
2012-12-22 11:02:53 +01:00
}
2013-11-14 23:01:59 -05:00
}
2013-11-15 15:29:39 +09:00
.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;
2013-11-15 15:29:39 +09:00
background: white;
&:focus{
outline:none;
}
}
&.empty{
.search-field{
background: white(0.1);
&:focus{
background: white;
}
}
.search-clear{
display: none;
}
}
}