feat: Comments in config.toml

This commit is contained in:
daudix-UFO
2023-11-03 00:23:42 +03:00
parent 025eec166f
commit d7c2f206b9
5 changed files with 123 additions and 126 deletions

View File

@ -25,7 +25,7 @@ body {
body {
font-family: "Inter", sans-serif;
font-weight: 400;
line-height: 1.5;
line-height: 1.6;
color: var(--fg-color);
background-color: var(--bg-color);
// put footer at the bottom for short pages, such as the 404
@ -176,7 +176,7 @@ kbd {
font-family: "JetBrains Mono", monospace;
padding: 2px 6px;
border-radius: var(--rounded-corner-small);
background-color: var(--fg07);
background-color: var(--fg05);
box-shadow: inset 0 -2px 0 var(--fg09), 0 -1px 0 var(--fg09);
cursor: pointer;
}
@ -188,6 +188,66 @@ kbd:active {
transform: translateY(2px);
}
// CODE
code {
font-family: "JetBrains Mono", monospace;
padding: 2px 6px;
border-radius: var(--rounded-corner-small);
background-color: var(--fg05);
color: var(--red-fg);
}
pre code {
background-color: unset;
border-radius: unset;
color: unset;
padding: unset;
}
// apply monospace font to everything inside <pre>
pre * {
font-family: "JetBrains Mono", monospace;
}
pre {
line-height: normal; // unset line height
padding: 1rem;
margin: 1rem 0 1rem;
border-radius: var(--rounded-corner);
max-width: 100vw;
box-shadow: var(--shadow);
overflow: auto;
}
// the line numbers already provide some kind of left/right padding
pre[data-linenos] {
padding: 1rem 0;
}
pre table td {
padding: 0;
border: none;
}
// the line number cells
pre table td:nth-of-type(1) {
text-align: center;
user-select: none;
}
pre mark {
display: block;
background-color: var(--fg05);
color: var(--fg-color); // unset mark color from primary color to text color
border-radius: 0; // unset code block border radius
padding: 0; // unset mark padding
}
pre table {
width: 100%;
border-collapse: collapse;
}
mark {
padding: 2px 6px;
border-radius: var(--rounded-corner-small);
@ -234,7 +294,7 @@ table th {
table th,
table td {
padding: 0.5rem 1rem;
border: 1px solid var(--fg07);
border: 1px solid var(--fg05);
}
td,
@ -401,63 +461,6 @@ img:not(.no-hover):hover {
color: var(--fg-color);
}
// CODE
code {
font-family: "JetBrains Mono", monospace;
color: var(--red-fg);
}
pre code {
background-color: unset;
border-radius: unset;
color: unset;
padding: unset;
}
// apply monospace font to everything inside <pre>
pre * {
font-family: "JetBrains Mono", monospace;
}
pre {
line-height: normal; // unset line height
padding: 1rem;
margin: 1rem 0 1rem;
border-radius: var(--rounded-corner);
max-width: 100vw;
box-shadow: var(--shadow);
overflow: auto;
}
// the line numbers already provide some kind of left/right padding
pre[data-linenos] {
padding: 1rem 0;
}
pre table td {
padding: 0;
border: none;
}
// the line number cells
pre table td:nth-of-type(1) {
text-align: center;
user-select: none;
}
pre mark {
display: block;
background-color: var(--fg07);
color: var(--fg-color); // unset mark color from primary color to text color
border-radius: 0; // unset code block border radius
padding: 0; // unset mark padding
}
pre table {
width: 100%;
border-collapse: collapse;
}
// CRT
.crt {
margin: 1rem 0 1rem;

View File

@ -28,9 +28,7 @@ $glow: 0 0 0 1px color.scale($primary-color, $alpha: -95%),
--rounded-corner: 0.75rem;
// CUSTOM COLOR PALETTE
--fg03: rgba(0, 0, 0, 0.03);
--fg05: rgba(0, 0, 0, 0.05);
--fg07: rgba(0, 0, 0, 0.07);
--fg09: rgba(0, 0, 0, 0.09);
--fg50: rgba(0, 0, 0, 0.5);
@ -66,9 +64,7 @@ $glow: 0 0 0 1px color.scale($primary-color, $alpha: -95%),
--fg-color: var(--light2);
// CUSTOM COLOR PALETTE
--fg03: rgba(255, 255, 255, 0.03);
--fg05: rgba(255, 255, 255, 0.05);
--fg07: rgba(255, 255, 255, 0.07);
--fg09: rgba(255, 255, 255, 0.09);
--fg50: rgba(255, 255, 255, 0.5);