2019-12-16 22:28:48 +01:00
|
|
|
/* Heading */
|
2019-05-18 14:09:51 +02:00
|
|
|
main header.article {
|
|
|
|
overflow: hidden;
|
2019-08-21 00:42:04 +02:00
|
|
|
background: $background;
|
|
|
|
color: $text-color;
|
2019-05-18 14:09:51 +02:00
|
|
|
display: grid;
|
|
|
|
background-size: cover;
|
|
|
|
background-position: center;
|
|
|
|
|
|
|
|
&.illustrated {
|
|
|
|
min-height: 75vh;
|
|
|
|
color: $white;
|
|
|
|
|
|
|
|
a, a:visited {
|
|
|
|
color: $white;
|
|
|
|
border-bottom: 1px solid transparent;
|
|
|
|
transition: border-bottom-color 0.1s ease-in;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
border-bottom-color: $white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
& > * {
|
|
|
|
grid-row: 1;
|
|
|
|
grid-column: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
& > div:not(.shadow) {
|
|
|
|
z-index: 3;
|
|
|
|
font-family: $lora;
|
|
|
|
font-size: 1.2em;
|
|
|
|
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
max-width: $article-width;
|
|
|
|
margin: 2em auto;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2020-09-25 11:19:24 +02:00
|
|
|
justify-content: flex-end;
|
2019-05-18 14:09:51 +02:00
|
|
|
|
|
|
|
h1, .article-info {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
& > div.shadow {
|
|
|
|
z-index: 2;
|
|
|
|
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
2019-08-21 00:42:04 +02:00
|
|
|
background: linear-gradient(180deg, transparent 20vh, $black 80vh);
|
2019-05-18 14:09:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
& > img {
|
|
|
|
z-index: 1;
|
|
|
|
min-width: 100%;
|
|
|
|
min-height: 100%;
|
2019-08-21 00:42:04 +02:00
|
|
|
background: $primary;
|
2019-05-18 14:09:51 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-12-15 22:06:27 +01:00
|
|
|
main .article-info {
|
2021-01-17 14:33:29 +01:00
|
|
|
margin: 0 auto 3em;
|
|
|
|
font-size: 0.95em;
|
|
|
|
font-weight: 400;
|
2018-12-15 22:06:27 +01:00
|
|
|
|
2021-01-17 14:33:29 +01:00
|
|
|
.author, .author a {
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
2018-12-15 22:06:27 +01:00
|
|
|
}
|
|
|
|
|
2019-12-16 22:28:48 +01:00
|
|
|
/* The article itself */
|
2018-12-15 22:06:27 +01:00
|
|
|
main article {
|
2019-05-18 14:09:51 +02:00
|
|
|
max-width: $article-width;
|
2021-01-17 14:33:29 +01:00
|
|
|
margin: 2.5em auto;
|
|
|
|
font-family: $lora;
|
|
|
|
font-size: 1.2em;
|
|
|
|
line-height: 1.7;
|
|
|
|
|
|
|
|
a:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
|
|
|
display: block;
|
|
|
|
margin: 3em auto;
|
|
|
|
max-width: 100%;
|
2018-12-15 22:06:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
pre {
|
2021-01-17 14:33:29 +01:00
|
|
|
padding: 1em;
|
|
|
|
background: $gray;
|
|
|
|
overflow: auto;
|
2019-05-18 14:09:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
blockquote {
|
2024-12-19 16:18:45 +01:00
|
|
|
border-inline-start: 5px solid $lightpurple;
|
2019-05-18 14:09:51 +02:00
|
|
|
margin: 1em auto;
|
|
|
|
padding: 0em 2em;
|
2018-12-15 22:06:27 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-16 22:28:48 +01:00
|
|
|
/* Metadata under the article */
|
2018-12-15 22:06:27 +01:00
|
|
|
main .article-meta, main .article-meta button {
|
|
|
|
padding: 0;
|
|
|
|
font-size: 1.1em;
|
|
|
|
margin-top: 10%;
|
|
|
|
}
|
|
|
|
|
|
|
|
main .article-meta {
|
|
|
|
|
|
|
|
> * {
|
2019-05-18 14:09:51 +02:00
|
|
|
margin: $margin;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .banner {
|
|
|
|
margin: 3em 0;
|
|
|
|
& > * {
|
|
|
|
margin: $margin;
|
|
|
|
}
|
2018-12-15 22:06:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
> p {
|
2019-05-18 14:09:51 +02:00
|
|
|
margin: 2em $horizontal-margin;
|
2021-01-17 14:33:29 +01:00
|
|
|
font-size: 0.9em;
|
2018-12-15 22:06:27 +01:00
|
|
|
}
|
|
|
|
|
2019-12-16 22:28:48 +01:00
|
|
|
/* Article Tags */
|
2018-12-15 22:06:27 +01:00
|
|
|
.tags {
|
|
|
|
list-style: none;
|
|
|
|
padding: 0px;
|
2019-05-18 14:09:51 +02:00
|
|
|
max-width: none;
|
|
|
|
flex: 20;
|
2018-12-15 22:06:27 +01:00
|
|
|
|
|
|
|
li {
|
|
|
|
display: inline-block;
|
|
|
|
padding: 0px;
|
|
|
|
margin: 0px 10px 10px 0px;
|
|
|
|
transition: all 0.2s ease-in;
|
2019-08-21 00:42:04 +02:00
|
|
|
border: 1px solid $primary;
|
2018-12-15 22:06:27 +01:00
|
|
|
|
|
|
|
a {
|
|
|
|
display: inline-block;
|
|
|
|
padding: 10px 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
2019-08-21 00:42:04 +02:00
|
|
|
background: transparentize($primary, 0.9);
|
2018-12-15 22:06:27 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-16 22:28:48 +01:00
|
|
|
/* Likes & Boosts */
|
2018-12-15 22:06:27 +01:00
|
|
|
.actions {
|
|
|
|
display: flex;
|
2021-01-17 14:33:29 +01:00
|
|
|
flex-direction: row;
|
|
|
|
justify-content: space-around;
|
2018-12-15 22:06:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.likes, .reshares {
|
|
|
|
display: flex;
|
2021-01-17 14:33:29 +01:00
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
padding: 0.5em 0;
|
2018-12-15 22:06:27 +01:00
|
|
|
|
|
|
|
p {
|
|
|
|
font-size: 1.5em;
|
|
|
|
display: inline-block;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.action {
|
|
|
|
display: flex;
|
2021-01-17 14:33:29 +01:00
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
background: none;
|
|
|
|
color: $text-color;
|
|
|
|
border: none;
|
|
|
|
font-size: 1.1em;
|
2019-05-18 14:09:51 +02:00
|
|
|
cursor: pointer;
|
2018-12-15 22:06:27 +01:00
|
|
|
|
2021-01-17 14:33:29 +01:00
|
|
|
svg.feather {
|
|
|
|
transition: background 0.1s ease-in;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2018-12-15 22:06:27 +01:00
|
|
|
|
2021-01-17 14:33:29 +01:00
|
|
|
margin: 0.5em 0;
|
|
|
|
width: 2.5em;
|
|
|
|
height: 2.5em;
|
2018-12-15 22:06:27 +01:00
|
|
|
|
2021-01-17 14:33:29 +01:00
|
|
|
border-radius: 50%;
|
2018-12-15 22:06:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&.reshared, &.liked {
|
|
|
|
svg.feather {
|
2021-01-17 14:33:29 +01:00
|
|
|
color: $background;
|
|
|
|
font-weight: 900;
|
2018-12-15 22:06:27 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.likes {
|
|
|
|
p, .action:hover { color: $red; }
|
|
|
|
|
|
|
|
.action svg.feather {
|
|
|
|
padding: 0.7em;
|
2021-01-17 14:33:29 +01:00
|
|
|
box-sizing: border-box;
|
|
|
|
color: $red;
|
|
|
|
fill: none;
|
|
|
|
border: solid $red thin;
|
2018-12-15 22:06:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.action:hover svg.feather {
|
2021-01-17 14:33:29 +01:00
|
|
|
background: transparentize($red, 0.85);
|
2018-12-15 22:06:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.action.liked svg.feather {
|
|
|
|
background: $red;
|
|
|
|
fill: currentColor;
|
|
|
|
}
|
|
|
|
.action.liked:hover svg.feather {
|
2023-04-16 09:10:54 +02:00
|
|
|
background: transparentize($red, 0.75);
|
2018-12-15 22:06:27 +01:00
|
|
|
color: $red;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.reshares {
|
2019-08-21 00:42:04 +02:00
|
|
|
p, .action:hover { color: $primary; }
|
2018-12-15 22:06:27 +01:00
|
|
|
|
|
|
|
.action svg.feather {
|
|
|
|
padding: 0.7em;
|
2021-01-17 14:33:29 +01:00
|
|
|
box-sizing: border-box;
|
|
|
|
color: $primary;
|
|
|
|
border: solid $primary thin;
|
|
|
|
font-weight: 600;
|
2018-12-15 22:06:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.action:hover svg.feather {
|
2021-01-17 14:33:29 +01:00
|
|
|
background: transparentize($primary, 0.85);
|
2018-12-15 22:06:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.action.reshared svg.feather {
|
2019-08-21 00:42:04 +02:00
|
|
|
background: $primary;
|
2018-12-15 22:06:27 +01:00
|
|
|
}
|
|
|
|
.action.reshared:hover svg.feather {
|
2023-04-16 09:10:54 +02:00
|
|
|
background: transparentize($primary, 0.75);
|
2021-01-17 14:33:29 +01:00
|
|
|
color: $primary;
|
2018-12-15 22:06:27 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-16 22:28:48 +01:00
|
|
|
/* Comments */
|
2018-12-15 22:06:27 +01:00
|
|
|
.comments {
|
2019-05-18 14:09:51 +02:00
|
|
|
margin: 0 $horizontal-margin;
|
2018-12-15 22:06:27 +01:00
|
|
|
|
|
|
|
h2 {
|
2021-01-17 14:33:29 +01:00
|
|
|
color: $primary;
|
|
|
|
font-size: 1.5em;
|
|
|
|
font-weight: 600;
|
2018-12-15 22:06:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
summary {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2019-12-16 22:28:48 +01:00
|
|
|
/* New comment form */
|
2018-12-23 11:13:36 +01:00
|
|
|
> form input[type="submit"] {
|
2018-12-15 22:06:27 +01:00
|
|
|
font-size: 1em;
|
2019-05-20 20:29:23 +02:00
|
|
|
-webkit-appearance: none;
|
2018-12-15 22:06:27 +01:00
|
|
|
}
|
|
|
|
|
2019-04-24 18:22:37 +02:00
|
|
|
// Respond & delete comment buttons
|
2018-12-23 11:13:36 +01:00
|
|
|
a.button, form.inline, form.inline input {
|
2021-01-17 14:33:29 +01:00
|
|
|
padding: 0;
|
|
|
|
background: none;
|
|
|
|
color: $text-color;
|
|
|
|
margin-right: 2em;
|
|
|
|
font-family: $route159;
|
2019-05-18 14:09:51 +02:00
|
|
|
font-weight: normal;
|
2018-12-15 22:06:27 +01:00
|
|
|
|
2021-01-17 14:33:29 +01:00
|
|
|
&::before {
|
|
|
|
color: $primary;
|
|
|
|
padding-right: 0.5em;
|
2018-12-15 22:06:27 +01:00
|
|
|
}
|
|
|
|
|
2019-08-21 00:42:04 +02:00
|
|
|
&:hover { color: $primary; }
|
2018-12-15 22:06:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.comment {
|
2019-05-18 14:09:51 +02:00
|
|
|
margin: 1em 0;
|
2021-01-17 14:33:29 +01:00
|
|
|
font-size: 1em;
|
|
|
|
border: none;
|
2018-12-15 22:06:27 +01:00
|
|
|
|
2019-05-18 14:09:51 +02:00
|
|
|
.content {
|
|
|
|
background: $gray;
|
|
|
|
margin-top: 2.5em;
|
|
|
|
padding: 1em;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
display: block;
|
|
|
|
content: ' ';
|
|
|
|
border: 1em solid $gray;
|
|
|
|
border-top-color: transparent;
|
|
|
|
border-right-color: transparent;
|
|
|
|
position: relative;
|
|
|
|
top: -2.4em;
|
|
|
|
left: -1em;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
header {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: space-between;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dt-published a {
|
2019-08-21 00:42:04 +02:00
|
|
|
color: transparentize($text-color, 0.6);
|
2019-05-18 14:09:51 +02:00
|
|
|
}
|
|
|
|
|
2021-01-17 14:33:29 +01:00
|
|
|
.author {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
align-content: center;
|
2018-12-15 22:06:27 +01:00
|
|
|
|
2021-01-17 14:33:29 +01:00
|
|
|
* {
|
|
|
|
transition: all 0.1s ease-in;
|
|
|
|
}
|
2018-12-15 22:06:27 +01:00
|
|
|
|
2021-01-17 14:33:29 +01:00
|
|
|
.display-name {
|
|
|
|
color: $text-color;
|
2018-12-15 22:06:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
2019-08-21 00:42:04 +02:00
|
|
|
.display-name { color: $primary; }
|
2018-12-15 22:06:27 +01:00
|
|
|
small { opacity: 1; }
|
|
|
|
}
|
2021-01-17 14:33:29 +01:00
|
|
|
}
|
2018-12-15 22:06:27 +01:00
|
|
|
|
2019-05-18 14:09:51 +02:00
|
|
|
& > .comment {
|
|
|
|
padding-left: 2em;
|
|
|
|
}
|
|
|
|
|
2021-01-17 14:33:29 +01:00
|
|
|
.text {
|
|
|
|
padding: 1.25em 0;
|
|
|
|
font-family: $lora;
|
|
|
|
font-size: 1.1em;
|
|
|
|
line-height: 1.4;
|
|
|
|
text-align: left;
|
2018-12-15 22:06:27 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-03-15 16:06:10 +01:00
|
|
|
|
|
|
|
#plume-editor {
|
|
|
|
header {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row-reverse;
|
|
|
|
background: transparent;
|
|
|
|
align-items: center;
|
2019-04-06 15:20:12 +02:00
|
|
|
justify-content: space-between;
|
2019-03-15 16:06:10 +01:00
|
|
|
button {
|
|
|
|
flex: 0 0 10em;
|
|
|
|
font-size: 1.25em;
|
|
|
|
margin: .5em 0em .5em 1em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
& > * {
|
|
|
|
min-height: 1em;
|
|
|
|
outline: none;
|
|
|
|
margin-bottom: 0.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.placeholder {
|
2019-08-21 00:42:04 +02:00
|
|
|
color: transparentize($text-color, 0.6);
|
2019-03-15 16:06:10 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
article {
|
|
|
|
max-width: none;
|
|
|
|
min-height: 80vh;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.popup {
|
|
|
|
position: fixed;
|
|
|
|
top: 15vh;
|
|
|
|
bottom: 20vh;
|
|
|
|
left: 20vw;
|
|
|
|
right: 20vw;
|
2019-05-18 14:09:51 +02:00
|
|
|
background: $gray;
|
2019-08-21 00:42:04 +02:00
|
|
|
border: 1px solid $primary;
|
2019-03-15 16:06:10 +01:00
|
|
|
z-index: 2;
|
|
|
|
padding: 2em;
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.popup:not(.show), .popup-bg:not(.show) {
|
|
|
|
display: none;
|
2019-05-06 20:18:53 +02:00
|
|
|
appearance: none;
|
2019-03-15 16:06:10 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.popup-bg {
|
|
|
|
background: rgba(0, 0, 0, 0.1);
|
|
|
|
position: fixed;
|
|
|
|
top: 0px;
|
|
|
|
left: 0px;
|
|
|
|
right: 0px;
|
|
|
|
bottom: 0px;
|
|
|
|
}
|
2019-04-06 19:20:33 +02:00
|
|
|
|
|
|
|
|
2019-12-16 22:28:48 +01:00
|
|
|
/* Content warning */
|
2019-04-06 19:20:33 +02:00
|
|
|
.cw-container {
|
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
2019-05-18 14:09:51 +02:00
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
img {
|
|
|
|
margin: auto;
|
|
|
|
}
|
2019-04-06 19:20:33 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.cw-text {
|
|
|
|
display: none;
|
2019-05-06 20:18:53 +02:00
|
|
|
appearance: none;
|
2019-04-06 19:20:33 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
input[type="checkbox"].cw-checkbox {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
input:checked ~ .cw-container:before {
|
|
|
|
content: " ";
|
|
|
|
position: absolute;
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
background: rgba(0, 0, 0, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
input:checked ~ .cw-container > .cw-text {
|
|
|
|
display: inline;
|
|
|
|
position: absolute;
|
|
|
|
color: white;
|
|
|
|
width: 100%;
|
|
|
|
text-align: center;
|
|
|
|
top: 50%;
|
|
|
|
transform: translateY(-50%);
|
|
|
|
}
|
2019-05-18 14:09:51 +02:00
|
|
|
|
2019-12-16 22:28:48 +01:00
|
|
|
/* Bottom action bar */
|
2019-05-18 14:09:51 +02:00
|
|
|
|
|
|
|
.bottom-bar {
|
|
|
|
z-index: 10;
|
|
|
|
position: fixed;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
background: $gray;
|
|
|
|
margin: 0;
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
& > div {
|
|
|
|
margin: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
& > div:nth-child(2) {
|
|
|
|
flex: 1;
|
|
|
|
display: flex;
|
|
|
|
margin: auto $horizontal-margin;
|
|
|
|
}
|
|
|
|
}
|
2019-11-20 16:16:38 +01:00
|
|
|
|
2019-12-16 22:28:48 +01:00
|
|
|
/* Footnote related styles */
|
2019-11-20 16:16:38 +01:00
|
|
|
.footnote-definition {
|
|
|
|
p {
|
|
|
|
font-size: smaller;
|
2019-12-16 22:28:48 +01:00
|
|
|
/* Make sure the definition is inline with the label-definition */
|
2019-11-20 16:16:38 +01:00
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
}
|
2019-09-01 18:53:15 +02:00
|
|
|
|
|
|
|
// Small screens
|
|
|
|
@media screen and (max-width: 600px) {
|
|
|
|
#plume-editor header {
|
|
|
|
flex-direction: column-reverse;
|
|
|
|
|
|
|
|
button {
|
|
|
|
flex: 0 0 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.popup {
|
|
|
|
top: 10vh;
|
|
|
|
bottom: 10vh;
|
|
|
|
left: 1vw;
|
|
|
|
right: 1vw;
|
|
|
|
}
|
|
|
|
|
|
|
|
main article {
|
|
|
|
margin: 2.5em .5em;
|
|
|
|
max-width: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
main .article-meta > *, main .article-meta .comments, main .article-meta > .banner > * {
|
|
|
|
margin: 0 5%;
|
|
|
|
}
|
2022-01-02 19:01:59 +01:00
|
|
|
|
|
|
|
.bottom-bar {
|
|
|
|
align-items: center;
|
|
|
|
& > div:nth-child(2) {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
2019-09-01 18:53:15 +02:00
|
|
|
}
|