2024-05-15 01:53:03 +02:00
|
|
|
// Copyright 2024, Command Line Inc.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2024-12-10 21:47:39 +01:00
|
|
|
@import url("../../../node_modules/highlight.js/scss/github-dark-dimmed.scss");
|
2024-12-10 21:38:49 +01:00
|
|
|
|
2024-05-14 18:37:41 +02:00
|
|
|
.markdown {
|
2024-12-04 22:49:14 +01:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
overflow: hidden;
|
2024-09-05 06:15:39 +02:00
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
2024-10-06 22:30:02 +02:00
|
|
|
|
2024-12-04 22:49:14 +01:00
|
|
|
.content {
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
overflow: scroll;
|
2024-09-05 06:15:39 +02:00
|
|
|
line-height: 1.5;
|
2024-12-04 21:49:44 +01:00
|
|
|
color: var(--main-text-color);
|
2024-12-17 01:04:07 +01:00
|
|
|
font-family: var(--markdown-font-family);
|
|
|
|
font-size: var(--markdown-font-size);
|
2024-12-04 22:49:14 +01:00
|
|
|
overflow-wrap: break-word;
|
|
|
|
|
|
|
|
&.non-scrollable {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
2024-12-19 21:41:03 +01:00
|
|
|
*:last-child {
|
|
|
|
margin-bottom: 0 !important;
|
|
|
|
}
|
|
|
|
|
2024-12-17 01:04:07 +01:00
|
|
|
.heading:not(.heading ~ .heading) {
|
|
|
|
margin-top: 0 !important;
|
|
|
|
}
|
|
|
|
|
2024-12-04 22:49:14 +01:00
|
|
|
.heading {
|
|
|
|
color: var(--main-text-color);
|
2024-12-17 01:04:07 +01:00
|
|
|
margin-top: 1.143em;
|
|
|
|
margin-bottom: 0.571em;
|
|
|
|
font-weight: semibold;
|
|
|
|
padding-top: 0.429em;
|
|
|
|
|
|
|
|
&.is-1 {
|
|
|
|
border-bottom: 1px solid var(--border-color);
|
|
|
|
padding-bottom: 0.429em;
|
|
|
|
font-size: 2em;
|
|
|
|
}
|
|
|
|
&.is-2 {
|
|
|
|
border-bottom: 1px solid var(--border-color);
|
|
|
|
padding-bottom: 0.429em;
|
|
|
|
font-size: 1.5em;
|
|
|
|
}
|
|
|
|
&.is-3 {
|
|
|
|
font-size: 1.25em;
|
|
|
|
}
|
|
|
|
&.is-4 {
|
|
|
|
font-size: 1em;
|
|
|
|
}
|
|
|
|
&.is-5 {
|
|
|
|
font-size: 0.875em;
|
|
|
|
}
|
|
|
|
&.is-6 {
|
|
|
|
font-size: 0.85em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.paragraph {
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
|
|
|
border-style: none;
|
|
|
|
max-width: 100%;
|
|
|
|
box-sizing: content-box;
|
|
|
|
|
|
|
|
&[align="right"] {
|
|
|
|
padding-left: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&[align="left"] {
|
|
|
|
padding-right: 20px;
|
|
|
|
}
|
2024-12-04 22:49:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
strong {
|
|
|
|
color: var(--main-text-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: #32afff;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
|
|
|
list-style-type: disc;
|
|
|
|
list-style-position: outside;
|
2024-12-17 01:04:07 +01:00
|
|
|
margin-left: 1.143em;
|
2024-12-04 22:49:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
ol {
|
|
|
|
list-style-position: outside;
|
2024-12-17 01:04:07 +01:00
|
|
|
margin-left: 1.357em;
|
2024-12-04 22:49:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
blockquote {
|
2024-12-17 01:04:07 +01:00
|
|
|
margin: 0.286em 0.714em;
|
|
|
|
border-radius: 4px;
|
2024-12-04 22:49:14 +01:00
|
|
|
background-color: var(--panel-bg-color);
|
2024-12-17 01:04:07 +01:00
|
|
|
padding: 0.143em 0.286em 0.143em 0.429em;
|
2024-12-04 22:49:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
pre.codeblock {
|
|
|
|
background-color: var(--panel-bg-color);
|
2024-12-17 01:04:07 +01:00
|
|
|
margin: 0.286em 0.714em;
|
2024-12-04 22:49:14 +01:00
|
|
|
padding: 0.4em 0.7em;
|
|
|
|
border-radius: 4px;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
code {
|
|
|
|
line-height: 1.5;
|
|
|
|
white-space: pre-wrap;
|
|
|
|
word-wrap: break-word;
|
|
|
|
overflow: auto;
|
|
|
|
overflow: hidden;
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.codeblock-actions {
|
|
|
|
visibility: hidden;
|
|
|
|
display: flex;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
border-radius: 4px;
|
|
|
|
backdrop-filter: blur(8px);
|
2024-12-17 01:04:07 +01:00
|
|
|
margin: 0.143em;
|
|
|
|
padding: 0.286em;
|
2024-12-04 22:49:14 +01:00
|
|
|
align-items: center;
|
|
|
|
justify-content: flex-end;
|
2024-12-17 01:04:07 +01:00
|
|
|
gap: 0.286em;
|
2024-12-04 22:49:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover .codeblock-actions {
|
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
code {
|
|
|
|
color: var(--main-text-color);
|
|
|
|
font: var(--fixed-font);
|
2024-12-17 01:04:07 +01:00
|
|
|
font-size: var(--markdown-fixed-font-size);
|
2024-12-04 22:49:14 +01:00
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
pre.selected {
|
|
|
|
outline: 2px solid var(--accent-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.waveblock {
|
2024-12-17 01:04:07 +01:00
|
|
|
margin: 1.143em 0;
|
2024-12-04 22:49:14 +01:00
|
|
|
|
|
|
|
.wave-block-content {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2024-12-17 01:04:07 +01:00
|
|
|
padding: 0.857em;
|
2024-12-04 22:49:14 +01:00
|
|
|
background-color: var(--highlight-bg-color);
|
|
|
|
border: 1px solid var(--border-color);
|
|
|
|
border-radius: 8px;
|
|
|
|
transition: background-color 0.2s ease;
|
|
|
|
}
|
|
|
|
|
|
|
|
.wave-block-icon {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2024-12-17 01:04:07 +01:00
|
|
|
width: 2.857em;
|
|
|
|
height: 2.857em;
|
2024-12-04 22:49:14 +01:00
|
|
|
background-color: black;
|
|
|
|
border-radius: 8px;
|
2024-12-17 01:04:07 +01:00
|
|
|
margin-right: 0.857em;
|
2024-12-04 22:49:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.wave-block-icon i {
|
2024-12-17 01:04:07 +01:00
|
|
|
font-size: 1.125em;
|
2024-12-04 22:49:14 +01:00
|
|
|
color: var(--secondary-text-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.wave-block-info {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
.wave-block-filename {
|
2024-12-17 01:04:07 +01:00
|
|
|
font-size: 1em;
|
2024-12-04 22:49:14 +01:00
|
|
|
font-weight: 500;
|
|
|
|
color: var(--main-text-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.wave-block-size {
|
2024-12-17 01:04:07 +01:00
|
|
|
font-size: 0.857em;
|
2024-12-04 22:49:14 +01:00
|
|
|
color: var(--secondary-text-color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.toc {
|
|
|
|
max-width: 40%;
|
|
|
|
height: 100%;
|
|
|
|
overflow: scroll;
|
|
|
|
border-left: 1px solid var(--border-color);
|
|
|
|
.toc-inner {
|
|
|
|
height: fit-content;
|
|
|
|
position: sticky;
|
|
|
|
top: 0;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2024-12-17 01:04:07 +01:00
|
|
|
gap: 0.357em;
|
2024-12-04 22:49:14 +01:00
|
|
|
text-wrap: wrap;
|
|
|
|
|
|
|
|
h4 {
|
2024-12-17 01:04:07 +01:00
|
|
|
padding-left: 0.357em;
|
2024-12-04 22:49:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.toc-item {
|
|
|
|
cursor: pointer;
|
|
|
|
--indent-factor: 1;
|
2024-12-17 01:04:07 +01:00
|
|
|
// The offset in the padding will ensure that when the text in the item wraps, it indents slightly.
|
2024-12-04 22:49:14 +01:00
|
|
|
// The indent factor is set in the React code and denotes the depth of the item in the TOC tree.
|
2024-12-17 01:04:07 +01:00
|
|
|
padding-left: calc((var(--indent-factor) - 1) * 0.714em + 0.357em);
|
|
|
|
text-indent: -0.357em;
|
2024-12-04 22:49:14 +01:00
|
|
|
}
|
|
|
|
}
|
2024-09-05 06:15:39 +02:00
|
|
|
}
|
2024-05-14 18:37:41 +02:00
|
|
|
}
|