2024-08-08 13:56:36 +00:00
|
|
|
$font-mono: ui-monospace, 'Fira Code', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
|
|
|
|
$code-font-size: 13px;
|
2024-07-10 16:44:39 +00:00
|
|
|
|
2024-07-17 18:54:46 +00:00
|
|
|
@mixin not-inside-actions {
|
|
|
|
&:not(:has(:global(.actions)), :global(.actions *)) {
|
|
|
|
@content;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-07-10 16:44:39 +00:00
|
|
|
.MarkdownContent {
|
|
|
|
line-height: 1.6;
|
2024-08-08 13:56:36 +00:00
|
|
|
color: var(--bolt-elements-textPrimary);
|
2024-07-10 16:44:39 +00:00
|
|
|
|
|
|
|
> *:not(:last-child) {
|
2024-08-08 13:56:36 +00:00
|
|
|
margin-block-end: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
:global(.artifact) {
|
|
|
|
margin: 1.5em 0;
|
2024-07-10 16:44:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
:is(h1, h2, h3, h4, h5, h6) {
|
2024-07-17 18:54:46 +00:00
|
|
|
@include not-inside-actions {
|
2024-08-08 13:56:36 +00:00
|
|
|
margin-block-start: 24px;
|
|
|
|
margin-block-end: 16px;
|
2024-07-17 18:54:46 +00:00
|
|
|
font-weight: 600;
|
|
|
|
line-height: 1.25;
|
2024-08-08 13:56:36 +00:00
|
|
|
color: var(--bolt-elements-textPrimary);
|
2024-07-17 18:54:46 +00:00
|
|
|
}
|
2024-07-10 16:44:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
font-size: 2em;
|
2024-08-08 13:56:36 +00:00
|
|
|
border-bottom: 1px solid var(--bolt-elements-borderColor);
|
2024-07-10 16:44:39 +00:00
|
|
|
padding-bottom: 0.3em;
|
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
font-size: 1.5em;
|
2024-08-08 13:56:36 +00:00
|
|
|
border-bottom: 1px solid var(--bolt-elements-borderColor);
|
2024-07-10 16:44:39 +00:00
|
|
|
padding-bottom: 0.3em;
|
|
|
|
}
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
font-size: 1.25em;
|
|
|
|
}
|
|
|
|
|
|
|
|
h4 {
|
|
|
|
font-size: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
h5 {
|
|
|
|
font-size: 0.875em;
|
|
|
|
}
|
|
|
|
|
|
|
|
h6 {
|
|
|
|
font-size: 0.85em;
|
|
|
|
color: #6a737d;
|
|
|
|
}
|
|
|
|
|
2024-08-22 13:06:51 +00:00
|
|
|
p {
|
|
|
|
white-space: pre-wrap;
|
|
|
|
|
|
|
|
&:not(:last-of-type) {
|
|
|
|
margin-block-start: 0;
|
|
|
|
margin-block-end: 16px;
|
|
|
|
}
|
2024-07-10 16:44:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
2024-08-08 13:56:36 +00:00
|
|
|
color: var(--bolt-elements-messages-linkColor);
|
2024-07-10 16:44:39 +00:00
|
|
|
text-decoration: none;
|
2024-08-08 13:56:36 +00:00
|
|
|
cursor: pointer;
|
2024-07-10 16:44:39 +00:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
:not(pre) > code {
|
|
|
|
font-family: $font-mono;
|
2024-08-08 13:56:36 +00:00
|
|
|
font-size: $code-font-size;
|
2024-07-17 18:54:46 +00:00
|
|
|
|
|
|
|
@include not-inside-actions {
|
2024-08-08 13:56:36 +00:00
|
|
|
border-radius: 6px;
|
|
|
|
padding: 0.2em 0.4em;
|
|
|
|
background-color: var(--bolt-elements-messages-inlineCode-background);
|
|
|
|
color: var(--bolt-elements-messages-inlineCode-text);
|
2024-07-17 18:54:46 +00:00
|
|
|
}
|
2024-07-10 16:44:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
pre {
|
|
|
|
padding: 20px 16px;
|
|
|
|
border-radius: 6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
pre:has(> code) {
|
|
|
|
font-family: $font-mono;
|
2024-08-08 13:56:36 +00:00
|
|
|
font-size: $code-font-size;
|
2024-07-10 16:44:39 +00:00
|
|
|
background: transparent;
|
|
|
|
overflow-x: auto;
|
2024-07-17 18:54:46 +00:00
|
|
|
min-width: 0;
|
2024-07-10 16:44:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
blockquote {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0 1em;
|
2024-08-08 13:56:36 +00:00
|
|
|
color: var(--bolt-elements-textTertiary);
|
|
|
|
border-left: 0.25em solid var(--bolt-elements-borderColor);
|
2024-07-10 16:44:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
:is(ul, ol) {
|
2024-07-17 18:54:46 +00:00
|
|
|
@include not-inside-actions {
|
|
|
|
padding-left: 2em;
|
2024-08-08 13:56:36 +00:00
|
|
|
margin-block-start: 0;
|
|
|
|
margin-block-end: 16px;
|
2024-07-17 18:54:46 +00:00
|
|
|
}
|
2024-07-10 16:44:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
2024-07-17 18:54:46 +00:00
|
|
|
@include not-inside-actions {
|
|
|
|
list-style-type: disc;
|
|
|
|
}
|
2024-07-10 16:44:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ol {
|
2024-07-17 18:54:46 +00:00
|
|
|
@include not-inside-actions {
|
|
|
|
list-style-type: decimal;
|
|
|
|
}
|
2024-07-10 16:44:39 +00:00
|
|
|
}
|
|
|
|
|
2024-07-17 18:54:46 +00:00
|
|
|
li {
|
|
|
|
@include not-inside-actions {
|
|
|
|
& + li {
|
2024-08-08 13:56:36 +00:00
|
|
|
margin-block-start: 8px;
|
2024-07-17 18:54:46 +00:00
|
|
|
}
|
2024-07-12 15:25:41 +00:00
|
|
|
|
2024-07-17 18:54:46 +00:00
|
|
|
> *:not(:last-child) {
|
2024-08-08 13:56:36 +00:00
|
|
|
margin-block-end: 16px;
|
2024-07-17 18:54:46 +00:00
|
|
|
}
|
|
|
|
}
|
2024-07-12 15:25:41 +00:00
|
|
|
}
|
|
|
|
|
2024-07-10 16:44:39 +00:00
|
|
|
img {
|
|
|
|
max-width: 100%;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
hr {
|
|
|
|
height: 0.25em;
|
|
|
|
padding: 0;
|
|
|
|
margin: 24px 0;
|
2024-08-08 13:56:36 +00:00
|
|
|
background-color: var(--bolt-elements-borderColor);
|
2024-07-10 16:44:39 +00:00
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
table {
|
|
|
|
border-collapse: collapse;
|
|
|
|
width: 100%;
|
2024-08-08 13:56:36 +00:00
|
|
|
margin-block-end: 16px;
|
2024-07-10 16:44:39 +00:00
|
|
|
|
|
|
|
:is(th, td) {
|
|
|
|
padding: 6px 13px;
|
|
|
|
border: 1px solid #dfe2e5;
|
|
|
|
}
|
|
|
|
|
|
|
|
tr:nth-child(2n) {
|
|
|
|
background-color: #f6f8fa;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|