2020-08-22 07:20:08 -04:00
|
|
|
@import "variables.scss";
|
|
|
|
|
|
|
|
.article-page {
|
|
|
|
.left-sidebar {
|
|
|
|
@media (max-width: $on-tablet) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.article-sidebar {
|
|
|
|
position: sticky;
|
|
|
|
top: 50px;
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
|
|
@media (max-width: $on-tablet) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: $on-tablet) {
|
|
|
|
padding-left: 15px;
|
|
|
|
margin-left: 1%;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: $on-tablet) {
|
|
|
|
width: 25%;
|
|
|
|
margin-right: 1%;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: $on-desktop) {
|
|
|
|
width: 30%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
article {
|
|
|
|
background: var(--card-background);
|
|
|
|
border-radius: var(--card-border-radius);
|
|
|
|
@include box_shadow(1);
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
&.main-article {
|
2020-08-24 14:28:17 -04:00
|
|
|
margin-bottom: var(--section-separation);
|
2020-08-22 07:20:08 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.article-header {
|
|
|
|
.article-image {
|
|
|
|
img {
|
|
|
|
height: auto;
|
|
|
|
width: 100%;
|
2020-09-03 05:42:01 -04:00
|
|
|
max-height: 50vh;
|
2020-08-22 07:20:08 -04:00
|
|
|
object-fit: cover;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.article-details {
|
2020-08-24 06:26:27 -04:00
|
|
|
padding: var(--content-padding);
|
2020-08-24 06:17:43 -04:00
|
|
|
padding-bottom: 0;
|
2020-08-22 07:20:08 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.article-content {
|
2020-08-24 06:26:27 -04:00
|
|
|
margin: var(--content-padding) 0;
|
2020-08-22 07:20:08 -04:00
|
|
|
color: var(--card-text-color-main);
|
|
|
|
|
|
|
|
img {
|
|
|
|
max-width: 100%;
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.article-footer {
|
2020-08-24 06:26:27 -04:00
|
|
|
padding: var(--content-padding);
|
2020-08-24 07:28:32 -04:00
|
|
|
padding-top: 0;
|
2020-08-22 07:20:08 -04:00
|
|
|
|
|
|
|
.article-copyright {
|
2020-08-24 06:26:27 -04:00
|
|
|
margin-top: var(--content-padding);
|
2020-08-22 07:20:08 -04:00
|
|
|
color: var(--card-text-color-tertiary);
|
|
|
|
text-transform: uppercase;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
svg {
|
|
|
|
margin-right: 15px;
|
|
|
|
stroke-width: 1.33;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#TableOfContents {
|
|
|
|
background: var(--card-background);
|
|
|
|
border-radius: var(--card-border-radius);
|
|
|
|
@include box_shadow(1);
|
|
|
|
ul {
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
list-style: none;
|
|
|
|
|
|
|
|
li {
|
|
|
|
padding: 15px 30px;
|
|
|
|
padding-right: 50px;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&:not(:last-of-type) {
|
|
|
|
border-bottom: 1px solid var(--card-separator-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: var(--accent-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
|
|
|
border-top: 1px solid var(--card-separator-color);
|
|
|
|
margin-top: 15px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#article-toolbar {
|
|
|
|
background: var(--card-background);
|
|
|
|
@include box_shadow(1);
|
|
|
|
border-radius: var(--card-border-radius);
|
|
|
|
margin-bottom: 20px;
|
|
|
|
padding: 15px 20px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
@media (max-width: $on-phone) {
|
|
|
|
margin-top: 15px;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: $on-tablet) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.back-home {
|
|
|
|
color: var(--card-text-color-secondary);
|
|
|
|
margin-right: 30px;
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
svg {
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
span {
|
|
|
|
font-weight: 500;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.related-contents--wrapper {
|
2020-08-24 14:28:17 -04:00
|
|
|
margin-bottom: var(--section-separation);
|
2020-08-22 07:20:08 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.related-contents {
|
|
|
|
overflow-x: auto;
|
|
|
|
padding-bottom: 15px;
|
|
|
|
|
|
|
|
& > .flex {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
article {
|
|
|
|
margin-right: 15px;
|
|
|
|
flex-shrink: 0;
|
|
|
|
overflow: hidden;
|
2020-09-04 18:50:08 -04:00
|
|
|
width: 250px;
|
|
|
|
height: 150px;
|
2020-08-22 07:20:08 -04:00
|
|
|
|
|
|
|
.article-title {
|
|
|
|
font-size: 1.8rem;
|
2020-09-04 18:50:08 -04:00
|
|
|
margin: 0;
|
2020-08-22 07:20:08 -04:00
|
|
|
}
|
|
|
|
|
2020-09-04 18:50:08 -04:00
|
|
|
&.has-image {
|
|
|
|
.article-details {
|
|
|
|
padding: 20px;
|
|
|
|
background: linear-gradient(0deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.75) 100%);
|
|
|
|
}
|
2020-08-22 07:20:08 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.article-content {
|
2020-08-24 05:52:12 -04:00
|
|
|
font-family: var(--article-font-family);
|
2020-08-24 14:45:26 -04:00
|
|
|
font-size: var(--article-font-size);
|
|
|
|
line-height: var(--article-line-height);
|
2020-08-22 07:20:08 -04:00
|
|
|
|
2020-08-24 06:26:27 -04:00
|
|
|
& > p {
|
2020-08-22 07:20:08 -04:00
|
|
|
margin: 1.5em 0;
|
2020-08-24 06:26:27 -04:00
|
|
|
padding: 0 var(--content-padding);
|
2020-08-24 06:05:15 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
2020-08-24 06:26:27 -04:00
|
|
|
padding: 0 calc(var(--content-padding) - var(--heading-border-size));
|
2020-08-24 06:05:15 -04:00
|
|
|
border-left: var(--heading-border-size) solid var(--accent-color);
|
2020-08-22 07:20:08 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
figure {
|
|
|
|
margin: 0 auto;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
figcaption {
|
2020-08-22 14:44:27 -04:00
|
|
|
font-size: 1.4rem;
|
|
|
|
color: var(--card-text-color-secondary);
|
2020-08-22 07:20:08 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
blockquote {
|
|
|
|
position: relative;
|
|
|
|
margin: 10px 0;
|
2020-08-24 06:05:15 -04:00
|
|
|
border-left: var(--blockquote-border-size) solid var(--card-separator-color);
|
2020-08-24 06:26:27 -04:00
|
|
|
padding: 0 calc(var(--content-padding) - var(--blockquote-border-size));
|
2020-08-24 06:05:15 -04:00
|
|
|
}
|
|
|
|
|
2020-08-24 07:28:32 -04:00
|
|
|
& > ul {
|
2020-08-24 06:26:27 -04:00
|
|
|
margin: 0 var(--content-padding);
|
2020-08-22 07:20:08 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
hr {
|
|
|
|
width: 100px;
|
2020-09-03 05:42:01 -04:00
|
|
|
margin: 40px auto;
|
2020-08-22 07:20:08 -04:00
|
|
|
background: var(--card-text-color-tertiary);
|
2020-09-03 05:42:01 -04:00
|
|
|
height: 2px;
|
2020-08-22 07:20:08 -04:00
|
|
|
border: 0;
|
2020-09-03 05:42:01 -04:00
|
|
|
opacity: 0.55;
|
2020-08-22 07:20:08 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
code {
|
2020-08-25 17:18:40 -04:00
|
|
|
color: var(--code-text-color);
|
|
|
|
background-color: var(--code-background-color);
|
|
|
|
padding: 2px 4px;
|
|
|
|
border-radius: var(--tag-border-radius);
|
2020-08-24 05:52:12 -04:00
|
|
|
font-family: var(--code-font-family);
|
2020-08-22 07:20:08 -04:00
|
|
|
word-wrap: break-word;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gallery {
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: center;
|
|
|
|
margin: 20px 0;
|
|
|
|
|
|
|
|
figure {
|
2020-08-24 06:05:15 -04:00
|
|
|
margin: 0;
|
2020-08-22 07:20:08 -04:00
|
|
|
|
2020-08-24 06:05:15 -04:00
|
|
|
& + figure {
|
|
|
|
margin-left: 10px;
|
2020-08-22 07:20:08 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pre {
|
|
|
|
overflow-x: auto;
|
|
|
|
display: block;
|
2020-08-25 17:19:57 -04:00
|
|
|
background-color: var(--pre-background-color);
|
2020-08-24 17:32:24 -04:00
|
|
|
color: var(--pre-text-color);
|
2020-08-24 05:52:12 -04:00
|
|
|
font-family: var(--code-font-family);
|
2020-08-22 07:20:08 -04:00
|
|
|
line-height: 1.428571429;
|
|
|
|
word-break: break-all;
|
2020-08-24 06:26:27 -04:00
|
|
|
padding: var(--content-padding);
|
2020-08-22 07:20:08 -04:00
|
|
|
|
|
|
|
code {
|
|
|
|
color: unset;
|
|
|
|
border: none;
|
|
|
|
background: none;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-24 06:07:58 -04:00
|
|
|
a.link {
|
2020-08-24 07:09:20 -04:00
|
|
|
box-shadow: 0px -2px 0px rgba(var(--link-background-color), var(--link-background-opacity)) inset;
|
2020-08-22 17:11:34 -04:00
|
|
|
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
|
|
|
&:hover {
|
2020-08-24 07:09:20 -04:00
|
|
|
box-shadow: 0px -10px 0px rgba(var(--link-background-color), var(--link-background-opacity-hover)) inset;
|
2020-08-22 07:20:08 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|