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

74 lines
1.3 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: {
top: 0;
bottom: 0;
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 {
li { border-bottom: 0; }
2013-02-11 00:04:29 +01:00
ul { @extend %horizontal-list-inline-small-tablet; }
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
}
}
}