1
0
mirror of https://github.com/coalaura/whiskr.git synced 2025-09-09 09:19:54 +00:00

various improvements

This commit is contained in:
Laura
2025-08-09 21:16:24 +02:00
parent 65f167a0f8
commit 9db37f64cb
37 changed files with 2839 additions and 113 deletions

View File

@@ -0,0 +1 @@
code.hljs{color:#cad3f5;background:#24273a}code .hljs-keyword{color:#c6a0f6}code .hljs-built_in{color:#ed8796}code .hljs-type{color:#eed49f}code .hljs-literal{color:#f5a97f}code .hljs-number{color:#f5a97f}code .hljs-operator{color:#91d7e3}code .hljs-punctuation{color:#b8c0e0}code .hljs-property{color:#8bd5ca}code .hljs-regexp{color:#f5bde6}code .hljs-string{color:#a6da95}code .hljs-char.escape_{color:#a6da95}code .hljs-subst{color:#a5adcb}code .hljs-symbol{color:#f0c6c6}code .hljs-variable{color:#c6a0f6}code .hljs-variable.language_{color:#c6a0f6}code .hljs-variable.constant_{color:#f5a97f}code .hljs-title{color:#8aadf4}code .hljs-title.class_{color:#eed49f}code .hljs-title.function_{color:#8aadf4}code .hljs-params{color:#cad3f5}code .hljs-comment{color:#939ab7}code .hljs-doctag{color:#ed8796}code .hljs-meta{color:#f5a97f}code .hljs-section{color:#8aadf4}code .hljs-tag{color:#8bd5ca}code .hljs-name{color:#c6a0f6}code .hljs-attr{color:#8aadf4}code .hljs-attribute{color:#a6da95}code .hljs-bullet{color:#8bd5ca}code .hljs-code{color:#a6da95}code .hljs-emphasis{color:#ed8796;font-style:italic}code .hljs-strong{color:#ed8796;font-weight:bold}code .hljs-formula{color:#8bd5ca}code .hljs-link{color:#7dc4e4;font-style:italic}code .hljs-quote{color:#a6da95;font-style:italic}code .hljs-selector-tag{color:#eed49f}code .hljs-selector-id{color:#8aadf4}code .hljs-selector-class{color:#8bd5ca}code .hljs-selector-attr{color:#c6a0f6}code .hljs-selector-pseudo{color:#8bd5ca}code .hljs-template-tag{color:#f0c6c6}code .hljs-template-variable{color:#f0c6c6}code .hljs-addition{color:#a6da95;background:rgba(166,218,149,.15)}code .hljs-deletion{color:#ed8796;background:rgba(237,135,150,.15)}

473
static/css/chat.css Normal file
View File

@@ -0,0 +1,473 @@
@font-face {
font-family: "Comic Code";
src: url(fonts/ComicCode-Regular.ttf);
font-weight: normal;
}
@font-face {
font-family: "Comic Code";
src: url(fonts/ComicCode-Bold.ttf);
font-weight: 700;
}
@font-face {
font-family: "Comic Code";
src: url(fonts/ComicCode-Italic.ttf);
font-weight: normal;
font-style: italic;
}
@font-face {
font-family: "Comic Code";
src: url(fonts/ComicCode-BoldItalic.ttf);
font-weight: 700;
font-style: italic;
}
* {
box-sizing: border-box;
}
html,
body {
font-family: "Lato", sans-serif;
font-size: 15px;
background: #181926;
color: #cad3f5;
height: 100%;
width: 100%;
margin: 0;
}
body {
display: flex;
overflow: hidden;
}
#page {
display: flex;
flex-direction: column;
gap: 25px;
background: #1e2030;
margin: auto;
margin-top: 30px;
width: 100%;
max-width: 1100px;
height: calc(100% - 30px);
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.hidden {
opacity: 0 !important;
pointer-events: none !important;
}
#messages {
display: flex;
flex-direction: column;
gap: 40px;
height: 100%;
overflow-y: auto;
padding: 14px 12px;
}
#messages:empty::before {
content: "no messages";
color: #a5adcb;
font-style: italic;
align-self: center;
}
#message,
.message {
border: none;
border-radius: 6px;
background: #24273a;
font: inherit;
color: inherit;
}
.message {
position: relative;
max-width: 700px;
min-width: 200px;
width: max-content;
padding-top: 28px;
background: #363a4f;
overflow: hidden;
flex-shrink: 0;
}
.message.user {
align-self: end;
}
.message.system {
align-self: center;
}
.message .role {
position: absolute;
font-family: "Comic Code", ui-monospace, "Cascadia Mono", "Segoe UI Mono", "Ubuntu Mono", "Roboto Mono", Menlo, Monaco, Consolas, monospace;
font-size: 12px;
line-height: 12px;
top: 8px;
left: 6px;
padding-left: 20px;
}
#messages .message .role::before {
content: "";
width: 16px;
height: 16px;
position: absolute;
top: -1px;
left: 0;
}
.message.user .role::before {
background-image: url(icons/user.svg);
}
.message.system .role::before {
background-image: url(icons/system.svg);
}
.message.assistant .role::before {
background-image: url(icons/assistant.svg);
}
.message.assistant {
max-width: 800px;
}
.message .reasoning,
.message .text {
display: block;
background: transparent;
padding: 10px 12px;
width: 100%;
}
.message .text {
padding-bottom: 10px;
}
.message:not(.editing) textarea.text,
.message.editing div.text {
display: none;
}
.message div.text {
background: #24273a;
}
.message textarea.text {
background: #181926;
}
.message .reasoning-text {
--height: auto;
height: calc(var(--height) + 20px);
background: #1e2030;
border-radius: 6px;
transition: 150ms;
padding: 10px 12px;
}
.message:not(.expanded) .reasoning-text {
height: 0;
padding: 0 12px;
overflow: hidden;
}
.message.expanded .reasoning-text {
margin-top: 10px;
}
.message:not(.has-reasoning) .reasoning {
display: none;
}
.reasoning .toggle {
position: relative;
padding: 0 20px;
font-weight: 600;
font-size: 14px;
margin-top: 2px;
}
.reasoning .toggle::after,
.reasoning .toggle::before {
content: "";
background-image: url(icons/reasoning.svg);
position: absolute;
top: 0;
left: -2px;
width: 20px;
height: 20px;
}
.reasoning .toggle::after {
background-image: url(icons/chevron.svg);
left: unset;
right: -2px;
top: 1px;
transition: 150ms;
}
.message.expanded .reasoning .toggle::after {
transform: rotate(180deg);
}
.message .options {
display: flex;
gap: 4px;
position: absolute;
top: 4px;
right: 6px;
opacity: 0;
pointer-events: none;
transition: 150ms;
}
.message:hover .options {
opacity: 1;
pointer-events: all;
}
.message.waiting .options,
.message.reasoning .options,
.message.receiving .options {
display: none;
}
.message.reasoning .reasoning button.toggle::before {
animation: rotating 2s linear infinite;
background-image: url(icons/loading.svg);
}
.message .text::before {
font-style: italic;
}
.message:empty.receiving .text::before,
.message.waiting .text::before {
content: ". . .";
}
#chat {
display: flex;
position: relative;
justify-content: center;
padding: 0 12px;
height: 240px;
}
#chat::after {
content: "";
position: absolute;
bottom: 0;
left: 12px;
right: 12px;
height: 36px;
background: #24273a;
}
#message {
border-bottom-left-radius: 0px;
border-bottom-right-radius: 0px;
width: 100%;
height: 100%;
padding: 14px 16px;
padding-bottom: 30px;
}
textarea,
button,
input,
select {
border: none;
font: inherit;
color: inherit;
outline: none;
margin: 0;
}
textarea {
resize: none;
}
button {
background: transparent;
cursor: pointer;
}
input,
select {
background: #363a4f;
}
#chat button {
position: absolute;
}
#chat .options {
position: absolute;
bottom: 6px;
left: 20px;
width: max-content;
display: flex;
align-items: center;
gap: 12px;
z-index: 10;
}
#chat .option {
display: flex;
align-items: center;
gap: 4px;
}
#chat .option+.option::before {
content: "";
display: block;
width: 2px;
height: 12px;
background: #5b6078;
margin-right: 4px;
}
.reasoning .toggle::before,
.reasoning .toggle::after,
#bottom,
.message .role::before,
#scrolling,
#clear,
#add,
#send,
.pre-copy,
.message .copy,
.message .edit,
.message .delete,
#chat .option label {
display: block;
width: 20px;
height: 20px;
background-position: center;
background-size: contain;
background-repeat: no-repeat;
}
.pre-copy,
.message .copy {
background-image: url(icons/copy.svg);
}
.pre-copy.copied,
.message .copy.copied {
background-image: url(icons/check.svg);
}
.message .edit {
background-image: url(icons/edit.svg);
}
.message.editing .edit {
background-image: url(icons/save.svg);
}
.message .delete {
background-image: url(icons/delete.svg);
}
#chat .option label {
background-size: 18px;
}
#model {
width: 180px;
padding: 2px 4px;
}
#temperature {
appearance: textfield;
width: 50px;
padding: 2px 4px;
text-align: right;
}
label[for="role"] {
background-image: url(icons/user.svg);
}
label[for="model"] {
background-image: url(icons/model.svg);
}
label[for="prompt"] {
background-image: url(icons/prompt.svg);
}
label[for="temperature"] {
background-image: url(icons/temperature.svg);
}
#bottom {
top: -38px;
left: 50%;
transform: translateX(-50%);
width: 28px;
height: 28px;
background-image: url(icons/down.svg);
transition: 150ms;
}
#add,
#send {
bottom: 4px;
right: 20px;
width: 28px;
height: 28px;
background-image: url(icons/send.svg);
z-index: 10;
}
#add {
bottom: 4px;
right: 52px;
background-image: url(icons/add.svg);
}
#scrolling {
position: unset !important;
background-image: url(icons/screen-slash.svg);
}
#scrolling.on {
background-image: url(icons/screen.svg);
}
#clear {
position: unset !important;
background-image: url(icons/trash.svg);
}
.completing #add {
display: none;
}
.completing #send {
background-image: url(icons/stop.svg);
}
@keyframes rotating {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

7
static/css/icons/add.svg Normal file
View File

@@ -0,0 +1,7 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Transformed by: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="SVGRepo_bgCarrier" stroke-width="0"/>
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"/>

After

Width:  |  Height:  |  Size: 889 B

View File

@@ -0,0 +1,7 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Transformed by: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="SVGRepo_bgCarrier" stroke-width="0"/>
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"/>

After

Width:  |  Height:  |  Size: 668 B

View File

@@ -0,0 +1,7 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Transformed by: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="SVGRepo_bgCarrier" stroke-width="0"/>
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"/>

After

Width:  |  Height:  |  Size: 579 B

View File

@@ -0,0 +1,7 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Transformed by: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="SVGRepo_bgCarrier" stroke-width="0"/>
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"/>

After

Width:  |  Height:  |  Size: 568 B

View File

@@ -0,0 +1,7 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Transformed by: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="SVGRepo_bgCarrier" stroke-width="0"/>
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"/>

After

Width:  |  Height:  |  Size: 783 B

View File

@@ -0,0 +1,7 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Transformed by: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="SVGRepo_bgCarrier" stroke-width="0"/>
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"/>

After

Width:  |  Height:  |  Size: 699 B

View File

@@ -0,0 +1,7 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Transformed by: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="SVGRepo_bgCarrier" stroke-width="0"/>
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"/>

After

Width:  |  Height:  |  Size: 586 B

View File

@@ -0,0 +1,7 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Transformed by: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="SVGRepo_bgCarrier" stroke-width="0"/>
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"/>

After

Width:  |  Height:  |  Size: 1001 B

View File

@@ -0,0 +1,7 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Transformed by: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="SVGRepo_bgCarrier" stroke-width="0"/>
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"/>

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -0,0 +1,7 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Transformed by: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="SVGRepo_bgCarrier" stroke-width="0"/>
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"/>

After

Width:  |  Height:  |  Size: 894 B

View File

@@ -0,0 +1,7 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Transformed by: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="SVGRepo_bgCarrier" stroke-width="0"/>
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"/>

After

Width:  |  Height:  |  Size: 685 B

View File

@@ -0,0 +1,7 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Transformed by: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="SVGRepo_bgCarrier" stroke-width="0"/>
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"/>

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@@ -0,0 +1,7 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Transformed by: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="SVGRepo_bgCarrier" stroke-width="0"/>
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"/>

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -0,0 +1,7 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Transformed by: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="SVGRepo_bgCarrier" stroke-width="0"/>
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"/>

After

Width:  |  Height:  |  Size: 823 B

View File

@@ -0,0 +1,7 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Transformed by: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="SVGRepo_bgCarrier" stroke-width="0"/>
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"/>

After

Width:  |  Height:  |  Size: 850 B

View File

@@ -0,0 +1,7 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Transformed by: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="SVGRepo_bgCarrier" stroke-width="0"/>
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"/>

After

Width:  |  Height:  |  Size: 808 B

View File

@@ -0,0 +1,7 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Transformed by: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="SVGRepo_bgCarrier" stroke-width="0"/>
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"/>

After

Width:  |  Height:  |  Size: 812 B

View File

@@ -0,0 +1,7 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Transformed by: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="SVGRepo_bgCarrier" stroke-width="0"/>
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"/>

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@@ -0,0 +1,7 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Transformed by: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="SVGRepo_bgCarrier" stroke-width="0"/>
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"/>

After

Width:  |  Height:  |  Size: 912 B

View File

@@ -0,0 +1,7 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Transformed by: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="SVGRepo_bgCarrier" stroke-width="0"/>
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"/>

After

Width:  |  Height:  |  Size: 805 B

View File

@@ -0,0 +1,7 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Transformed by: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="SVGRepo_bgCarrier" stroke-width="0"/>
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"/>

After

Width:  |  Height:  |  Size: 918 B

199
static/css/markdown.css Normal file
View File

@@ -0,0 +1,199 @@
.markdown {
font-size: 15px;
line-height: 23px;
color: #CAD3F5;
font-family: system-ui, sans-serif;
}
.markdown h1,
.markdown h2,
.markdown h3,
.markdown h4,
.markdown h5,
.markdown h6 {
font-weight: 700;
margin-top: 28px;
margin-bottom: 8px;
}
.markdown h1 {
font-size: 28px;
line-height: 34px;
border-bottom: 1px solid rgba(202, 211, 245, 0.15);
padding-bottom: 6px;
}
.markdown h2 {
font-size: 24px;
line-height: 30px;
border-bottom: 1px solid rgba(202, 211, 245, 0.1);
padding-bottom: 4px;
}
.markdown h3 {
font-size: 20px;
line-height: 26px;
}
.markdown h4 {
font-size: 17px;
line-height: 23px;
font-weight: 600;
}
.markdown h5 {
font-size: 15px;
line-height: 21px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
opacity: 0.85;
}
.markdown h6 {
font-size: 14px;
line-height: 20px;
font-weight: 500;
opacity: 0.7;
}
.markdown a {
color: #8AADF4;
text-decoration: none;
font-weight: 500;
transition: color 150ms ease, text-decoration-color 150ms ease;
}
.markdown a:hover,
.markdown a:focus {
color: #B7BDF8;
text-decoration: underline;
text-decoration-color: rgba(183, 189, 248, 0.6);
}
.markdown .image {
max-width: 100%;
border-radius: 6px;
margin: 12px auto;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
background-position: center;
background-size: cover;
background-repeat: no-repeat;
}
.markdown blockquote {
padding: 10px 16px;
border-left: 4px solid #8AADF4;
background: rgba(138, 173, 244, 0.05);
color: #CAD3F5;
font-style: italic;
border-radius: 4px;
}
.markdown table {
width: 100%;
border-collapse: collapse;
margin: 16px 0;
font-size: 14px;
}
.markdown th,
.markdown td {
border: 1px solid rgba(165, 173, 203, 0.15);
padding: 8px 12px;
text-align: left;
}
.markdown th {
background: rgba(165, 173, 203, 0.07);
/* subtle neutral tint */
font-weight: 600;
color: #CAD3F5;
}
.markdown tr:nth-child(even) td {
background: rgba(165, 173, 203, 0.03);
/* very soft zebra */
}
.markdown tr:hover td {
background: rgba(165, 173, 203, 0.05);
/* gentle hover */
}
.markdown code,
.markdown pre {
font-family: "Comic Code", ui-monospace, "Cascadia Mono", "Segoe UI Mono", "Ubuntu Mono", "Roboto Mono", Menlo, Monaco, Consolas, monospace;
font-size: 13px;
}
.markdown code {
background: #363a4f;
padding: 1px 4px;
border-radius: 3px;
margin: 0 1px;
}
.markdown pre {
background: #1e2030;
white-space: pre-wrap;
padding: 10px 12px;
border-radius: 6px;
line-height: 18px;
overflow: hidden;
}
.markdown pre code {
background: transparent;
padding: 0;
margin: 0;
}
.markdown .pre-header {
position: relative;
background: #363a4f;
padding: 8px 12px;
margin: -10px -12px;
margin-bottom: 10px;
font-size: 12px;
line-height: 14px;
}
.markdown .pre-copy {
position: absolute;
top: 6px;
right: 10px;
width: 18px;
height: 18px;
opacity: 0;
transition: 150ms;
}
.markdown pre:hover .pre-copy {
opacity: 1;
}
.markdown hr {
color: #5F6386;
margin: 25px 0;
}
.markdown ul,
.markdown ol {
padding-left: 28px;
}
.markdown blockquote>*,
.markdown td>*,
.markdown th>*,
.markdown>* {
margin: 0;
margin-bottom: 14px;
}
.markdown blockquote>*:last-child,
.markdown td>*:last-child,
.markdown th>*:last-child,
.markdown>*:last-child {
margin-bottom: 0;
}