2016-03-10 19:06:59 +01:00
|
|
|
/* ==========================================================================
|
|
|
|
NAVIGATION
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
/*
|
|
|
|
Breadcrumb navigation links
|
|
|
|
========================================================================== */
|
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
.breadcrumbs {
|
|
|
|
@include clearfix;
|
|
|
|
margin: 0 auto;
|
|
|
|
max-width: 100%;
|
2018-10-29 13:55:05 +01:00
|
|
|
padding-left: 1em;
|
|
|
|
padding-right: 1em;
|
2017-12-07 14:56:14 +01:00
|
|
|
font-family: $sans-serif;
|
|
|
|
-webkit-animation: $intro-transition;
|
|
|
|
animation: $intro-transition;
|
|
|
|
-webkit-animation-delay: 0.3s;
|
|
|
|
animation-delay: 0.3s;
|
|
|
|
|
|
|
|
@include breakpoint($x-large) {
|
|
|
|
max-width: $x-large;
|
|
|
|
}
|
2016-03-10 19:06:59 +01:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
ol {
|
|
|
|
padding: 0;
|
|
|
|
list-style: none;
|
|
|
|
font-size: $type-size-6;
|
2016-03-10 19:06:59 +01:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
@include breakpoint($large) {
|
|
|
|
float: right;
|
2018-10-29 13:55:05 +01:00
|
|
|
width: calc(100% - #{$right-sidebar-width-narrow});
|
2017-09-12 18:01:43 +02:00
|
|
|
}
|
2016-03-10 19:06:59 +01:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
@include breakpoint($x-large) {
|
2018-10-29 13:55:05 +01:00
|
|
|
width: calc(100% - #{$right-sidebar-width});
|
2017-09-12 18:01:43 +02:00
|
|
|
}
|
2017-12-07 14:56:14 +01:00
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
li {
|
|
|
|
display: inline;
|
2016-03-10 19:06:59 +01:00
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
.current {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
2017-09-12 18:01:43 +02:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
/*
|
2017-09-12 18:01:43 +02:00
|
|
|
Post pagination navigation links
|
|
|
|
========================================================================== */
|
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
.pagination {
|
|
|
|
@include clearfix();
|
|
|
|
float: left;
|
|
|
|
margin-top: 1em;
|
|
|
|
padding-top: 1em;
|
|
|
|
width: 100%;
|
2017-09-12 18:01:43 +02:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
ul {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style-type: none;
|
|
|
|
font-family: $sans-serif;
|
|
|
|
}
|
2017-09-12 18:01:43 +02:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
li {
|
|
|
|
display: block;
|
|
|
|
float: left;
|
|
|
|
margin-left: -1px;
|
2017-09-12 18:01:43 +02:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
a {
|
2017-09-12 18:01:43 +02:00
|
|
|
display: block;
|
2017-12-07 14:56:14 +01:00
|
|
|
margin-bottom: 0.25em;
|
|
|
|
padding: 0.5em 1em;
|
2016-03-30 21:26:25 +02:00
|
|
|
font-family: $sans-serif;
|
2017-12-07 14:56:14 +01:00
|
|
|
font-size: 14px;
|
2016-03-30 21:26:25 +02:00
|
|
|
font-weight: bold;
|
2017-12-07 14:56:14 +01:00
|
|
|
line-height: 1.5;
|
2016-03-30 21:26:25 +02:00
|
|
|
text-align: center;
|
|
|
|
text-decoration: none;
|
2017-09-12 18:01:43 +02:00
|
|
|
color: $muted-text-color;
|
|
|
|
border: 1px solid mix(#000, $border-color, 25%);
|
2017-12-07 14:56:14 +01:00
|
|
|
border-radius: 0;
|
2016-03-30 21:26:25 +02:00
|
|
|
|
|
|
|
&:hover {
|
2017-12-07 14:56:14 +01:00
|
|
|
color: $link-color-hover;
|
2017-09-12 18:01:43 +02:00
|
|
|
}
|
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
&.current,
|
|
|
|
&.current.disabled {
|
|
|
|
color: #fff;
|
|
|
|
background: $primary-color;
|
2016-03-30 21:26:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&.disabled {
|
2017-09-12 18:01:43 +02:00
|
|
|
color: rgba($muted-text-color, 0.5);
|
2016-03-30 21:26:25 +02:00
|
|
|
pointer-events: none;
|
|
|
|
cursor: not-allowed;
|
|
|
|
}
|
|
|
|
}
|
2017-12-07 14:56:14 +01:00
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
margin-left: 0;
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
2017-09-12 18:01:43 +02:00
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
/* next/previous buttons */
|
|
|
|
&--pager {
|
|
|
|
display: block;
|
|
|
|
padding: 1em 2em;
|
|
|
|
float: left;
|
|
|
|
width: 50%;
|
|
|
|
font-family: $sans-serif;
|
|
|
|
font-size: $type-size-5;
|
|
|
|
font-weight: bold;
|
|
|
|
text-align: center;
|
|
|
|
text-decoration: none;
|
|
|
|
color: $muted-text-color;
|
|
|
|
border: 1px solid mix(#000, $border-color, 25%);
|
|
|
|
border-radius: $border-radius;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
@include yiq-contrasted($muted-text-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
&: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;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.disabled {
|
|
|
|
color: rgba($muted-text-color, 0.5);
|
|
|
|
pointer-events: none;
|
|
|
|
cursor: not-allowed;
|
|
|
|
}
|
2017-09-12 18:01:43 +02:00
|
|
|
}
|
2017-12-07 14:56:14 +01:00
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2017-12-07 14:56:14 +01: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-30 21:26:25 +02:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
/*
|
2017-09-12 18:01:43 +02:00
|
|
|
Priority plus navigation
|
|
|
|
========================================================================== */
|
2016-03-30 05:13:00 +02:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
.greedy-nav {
|
|
|
|
position: relative;
|
|
|
|
display: -webkit-box;
|
2018-08-09 21:06:00 +02:00
|
|
|
display: -ms-flexbox;
|
2017-12-07 14:56:14 +01:00
|
|
|
display: flex;
|
|
|
|
-webkit-box-align: center;
|
2018-08-09 21:06:00 +02:00
|
|
|
-ms-flex-align: center;
|
2017-12-07 14:56:14 +01:00
|
|
|
align-items: center;
|
2018-08-09 21:06:00 +02:00
|
|
|
min-height: $nav-height;
|
2017-12-07 14:56:14 +01:00
|
|
|
background: $background-color;
|
2016-03-30 21:26:25 +02:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
a {
|
|
|
|
display: block;
|
|
|
|
margin: 0 1rem;
|
|
|
|
color: $masthead-link-color;
|
|
|
|
text-decoration: none;
|
2016-03-30 05:13:00 +02:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
&:hover {
|
|
|
|
color: $masthead-link-color-hover;
|
|
|
|
}
|
2016-03-30 05:13:00 +02:00
|
|
|
|
2019-01-15 15:07:56 +01:00
|
|
|
&.site-logo {
|
|
|
|
margin-left: 0;
|
|
|
|
margin-right: 0.5rem;
|
|
|
|
}
|
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
&.site-title {
|
|
|
|
margin-left: 0;
|
2016-03-30 05:13:00 +02:00
|
|
|
}
|
2017-12-07 14:56:14 +01:00
|
|
|
}
|
2016-03-30 21:26:25 +02:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
&__toggle {
|
2018-08-10 14:54:56 +02:00
|
|
|
-ms-flex-item-align: center;
|
|
|
|
align-self: center;
|
|
|
|
height: $nav-toggle-height;
|
2017-12-07 14:56:14 +01:00
|
|
|
border: 0;
|
|
|
|
outline: none;
|
2018-11-26 02:20:03 +01:00
|
|
|
background-color: transparent;
|
2017-12-07 14:56:14 +01:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.visible-links {
|
|
|
|
display: -webkit-box;
|
2018-08-09 21:06:00 +02:00
|
|
|
display: -ms-flexbox;
|
2017-12-07 14:56:14 +01:00
|
|
|
display: flex;
|
|
|
|
-webkit-box-pack: end;
|
2018-08-09 21:06:00 +02:00
|
|
|
-ms-flex-pack: end;
|
2017-12-07 14:56:14 +01:00
|
|
|
justify-content: flex-end;
|
|
|
|
-webkit-box-flex: 1;
|
2018-08-09 21:06:00 +02:00
|
|
|
-ms-flex: 1;
|
2017-12-07 14:56:14 +01:00
|
|
|
flex: 1;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
li {
|
|
|
|
-webkit-box-flex: 0;
|
2018-08-09 21:06:00 +02:00
|
|
|
-ms-flex: none;
|
2017-12-07 14:56:14 +01:00
|
|
|
flex: none;
|
2016-03-30 21:26:25 +02:00
|
|
|
}
|
2016-03-21 21:01:19 +01:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
a {
|
|
|
|
position: relative;
|
2016-03-23 03:59:39 +01:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
&:before {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
bottom: 0;
|
|
|
|
height: 4px;
|
|
|
|
background: $primary-color;
|
|
|
|
width: 100%;
|
|
|
|
-webkit-transition: $global-transition;
|
|
|
|
transition: $global-transition;
|
|
|
|
-webkit-transform: scaleX(0) translate3d(0, 0, 0);
|
2018-08-09 21:06:00 +02:00
|
|
|
transform: scaleX(0) translate3d(0, 0, 0); // hide
|
2017-12-07 14:56:14 +01:00
|
|
|
}
|
2017-02-14 04:15:57 +01:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
&:hover:before {
|
|
|
|
-webkit-transform: scaleX(1);
|
|
|
|
-ms-transform: scaleX(1);
|
2018-08-09 21:06:00 +02:00
|
|
|
transform: scaleX(1); // reveal
|
2017-09-12 18:01:43 +02:00
|
|
|
}
|
2017-02-14 04:15:57 +01:00
|
|
|
}
|
2017-12-07 14:56:14 +01:00
|
|
|
}
|
2016-03-21 21:01:19 +01:00
|
|
|
|
2017-12-07 14:56:14 +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: $background-color;
|
2018-08-09 21:06:00 +02:00
|
|
|
-webkit-box-shadow: 0 2px 4px 0 rgba(#000, 0.16),
|
|
|
|
0 2px 10px 0 rgba(#000, 0.12);
|
2017-12-07 14:56:14 +01:00
|
|
|
box-shadow: 0 2px 4px 0 rgba(#000, 0.16), 0 2px 10px 0 rgba(#000, 0.12);
|
2016-03-21 21:01:19 +01:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
&.hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
2016-03-21 21:01:19 +01:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
a {
|
|
|
|
margin: 0;
|
|
|
|
padding: 10px 20px;
|
|
|
|
font-size: $type-size-5;
|
2016-03-21 21:01:19 +01:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
&:hover {
|
|
|
|
color: $masthead-link-color-hover;
|
|
|
|
background: $navicon-link-color-hover;
|
2016-03-21 21:01:19 +01:00
|
|
|
}
|
2017-12-07 14:56:14 +01:00
|
|
|
}
|
2016-03-24 20:46:06 +01:00
|
|
|
|
2017-12-07 14:56:14 +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;
|
|
|
|
}
|
2016-03-23 03:59:39 +01:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
&:after {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
top: -10px;
|
|
|
|
right: 10px;
|
|
|
|
width: 0;
|
|
|
|
border-style: solid;
|
|
|
|
border-width: 0 10px 10px;
|
|
|
|
border-color: $background-color transparent;
|
|
|
|
display: block;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
2016-03-21 21:01:19 +01:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
li {
|
|
|
|
display: block;
|
|
|
|
border-bottom: 1px solid $border-color;
|
2016-03-21 21:01:19 +01:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
&:last-child {
|
|
|
|
border-bottom: none;
|
2016-03-23 03:59:39 +01:00
|
|
|
}
|
2016-03-21 21:01:19 +01:00
|
|
|
}
|
2017-09-12 18:01:43 +02:00
|
|
|
}
|
2017-12-07 14:56:14 +01:00
|
|
|
}
|
2016-03-21 21:01:19 +01:00
|
|
|
|
2018-01-09 19:56:09 +01:00
|
|
|
.no-js {
|
|
|
|
.greedy-nav {
|
|
|
|
.visible-links {
|
|
|
|
-ms-flex-wrap: wrap;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
overflow: visible;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
/*
|
2017-09-12 18:01:43 +02:00
|
|
|
Navigation list
|
|
|
|
========================================================================== */
|
2016-03-21 21:01:19 +01:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
.nav__list {
|
|
|
|
margin-bottom: 1.5em;
|
2016-03-23 03:59:39 +01:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
input[type="checkbox"],
|
|
|
|
label {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2018-09-05 21:29:45 +02:00
|
|
|
@include breakpoint(max-width $large - 1px) {
|
2017-09-12 18:01:43 +02:00
|
|
|
label {
|
2017-12-07 14:56:14 +01:00
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
|
|
|
padding: 0.5em 2.5em 0.5em 1em;
|
|
|
|
color: $gray;
|
|
|
|
font-size: $type-size-6;
|
|
|
|
font-weight: bold;
|
|
|
|
border: 1px solid $light-gray;
|
|
|
|
border-radius: $border-radius;
|
|
|
|
z-index: 20;
|
|
|
|
-webkit-transition: 0.2s ease-out;
|
|
|
|
transition: 0.2s ease-out;
|
|
|
|
cursor: pointer;
|
2016-03-25 19:50:59 +01:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
&:before,
|
|
|
|
&:after {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
right: 1em;
|
|
|
|
top: 1.25em;
|
|
|
|
width: 0.75em;
|
|
|
|
height: 0.125em;
|
|
|
|
line-height: 1;
|
|
|
|
background-color: $gray;
|
2017-09-12 18:01:43 +02:00
|
|
|
-webkit-transition: 0.2s ease-out;
|
|
|
|
transition: 0.2s ease-out;
|
2017-12-07 14:56:14 +01:00
|
|
|
}
|
2016-04-01 03:41:00 +02:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
&:after {
|
|
|
|
-webkit-transform: rotate(90deg);
|
|
|
|
-ms-transform: rotate(90deg);
|
|
|
|
transform: rotate(90deg);
|
2017-09-12 18:01:43 +02:00
|
|
|
}
|
2016-03-25 19:50:59 +01:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
&:hover {
|
|
|
|
color: #fff;
|
|
|
|
border-color: $gray;
|
2017-09-12 18:01:43 +02:00
|
|
|
background-color: mix(white, #000, 20%);
|
2016-11-17 21:06:07 +01:00
|
|
|
|
2017-09-12 18:01:43 +02:00
|
|
|
&:before,
|
|
|
|
&:after {
|
|
|
|
background-color: #fff;
|
|
|
|
}
|
2016-11-17 21:13:25 +01:00
|
|
|
}
|
2017-12-07 14:56:14 +01:00
|
|
|
}
|
2016-11-17 21:13:25 +01:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
/* selected*/
|
|
|
|
input:checked + label {
|
|
|
|
color: white;
|
|
|
|
background-color: mix(white, #000, 20%);
|
2016-11-17 21:13:25 +01:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
&:before,
|
|
|
|
&:after {
|
|
|
|
background-color: #fff;
|
2016-11-17 21:06:07 +01:00
|
|
|
}
|
2017-12-07 14:56:14 +01:00
|
|
|
}
|
2016-11-17 21:06:07 +01:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
/* on hover show expand*/
|
|
|
|
label:hover:after {
|
|
|
|
-webkit-transform: rotate(90deg);
|
|
|
|
-ms-transform: rotate(90deg);
|
|
|
|
transform: rotate(90deg);
|
|
|
|
}
|
2016-11-17 21:13:25 +01:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
input:checked + label:hover:after {
|
|
|
|
-webkit-transform: rotate(0);
|
|
|
|
-ms-transform: rotate(0);
|
|
|
|
transform: rotate(0);
|
2016-11-17 21:13:25 +01:00
|
|
|
}
|
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
ul {
|
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
2016-11-17 21:13:25 +01:00
|
|
|
|
2017-09-12 18:01:43 +02:00
|
|
|
a {
|
2017-12-07 14:56:14 +01:00
|
|
|
display: block;
|
|
|
|
padding: 0.25em 0;
|
2016-11-17 21:06:07 +01:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
@include breakpoint($large) {
|
|
|
|
padding-top: 0.125em;
|
|
|
|
padding-bottom: 0.125em;
|
|
|
|
}
|
2016-11-17 21:06:07 +01:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
&:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2016-03-25 19:50:59 +01:00
|
|
|
}
|
|
|
|
}
|
2017-12-07 14:56:14 +01:00
|
|
|
}
|
2016-11-17 22:00:12 +01:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
.nav__list .nav__items {
|
|
|
|
margin: 0;
|
|
|
|
font-size: 1.25rem;
|
2016-03-25 19:50:59 +01:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
a {
|
|
|
|
color: inherit;
|
2016-03-25 19:50:59 +01:00
|
|
|
}
|
2016-11-17 21:43:28 +01:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
.active {
|
|
|
|
margin-left: -0.5em;
|
|
|
|
padding-left: 0.5em;
|
|
|
|
padding-right: 0.5em;
|
2017-09-12 18:01:43 +02:00
|
|
|
font-weight: bold;
|
2016-11-17 21:06:07 +01:00
|
|
|
}
|
2016-03-25 19:50:59 +01:00
|
|
|
|
2018-09-05 21:29:45 +02:00
|
|
|
@include breakpoint(max-width $large - 1px) {
|
2017-12-07 14:56:14 +01:00
|
|
|
position: relative;
|
|
|
|
max-height: 0;
|
|
|
|
opacity: 0%;
|
|
|
|
overflow: hidden;
|
|
|
|
z-index: 10;
|
|
|
|
-webkit-transition: 0.3s ease-in-out;
|
|
|
|
transition: 0.3s ease-in-out;
|
|
|
|
-webkit-transform: translate(0, 10%);
|
|
|
|
-ms-transform: translate(0, 10%);
|
|
|
|
transform: translate(0, 10%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-09-05 21:29:45 +02:00
|
|
|
@include breakpoint(max-width $large - 1px) {
|
2017-12-07 14:56:14 +01:00
|
|
|
.nav__list input:checked ~ .nav__items {
|
|
|
|
-webkit-transition: 0.5s ease-in-out;
|
|
|
|
transition: 0.5s ease-in-out;
|
|
|
|
max-height: 9999px; /* exaggerate max-height to accommodate tall lists*/
|
|
|
|
overflow: visible;
|
|
|
|
opacity: 1;
|
|
|
|
margin-top: 1em;
|
|
|
|
-webkit-transform: translate(0, 0);
|
|
|
|
-ms-transform: translate(0, 0);
|
|
|
|
transform: translate(0, 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav__title {
|
|
|
|
margin: 0;
|
2018-11-26 01:52:52 +01:00
|
|
|
padding: 0.5rem 0.75rem;
|
2017-12-07 14:56:14 +01:00
|
|
|
font-family: $sans-serif-narrow;
|
|
|
|
font-size: $type-size-5;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav__sub-title {
|
|
|
|
display: block;
|
|
|
|
margin: 0.5rem 0;
|
2018-08-15 15:32:55 +02:00
|
|
|
padding: 0.25rem 0;
|
2017-12-07 14:56:14 +01:00
|
|
|
font-family: $sans-serif-narrow;
|
|
|
|
font-size: $type-size-6;
|
|
|
|
font-weight: bold;
|
|
|
|
text-transform: uppercase;
|
|
|
|
border-bottom: 1px solid $border-color;
|
|
|
|
}
|
2016-03-25 19:50:59 +01:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
/*
|
2017-09-12 18:01:43 +02:00
|
|
|
Table of contents navigation
|
|
|
|
========================================================================== */
|
2016-03-25 19:50:59 +01:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
.toc {
|
|
|
|
font-family: $sans-serif-narrow;
|
|
|
|
color: $gray;
|
|
|
|
background-color: $background-color;
|
|
|
|
border: 1px solid $border-color;
|
|
|
|
border-radius: $border-radius;
|
2018-08-09 21:06:00 +02:00
|
|
|
-webkit-box-shadow: $box-shadow;
|
2017-12-07 14:56:14 +01:00
|
|
|
box-shadow: $box-shadow;
|
2016-04-01 04:00:06 +02:00
|
|
|
|
2017-12-07 14:56:14 +01: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-04-01 04:00:06 +02:00
|
|
|
}
|
2019-01-04 18:29:13 +01:00
|
|
|
|
|
|
|
// Scrollspy marks toc items as .active when they are in focus
|
2019-04-03 22:08:00 +02:00
|
|
|
.active a {
|
2019-01-04 21:46:01 +01:00
|
|
|
@include yiq-contrasted($active-color);
|
2019-01-04 18:29:13 +01:00
|
|
|
}
|
2017-12-07 14:56:14 +01:00
|
|
|
}
|
2016-03-25 19:50:59 +01:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
.toc__menu {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
width: 100%;
|
|
|
|
list-style: none;
|
2018-08-15 15:32:55 +02:00
|
|
|
font-size: $type-size-6;
|
|
|
|
|
|
|
|
@include breakpoint($large) {
|
|
|
|
font-size: $type-size-7;
|
|
|
|
}
|
2016-03-25 19:50:59 +01:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
a {
|
|
|
|
display: block;
|
2018-08-15 15:32:55 +02:00
|
|
|
padding: 0.25rem 0.75rem;
|
2017-12-07 14:56:14 +01:00
|
|
|
color: $muted-text-color;
|
|
|
|
font-weight: bold;
|
|
|
|
line-height: 1.5;
|
|
|
|
border-bottom: 1px solid $border-color;
|
2016-03-25 19:50:59 +01:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
&:hover {
|
|
|
|
color: $text-color;
|
2016-03-25 19:50:59 +01:00
|
|
|
}
|
2017-12-07 14:56:14 +01:00
|
|
|
}
|
2016-03-25 19:50:59 +01:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
li ul > li a {
|
2018-08-15 15:46:57 +02:00
|
|
|
padding-left: 1.25rem;
|
2017-12-07 14:56:14 +01:00
|
|
|
font-weight: normal;
|
|
|
|
}
|
2016-03-25 19:50:59 +01:00
|
|
|
|
2018-08-15 15:34:45 +02:00
|
|
|
li ul li ul > li a {
|
2018-08-15 15:46:57 +02:00
|
|
|
padding-left: 1.75rem;
|
2018-08-15 15:34:45 +02:00
|
|
|
}
|
2016-03-25 19:50:59 +01:00
|
|
|
|
2018-08-15 15:34:45 +02:00
|
|
|
li ul li ul li ul > li a {
|
2018-08-15 15:46:57 +02:00
|
|
|
padding-left: 2.25rem;
|
2018-08-15 15:34:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
li ul li ul li ul li ul > li a {
|
2018-08-15 15:46:57 +02:00
|
|
|
padding-left: 2.75rem;
|
2018-08-15 15:34:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
li ul li ul li ul li ul li ul > li a {
|
2018-08-15 15:46:57 +02:00
|
|
|
padding-left: 3.25rem
|
2016-03-25 19:50:59 +01:00
|
|
|
}
|
2017-12-07 14:56:14 +01:00
|
|
|
}
|