2016-03-10 19:06:59 +01:00
|
|
|
/* ==========================================================================
|
|
|
|
NAVIGATION
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
/*
|
|
|
|
Breadcrumb navigation links
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
.breadcrumbs {
|
2016-03-15 17:34:14 +01:00
|
|
|
@include container;
|
|
|
|
@include clearfix;
|
2016-03-23 16:42:58 +01:00
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: 0;
|
2016-03-15 17:34:14 +01:00
|
|
|
padding-left: 2em;
|
|
|
|
padding-right: 2em;
|
2016-03-11 21:54:16 +01:00
|
|
|
font-family: $sans-serif;
|
2016-04-12 16:00:32 +02:00
|
|
|
animation: intro 0.3s both;
|
|
|
|
animation-delay: 0.30s;
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-23 16:06:58 +01:00
|
|
|
@include breakpoint($large) {
|
|
|
|
padding-left: 1em;
|
|
|
|
padding-right: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include breakpoint($x-large) {
|
|
|
|
max-width: $x-large;
|
|
|
|
}
|
|
|
|
|
2016-03-10 19:06:59 +01:00
|
|
|
ol {
|
|
|
|
padding: 0;
|
|
|
|
list-style: none;
|
2016-03-30 22:59:48 +02:00
|
|
|
font-size: $type-size-6;
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-23 16:06:58 +01:00
|
|
|
@include breakpoint($large) {
|
|
|
|
@include span(10 of 12 last);
|
|
|
|
}
|
|
|
|
|
|
|
|
@include breakpoint($x-large) {
|
|
|
|
@include prefix(0.5 of 12);
|
2016-03-15 17:34:14 +01:00
|
|
|
}
|
2016-03-10 19:06:59 +01:00
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-10 19:06:59 +01:00
|
|
|
li {
|
|
|
|
display: inline;
|
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-10 19:06:59 +01:00
|
|
|
.current {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
Post pagination navigation links
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
.pagination {
|
2016-03-30 05:13:00 +02:00
|
|
|
@include full();
|
|
|
|
@include clearfix();
|
2016-03-30 21:26:25 +02:00
|
|
|
margin-top: 1em;
|
|
|
|
padding-top: 1em;
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-10 19:06:59 +01:00
|
|
|
ul {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style-type: none;
|
2016-03-29 03:48:42 +02:00
|
|
|
font-family: $sans-serif;
|
2016-03-10 19:06:59 +01:00
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-10 19:06:59 +01:00
|
|
|
li {
|
2016-03-30 21:26:25 +02:00
|
|
|
display: block;
|
|
|
|
float: left;
|
|
|
|
margin-left: -1px;
|
|
|
|
|
|
|
|
a {
|
|
|
|
margin-bottom: 0.25em;
|
|
|
|
padding: 0.5em 1em;
|
|
|
|
font-family: $sans-serif;
|
|
|
|
font-size: 14px;
|
|
|
|
font-weight: bold;
|
|
|
|
line-height: 1.5;
|
|
|
|
text-align: center;
|
|
|
|
text-decoration: none;
|
|
|
|
color: mix(#fff, $gray, 25%);
|
|
|
|
border: 1px solid $light-gray;
|
|
|
|
border-radius: 0;
|
|
|
|
|
|
|
|
&:hover {
|
2016-04-06 20:46:35 +02:00
|
|
|
color: $link-color-hover;
|
2016-03-30 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&.current {
|
2016-04-01 22:08:22 +02:00
|
|
|
color: #fff;
|
|
|
|
background: $primary-color;
|
2016-03-30 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&.disabled {
|
|
|
|
color: $light-gray;
|
|
|
|
pointer-events: none;
|
|
|
|
cursor: not-allowed;
|
|
|
|
}
|
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-30 21:26:25 +02:00
|
|
|
&:first-child {
|
|
|
|
margin-left: 0;
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-30 21:26:25 +02:00
|
|
|
a {
|
|
|
|
border-top-left-radius: $border-radius;
|
|
|
|
border-bottom-left-radius: $border-radius;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
a {
|
|
|
|
border-top-right-radius: $border-radius;
|
|
|
|
border-bottom-right-radius: $border-radius;
|
|
|
|
}
|
|
|
|
}
|
2016-03-10 19:06:59 +01:00
|
|
|
}
|
2016-03-30 05:13:00 +02:00
|
|
|
|
|
|
|
/* next/previous buttons */
|
|
|
|
&--pager {
|
|
|
|
display: block;
|
|
|
|
padding: 1em 2em;
|
|
|
|
float: left;
|
|
|
|
width: 50%;
|
|
|
|
font-family: $sans-serif;
|
2016-03-30 22:59:48 +02:00
|
|
|
font-size: $type-size-5;
|
2016-03-30 05:13:00 +02:00
|
|
|
font-weight: bold;
|
|
|
|
text-align: center;
|
|
|
|
text-decoration: none;
|
|
|
|
color: mix(#fff, $gray, 25%);
|
|
|
|
border: 1px solid $light-gray;
|
|
|
|
border-radius: $border-radius;
|
2016-03-30 21:26:25 +02:00
|
|
|
|
2016-03-30 05:13:00 +02:00
|
|
|
&:hover {
|
2016-04-06 20:46:35 +02:00
|
|
|
color: $link-color-hover;
|
2016-03-30 05:13:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
margin-left: -1px;
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
}
|
2016-03-30 21:26:25 +02:00
|
|
|
|
|
|
|
&.disabled {
|
|
|
|
color: $light-gray;
|
|
|
|
pointer-events: none;
|
|
|
|
cursor: not-allowed;
|
|
|
|
}
|
2016-03-30 05:13:00 +02:00
|
|
|
}
|
2016-03-21 21:01:19 +01:00
|
|
|
}
|
|
|
|
|
2016-03-30 21:26:25 +02:00
|
|
|
.page__content + .pagination,
|
|
|
|
.page__meta + .pagination,
|
|
|
|
.page__share + .pagination,
|
|
|
|
.page__comments + .pagination {
|
|
|
|
margin-top: 2em;
|
|
|
|
padding-top: 2em;
|
|
|
|
border-top: 1px solid $border-color;
|
|
|
|
}
|
|
|
|
|
2016-03-21 21:01:19 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
Priority plus navigation
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
.greedy-nav {
|
|
|
|
position: relative;
|
|
|
|
min-width: 250px;
|
2016-03-30 05:13:00 +02:00
|
|
|
background: $background-color;
|
2016-03-21 21:01:19 +01:00
|
|
|
|
|
|
|
a {
|
|
|
|
display: block;
|
2016-04-04 03:23:24 +02:00
|
|
|
margin: 0 1rem;
|
|
|
|
padding: 0.5rem 0;
|
2016-04-05 21:18:05 +02:00
|
|
|
color: $masthead-link-color;
|
2016-03-21 21:01:19 +01:00
|
|
|
text-decoration: none;
|
2016-03-23 03:59:39 +01:00
|
|
|
|
|
|
|
&:hover {
|
2016-04-05 21:18:05 +02:00
|
|
|
color: $masthead-link-color-hover;
|
2016-03-23 03:59:39 +01:00
|
|
|
}
|
2016-03-21 21:01:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
button {
|
|
|
|
position: absolute;
|
|
|
|
height: 100%;
|
|
|
|
right: 0;
|
2016-04-04 03:23:24 +02:00
|
|
|
padding: 0 0.5rem;
|
2016-03-21 21:01:19 +01:00
|
|
|
border: 0;
|
|
|
|
outline: none;
|
2016-03-31 04:20:55 +02:00
|
|
|
background-color: $primary-color;
|
2016-03-21 21:01:19 +01:00
|
|
|
color: #fff;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.visible-links {
|
2016-04-04 03:23:24 +02:00
|
|
|
display: table;
|
2016-03-21 21:01:19 +01:00
|
|
|
|
|
|
|
li {
|
|
|
|
display: table-cell;
|
2016-04-04 03:23:24 +02:00
|
|
|
vertical-align: middle;
|
2016-03-21 21:01:19 +01:00
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
font-weight: bold;
|
2016-03-23 03:59:39 +01:00
|
|
|
|
2016-03-21 21:01:19 +01:00
|
|
|
a {
|
2016-03-23 03:59:39 +01:00
|
|
|
margin-left: 0;
|
2016-03-21 21:01:19 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
a {
|
2016-03-23 03:59:39 +01:00
|
|
|
margin-right: 0;
|
2016-03-21 21:01:19 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2016-03-23 03:59:39 +01:00
|
|
|
|
|
|
|
a {
|
2016-03-24 20:46:06 +01:00
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
height: 4px;
|
2016-04-05 21:18:05 +02:00
|
|
|
background: mix(#fff, $primary-color, 50%);
|
2016-03-24 20:46:06 +01:00
|
|
|
width: 0;
|
2016-04-05 21:18:05 +02:00
|
|
|
transition: $global-transition;
|
2016-03-24 20:46:06 +01:00
|
|
|
}
|
2016-03-23 03:59:39 +01:00
|
|
|
|
|
|
|
&:hover {
|
2016-03-24 20:46:06 +01:00
|
|
|
&:before {
|
|
|
|
width: 100%;
|
|
|
|
}
|
2016-03-23 03:59:39 +01:00
|
|
|
}
|
|
|
|
}
|
2016-03-21 21:01:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.hidden-links {
|
|
|
|
position: absolute;
|
|
|
|
top: 100%;
|
|
|
|
right: 0;
|
|
|
|
margin-top: 15px;
|
|
|
|
padding: 5px;
|
|
|
|
border: 1px solid $border-color;
|
|
|
|
border-radius: $border-radius;
|
|
|
|
background: #fff;
|
|
|
|
box-shadow: 0 0 10px rgba(#000, 0.25);
|
|
|
|
|
|
|
|
a {
|
2016-03-23 03:59:39 +01:00
|
|
|
margin: 0;
|
|
|
|
padding: 10px 20px;
|
2016-03-30 22:59:48 +02:00
|
|
|
font-size: $type-size-5;
|
2016-03-23 03:59:39 +01:00
|
|
|
|
|
|
|
&:hover {
|
2016-04-05 21:18:05 +02:00
|
|
|
color: $masthead-link-color-hover;
|
|
|
|
background: mix(#fff, $primary-color, 75%);
|
2016-03-23 03:59:39 +01:00
|
|
|
}
|
2016-03-21 21:01:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
top: -11px;
|
|
|
|
right: 10px;
|
|
|
|
width: 0;
|
|
|
|
border-style: solid;
|
|
|
|
border-width: 0 10px 10px;
|
|
|
|
border-color: $border-color transparent;
|
|
|
|
display: block;
|
|
|
|
z-index: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
top: -10px;
|
|
|
|
right: 10px;
|
|
|
|
width: 0;
|
|
|
|
border-style: solid;
|
|
|
|
border-width: 0 10px 10px;
|
|
|
|
border-color: #fff transparent;
|
|
|
|
display: block;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
li {
|
|
|
|
display: block;
|
|
|
|
border-bottom: 1px solid $border-color;
|
2016-03-23 03:59:39 +01:00
|
|
|
|
2016-03-21 21:01:19 +01:00
|
|
|
&:last-child {
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2016-03-25 19:50:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
Navigation list
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
.nav__list {
|
2016-03-31 04:20:55 +02:00
|
|
|
font-size: 1.25rem;
|
2016-03-30 22:59:48 +02:00
|
|
|
|
2016-04-01 03:41:00 +02:00
|
|
|
ul {
|
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
|
|
|
|
2016-03-25 19:50:59 +01:00
|
|
|
a {
|
|
|
|
display: block;
|
2016-03-31 04:20:55 +02:00
|
|
|
padding: 0.125em 0;
|
2016-04-06 03:37:16 +02:00
|
|
|
color: inherit;
|
2016-03-25 19:50:59 +01:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.active {
|
2016-04-01 03:41:00 +02:00
|
|
|
margin-left: -0.5em;
|
|
|
|
padding-left: 0.5em;
|
|
|
|
padding-right: 0.5em;
|
|
|
|
color: #fff;
|
2016-03-25 19:50:59 +01:00
|
|
|
font-weight: bold;
|
2016-04-01 03:41:00 +02:00
|
|
|
background: $primary-color;
|
|
|
|
border-radius: $border-radius;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: #fff;
|
|
|
|
}
|
2016-03-25 19:50:59 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav__title {
|
|
|
|
margin: 0;
|
2016-04-06 03:15:39 +02:00
|
|
|
padding: 0.5rem 1rem;
|
2016-03-25 19:50:59 +01:00
|
|
|
font-family: $sans-serif-narrow;
|
2016-03-30 22:59:48 +02:00
|
|
|
font-size: $type-size-5;
|
2016-03-25 19:50:59 +01:00
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav__sub-title {
|
|
|
|
display: block;
|
2016-04-06 03:15:39 +02:00
|
|
|
margin: 0.5rem 0;
|
|
|
|
padding: 0.5rem 0;
|
2016-03-25 19:50:59 +01:00
|
|
|
font-family: $sans-serif-narrow;
|
2016-04-01 03:41:00 +02:00
|
|
|
font-size: $type-size-6;
|
2016-03-25 19:50:59 +01:00
|
|
|
font-weight: bold;
|
2016-04-01 03:41:00 +02:00
|
|
|
text-transform: uppercase;
|
2016-03-25 19:50:59 +01:00
|
|
|
border-bottom: 1px solid $border-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
Table of contents navigation
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
.toc {
|
|
|
|
font-family: $sans-serif-narrow;
|
|
|
|
color: $gray;
|
|
|
|
text-transform: uppercase;
|
|
|
|
letter-spacing: 1px;
|
|
|
|
background-color: #fff;
|
2016-03-29 03:48:42 +02:00
|
|
|
border: 1px solid $border-color;
|
|
|
|
border-radius: $border-radius;
|
2016-04-01 03:41:00 +02:00
|
|
|
box-shadow: $box-shadow;
|
2016-04-01 04:00:06 +02:00
|
|
|
|
|
|
|
.nav__title {
|
|
|
|
color: #fff;
|
|
|
|
font-size: $type-size-6;
|
|
|
|
background: $primary-color;
|
|
|
|
border-top-left-radius: $border-radius;
|
|
|
|
border-top-right-radius: $border-radius;
|
|
|
|
}
|
2016-03-25 19:50:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.toc__menu {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
width: 100%;
|
|
|
|
list-style: none;
|
2016-04-01 04:00:06 +02:00
|
|
|
font-size: 0.8rem;
|
2016-03-25 19:50:59 +01:00
|
|
|
|
|
|
|
a {
|
|
|
|
display: block;
|
2016-04-06 03:15:39 +02:00
|
|
|
padding: 0.5rem 1rem;
|
2016-03-25 19:50:59 +01:00
|
|
|
color: $gray;
|
2016-04-01 04:00:06 +02:00
|
|
|
font-size: $type-size-7;
|
2016-03-25 19:50:59 +01:00
|
|
|
font-weight: bold;
|
|
|
|
line-height: 1.5;
|
|
|
|
border-bottom: 1px solid $border-color;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: #000;
|
|
|
|
background: $lighter-gray;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-04-01 03:41:00 +02:00
|
|
|
> li:last-child {
|
|
|
|
a {
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-03-25 19:50:59 +01:00
|
|
|
li ul > li a {
|
2016-04-06 03:15:39 +02:00
|
|
|
padding-left: 2rem;
|
2016-03-25 19:50:59 +01:00
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
// hide sub sub links on small screens
|
|
|
|
li > ul li {
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
@include breakpoint($medium) {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
2016-03-10 19:06:59 +01:00
|
|
|
}
|