2019-08-20 22:42:04 +00:00
|
|
|
html {
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
*, *:before, *:after {
|
|
|
|
box-sizing: inherit;
|
|
|
|
}
|
|
|
|
|
2018-12-15 21:06:27 +00:00
|
|
|
html, body {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
background: $background;
|
2019-08-20 22:42:04 +00:00
|
|
|
color: $text-color;
|
2018-12-15 21:06:27 +00:00
|
|
|
font-family: $route159;
|
2019-05-18 12:09:51 +00:00
|
|
|
|
|
|
|
::selection {
|
2019-08-20 22:42:04 +00:00
|
|
|
background: transparentize($primary, 0.7);
|
2019-05-18 12:09:51 +00:00
|
|
|
}
|
2019-03-13 20:54:48 +00:00
|
|
|
::-moz-selection {
|
2019-08-20 22:42:04 +00:00
|
|
|
background: transparentize($primary, 0.7);
|
2019-03-13 20:54:48 +00:00
|
|
|
}
|
2018-12-15 21:06:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
a, a:visited {
|
2019-08-20 22:42:04 +00:00
|
|
|
color: $primary;
|
2018-12-15 21:06:27 +00:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
2019-05-18 12:09:51 +00:00
|
|
|
a::selection {
|
2019-08-20 22:42:04 +00:00
|
|
|
color: $background;
|
2019-03-13 20:54:48 +00:00
|
|
|
}
|
|
|
|
a::-moz-selection {
|
2019-08-20 22:42:04 +00:00
|
|
|
color: $background;
|
2019-03-13 20:54:48 +00:00
|
|
|
}
|
2018-12-15 21:06:27 +00:00
|
|
|
small {
|
|
|
|
margin-left: 1em;
|
2019-08-20 22:42:04 +00:00
|
|
|
color: transparentize($text-color, 0.6);
|
2018-12-15 21:06:27 +00:00
|
|
|
font-size: 0.75em;
|
|
|
|
word-wrap: break-word;
|
|
|
|
word-break: break-all;
|
|
|
|
}
|
|
|
|
|
|
|
|
.center {
|
|
|
|
text-align: center;
|
|
|
|
font-weight: bold;
|
|
|
|
opacity: 0.6;
|
|
|
|
padding: 5em;
|
|
|
|
}
|
|
|
|
|
2019-05-18 12:09:51 +00:00
|
|
|
.right {
|
|
|
|
text-align: right;
|
|
|
|
display: flex;
|
|
|
|
justify-content: end;
|
|
|
|
align-items: center;
|
2018-12-15 21:06:27 +00:00
|
|
|
}
|
|
|
|
|
2019-05-18 12:09:51 +00:00
|
|
|
.spaced {
|
|
|
|
margin: 4rem 0;
|
2018-12-15 21:06:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.banner {
|
|
|
|
background: $gray;
|
|
|
|
padding-top: 2em;
|
|
|
|
padding-bottom: 1em;
|
|
|
|
margin: 3em 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hidden {
|
|
|
|
display: none;
|
2019-05-06 18:18:53 +00:00
|
|
|
appearance: none;
|
2018-12-15 21:06:27 +00:00
|
|
|
}
|
|
|
|
|
2019-12-16 21:28:48 +00:00
|
|
|
/* Main */
|
2018-12-15 21:06:27 +00:00
|
|
|
body > main > *, .h-feed > * {
|
2019-05-18 12:09:51 +00:00
|
|
|
margin: 1em $horizontal-margin;
|
2018-12-15 21:06:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
body > main > .h-entry, .h-feed {
|
2019-01-09 17:57:48 +00:00
|
|
|
margin: 0;
|
2018-12-15 21:06:27 +00:00
|
|
|
}
|
|
|
|
|
2019-05-18 12:09:51 +00:00
|
|
|
body > main {
|
|
|
|
min-height: 70vh;
|
|
|
|
}
|
|
|
|
|
2018-12-15 21:06:27 +00:00
|
|
|
main {
|
2019-05-18 12:09:51 +00:00
|
|
|
|
2019-01-09 16:46:03 +00:00
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
|
|
font-family: $route159;
|
|
|
|
line-height: 1.15;
|
|
|
|
font-weight: 300;
|
|
|
|
|
|
|
|
&.article {
|
2019-05-18 12:09:51 +00:00
|
|
|
max-width: $article-width;
|
2019-01-09 16:46:03 +00:00
|
|
|
}
|
|
|
|
}
|
2018-12-15 21:06:27 +00:00
|
|
|
h1 {
|
|
|
|
font-size: 2.5em;
|
2019-01-09 17:57:48 +00:00
|
|
|
font-weight: 300;
|
2019-01-09 16:46:03 +00:00
|
|
|
margin-top: 1em;
|
2018-12-15 21:06:27 +00:00
|
|
|
|
|
|
|
&.article {
|
|
|
|
margin: 1em auto 0.5em;
|
|
|
|
font-family: $playfair;
|
|
|
|
font-size: 2.5em;
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
font-size: 1.75em;
|
|
|
|
font-weight: 300;
|
|
|
|
|
|
|
|
&.article {
|
|
|
|
font-size: 1.25em;
|
|
|
|
margin-bottom: 0.5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-01-09 16:46:03 +00:00
|
|
|
h3, h4, h5, h6 {
|
|
|
|
font-size: 1.5em;
|
|
|
|
font-weight: 300;
|
|
|
|
|
|
|
|
&.article {
|
|
|
|
margin: auto;
|
|
|
|
font-size: 1.1em;
|
|
|
|
margin-bottom: 0.5em;
|
|
|
|
}
|
|
|
|
}
|
2019-05-18 12:09:51 +00:00
|
|
|
|
2018-12-15 21:06:27 +00:00
|
|
|
.cover {
|
|
|
|
padding: 0px;
|
|
|
|
margin: 0px;
|
|
|
|
width: auto;
|
|
|
|
min-height: 50vh;
|
|
|
|
background-position: center;
|
|
|
|
background-size: cover;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-16 21:28:48 +00:00
|
|
|
/* Errors */
|
2018-12-15 21:06:27 +00:00
|
|
|
p.error {
|
|
|
|
color: $red;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
2019-12-16 21:28:48 +00:00
|
|
|
/* User page */
|
2018-12-15 21:06:27 +00:00
|
|
|
.user h1 {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
margin: 0px;
|
|
|
|
}
|
|
|
|
|
2019-03-22 18:51:36 +00:00
|
|
|
.user .avatar.medium {
|
|
|
|
margin-left: 0px;
|
|
|
|
}
|
|
|
|
|
2018-12-15 21:06:27 +00:00
|
|
|
.badge {
|
|
|
|
margin-right: 1em;
|
|
|
|
padding: 0.35em 1em;
|
|
|
|
|
2019-08-20 22:42:04 +00:00
|
|
|
background: $background;
|
|
|
|
color: $primary;
|
|
|
|
border: 1px solid $primary;
|
2018-12-15 21:06:27 +00:00
|
|
|
|
|
|
|
font-size: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.user-summary {
|
|
|
|
margin: 2em 0px;
|
|
|
|
}
|
|
|
|
|
2019-12-16 21:28:48 +00:00
|
|
|
/* Cards */
|
2018-12-15 21:06:27 +00:00
|
|
|
.cards {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
padding: 0 5%;
|
2019-05-18 12:09:51 +00:00
|
|
|
margin: 1rem 0 5rem;
|
2018-12-15 21:06:27 +00:00
|
|
|
}
|
|
|
|
.card {
|
|
|
|
flex: 1;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
min-width: 20em;
|
|
|
|
min-height: 20em;
|
|
|
|
margin: 1em;
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
background: $gray;
|
|
|
|
|
2020-04-12 19:29:48 +00:00
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
|
|
footer.authors {
|
|
|
|
div {
|
|
|
|
float: left;
|
|
|
|
margin-right: 0.25em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.likes { color: $red; }
|
|
|
|
.reshares { color: $primary; }
|
|
|
|
|
|
|
|
span.likes, span.resahres {
|
|
|
|
font-family: "Route159",serif;
|
|
|
|
font-size: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
svg.feather {
|
|
|
|
width: 0.85em;
|
|
|
|
height: 0.85em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-12-15 21:06:27 +00:00
|
|
|
|
|
|
|
> * {
|
|
|
|
margin: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.cover {
|
|
|
|
min-height: 10em;
|
|
|
|
background-position: center;
|
|
|
|
background-size: cover;
|
|
|
|
margin: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
margin: 0.75em 20px;
|
|
|
|
font-family: $playfair;
|
|
|
|
font-size: 1.75em;
|
|
|
|
font-weight: normal;
|
|
|
|
a {
|
|
|
|
transition: color 0.1s ease-in;
|
2019-08-20 22:42:04 +00:00
|
|
|
color: $text-color;
|
2018-12-15 21:06:27 +00:00
|
|
|
|
2019-08-20 22:42:04 +00:00
|
|
|
&:hover { color: $primary; }
|
2018-12-15 21:06:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
main {
|
|
|
|
flex: 1;
|
|
|
|
|
|
|
|
font-family: $lora;
|
|
|
|
font-size: 1em;
|
2019-01-09 16:46:03 +00:00
|
|
|
line-height: 1.25;
|
2018-12-15 21:06:27 +00:00
|
|
|
text-align: left;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
}
|
2019-05-18 12:09:51 +00:00
|
|
|
|
|
|
|
.list > .card {
|
|
|
|
background: transparent;
|
|
|
|
margin: 2em 0;
|
|
|
|
min-height: 3em;
|
|
|
|
|
|
|
|
padding: 1em;
|
|
|
|
transition: background 0.1s ease-in;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: $gray;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.compact {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2018-12-15 21:06:27 +00:00
|
|
|
}
|
|
|
|
|
2019-12-16 21:28:48 +00:00
|
|
|
/* Instance presentation */
|
2019-05-18 12:09:51 +00:00
|
|
|
.presentation {
|
|
|
|
max-width: none;
|
|
|
|
|
|
|
|
& > h2, & > a {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
& > a {
|
|
|
|
font-size: 1.2em;
|
|
|
|
margin: 1em;
|
|
|
|
}
|
2018-12-15 21:06:27 +00:00
|
|
|
}
|
|
|
|
|
2019-12-16 21:28:48 +00:00
|
|
|
/* Stats */
|
2018-12-15 21:06:27 +00:00
|
|
|
.stats {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-around;
|
|
|
|
margin: 2em;
|
|
|
|
|
|
|
|
> div {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
em {
|
|
|
|
font-weight: bold;
|
|
|
|
display: block;
|
|
|
|
margin: 1em 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-16 21:28:48 +00:00
|
|
|
/* Pagination */
|
2018-12-15 21:06:27 +00:00
|
|
|
.pagination {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-evenly;
|
|
|
|
|
|
|
|
> * {
|
|
|
|
padding: 2em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-16 21:28:48 +00:00
|
|
|
/* Flex boxes */
|
2018-12-15 21:06:27 +00:00
|
|
|
.flex {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
&.vertical {
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: space-around;
|
|
|
|
align-items: flex-start;
|
|
|
|
|
|
|
|
small {
|
|
|
|
margin: initial;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.grow {
|
|
|
|
flex: 1;
|
2019-05-18 12:09:51 +00:00
|
|
|
margin: 0 1em;
|
2018-12-15 21:06:27 +00:00
|
|
|
}
|
2019-10-07 17:08:20 +00:00
|
|
|
|
|
|
|
.grow:first-child {
|
|
|
|
margin: 1em 0;
|
|
|
|
}
|
2018-12-15 21:06:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.left-icon {
|
|
|
|
align-self: center;
|
|
|
|
padding: 1em;
|
2019-05-18 12:09:51 +00:00
|
|
|
background: $gray;
|
2018-12-15 21:06:27 +00:00
|
|
|
border-radius: 50px;
|
|
|
|
margin: 1em;
|
|
|
|
margin-right: 2em;
|
|
|
|
}
|
|
|
|
|
2019-12-16 21:28:48 +00:00
|
|
|
/* Footer */
|
2018-12-15 21:06:27 +00:00
|
|
|
body > footer {
|
|
|
|
display: flex;
|
|
|
|
align-content: center;
|
2019-05-18 12:09:51 +00:00
|
|
|
justify-content: space-around;
|
2019-08-20 22:42:04 +00:00
|
|
|
background: $primary;
|
|
|
|
color: $primary-text-color;
|
2018-12-15 21:06:27 +00:00
|
|
|
margin-top: 5em;
|
|
|
|
|
|
|
|
* {
|
2019-05-18 12:09:51 +00:00
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
hr {
|
|
|
|
transform: skew(-15deg);
|
2019-08-20 22:42:04 +00:00
|
|
|
background: $primary-text-color;
|
2019-05-18 12:09:51 +00:00
|
|
|
border: none;
|
|
|
|
width: .2em;
|
|
|
|
}
|
|
|
|
|
|
|
|
a, a:visited {
|
2019-08-20 22:42:04 +00:00
|
|
|
color: $primary-text-color;
|
2019-05-18 12:09:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
div {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex-basis: 20%;
|
|
|
|
margin: 2em 0;
|
|
|
|
transition: all 0.1s ease-in;
|
|
|
|
|
|
|
|
& > * {
|
|
|
|
display: block;
|
|
|
|
margin: 1em 0;
|
|
|
|
}
|
2018-12-15 21:06:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Media
|
|
|
|
figure {
|
|
|
|
text-align: center;
|
|
|
|
margin: 2em;
|
|
|
|
max-width: 100%;
|
|
|
|
width: auto;
|
|
|
|
height: auto;
|
|
|
|
|
|
|
|
> * {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
figcaption {
|
|
|
|
padding: 1em;
|
|
|
|
}
|
2019-03-06 13:11:36 +00:00
|
|
|
|
|
|
|
audio, video {
|
|
|
|
width: 100%;
|
|
|
|
}
|
2018-12-15 21:06:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.preview {
|
|
|
|
display: block;
|
|
|
|
max-width: 100px;
|
|
|
|
max-height: 100px;
|
|
|
|
width: auto;
|
|
|
|
height: auto;
|
|
|
|
margin-right: 20px;
|
|
|
|
}
|
|
|
|
|
2019-03-06 13:11:36 +00:00
|
|
|
.media-preview {
|
|
|
|
min-height: 8em;
|
|
|
|
|
|
|
|
&:not(.image) {
|
|
|
|
background-color: #7765E3;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: center;
|
|
|
|
background-size: 4em;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.unknown {
|
|
|
|
background-image: url('/static/images/unknown-file.svg');
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.audio {
|
|
|
|
background-image: url('/static/images/audio-file.svg');
|
|
|
|
}
|
|
|
|
|
|
|
|
&.video {
|
|
|
|
background-image: url('/static/images/video-file.svg');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-12-15 21:06:27 +00:00
|
|
|
/// Avatars
|
|
|
|
.avatar {
|
|
|
|
background-position: center;
|
|
|
|
background-size: cover;
|
|
|
|
border-radius: 100%;
|
|
|
|
|
|
|
|
&.small {
|
|
|
|
width: 50px;
|
|
|
|
height: 50px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.medium {
|
|
|
|
width: 100px;
|
|
|
|
height: 100px;
|
|
|
|
margin: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.padded {
|
|
|
|
margin-right: 2rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Tabs
|
|
|
|
.tabs {
|
2019-05-18 12:09:51 +00:00
|
|
|
border-bottom: 1px solid $gray;
|
2018-12-15 21:06:27 +00:00
|
|
|
padding: 0px;
|
2019-05-18 12:09:51 +00:00
|
|
|
margin: auto $horizontal-margin 2em;
|
2018-12-15 21:06:27 +00:00
|
|
|
overflow: auto;
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
a {
|
|
|
|
display: inline-block;
|
2019-08-20 22:42:04 +00:00
|
|
|
color: $text-color;
|
2018-12-15 21:06:27 +00:00
|
|
|
padding: 1em;
|
|
|
|
|
|
|
|
&.selected {
|
2019-08-20 22:42:04 +00:00
|
|
|
color: $primary;
|
|
|
|
border-bottom: 1px solid $primary;
|
2018-12-15 21:06:27 +00:00
|
|
|
}
|
2019-05-06 18:18:53 +00:00
|
|
|
}
|
2018-12-15 21:06:27 +00:00
|
|
|
}
|
2019-08-20 22:42:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
/// Small screens
|
|
|
|
@media screen and (max-width: 600px) {
|
2019-09-01 16:53:15 +00:00
|
|
|
body > main > *, .h-feed > * {
|
|
|
|
margin: 1em;
|
|
|
|
}
|
|
|
|
|
2019-08-20 22:42:04 +00:00
|
|
|
main .article-meta {
|
|
|
|
> *, .comments {
|
|
|
|
margin: 0 5%;
|
|
|
|
}
|
|
|
|
> p {
|
|
|
|
margin: 2em 5%;
|
|
|
|
font-size: 0.9em;
|
|
|
|
}
|
|
|
|
.comments > * { margin: auto 5%; }
|
|
|
|
.comments .comment { padding: 2em 0px; }
|
|
|
|
}
|
|
|
|
main .article-info, main article, main h1.article, main h2.article {
|
|
|
|
max-width: 90vw;
|
|
|
|
}
|
|
|
|
|
|
|
|
.card {
|
|
|
|
min-width: 80%;
|
|
|
|
min-height: 80%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tabs {
|
|
|
|
margin: auto 0px 2em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.stats { flex-direction: column; }
|
|
|
|
body > footer {
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
body > footer * {
|
|
|
|
margin: 1em auto;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.flex.wrap { flex-direction: column; }
|
|
|
|
|
|
|
|
.cards, .list {
|
|
|
|
margin: 1rem 0 5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.split {
|
|
|
|
flex-direction: column;
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
& > * {
|
2019-09-01 16:53:15 +00:00
|
|
|
max-width: 100% !important;
|
2019-08-20 22:42:04 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.bottom-bar {
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
& > div {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
main .article-meta .comments .comment {
|
|
|
|
header {
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
.content {
|
|
|
|
margin-top: 0.5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-12-30 13:35:27 +00:00
|
|
|
|
|
|
|
//highlighting
|
|
|
|
code {
|
|
|
|
.constant{
|
|
|
|
color: $code-constant-color;
|
|
|
|
}
|
|
|
|
.string{
|
|
|
|
color: $code-string-color;
|
|
|
|
}
|
|
|
|
.keyword.type,.keyword.control,.type{
|
|
|
|
color: $code-keyword-color;
|
|
|
|
}
|
|
|
|
.keyword.operator{
|
|
|
|
color: $code-operator-color;
|
|
|
|
}
|
|
|
|
.source{
|
|
|
|
color: $code-source-color;
|
|
|
|
}
|
|
|
|
.comment{
|
|
|
|
color: $code-comment-color;
|
|
|
|
}
|
|
|
|
.function{
|
|
|
|
color:inherit;
|
|
|
|
}
|
|
|
|
}
|