Vulcan/packages/telescope-theme-hubble/lib/client/scss/modules/_nav.scss
Anthony Mayer 77dd6ffba9 Adding nav client unit test
Added testing dependencies, added test case, removing unused nav code, and adding travis file
2015-01-02 21:27:09 +01:00

119 lines
No EOL
1.8 KiB
SCSS

.header{
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;
}
.primary-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;
a{
position: static;
}
}
@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;
}
}
.secondary-nav{
z-index: 20;
position: relative;
float:right;
.submit{
// background:$red;
// display:block;
// padding:0px 10px;
}
}
}
.sign-in{
margin-right: 10px;
}
.nav{
@include cf;
@extend %vcenter;
>li{
line-height: 2;
&:last-child{
margin-right: 0px;
}
>a, >div >a{
color:white;
font-size:15px;
font-weight:normal;
}
}
}
.search {
$compressed-width: 120px;
$expanded-width: 200px;
position: relative;
.search-field {
font-size: 14px;
padding: 4px 12px;
line-height: 1.3;
border-radius: 20px;
border: 0px;
width: $expanded-width;
transition: 0.2s all;
-webkit-appearance: textfield;
background: white;
&:focus {
outline: none;
}
}
&.empty {
.search-field {
width: $compressed-width;
background: white(0.1);
&:focus {
background: white;
width: $expanded-width;
}
}
}
}
.has-dropdown .user-menu .dropdown-menu{
left: auto;
right: 10px;
}
.has-dropdown .notifications-menu .dropdown-menu{
left: auto;
right: 10px;
}
.newsletter-dismiss{
line-height: 30px !important;
}