sass-site/source/assets/stylesheets/regions/_navigation.scss

95 lines
1.7 KiB
SCSS
Raw Normal View History

// ===========================================================================
// NAVIGATION
2013-02-09 04:10:33 +01:00
$navigation-background-color: $pale-sky !default;
$navigation-text-color: $iron !default;
$navigation-border-color: $regent-grey !default;
.navigation {
2013-02-09 04:10:33 +01:00
padding: {
top: 1em;
bottom: 1em;
}
2012-11-28 17:23:08 +01:00
background: $navigation-background-color;
color: $navigation-text-color;
2013-02-09 04:10:33 +01:00
@include text-shadow-dark;
a {
@extend %caps;
border: 0;
@include link(lighten($navigation-text-color, 5%),
lighten($navigation-text-color, 15%),
lighten($navigation-text-color, 25%));
}
}
2013-02-09 04:10:33 +01:00
// ---------------------------------------------------------------------------
// iPhone
2012-11-28 17:23:08 +01:00
2013-02-09 04:10:33 +01:00
@mixin navigation-iPhone {
.navigation {
2012-11-29 18:33:08 +01:00
display: none;
2013-02-09 04:10:33 +01:00
padding: {
2013-02-24 07:04:16 +01:00
top: .5em;
bottom: .5em;
2012-11-28 17:23:08 +01:00
}
li {
border-bottom: 1px solid $navigation-border-color;
2013-02-09 04:10:33 +01:00
&:last-child { border: 0; }
2012-11-28 17:23:08 +01:00
}
a {
2013-02-09 04:10:33 +01:00
@include tappable;
2012-11-28 17:23:08 +01:00
display: block;
}
}
2013-02-09 04:10:33 +01:00
}
2012-11-28 17:23:08 +01:00
2013-02-09 04:10:33 +01:00
// ---------------------------------------------------------------------------
// SMALL TABLET
@mixin navigation-small-tablet {
.navigation {
2013-02-24 07:04:16 +01:00
padding: {
top: 0;
bottom: 0;
}
2013-02-09 04:10:33 +01:00
li { border-bottom: 0; }
2013-02-11 03:39:30 +01:00
ul {
@extend %horizontal-list-inline-small-tablet;
2013-02-24 07:04:16 +01:00
margin: {
right: -$gutter-width;
left: -$gutter-width;
}
2013-02-11 03:39:30 +01:00
white-space: nowrap;
}
2012-11-28 17:23:08 +01:00
2012-11-29 18:33:08 +01:00
a {
2013-02-09 04:10:33 +01:00
padding: {
right: $gutter-width;
left: $gutter-width;
2012-11-29 18:33:08 +01:00
}
2012-11-28 17:23:08 +01:00
}
}
2013-02-11 03:39:30 +01:00
}
// ---------------------------------------------------------------------------
// iPad
@mixin navigation-iPad {
.navigation { display: block; }
}