YDU/assets/stylesheets/template/layout/header.scss

192 lines
4.0 KiB
SCSS
Executable File

@charset "utf-8";
@import "../initial";
.top{
display: none;
@media (max-width : 767px){
display: block;
height: 136px;
}
}
.layout-header {
z-index: 1000 !important;
position:relative;
margin-bottom: 0;
border: none;
border-radius: 0;
@media (max-width : 767px){
position:fixed;
background-color: rgb(247,241,224);
top: 40px;
}
z-index: 1;
.container {
width: 1000px;
padding: 0;
// @extend .response-content;
@media (max-width : 1199px){
width: 100%;
}
}
.collapse.navbar-collapse.modules-menu{
padding: 0;
@media (max-width:767px) {
padding: 0 15px;
}
}
#main-nav{
text-align: center;
width:100%;
background: #d94444 url("/assets/menu_bg.png") center top repeat-x;
-webkit-border-radius: 4px 4px 0 0;
-moz-border-radius: 4px 4px 0 0;
border-radius: 4px 4px 0 0;
behavior: url("/assets/ie_support/PIE2/PIE.htc");
@media (max-width:985px) {
overflow: hidden;
border-radius: 0;
}
}
.header-nav {
margin-top: 20px;
background-color: #fae8b6;
padding: 8px;
color: #FFF;
font-family: $main-font;
float: right;
@media (max-width : 985px){
width: 100%;
}
ul{
padding: 0;
@media (max-width : 985px){
text-align: center;
width:100%;
}
}
li{
border-left: solid 1px #333;
display: inline-block;
@media (max-width : 985px){
border:0;
padding-bottom: 5px;
}
&:first-child{
border: 0;
}
a{
padding: 0 1px 0 5px;
font: 12px/1.5 'arial',sans-serif;
color:#333;
@media (max-width : 985px){
font-weight: bold;
}
}
}
& > * {
display: inline-block;
margin-top: 0;
margin-bottom: 0;
font-size: 0.8em;
color: #fff;
}
a {
color: #fff;
text-decoration: none;
}
@media (min-width: $screen-sm) {
text-align: right;
}
}
.navbar-header {
width: 100%;
padding: 0 ;
@media (max-width:767px) {
margin:0;
}
.navbar-toggle {
position: absolute;
right: 0;
padding: 14px 10px;
border-radius: 2px;
behavior: url("/assets/ie_support/PIE2/PIE.htc");
border-width: 2px;
border-color: lighten($theme-gray, 30%);
// &:hover {
// border-color: lighten($theme-gray, 45%);
// .icon-bar {
// background-color: lighten($theme-gray, 45%);
// transition: .2s all;
// }
// }
.icon-bar {
background-color: lighten($theme-gray, 30%);
}
&.collapsed {
.icon-bar-top {
top: 0;
transform: rotate(0);
}
.icon-bar-middle {
opacity: 1;
}
.icon-bar-bottom {
top: 0;
transform: rotate(0);
}
}
// icon bar animation
.icon-bar {
transition: .2s all;
position: relative;
}
.icon-bar-top {
top: 6px;
transform: rotate(45deg);
}
.icon-bar-middle {
opacity: 0;
}
.icon-bar-bottom {
top: -6px;
transform: rotate(-45deg);
}
}
.navbar-brand {
height: 34px;
margin: 8px 0;
padding-top: 0;
padding-bottom: 0;
line-height: 34px;
color: #FFF;
font-size: 1.4em;
font-family: $main-font;
@media (min-width: 986px) {
height: 60px;
margin: 0.5rem 0 0;
padding-left: 0;
line-height: 60px;
font-size: 1.5em;
}
@media(min-width : 768px) and (max-width : 985px) {
height: 34px;
}
.site-logo {
width: auto;
margin-right: 0.5em;
float: left;
@media (max-width:767px) {
width: 85%;
}
}
}
}
}