2020-09-07 05:49:33 -04:00
|
|
|
.article-page {
|
2021-06-20 06:53:10 -04:00
|
|
|
&.hide-sidebar-sm .left-sidebar {
|
|
|
|
display: none;
|
2020-08-22 07:20:08 -04:00
|
|
|
|
2021-06-20 06:53:10 -04:00
|
|
|
@include respond(md) {
|
|
|
|
display: inherit;
|
2020-08-22 07:20:08 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
.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);
|
|
|
|
|
2023-09-03 09:32:44 -04:00
|
|
|
.footnotes {
|
|
|
|
font-family: var(--base-font-family);
|
|
|
|
}
|
|
|
|
|
2020-08-22 07:20:08 -04:00
|
|
|
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;
|
2022-03-03 17:11:19 -05:00
|
|
|
gap: 15px;
|
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
|
|
|
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
|
|
|
}
|
2021-07-25 13:50:52 -04:00
|
|
|
|
2022-01-20 06:09:25 -05:00
|
|
|
.article-copyright,
|
|
|
|
.article-lastmod {
|
2021-07-25 13:50:52 -04:00
|
|
|
a {
|
|
|
|
color: var(--body-text-color);
|
|
|
|
}
|
2022-06-08 12:21:28 -04:00
|
|
|
|
|
|
|
a.link {
|
|
|
|
box-shadow: unset;
|
|
|
|
}
|
2021-07-25 13:50:52 -04:00
|
|
|
}
|
2020-08-22 07:20:08 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-06-21 12:44:54 -04:00
|
|
|
.widget--toc {
|
|
|
|
background-color: var(--card-background);
|
|
|
|
border-radius: var(--card-border-radius);
|
|
|
|
box-shadow: var(--shadow-l1);
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
color: var(--card-text-color-main);
|
2021-08-08 11:03:48 -04:00
|
|
|
overflow: hidden;
|
2021-06-21 12:44:54 -04:00
|
|
|
|
2022-01-22 04:35:08 -05:00
|
|
|
::-webkit-scrollbar-thumb {
|
|
|
|
background-color: var(--card-separator-color);
|
|
|
|
}
|
|
|
|
|
2021-06-21 12:44:54 -04:00
|
|
|
#TableOfContents {
|
2021-08-08 11:03:48 -04:00
|
|
|
overflow-x: auto;
|
|
|
|
max-height: 75vh;
|
|
|
|
|
2021-08-08 10:47:58 -04:00
|
|
|
ol,
|
|
|
|
ul {
|
2021-06-21 12:44:54 -04:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
2021-08-08 10:47:58 -04:00
|
|
|
ol {
|
|
|
|
list-style-type: none;
|
|
|
|
counter-reset: item;
|
2021-06-21 12:44:54 -04:00
|
|
|
|
2022-06-10 18:34:19 -04:00
|
|
|
li a:first-of-type::before {
|
2021-06-21 12:44:54 -04:00
|
|
|
counter-increment: item;
|
|
|
|
content: counters(item, ".") ". ";
|
|
|
|
font-weight: bold;
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
2021-08-08 10:47:58 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
& > ul {
|
|
|
|
padding: 0 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
li {
|
2022-01-22 04:35:08 -05:00
|
|
|
margin: 15px 0 15px 20px;
|
2021-08-08 10:47:58 -04:00
|
|
|
padding: 5px;
|
2021-06-21 12:44:54 -04:00
|
|
|
|
2021-08-08 10:47:58 -04:00
|
|
|
& > ol,
|
|
|
|
& > ul {
|
2021-06-21 12:44:54 -04:00
|
|
|
margin-top: 10px;
|
|
|
|
padding-left: 10px;
|
|
|
|
margin-bottom: -5px;
|
|
|
|
|
|
|
|
& > li:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-01-22 04:35:08 -05:00
|
|
|
li.active-class > a {
|
|
|
|
border-left: var(--heading-border-size) solid var(--accent-color);
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul li.active-class > a {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
@function repeat($str, $n) {
|
|
|
|
$result: "";
|
|
|
|
@for $_ from 0 to $n {
|
|
|
|
$result: $result + $str;
|
|
|
|
}
|
|
|
|
@return $result;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Support up to 6 levels of indentation for lists in ToCs
|
|
|
|
@for $i from 0 to 5 {
|
|
|
|
& > ul #{repeat("> li > ul", $i)} > li.active-class > a {
|
|
|
|
$n: 25 + $i * 35;
|
|
|
|
margin-left: calc(-#{$n}px - 1em);
|
|
|
|
padding-left: calc(#{$n}px + 1em - var(--heading-border-size));
|
|
|
|
}
|
|
|
|
|
|
|
|
& > ol #{repeat("> li > ol", $i)} > li.active-class > a {
|
|
|
|
$n: 9 + $i * 35;
|
|
|
|
margin-left: calc(-#{$n}px - 1em);
|
|
|
|
padding-left: calc(#{$n}px + 1em - var(--heading-border-size));
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
2021-06-21 12:44:54 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-05 11:20:08 -04:00
|
|
|
.related-content {
|
2020-08-22 07:20:08 -04:00
|
|
|
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 {
|
2022-03-03 18:25:34 -05:00
|
|
|
margin-inline-start: calc((var(--card-padding)) * -1);
|
|
|
|
padding-inline-start: calc(var(--card-padding) - var(--heading-border-size));
|
|
|
|
border-inline-start: var(--heading-border-size) solid var(--accent-color);
|
2024-03-30 18:22:18 -04:00
|
|
|
position: relative;
|
|
|
|
|
|
|
|
a.header-anchor {
|
|
|
|
transition: opacity 0.3s ease;
|
|
|
|
opacity: 0;
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
width: var(--card-padding);
|
|
|
|
text-align: center;
|
|
|
|
color: var(--accent-color);
|
2024-05-02 17:27:17 -04:00
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: "#";
|
|
|
|
}
|
2024-03-30 18:22:18 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
a.header-anchor {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
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;
|
2022-03-03 18:25:34 -05:00
|
|
|
border-inline-start: 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);
|
2022-06-08 11:59:23 -04:00
|
|
|
|
|
|
|
.cite {
|
|
|
|
display: block;
|
|
|
|
text-align: right;
|
|
|
|
font-size: 0.75em;
|
|
|
|
|
|
|
|
a {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
}
|
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
|
|
|
}
|
|
|
|
|
2023-08-15 05:47:48 -04:00
|
|
|
a,
|
|
|
|
code {
|
|
|
|
word-break: break-word;
|
|
|
|
}
|
|
|
|
|
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;
|
2022-03-03 17:11:19 -05:00
|
|
|
gap: 10px;
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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);
|
2022-03-03 18:25:34 -05:00
|
|
|
// keep Codeblocks LTR
|
|
|
|
[dir="rtl"] & {
|
|
|
|
direction: ltr;
|
|
|
|
}
|
2020-08-22 07:20:08 -04:00
|
|
|
code {
|
|
|
|
color: unset;
|
|
|
|
border: none;
|
|
|
|
background: none;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-06 14:32:37 -05:00
|
|
|
.highlight {
|
|
|
|
background-color: var(--pre-background-color);
|
|
|
|
padding: var(--card-padding);
|
|
|
|
position: relative;
|
|
|
|
|
2022-10-29 11:14:19 -04:00
|
|
|
&:hover {
|
|
|
|
.copyCodeButton {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
2022-03-03 18:25:34 -05:00
|
|
|
// keep Codeblocks LTR
|
|
|
|
[dir="rtl"] & {
|
|
|
|
direction: ltr;
|
|
|
|
}
|
2022-02-06 14:32:37 -05:00
|
|
|
pre {
|
|
|
|
margin: initial;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-10-29 11:14:19 -04:00
|
|
|
.copyCodeButton {
|
|
|
|
position: absolute;
|
|
|
|
top: calc(var(--card-padding));
|
|
|
|
right: calc(var(--card-padding));
|
|
|
|
background: var(--card-background);
|
|
|
|
border: none;
|
|
|
|
box-shadow: var(--shadow-l2);
|
|
|
|
border-radius: var(--tag-border-radius);
|
|
|
|
padding: 8px 16px;
|
|
|
|
color: var(--card-text-color-main);
|
|
|
|
cursor: pointer;
|
|
|
|
font-size: 14px;
|
|
|
|
opacity: 0;
|
|
|
|
transition: opacity 0.3s ease;
|
2022-02-06 14:32:37 -05:00
|
|
|
}
|
|
|
|
|
2022-01-20 06:09:25 -05:00
|
|
|
.table-wrapper {
|
|
|
|
padding: 0 var(--card-padding);
|
|
|
|
overflow-x: auto;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
|
2021-08-08 10:47:58 -04:00
|
|
|
& > iframe,
|
|
|
|
& > video {
|
2021-03-07 06:51:47 -05:00
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-11 05:04:20 -04:00
|
|
|
.gitlab-embed-snippets {
|
|
|
|
margin: 0 !important;
|
|
|
|
|
|
|
|
.file-holder.snippet-file-content {
|
|
|
|
margin-block-end: 0 !important;
|
|
|
|
margin-block-start: 0 !important;
|
|
|
|
margin-left: calc((var(--card-padding)) * -1) !important;
|
|
|
|
margin-right: calc((var(--card-padding)) * -1) !important;
|
|
|
|
padding: 0 var(--card-padding) !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-07 06:51:47 -05:00
|
|
|
/// Negative margins
|
|
|
|
blockquote,
|
|
|
|
figure,
|
2022-10-29 11:14:19 -04:00
|
|
|
.highlight,
|
2021-03-07 06:51:47 -05:00
|
|
|
pre,
|
2022-01-20 06:09:25 -05:00
|
|
|
.gallery,
|
2021-03-07 06:51:47 -05:00
|
|
|
.video-wrapper,
|
2022-01-20 06:09:25 -05:00
|
|
|
.table-wrapper,
|
2021-03-07 06:51:47 -05:00
|
|
|
.s_video_simple {
|
|
|
|
margin-left: calc((var(--card-padding)) * -1);
|
|
|
|
margin-right: calc((var(--card-padding)) * -1);
|
|
|
|
width: calc(100% + var(--card-padding) * 2);
|
|
|
|
}
|
2022-10-29 08:38:44 -04:00
|
|
|
|
|
|
|
/// Make long KaTeX equations scrollable in the x-axis
|
|
|
|
.katex-display > .katex {
|
|
|
|
overflow-x: auto;
|
|
|
|
overflow-y: hidden;
|
|
|
|
}
|
2023-08-15 07:15:32 -04:00
|
|
|
|
|
|
|
kbd {
|
|
|
|
border: 1px solid var(--kbd-border-color);
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 0.9em;
|
|
|
|
line-height: 1;
|
|
|
|
padding: 2px 4px;
|
|
|
|
border-radius: 4px;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
2020-08-22 07:20:08 -04:00
|
|
|
}
|