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

73 lines
1.2 KiB
SCSS
Raw Normal View History

2013-10-09 12:30:53 +02:00
.navigation {
font-weight: $font-weight-bold;
text-transform: uppercase;
ul { @include padding-leader; }
2013-02-09 04:10:33 +01:00
2013-10-09 12:30:53 +02:00
li {
@include trailer(.5);
2013-02-09 04:10:33 +01:00
2013-10-09 12:30:53 +02:00
&:last-child { margin-bottom: 0; }
2013-02-09 04:10:33 +01:00
}
a {
2013-10-09 12:30:53 +02:00
@include padding-leader(.5);
@include padding-trailer(.5);
display: block;
padding: {
right: $gutter-width;
left: $gutter-width;
2013-10-09 12:30:53 +02:00
}
background: mix($color-background, $color-background-shade);
2013-10-09 12:30:53 +02:00
&:hover,
&:focus { background: $color-background-shade; }
}
2012-11-28 17:23:08 +01:00
2018-10-27 08:06:47 +02:00
@include sl-breakpoint--medium {
2013-10-12 17:51:13 +02:00
@include span(9 omega);
@include font-size-small;
2013-10-09 12:30:53 +02:00
background: none;
2012-11-28 17:23:08 +01:00
2013-10-12 17:51:13 +02:00
&.collapse { display: block !important; }
2013-02-09 04:10:33 +01:00
2013-10-09 12:30:53 +02:00
ul {
2018-10-27 08:06:47 +02:00
@extend %medium-clear-fix;
2013-10-12 17:51:13 +02:00
text-align: right;
white-space: nowrap;
2013-02-24 07:04:16 +01:00
}
2013-10-09 12:30:53 +02:00
li {
2018-10-27 08:06:47 +02:00
@include span(6);
2013-10-12 17:51:13 +02:00
float: none;
display: inline-block;
2013-02-24 07:04:16 +01:00
margin: {
2013-10-12 17:51:13 +02:00
right: 0;
2013-10-09 12:30:53 +02:00
bottom: 0;
2013-02-24 07:04:16 +01:00
}
2013-10-09 12:30:53 +02:00
width: auto;
2012-11-28 17:23:08 +01:00
2013-10-09 12:30:53 +02:00
&:nth-child(odd) {
2018-10-27 08:06:47 +02:00
@include omega;
2013-10-12 17:51:13 +02:00
float: none;
margin-right: 0;
2012-11-29 18:33:08 +01:00
}
2013-02-11 03:39:30 +01:00
2013-10-09 12:30:53 +02:00
&:last-child { margin-right: 0; }
2013-02-11 03:39:30 +01:00
2018-10-27 08:06:47 +02:00
a {
&,
&:hover,
&:focus { background: none; }
}
2013-10-09 12:30:53 +02:00
}
}
2018-10-27 08:06:47 +02:00
@include sl-breakpoint--large {
@include font-size-regular;
li { margin-left: $gutter-width; }
}
2013-10-09 12:30:53 +02:00
}