aa230616 |
body > nav {
position: relative;
background-color: $nav-bg; |
633b3389 |
@include background($nav-bg-front, $nav-bg-back); |
aa230616 |
border: {
top: 1px solid $nav-border-top;
bottom: 1px solid $nav-border-bottom; }
padding-top: .35em;
padding-bottom: .35em;
form {
@include background-clip(padding-box);
margin: 0; padding: 0;
.search { |
a20dc08e |
padding: .3em .5em 0; |
aa230616 |
font-size: .85em; |
b0405cc3 |
@extend .sans; |
a20dc08e |
line-height: 1.1em; |
aa230616 |
width: 95%;
@include border-radius(.5em);
@include background-clip(padding-box);
@include box-shadow(lighten($nav-bg, 2) 0 1px);
background-color: lighten($nav-bg, 15);
border: 1px solid $nav-border;
color: #888;
&:focus {
color: #444;
border-color: #80b1df;
@include box-shadow(#80b1df 0 0 4px, #80b1df 0 0 3px inset);
background-color: #fff;
outline: none;
}
}
} |
a9a901c1 |
fieldset[role=search]{ float: right; width: 48%; }
fieldset.mobile-nav{ float: left; width: 48%; |
aa230616 |
select{ width: 100%; font-size: .8em; border: 1px solid #888;}
}
ul { display: none; }
@media only screen and (min-width: 550px) {
font-size: .9em;
ul {
@include horizontal-list(0);
float: left;
display: block; |
353ccfd4 |
padding-top: .15em; |
aa230616 |
} |
27c736bf |
ul.subscription { |
aa230616 |
margin-left: .8em;
float: right;
li:last-child a { padding-right: 0; }
}
ul li {
margin: 0;
}
a {
@include link-colors($nav-color, $nav-color-hover, $visited: $nav-color);
@extend .sans;
text-shadow: lighten($nav-bg, 12) 0 1px;
float: left;
text-decoration: none; |
353ccfd4 |
font-size: 1.1em; |
aa230616 |
padding: .1em 0;
line-height: 1.5em;
}
li + li {
border-left: 1px solid $nav-border-left;
margin-left: .8em;
a {
padding-left: .8em;
border-left: 1px solid $nav-border-right;
}
}
form {
float: right;
text-align: left;
padding-left: .8em; |
a2ab1d48 |
width: $sidebar-width-medium - $pad-medium*2 - $sidebar-pad-medium + 20px; |
aa230616 |
.search {
width: 93%;
font-size: .95em;
line-height: 1.2em;
}
} |
814be44c |
ul[data-subscription$=email] + form { |
b0405cc3 |
width: $sidebar-width-medium - $pad-medium*2 - $sidebar-pad-medium - 58px; |
814be44c |
.search { width: 91%; }
} |
a9a901c1 |
fieldset.mobile-nav { display: none; }
fieldset[role=search]{ width: 99%; } |
aa230616 |
}
@media only screen and (min-width: 992px) {
form { |
a2ab1d48 |
width: $sidebar-width-wide - $pad-wide - $sidebar-pad-wide*2 + 10px; |
aa230616 |
} |
814be44c |
ul[data-subscription$=email] + form { |
b0405cc3 |
width: $sidebar-width-wide - $pad-wide - $sidebar-pad-wide*2 - 58px; |
814be44c |
} |
aa230616 |
}
} |
a20dc08e |
.no-placeholder {
body > nav .search {
background: lighten($nav-bg, 15) image-url('search.png') .3em .25em no-repeat;
text-indent: 1.3em;
}
} |
814be44c |
@mixin mask-subscription-nav($feed: 'rss.png'){
position: relative; top: 0px;
text-indent: -999999em;
background-color: $nav-border-right;
border: 0;
padding: 0;
&,&:after { @include mask-image($feed); }
&:after {
content: "";
position: absolute; top: -1px; left: 0;
background-color: lighten($nav-color, 25);
}
&:hover:after { background-color: lighten($nav-color, 20); }
} |
aa230616 |
.maskImage { |
814be44c |
body > nav {
@media only screen and (min-width: 550px) {
ul[data-subscription$=email] + form {
width: $sidebar-width-medium - $pad-medium*2 - $sidebar-pad-medium - 32px;
}
}
@media only screen and (min-width: 992px) {
ul[data-subscription$=email] + form {
width: $sidebar-width-wide - $pad-wide - $sidebar-pad-wide*2 - 32px;
} |
aa230616 |
}
} |
27c736bf |
ul.subscription { position: relative; top: .2em; li, a { border: 0; padding: 0; }} |
814be44c |
a[rel=subscribe-rss]{ @include mask-subscription-nav('rss.png'); }
a[rel=subscribe-email]{ @include mask-subscription-nav('email.png'); } |
aa230616 |
} |