feat: 🎉 initial commit

This commit is contained in:
Sebin Nyshkim 2024-10-11 21:47:59 +02:00
commit b3003321c9
35 changed files with 9015 additions and 0 deletions

284
src/css/prism.css Normal file
View file

@ -0,0 +1,284 @@
pre[class*='language-'] {
--padding-y: var(--am-prism-padding-y, 1rem);
--padding-x: var(--am-prism-padding-x, 1rem);
padding: var(--padding-y) var(--padding-x);
overflow: auto;
font-size: var(--am-prism-font-size, 0.85em);
border-radius: var(--am-prism-border-radius, 0.4em);
}
pre > code[class*='language-'] {
--am-prism-font-family: 'M PLUS 1 Code';
padding: initial;
font-size: 1em;
font-weight: 400;
font-optical-sizing: auto;
font-style: normal;
font-family: var(--am-prism-font-family, ui-monospace), monospace;
line-height: var(--am-prism-line-height, 1.5);
background-color: initial;
}
code[class*='language-'],
pre[class*='language-'] {
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
word-wrap: normal;
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
pre[class*='language-'] .line-numbers-rows {
box-sizing: content-box;
margin: calc(var(--padding-y) * -1) 0;
padding: var(--padding-y) 0;
max-height: 100%;
overflow: hidden;
}
.line-numbers.line-numbers .line-numbers-rows {
border-right-width: var(--am-prism-border-width, 1px);
border-right-color: var(--am-prism-border-color);
}
.line-numbers .line-numbers-rows > span:before {
color: var(--am-prism-line-numbers-color);
}
div.code-toolbar > .toolbar {
top: 0.3rem !important;
right: 0.3rem !important;
}
div.code-toolbar > .toolbar > .toolbar-item > button.copy-to-clipboard-button {
display: inline-flex;
padding: 0 0.75em;
font-size: var(--am-prism-font-size, 0.8em);
font-family: var(--am-prism-font-family, ui-monospace), monospace;
font-weight: 600 !important;
line-height: 2.25em;
color: var(--am-prism-copy-color);
background-color: var(--am-prism-copy-bg);
border-radius: calc(var(--am-prism-border-radius, 0.4em) - 0.1em);
cursor: pointer;
box-shadow: none;
opacity: 1;
transition: opacity 0.2s;
}
div.code-toolbar > .toolbar > .toolbar-item > button.copy-to-clipboard-button:hover {
opacity: 0.8;
}
div.code-toolbar > .toolbar > .toolbar-item > button.copy-to-clipboard-button:focus {
opacity: 1;
}
code[class*='language-'],
pre[class*='language-'] {
color: #24292f;
}
code[class*='language-']::selection,
pre[class*='language-']::selection {
text-shadow: none;
background: #9fc6e9;
}
pre[class*='language-'] {
background: #f6f8fa;
}
:not(pre) > code[class*='language-'] {
padding: 0.1em 0.3em;
border-radius: 0.3em;
color: #24292f;
background: #eff1f3;
}
pre[data-line] {
position: relative;
}
pre[class*='language-'] > code[class*='language-'] {
position: relative;
z-index: 1;
}
.line-highlight {
position: absolute;
left: 0;
right: 0;
padding: inherit 0;
margin-top: 1em;
background: #fff8c5;
box-shadow: inset 5px 0 0 #eed888;
z-index: 0;
pointer-events: none;
line-height: inherit;
white-space: pre;
}
.namespace {
opacity: 0.7;
}
.token.cdata,
.token.comment,
.token.doctype,
.token.prolog {
color: #6e7781;
}
.token.punctuation {
color: #24292f;
}
.token.boolean,
.token.constant,
.token.deleted,
.token.number,
.token.property,
.token.symbol,
.token.tag {
color: #0550ae;
}
.token.attr-name,
.token.builtin,
.token.char,
.token.inserted,
.token.selector,
.token.string {
color: #0a3069;
}
.language-css .token.string,
.style .token.string,
.token.entity,
.token.operator,
.token.url {
color: #0550ae;
}
.token.atrule,
.token.attr-value,
.token.keyword {
color: #cf222e;
}
.token.function {
color: #8250df;
}
.token.important,
.token.regex,
.token.variable {
color: #0a3069;
}
.token.bold,
.token.important {
font-weight: 700;
}
.token.italic {
font-style: italic;
}
.token.entity {
cursor: help;
}
:root {
--am-prism-line-numbers-color: #6e778177;
--am-prism-border-color: #6e778122;
--am-prism-copy-color: #24292faa;
--am-prism-copy-bg: #6e778122;
}
@media (prefers-color-scheme: dark) {
code[class*='language-'],
pre[class*='language-'] {
color: #c9d1d9;
}
code[class*='language-']::selection,
pre[class*='language-']::selection {
text-shadow: none;
background: #234879;
}
pre[class*='language-'] {
background: #161b22;
}
:not(pre) > code[class*='language-'] {
padding: 0.1em 0.3em;
border-radius: 0.3em;
color: #c9d1d9;
background: #343942;
}
pre[data-line] {
position: relative;
}
pre[class*='language-'] > code[class*='language-'] {
position: relative;
z-index: 1;
}
.line-highlight {
position: absolute;
left: 0;
right: 0;
padding: inherit 0;
margin-top: 1em;
background: #2f2a1e;
box-shadow: inset 5px 0 0 #674c16;
z-index: 0;
pointer-events: none;
line-height: inherit;
white-space: pre;
}
.namespace {
opacity: 0.7;
}
.token.cdata,
.token.comment,
.token.doctype,
.token.prolog {
color: #8b949e;
}
.token.punctuation,
.token.variable {
color: #c9d1d9;
}
.token.boolean,
.token.constant,
.token.deleted,
.token.number,
.token.property,
.token.symbol,
.token.tag {
color: #79c0ff;
}
.token.attr-name,
.token.builtin,
.token.char,
.token.inserted,
.token.selector,
.token.string {
color: #a5d6ff;
}
.language-css .token.string,
.style .token.string,
.token.entity,
.token.operator,
.token.url {
color: #a5d6ff;
background: #161b22;
}
.token.atrule,
.token.keyword {
color: #a5d6ff;
}
.token.attr-value,
.token.function {
color: #d2a8ff;
}
.token.class-name,
.token.important,
.token.regex {
color: #a8daff;
}
.token.bold,
.token.important {
font-weight: 700;
}
.token.italic {
font-style: italic;
}
.token.entity {
cursor: help;
}
:root {
--am-prism-line-numbers-color: #8b949e55;
--am-prism-border-color: #8b949e22;
--am-prism-copy-color: #c9d1d9;
--am-prism-copy-bg: #8b949e22;
}
}