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

191 lines
3 KiB
SCSS
Raw Normal View History

// 1. Neutral
// 2. Mobile (+see Base theme for mobile nav)
// 3. Desktop
// a. Top Nav
// b. Side nav
.header{
background-color:$highlight-color;
position:relative;
z-index: 100;
}
.logo{
a, a:visited{
color:white;
}
}
.sign-in{
margin-right: 10px;
}
.nav{
.top-nav &{
@extend %vcenter;
}
@include cf;
>li{
line-height: 2;
&:last-child{
margin-right: 0px;
}
>a, >div >a{
color:white;
font-size:15px;
font-weight:normal;
}
}
}
.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;
2015-03-20 16:46:33 +09:00
}
2015-03-22 12:27:05 +09:00
// ------------------------------------ Top Nav Layout ------------------------------------ //
.top-nav{
.header{
height: 60px;
padding: 0 10px;
margin-bottom:$grid-margin;
@include cf;
@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;
}
.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;
}
}
.header-submodule{
display: inline-block;
margin-right: 20px;
&:last-child{
margin-right: 0px;
}
}
}
// ------------------------------------ Side Nav Layout ------------------------------------ //
$nav-width: 250px;
2015-03-20 16:46:33 +09:00
.side-nav{
.inner-wrapper{
2015-03-22 11:56:06 +09:00
@include medium-large{
margin-left: $nav-width;
2015-03-23 10:32:56 +09:00
padding-top: 10px;
2015-03-22 11:56:06 +09:00
}
}
2015-03-20 16:46:33 +09:00
.header{
2015-03-22 11:56:06 +09:00
@include medium-large{
width: $nav-width;
position: fixed;
top: 0px;
bottom: 0px;
left: 0px;
height: 100%;
overflow-y: auto;
padding-bottom: 30px;
}
2015-03-21 18:43:35 +09:00
}
.logo{
2015-03-22 11:56:06 +09:00
@include medium-large{
margin-bottom: 30px;
}
2015-03-20 16:46:33 +09:00
}
.header-submodule{
2015-03-21 18:43:35 +09:00
margin-bottom: 30px;
}
.primary-nav{
display: flex;
flex-direction: column;
}
.search{
order: 1;
}
2015-03-23 10:32:56 +09:00
.categories-menu{
2015-03-21 18:43:35 +09:00
order: 2;
}
.dropdown-top-level{
cursor: default;
2015-03-21 18:43:35 +09:00
display: block;
padding-bottom: 5px;
2015-03-24 14:30:04 +09:00
position: relative;
/* note: we use a pseudo-element for the border so we can control the opacity indepdently from the color */
&:after{
content: " ";
display: block;
position: absolute;
width: 100%;
height: 1px;
background: currentColor;
bottom: 0px;
left: 0px;
opacity: 0.5;
}
2015-03-21 18:43:35 +09:00
}
.menu-label{
display: block;
}
.menu-description{
// display: block;
display: none;
font-weight: normal;
}
.account-link{
display: block;
font-weight: bold;
}
2015-03-23 11:28:36 +09:00
.account-link{
margin: 10px 0;
}
2015-03-21 18:43:35 +09:00
.tagline{
margin-top: 0px;
}
}