2012-06-03 11:40:57 +00:00
|
|
|
$header-height: 30px;
|
|
|
|
|
|
|
|
#header{
|
|
|
|
height: $header-height;
|
|
|
|
padding: 30px 0;
|
|
|
|
border-bottom: 1px solid $color-gray04;
|
|
|
|
line-height: $header-height;
|
|
|
|
@media screen and (max-width: 1040px){
|
|
|
|
height: auto;
|
|
|
|
position: relative;
|
|
|
|
padding-bottom: 10px;
|
|
|
|
}
|
|
|
|
a{
|
|
|
|
color: $color-gray01;
|
|
|
|
@include transition(color 0.3s);
|
|
|
|
&:hover{
|
|
|
|
color: $color-main;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
h1{
|
|
|
|
float: left;
|
|
|
|
font-weight: 300;
|
|
|
|
font-size: 30px;
|
|
|
|
@media screen and (max-width: 1040px){
|
|
|
|
float: none;
|
|
|
|
}
|
|
|
|
}
|
2013-02-10 14:50:28 +00:00
|
|
|
}
|
|
|
|
#main-nav{
|
|
|
|
float: left;
|
|
|
|
margin-left: 30px;
|
|
|
|
@media screen and (max-width: 1040px){
|
|
|
|
float: none;
|
|
|
|
margin-left: 0;
|
|
|
|
margin-top: 15px;
|
|
|
|
}
|
|
|
|
>ul{
|
|
|
|
@media screen and (max-width: 600px){
|
|
|
|
display: none;
|
2012-06-03 11:40:57 +00:00
|
|
|
}
|
2013-02-10 14:50:28 +00:00
|
|
|
>li{
|
|
|
|
margin-left: 50px;
|
|
|
|
@include inline-block;
|
|
|
|
@media screen and (max-width: 1040px){
|
|
|
|
margin-left: 0;
|
|
|
|
margin-right: 50px;
|
|
|
|
&:last-of-type{
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
2012-06-03 11:40:57 +00:00
|
|
|
}
|
2013-02-10 14:50:28 +00:00
|
|
|
&:hover{
|
|
|
|
>a{
|
|
|
|
color: $color-main;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
>a{
|
|
|
|
padding: 38px 0;
|
|
|
|
margin-top: -38px;
|
|
|
|
&:after{
|
|
|
|
content: "\f078";
|
|
|
|
color: $color-gray03;
|
|
|
|
font: 12px $font-icon;
|
|
|
|
padding-left: 10px;
|
|
|
|
}
|
|
|
|
&:only-child{
|
|
|
|
&:after{
|
|
|
|
content: "";
|
2012-06-03 11:40:57 +00:00
|
|
|
}
|
|
|
|
}
|
2013-02-10 14:50:28 +00:00
|
|
|
@media screen and (max-width: 1040px){
|
|
|
|
padding: 18px 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ul{
|
|
|
|
position: absolute;
|
|
|
|
top: 60px;
|
|
|
|
left: -15px;
|
|
|
|
z-index: 10;
|
|
|
|
white-space: nowrap;
|
|
|
|
background: $color-gray04;
|
|
|
|
border: 1px solid $color-gray03;
|
|
|
|
list-style: none;
|
|
|
|
display: none;
|
|
|
|
@media screen and (max-width: 1040px){
|
|
|
|
top: 40px;
|
|
|
|
}
|
|
|
|
@include box-shadow(0 4px 8px rgba(0,0,0,0.1));
|
|
|
|
@include border-radius(0 0 5px 5px);
|
|
|
|
ul{
|
|
|
|
@include border-radius(0 5px 5px 5px);
|
|
|
|
}
|
|
|
|
li{
|
|
|
|
@include border-shadow($color-background, $color-gray03);
|
2012-06-03 11:40:57 +00:00
|
|
|
&:hover{
|
2013-02-10 14:50:28 +00:00
|
|
|
background: #d5d5d5;
|
|
|
|
}
|
|
|
|
&:first-of-type{
|
|
|
|
border-top: none;
|
|
|
|
ul{
|
|
|
|
@include border-radius(0 0 5px 5px);
|
2012-06-03 11:40:57 +00:00
|
|
|
}
|
|
|
|
}
|
2013-02-10 14:50:28 +00:00
|
|
|
&:last-of-type{
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
2012-06-03 11:40:57 +00:00
|
|
|
>a{
|
2013-02-10 14:50:28 +00:00
|
|
|
display: block;
|
|
|
|
padding: 5px 15px;
|
|
|
|
&:after{
|
|
|
|
content: "\f054";
|
|
|
|
color: $color-gray02;
|
|
|
|
font: 12px $font-icon;
|
|
|
|
padding-left: 10px;
|
|
|
|
}
|
|
|
|
&:hover{
|
|
|
|
color: $color-gray01;
|
2012-06-03 11:40:57 +00:00
|
|
|
}
|
|
|
|
&:only-child{
|
2013-02-10 14:50:28 +00:00
|
|
|
&:after{
|
|
|
|
content: "";
|
|
|
|
}
|
2012-06-03 11:40:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ul{
|
2013-02-10 14:50:28 +00:00
|
|
|
top: 0;
|
|
|
|
left: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
li{
|
|
|
|
position: relative;
|
|
|
|
&:hover{
|
|
|
|
>ul{
|
|
|
|
display: block;
|
2012-06-03 11:40:57 +00:00
|
|
|
}
|
2013-02-10 14:50:28 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
select{
|
|
|
|
display: none;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
@media screen and (max-width: 600px){
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#mobile-nav{
|
|
|
|
display: none;
|
|
|
|
height: 37px;
|
|
|
|
position: relative;
|
|
|
|
@media screen and (max-width: 600px){
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
a{
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
.button{
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
.container{
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.menu{
|
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
|
|
.button{
|
|
|
|
background: #f2f2f2;
|
|
|
|
border: 1px solid $color-gray04;
|
|
|
|
color: #999;
|
|
|
|
padding: 0 60px 0 10px;
|
|
|
|
position: relative;
|
|
|
|
@include border-radius(5px);
|
|
|
|
&:hover{
|
|
|
|
color: #999;
|
|
|
|
}
|
|
|
|
&.on{
|
|
|
|
color: #666;
|
|
|
|
@include border-radius(5px 5px 5px 0);
|
|
|
|
&:before{
|
|
|
|
content: "\f077";
|
2012-06-03 11:40:57 +00:00
|
|
|
}
|
2013-02-10 14:50:28 +00:00
|
|
|
}
|
|
|
|
&:before{
|
|
|
|
content: "\f078";
|
|
|
|
color: $color-gray04;
|
|
|
|
font: 16px $font-icon;
|
|
|
|
line-height: 30px;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 40px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.container{
|
|
|
|
background: #f2f2f2;
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
border-top: none;
|
|
|
|
position: absolute;
|
|
|
|
top: 31px;
|
|
|
|
z-index: 1;
|
|
|
|
@include border-radius(0 0 5px 5px);
|
|
|
|
ul{
|
|
|
|
list-style: none;
|
2012-06-03 11:40:57 +00:00
|
|
|
ul{
|
2013-02-10 14:50:28 +00:00
|
|
|
margin-left: 20px;
|
2012-06-03 11:40:57 +00:00
|
|
|
}
|
|
|
|
}
|
2013-02-10 14:50:28 +00:00
|
|
|
a{
|
|
|
|
padding: 0 10px;
|
2012-06-03 11:40:57 +00:00
|
|
|
}
|
|
|
|
}
|
2013-02-10 14:50:28 +00:00
|
|
|
}
|
|
|
|
.search{
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
.button{
|
|
|
|
background: $color-gray04;
|
|
|
|
width: 30px;
|
|
|
|
height: 30px;
|
|
|
|
position: absolute;
|
|
|
|
top: 1px;
|
|
|
|
right: -1px;
|
|
|
|
@include border-radius(0 5px 5px 0);
|
|
|
|
&:before{
|
|
|
|
content: "\f002";
|
|
|
|
color: #f2f2f2;
|
|
|
|
font: 20px $font-icon;
|
|
|
|
line-height: 30px;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 7px;
|
|
|
|
}
|
|
|
|
&.on{
|
|
|
|
background: $color-gray03;
|
|
|
|
&:before{
|
|
|
|
content: "\f00d";
|
|
|
|
}
|
2012-06-03 11:40:57 +00:00
|
|
|
}
|
|
|
|
}
|
2013-02-10 14:50:28 +00:00
|
|
|
.container{
|
|
|
|
position: absolute;
|
|
|
|
right: 51px;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
input[type="text"]{
|
|
|
|
background: #fff;
|
|
|
|
border: 1px solid $color-gray04;
|
|
|
|
border-right: none;
|
|
|
|
color: $color-gray02;
|
|
|
|
font: 13px $font-default;
|
|
|
|
height: 30px;
|
|
|
|
width: 100%;
|
|
|
|
padding: 0 10px;
|
|
|
|
@include border-radius(5px 0 0 5px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#sub-nav{
|
|
|
|
@media screen and (max-width: 1040px){
|
|
|
|
position: absolute;
|
|
|
|
top: 30px;
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
@media screen and (max-width: 600px){
|
|
|
|
display: none;
|
2012-06-03 11:40:57 +00:00
|
|
|
}
|
|
|
|
.search{
|
|
|
|
float: left;
|
|
|
|
margin-top: 1px;
|
2013-02-10 14:50:28 +00:00
|
|
|
position: relative;
|
2012-06-03 11:40:57 +00:00
|
|
|
@media screen and (max-width: 1040px){
|
|
|
|
float: none;
|
|
|
|
margin-top: 15px;
|
|
|
|
}
|
2013-02-10 14:50:28 +00:00
|
|
|
&:before{
|
|
|
|
content: "\f002";
|
|
|
|
color: $color-gray03;
|
|
|
|
font: 18px $font-icon;
|
|
|
|
line-height: 30px;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 125px;
|
2012-06-03 11:40:57 +00:00
|
|
|
}
|
|
|
|
input[type="text"]{
|
2013-02-10 14:50:28 +00:00
|
|
|
background: #f2f2f2;
|
2012-06-03 11:40:57 +00:00
|
|
|
color: $color-gray02;
|
|
|
|
border: 1px solid $color-gray04;
|
|
|
|
font: 13px $font-default;
|
|
|
|
padding: 6px 15px 6px 35px;
|
|
|
|
width: 100px;
|
|
|
|
@include transition(0.3s);
|
|
|
|
@include border-radius(15px);
|
|
|
|
&:focus, &:active{
|
2013-02-10 14:50:28 +00:00
|
|
|
background: #fff;
|
2012-06-03 11:40:57 +00:00
|
|
|
border-top: 1px solid $color-gray03;
|
|
|
|
color: $color-gray01;
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.social{
|
|
|
|
float: left;
|
|
|
|
margin-right: 15px;
|
|
|
|
@media screen and (max-width: 1040px){
|
|
|
|
float: none;
|
|
|
|
margin-right: 0;
|
|
|
|
a:last-of-type{
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
a{
|
|
|
|
@include border-radius(50%);
|
|
|
|
@include inline-block;
|
|
|
|
text-indent: -9999px;
|
|
|
|
margin-right: 15px;
|
|
|
|
opacity: 0.5;
|
|
|
|
@include square(28px);
|
|
|
|
@include transition(0.3s);
|
|
|
|
&:hover{
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
&.facebook{
|
|
|
|
background: image-url('social/facebook.png') center no-repeat #3B5998;
|
|
|
|
border: 1px solid #3B5998;
|
|
|
|
&:hover{
|
|
|
|
border: 1px solid darken(#3B5998, 10%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.google{
|
|
|
|
background: image-url('social/google.png') center no-repeat #C83D20;
|
|
|
|
border: 1px solid #C83D20;
|
|
|
|
&:hover{
|
|
|
|
border: 1px solid darken(#C83D20, 10%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.twitter{
|
|
|
|
background: image-url('social/twitter.png') center no-repeat #55CFF8;
|
|
|
|
border: 1px solid #55CFF8;
|
|
|
|
&:hover{
|
|
|
|
border: 1px solid darken(#55CFF8, 10%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.github{
|
|
|
|
background: image-url('social/github.png') center no-repeat rgb(175,182,202);
|
|
|
|
border: 1px solid rgb(175,182,202);
|
|
|
|
&:hover{
|
|
|
|
border: 1px solid darken(rgb(175,182,202), 10%);
|
|
|
|
}
|
|
|
|
}
|
2013-02-10 14:50:28 +00:00
|
|
|
&.coderwall{
|
|
|
|
background: image-url('social/coderwall.png') center no-repeat rgb(58,114,159);
|
|
|
|
border: 1px solid rgb(58,114,159);
|
|
|
|
&:hover{
|
|
|
|
border: 1px solid darken(rgb(58,114,159), 10%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.pinboard{
|
|
|
|
background: image-url('social/pinboard.png') center no-repeat rgb(0,102,200);
|
|
|
|
border: 1px solid rgb(58,114,159);
|
|
|
|
&:hover{
|
|
|
|
border: 1px solid darken(rgb(0,102,255), 10%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.linkedin{
|
|
|
|
background: image-url('social/linkedin.png') center no-repeat #005A87;
|
|
|
|
border: 1px solid #005A87;
|
|
|
|
&:hover{
|
|
|
|
border: 1px solid darken(#005A87, 10%);
|
|
|
|
}
|
|
|
|
}
|
2012-06-03 11:40:57 +00:00
|
|
|
&.pinterest{
|
|
|
|
background: image-url('social/pinterest.png') center no-repeat rgb(190,64,55);
|
|
|
|
border: 1px solid rgb(190,64,55);
|
|
|
|
&:hover{
|
|
|
|
border: 1px solid darken(rgb(190,64,55), 10%);
|
|
|
|
}
|
2013-09-06 22:15:18 +00:00
|
|
|
}
|
2012-06-03 11:40:57 +00:00
|
|
|
&.delicious{
|
|
|
|
background: image-url('social/delicious.png') center no-repeat rgb(50,113,203);
|
|
|
|
border: 1px solid rgb(50,113,203);
|
|
|
|
&:hover{
|
|
|
|
border: 1px solid darken(rgb(50,113,203), 10%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.rss{
|
2013-09-06 22:15:18 +00:00
|
|
|
background: image-url('social/rss.png') center no-repeat #ef7522;
|
|
|
|
border: 1px solid #ef7522;
|
|
|
|
&:hover{
|
|
|
|
border: 1px solid darken(#ef7522, 10%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.instagram{
|
|
|
|
background: image-url('social/instagram.png') center no-repeat rgb(64,110,149);
|
|
|
|
border: 1px solid rgb(64,110,149);
|
2012-06-03 11:40:57 +00:00
|
|
|
&:hover{
|
2013-09-06 22:15:18 +00:00
|
|
|
border: 1px solid darken(rgb(64,110,149), 10%);
|
2012-06-03 11:40:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|