2016-03-11 04:29:30 +01:00
|
|
|
/* ==========================================================================
|
|
|
|
SIDEBAR
|
|
|
|
========================================================================== */
|
|
|
|
|
2016-03-20 20:20:33 +01:00
|
|
|
/*
|
|
|
|
Default
|
|
|
|
========================================================================== */
|
|
|
|
|
2016-03-11 04:29:30 +01:00
|
|
|
.sidebar {
|
2017-08-09 15:03:09 +02:00
|
|
|
@include clearfix();
|
2020-03-09 19:49:15 +01:00
|
|
|
// @include breakpoint(max-width $large) {
|
|
|
|
// /* fix z-index order of follow links */
|
|
|
|
// position: relative;
|
|
|
|
// z-index: 10;
|
|
|
|
// -webkit-transform: translate3d(0, 0, 0);
|
|
|
|
// transform: translate3d(0, 0, 0);
|
|
|
|
// }
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-20 20:20:33 +01:00
|
|
|
@include breakpoint($large) {
|
2017-07-21 22:08:29 +02:00
|
|
|
float: left;
|
2017-08-09 14:30:32 +02:00
|
|
|
width: calc(#{$right-sidebar-width-narrow} - 1em);
|
2016-04-05 22:14:35 +02:00
|
|
|
opacity: 0.75;
|
2016-08-08 22:01:37 +02:00
|
|
|
-webkit-transition: opacity 0.2s ease-in-out;
|
2018-01-03 20:20:41 +01:00
|
|
|
transition: opacity 0.2s ease-in-out;
|
2016-04-05 22:14:35 +02:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2017-07-12 18:03:14 +02:00
|
|
|
|
|
|
|
&.sticky {
|
|
|
|
overflow-y: auto;
|
2018-08-09 21:06:00 +02:00
|
|
|
/* calculate height of nav list
|
|
|
|
viewport height - nav height - masthead x-padding
|
|
|
|
*/
|
|
|
|
height: calc(100vh - #{$nav-height} - 2em);
|
2017-07-12 18:03:14 +02:00
|
|
|
}
|
2016-03-11 04:29:30 +01:00
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2017-08-09 14:30:32 +02:00
|
|
|
@include breakpoint($x-large) {
|
|
|
|
width: calc(#{$right-sidebar-width} - 1em);
|
|
|
|
}
|
|
|
|
|
2018-08-09 21:06:00 +02:00
|
|
|
> * {
|
|
|
|
margin-top: 1em;
|
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
|
|
|
|
2018-01-03 20:20:41 +01:00
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
2016-03-18 16:58:56 +01:00
|
|
|
margin-bottom: 0;
|
2016-03-11 22:36:41 +01:00
|
|
|
font-family: $sans-serif-narrow;
|
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2018-01-03 20:20:41 +01:00
|
|
|
p,
|
|
|
|
li {
|
2016-03-21 21:36:24 +01:00
|
|
|
font-family: $sans-serif;
|
2016-03-30 22:59:48 +02:00
|
|
|
font-size: $type-size-6;
|
2016-03-31 04:20:55 +02:00
|
|
|
line-height: 1.5;
|
2016-03-11 22:36:41 +01:00
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-11 22:36:41 +01:00
|
|
|
img {
|
|
|
|
width: 100%;
|
2020-03-09 19:49:15 +01:00
|
|
|
|
2018-08-10 14:57:27 +02:00
|
|
|
&.emoji {
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
}
|
2016-03-11 22:36:41 +01:00
|
|
|
}
|
2016-03-11 04:29:30 +01:00
|
|
|
}
|
|
|
|
|
2016-03-20 20:20:33 +01:00
|
|
|
.sidebar__right {
|
2016-03-30 05:13:00 +02:00
|
|
|
margin-bottom: 1em;
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-20 20:20:33 +01:00
|
|
|
@include breakpoint($large) {
|
2017-08-08 20:41:46 +02:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
2016-03-30 05:13:00 +02:00
|
|
|
width: $right-sidebar-width-narrow;
|
2017-08-08 20:41:46 +02:00
|
|
|
margin-right: -1 * $right-sidebar-width-narrow;
|
|
|
|
padding-left: 1em;
|
2016-04-15 03:31:53 +02:00
|
|
|
z-index: 10;
|
2018-05-31 16:22:02 +02:00
|
|
|
|
|
|
|
&.sticky {
|
|
|
|
@include clearfix();
|
|
|
|
position: -webkit-sticky;
|
|
|
|
position: sticky;
|
|
|
|
top: 2em;
|
|
|
|
float: right;
|
|
|
|
}
|
2016-03-20 20:20:33 +01:00
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-20 20:20:33 +01:00
|
|
|
@include breakpoint($x-large) {
|
2016-03-30 05:13:00 +02:00
|
|
|
width: $right-sidebar-width;
|
2017-08-08 20:41:46 +02:00
|
|
|
margin-right: -1 * $right-sidebar-width;
|
2016-03-20 20:20:33 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-08-09 14:28:21 +02:00
|
|
|
.splash .sidebar__right {
|
|
|
|
@include breakpoint($large) {
|
|
|
|
position: relative;
|
|
|
|
float: right;
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include breakpoint($x-large) {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-03-11 04:29:30 +01:00
|
|
|
/*
|
|
|
|
Author profile and links
|
|
|
|
========================================================================== */
|
|
|
|
|
2016-03-18 16:58:56 +01:00
|
|
|
.author__avatar {
|
2016-03-21 03:15:43 +01:00
|
|
|
display: table-cell;
|
|
|
|
vertical-align: top;
|
|
|
|
width: 36px;
|
|
|
|
height: 36px;
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-20 20:20:33 +01:00
|
|
|
@include breakpoint($large) {
|
2016-03-21 03:15:43 +01:00
|
|
|
display: block;
|
2016-04-05 21:18:05 +02:00
|
|
|
width: auto;
|
|
|
|
height: auto;
|
2016-03-18 16:58:56 +01:00
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-18 16:58:56 +01:00
|
|
|
img {
|
|
|
|
max-width: 110px;
|
|
|
|
border-radius: 50%;
|
2016-03-29 03:48:42 +02:00
|
|
|
|
|
|
|
@include breakpoint($large) {
|
|
|
|
padding: 5px;
|
|
|
|
border: 1px solid $border-color;
|
|
|
|
}
|
2016-03-18 16:58:56 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.author__content {
|
2016-03-21 03:15:43 +01:00
|
|
|
display: table-cell;
|
|
|
|
vertical-align: top;
|
|
|
|
padding-left: 15px;
|
2016-03-25 14:39:18 +01:00
|
|
|
padding-right: 25px;
|
2016-03-21 03:15:43 +01:00
|
|
|
line-height: 1;
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-20 20:20:33 +01:00
|
|
|
@include breakpoint($large) {
|
2016-03-21 03:15:43 +01:00
|
|
|
display: block;
|
2016-03-18 16:58:56 +01:00
|
|
|
width: 100%;
|
2016-03-21 03:15:43 +01:00
|
|
|
padding-left: 0;
|
|
|
|
padding-right: 0;
|
2016-03-18 16:58:56 +01:00
|
|
|
}
|
2017-12-11 18:37:10 +01:00
|
|
|
|
|
|
|
a {
|
|
|
|
color: inherit;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2016-03-18 16:58:56 +01:00
|
|
|
}
|
|
|
|
|
2016-03-11 04:29:30 +01:00
|
|
|
.author__name {
|
2016-03-18 16:58:56 +01:00
|
|
|
margin: 0;
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-20 20:20:33 +01:00
|
|
|
@include breakpoint($large) {
|
2016-03-18 16:58:56 +01:00
|
|
|
margin-top: 10px;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
2016-03-11 04:29:30 +01:00
|
|
|
}
|
2016-03-21 03:15:43 +01:00
|
|
|
.sidebar .author__name {
|
|
|
|
font-family: $sans-serif;
|
2016-03-30 22:59:48 +02:00
|
|
|
font-size: $type-size-5;
|
2016-03-21 03:15:43 +01:00
|
|
|
}
|
2016-03-11 04:29:30 +01:00
|
|
|
|
|
|
|
.author__bio {
|
2016-03-25 14:39:18 +01:00
|
|
|
margin: 0;
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-20 20:20:33 +01:00
|
|
|
@include breakpoint($large) {
|
2016-03-25 14:39:18 +01:00
|
|
|
margin-top: 10px;
|
2016-03-18 16:58:56 +01:00
|
|
|
margin-bottom: 20px;
|
|
|
|
}
|
2016-03-11 04:29:30 +01:00
|
|
|
}
|
|
|
|
|
2016-03-21 05:03:46 +01:00
|
|
|
.author__urls-wrapper {
|
2016-03-21 03:15:43 +01:00
|
|
|
position: relative;
|
|
|
|
display: table-cell;
|
2016-04-18 22:13:53 +02:00
|
|
|
vertical-align: middle;
|
2016-03-21 03:15:43 +01:00
|
|
|
font-family: $sans-serif;
|
2016-04-14 15:47:54 +02:00
|
|
|
z-index: 10;
|
2016-03-21 05:03:46 +01:00
|
|
|
position: relative;
|
|
|
|
cursor: pointer;
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-25 14:39:18 +01:00
|
|
|
li:last-child {
|
|
|
|
a {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-03-21 03:15:43 +01:00
|
|
|
@include breakpoint($large) {
|
|
|
|
display: block;
|
|
|
|
}
|
2016-04-18 22:13:53 +02:00
|
|
|
|
|
|
|
button {
|
2020-03-09 19:49:15 +01:00
|
|
|
position: relative;
|
2016-04-18 22:13:53 +02:00
|
|
|
margin-bottom: 0;
|
|
|
|
|
2020-03-09 19:49:15 +01:00
|
|
|
&:before {
|
|
|
|
@supports (pointer-events: none) {
|
|
|
|
content: '';
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.open {
|
|
|
|
&:before {
|
|
|
|
pointer-events: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-03-21 05:03:46 +01:00
|
|
|
@include breakpoint($large) {
|
|
|
|
display: none;
|
|
|
|
}
|
2016-03-21 03:15:43 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-03-18 16:58:56 +01:00
|
|
|
.author__urls {
|
2016-03-21 03:15:43 +01:00
|
|
|
display: none;
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
2016-03-21 05:03:46 +01:00
|
|
|
margin-top: 15px;
|
2016-03-21 03:15:43 +01:00
|
|
|
padding: 10px;
|
2016-03-21 05:03:46 +01:00
|
|
|
list-style-type: none;
|
2016-03-21 03:15:43 +01:00
|
|
|
border: 1px solid $border-color;
|
|
|
|
border-radius: $border-radius;
|
2017-09-12 18:01:43 +02:00
|
|
|
background: $background-color;
|
2017-02-14 20:49:18 +01:00
|
|
|
box-shadow: 0 2px 4px 0 rgba(#000, 0.16), 0 2px 10px 0 rgba(#000, 0.12);
|
2016-06-13 04:27:14 +02:00
|
|
|
cursor: default;
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2017-08-04 17:55:10 +02:00
|
|
|
&.is--visible {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2016-03-21 05:03:46 +01:00
|
|
|
@include breakpoint($large) {
|
|
|
|
display: block;
|
2016-03-21 17:37:10 +01:00
|
|
|
position: relative;
|
2016-03-21 05:03:46 +01:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
border: 0;
|
2016-03-21 17:37:10 +01:00
|
|
|
background: transparent;
|
|
|
|
box-shadow: none;
|
2016-03-21 05:03:46 +01:00
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-21 05:03:46 +01:00
|
|
|
&:before {
|
2016-03-21 21:01:19 +01:00
|
|
|
display: block;
|
2016-03-21 03:15:43 +01:00
|
|
|
content: "";
|
|
|
|
position: absolute;
|
2016-03-21 21:01:19 +01:00
|
|
|
top: -11px;
|
|
|
|
left: calc(50% - 10px);
|
|
|
|
width: 0;
|
2016-03-21 03:15:43 +01:00
|
|
|
border-style: solid;
|
|
|
|
border-width: 0 10px 10px;
|
2016-03-21 05:03:46 +01:00
|
|
|
border-color: $border-color transparent;
|
|
|
|
z-index: 0;
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-21 05:03:46 +01:00
|
|
|
@include breakpoint($large) {
|
|
|
|
display: none;
|
|
|
|
}
|
2016-03-21 03:15:43 +01:00
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-21 05:03:46 +01:00
|
|
|
&:after {
|
2016-03-21 21:01:19 +01:00
|
|
|
display: block;
|
2016-03-21 05:03:46 +01:00
|
|
|
content: "";
|
2016-03-21 03:15:43 +01:00
|
|
|
position: absolute;
|
2016-03-21 21:01:19 +01:00
|
|
|
top: -10px;
|
|
|
|
left: calc(50% - 10px);
|
|
|
|
width: 0;
|
2016-03-21 03:15:43 +01:00
|
|
|
border-style: solid;
|
|
|
|
border-width: 0 10px 10px;
|
2017-09-12 18:01:43 +02:00
|
|
|
border-color: $background-color transparent;
|
2016-03-21 05:03:46 +01:00
|
|
|
z-index: 1;
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-21 05:03:46 +01:00
|
|
|
@include breakpoint($large) {
|
|
|
|
display: none;
|
|
|
|
}
|
2016-03-21 03:15:43 +01:00
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2020-03-09 19:49:15 +01:00
|
|
|
ul {
|
|
|
|
padding: 10px;
|
|
|
|
list-style-type: none;
|
|
|
|
}
|
|
|
|
|
2016-04-10 18:16:10 +02:00
|
|
|
li {
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
2016-03-18 16:58:56 +01:00
|
|
|
a {
|
2016-03-21 03:15:43 +01:00
|
|
|
display: block;
|
2016-03-18 16:58:56 +01:00
|
|
|
margin-bottom: 5px;
|
|
|
|
padding-right: 5px;
|
2016-03-23 03:59:39 +01:00
|
|
|
padding-top: 2px;
|
|
|
|
padding-bottom: 2px;
|
2016-04-06 03:37:16 +02:00
|
|
|
color: inherit;
|
2016-03-30 22:59:48 +02:00
|
|
|
font-size: $type-size-5;
|
2016-03-18 16:58:56 +01:00
|
|
|
text-decoration: none;
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-18 16:58:56 +01:00
|
|
|
&:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2016-03-11 04:29:30 +01:00
|
|
|
}
|
2018-01-03 20:20:41 +01:00
|
|
|
}
|
2018-02-05 20:23:44 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
Wide Pages
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
.wide .sidebar__right {
|
|
|
|
margin-bottom: 1em;
|
2018-05-31 16:22:02 +02:00
|
|
|
|
2018-02-05 20:23:44 +01:00
|
|
|
@include breakpoint($large) {
|
|
|
|
position: initial;
|
|
|
|
top: initial;
|
|
|
|
right: initial;
|
|
|
|
width: initial;
|
|
|
|
margin-right: initial;
|
|
|
|
padding-left: initial;
|
|
|
|
z-index: initial;
|
2018-05-31 16:22:02 +02:00
|
|
|
|
|
|
|
&.sticky {
|
|
|
|
float: none;
|
|
|
|
}
|
2018-02-05 20:23:44 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@include breakpoint($x-large) {
|
|
|
|
width: initial;
|
|
|
|
margin-right: initial;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|