2020-09-12 04:33:53 -04:00
|
|
|
.keep-sidebar {
|
2020-09-07 05:34:28 -04:00
|
|
|
@media (min-width: $on-phone) and (max-width: $on-tablet) {
|
2020-09-07 05:49:33 -04:00
|
|
|
--main-top-padding: 50px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.article-page {
|
|
|
|
&.with-toolbar {
|
|
|
|
@media (max-width: $on-tablet) {
|
|
|
|
--main-top-padding: 0;
|
|
|
|
}
|
2020-09-07 05:34:28 -04:00
|
|
|
}
|
|
|
|
|
2020-09-12 04:33:53 -04:00
|
|
|
&:not(.keep-sidebar) .left-sidebar {
|
2020-08-22 07:20:08 -04:00
|
|
|
@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%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-09-24 17:59:00 -04:00
|
|
|
.main-article {
|
2020-08-22 07:20:08 -04:00
|
|
|
background: var(--card-background);
|
|
|
|
border-radius: var(--card-border-radius);
|
2020-09-09 10:14:30 -04:00
|
|
|
box-shadow: var(--shadow-l1);
|
2020-08-22 07:20:08 -04:00
|
|
|
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-09-20 13:03:41 -04:00
|
|
|
padding: var(--card-padding);
|
2020-08-24 06:17:43 -04:00
|
|
|
padding-bottom: 0;
|
2020-08-22 07:20:08 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.article-content {
|
2020-09-20 13:03:41 -04:00
|
|
|
margin: var(--card-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-09-25 05:07:49 -04:00
|
|
|
margin: var(--card-padding);
|
|
|
|
margin-top: 0;
|
2020-08-22 07:20:08 -04:00
|
|
|
|
2020-09-06 14:26:18 -04:00
|
|
|
section:not(:first-child) {
|
2020-09-20 13:03:41 -04:00
|
|
|
margin-top: var(--card-padding);
|
2020-09-06 14:26:18 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
section {
|
2020-08-22 07:20:08 -04:00
|
|
|
color: var(--card-text-color-tertiary);
|
|
|
|
text-transform: uppercase;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2020-09-06 14:26:18 -04:00
|
|
|
font-size: 1.4rem;
|
2020-08-22 07:20:08 -04:00
|
|
|
|
|
|
|
svg {
|
2020-09-06 14:26:18 -04:00
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
2020-08-22 07:20:08 -04:00
|
|
|
margin-right: 15px;
|
|
|
|
stroke-width: 1.33;
|
|
|
|
}
|
|
|
|
}
|
2020-09-08 06:09:03 -04:00
|
|
|
|
|
|
|
.article-tags {
|
|
|
|
flex-wrap: wrap;
|
2020-10-10 03:14:27 -04:00
|
|
|
text-transform: unset;
|
2020-09-08 06:09:03 -04:00
|
|
|
}
|
2020-08-22 07:20:08 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#article-toolbar {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
2020-09-07 05:49:33 -04:00
|
|
|
@media (max-width: $on-tablet) {
|
|
|
|
margin: 20px 0;
|
2020-08-22 07:20:08 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: $on-tablet) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.back-home {
|
2020-09-07 05:27:40 -04:00
|
|
|
background: var(--card-background);
|
|
|
|
border-radius: var(--tag-border-radius);
|
|
|
|
color: var(--card-text-color-tertiary);
|
2020-08-22 07:20:08 -04:00
|
|
|
margin-right: 30px;
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
2020-09-07 05:27:40 -04:00
|
|
|
font-size: 1.4rem;
|
|
|
|
text-transform: uppercase;
|
|
|
|
padding: 10px 20px 10px 15px;
|
|
|
|
|
|
|
|
transition: box-shadow 0.3s ease;
|
|
|
|
|
2020-09-09 10:14:30 -04:00
|
|
|
box-shadow: var(--shadow-l1);
|
2020-09-07 05:27:40 -04:00
|
|
|
|
|
|
|
&:hover {
|
2020-09-09 10:14:30 -04:00
|
|
|
box-shadow: var(--shadow-l2);
|
2020-09-07 05:27:40 -04:00
|
|
|
}
|
2020-08-22 07:20:08 -04:00
|
|
|
|
|
|
|
svg {
|
|
|
|
margin-right: 5px;
|
2020-09-07 05:27:40 -04:00
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
2020-08-22 07:20:08 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
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);
|
2021-03-07 06:51:47 -05:00
|
|
|
padding: 0 var(--card-padding);
|
2020-08-24 14:45:26 -04:00
|
|
|
line-height: var(--article-line-height);
|
2020-08-22 07:20:08 -04:00
|
|
|
|
2021-03-07 06:51:47 -05:00
|
|
|
& > p {
|
2020-08-22 07:20:08 -04:00
|
|
|
margin: 1.5em 0;
|
2020-08-24 06:05:15 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
2021-03-07 06:51:47 -05:00
|
|
|
margin-left: calc((var(--card-padding)) * -1);
|
|
|
|
padding-left: calc(var(--card-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 {
|
|
|
|
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;
|
2021-03-07 06:51:47 -05:00
|
|
|
margin: 1.5em 0;
|
2020-08-24 06:05:15 -04:00
|
|
|
border-left: var(--blockquote-border-size) solid var(--card-separator-color);
|
2020-09-20 13:03:41 -04:00
|
|
|
padding: 15px calc(var(--card-padding) - var(--blockquote-border-size));
|
2020-09-08 07:01:27 -04:00
|
|
|
background-color: var(--blockquote-background-color);
|
2020-08-24 06:05:15 -04:00
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
.gallery {
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: center;
|
2021-03-07 06:51:47 -05:00
|
|
|
margin: 1.5em 0;
|
2020-08-22 07:20:08 -04:00
|
|
|
|
|
|
|
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-09-20 13:03:41 -04:00
|
|
|
padding: var(--card-padding);
|
2020-08-22 07:20:08 -04:00
|
|
|
|
|
|
|
code {
|
|
|
|
color: unset;
|
|
|
|
border: none;
|
|
|
|
background: none;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-09-08 06:48:34 -04:00
|
|
|
table {
|
|
|
|
width: 100%;
|
|
|
|
border-collapse: collapse;
|
|
|
|
border-spacing: 0;
|
|
|
|
margin-bottom: 1.5em;
|
|
|
|
font-size: 0.96em;
|
|
|
|
}
|
|
|
|
|
|
|
|
th,
|
|
|
|
td {
|
|
|
|
text-align: left;
|
|
|
|
padding: 4px 8px 4px 10px;
|
|
|
|
border: 1px solid var(--table-border-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
td {
|
|
|
|
vertical-align: top;
|
|
|
|
}
|
|
|
|
|
|
|
|
tr:nth-child(even) {
|
|
|
|
background-color: var(--tr-even-background-color);
|
|
|
|
}
|
2020-12-24 05:24:26 -05:00
|
|
|
|
|
|
|
.twitter-tweet {
|
|
|
|
color: var(--card-text-color-main);
|
|
|
|
}
|
2021-03-07 06:51:47 -05:00
|
|
|
|
|
|
|
.video-wrapper {
|
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
|
|
height: 0;
|
|
|
|
padding-bottom: 56.25%;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
& > iframe {
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Negative margins
|
|
|
|
blockquote,
|
|
|
|
figure,
|
|
|
|
.gallery,
|
|
|
|
pre,
|
|
|
|
.video-wrapper,
|
|
|
|
.s_video_simple {
|
|
|
|
margin-left: calc((var(--card-padding)) * -1);
|
|
|
|
margin-right: calc((var(--card-padding)) * -1);
|
|
|
|
width: calc(100% + var(--card-padding) * 2);
|
|
|
|
}
|
2020-08-22 07:20:08 -04:00
|
|
|
}
|