converted to wiki
This commit is contained in:
@@ -9,285 +9,165 @@
|
||||
|
||||
--accent: #8aadf4;
|
||||
--accent-glow: #c6a0f6;
|
||||
|
||||
|
||||
--code-bg: var(--container-bg);
|
||||
--border-color: #494d64;
|
||||
--selection-bg: rgba(91, 96, 120, 0.4);
|
||||
|
||||
--radius-sm: 6px;
|
||||
--radius-md: 12px;
|
||||
--radius-lg: 20px;
|
||||
--blur-amount: 12px;
|
||||
--container-width: 850px;
|
||||
--container-width: 1000px; /* Wider for wiki layout */
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
body {
|
||||
background-color: var(--bg-color);
|
||||
color: var(--text-main);
|
||||
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||
line-height: 1.7;
|
||||
font-family: 'Inter', system-ui, sans-serif;
|
||||
line-height: 1.6;
|
||||
margin: 0;
|
||||
padding: 40px 20px;
|
||||
padding-top: 80px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
min-height: 100vh;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
#content {
|
||||
width: 100%;
|
||||
max-width: var(--container-width);
|
||||
min-width: 0;
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
::selection {
|
||||
background: var(--selection-bg);
|
||||
color: #fff;
|
||||
/* --- Wiki Layout --- */
|
||||
|
||||
.wiki-header {
|
||||
border-bottom: 2px solid;
|
||||
border-image-source: linear-gradient(to right, var(--accent), transparent);
|
||||
border-image-slice: 1;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
color: #fff;
|
||||
margin-top: 2rem;
|
||||
margin-bottom: 1rem;
|
||||
font-weight: 700;
|
||||
line-height: 1.25;
|
||||
.wiki-header h1 {
|
||||
margin: 0;
|
||||
padding-bottom: 0.5rem;
|
||||
font-size: 2.5rem;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2.5rem;
|
||||
padding-bottom: 0.8rem;
|
||||
margin-bottom: 2.5rem;
|
||||
border-bottom: 2px solid;
|
||||
border-image-source: linear-gradient(to right, var(--accent), transparent);
|
||||
border-image-slice: 1;
|
||||
}
|
||||
h2 {
|
||||
font-size: 1.8rem;
|
||||
color: var(--accent);
|
||||
}
|
||||
h3 {
|
||||
font-size: 1.5rem;
|
||||
.wiki-container {
|
||||
display: flex;
|
||||
gap: 40px;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--accent);
|
||||
text-decoration: none;
|
||||
transition: color 0.2s ease, text-shadow 0.2s ease;
|
||||
.wiki-body {
|
||||
flex: 1;
|
||||
min-width: 0; /* Prevents overflow in flex items */
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: var(--accent-glow);
|
||||
text-shadow: 0 0 8px var(--accent-glow);
|
||||
.wiki-sidebar {
|
||||
width: 300px;
|
||||
background: var(--container-bg);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: var(--radius-md);
|
||||
padding: 15px;
|
||||
flex-shrink: 0;
|
||||
position: sticky;
|
||||
top: 90px;
|
||||
}
|
||||
|
||||
p { margin-bottom: 1.2rem; }
|
||||
|
||||
ul, ol {
|
||||
padding-left: 1.5rem;
|
||||
margin-bottom: 1.2rem;
|
||||
@media (max-width: 800px) {
|
||||
.wiki-container {
|
||||
flex-direction: column-reverse;
|
||||
}
|
||||
.wiki-sidebar {
|
||||
width: 100%;
|
||||
position: static;
|
||||
}
|
||||
}
|
||||
|
||||
li { margin-bottom: 0.5rem; }
|
||||
/* --- Sidebar Components --- */
|
||||
.sidebar-image img {
|
||||
width: 100%;
|
||||
border-radius: var(--radius-sm);
|
||||
border: 2px solid var(--border-color);
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.infobox-data h3 {
|
||||
margin-top: 0;
|
||||
background: var(--lighter-bg);
|
||||
padding: 8px;
|
||||
text-align: center;
|
||||
border-radius: var(--radius-sm);
|
||||
font-size: 1.1rem;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.infobox-data table {
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
border-collapse: collapse;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.infobox-data td {
|
||||
padding: 8px;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.infobox-data tr:last-child td {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.info-label {
|
||||
font-weight: bold;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.info-value {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
/* --- Standard Markdown Elements --- */
|
||||
h2 { font-size: 1.8rem; color: var(--accent); margin-top: 2rem; }
|
||||
h3 { font-size: 1.5rem; color: #fff; }
|
||||
p { margin-bottom: 1rem; }
|
||||
a { color: var(--accent); text-decoration: none; }
|
||||
a:hover { color: var(--accent-glow); text-decoration: underline; }
|
||||
|
||||
blockquote {
|
||||
margin: 2rem 0;
|
||||
padding: 0.1rem 1.5rem;
|
||||
border-left: 4px solid var(--accent);
|
||||
background: var(--container-bg);
|
||||
border-radius: var(--radius-sm);
|
||||
color: var(--text-muted);
|
||||
font-style: italic;
|
||||
border-left: 4px solid var(--accent);
|
||||
padding-left: 1rem;
|
||||
margin: 1.5rem 0;
|
||||
font-style: italic;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
/* Code blocks */
|
||||
pre {
|
||||
position: relative;
|
||||
background: var(--code-bg);
|
||||
background-color: var(--code-bg) !important;
|
||||
padding: 1.2rem;
|
||||
border-radius: var(--radius-md);
|
||||
overflow-x: auto;
|
||||
border: 2px solid var(--border-color);
|
||||
/* margin: 1.5rem 0; */
|
||||
background: var(--container-bg);
|
||||
padding: 1rem;
|
||||
border-radius: var(--radius-md);
|
||||
overflow-x: auto;
|
||||
border: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
code {
|
||||
font-size: 0.9em;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
padding: 0.2rem 0.4rem;
|
||||
border-radius: var(--radius-sm);
|
||||
font-style: normal !important;
|
||||
}
|
||||
|
||||
pre code {
|
||||
display: block;
|
||||
background: none !important;
|
||||
padding: 0;
|
||||
padding-right: 40px;
|
||||
}
|
||||
|
||||
pre,
|
||||
code,
|
||||
pre span,
|
||||
code span,
|
||||
pre [style],
|
||||
code [style] {
|
||||
font-family: 'JetBrains Mono', 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, monospace !important;
|
||||
font-style: normal !important;
|
||||
font-variant-ligatures: contextual;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin: 2rem 0;
|
||||
}
|
||||
|
||||
th {
|
||||
background: var(--lighter-bg);
|
||||
color: var(--accent);
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
th, td {
|
||||
padding: 12px;
|
||||
border: 2px solid var(--border-color);
|
||||
}
|
||||
|
||||
tr:nth-child(even) {
|
||||
background: rgba(255, 255, 255, 0.025);
|
||||
}
|
||||
|
||||
hr {
|
||||
border: none;
|
||||
height: 2px;
|
||||
background: linear-gradient(to right, transparent, var(--border-color), transparent);
|
||||
margin: 3rem 0;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
border-radius: var(--radius-md);
|
||||
margin: 1.5rem 0;
|
||||
border: 2px solid var(--border-color);
|
||||
}
|
||||
|
||||
input[type="checkbox"] {
|
||||
appearance: none;
|
||||
-webkit-appearance: none;
|
||||
background-color: transparent;
|
||||
margin: 0;
|
||||
margin-right: 0.5rem;
|
||||
|
||||
font: inherit;
|
||||
color: var(--accent);
|
||||
width: 1.25em;
|
||||
height: 1.25em;
|
||||
border: 2px solid var(--text-muted);
|
||||
border-radius: var(--radius-sm);
|
||||
transform: translateY(-0.075em);
|
||||
|
||||
display: inline-grid;
|
||||
place-content: center;
|
||||
transition: border-color 0.2s ease, background-color 0.2s ease;
|
||||
}
|
||||
|
||||
input[type="checkbox"]::before {
|
||||
content: "";
|
||||
width: 0.65em;
|
||||
height: 0.65em;
|
||||
transform: scale(0);
|
||||
transition: 120ms transform ease-in-out;
|
||||
box-shadow: inset 1em 1em var(--accent);
|
||||
|
||||
clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
|
||||
}
|
||||
|
||||
input[type="checkbox"]:checked {
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
input[type="checkbox"]:checked::before {
|
||||
transform: scale(1);
|
||||
}
|
||||
|
||||
body {
|
||||
padding-top: 75px;
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
/* Navigation Bar */
|
||||
nav {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
z-index: 1000;
|
||||
background: var(--container-bg);
|
||||
/* backdrop-filter: blur(var(--blur-amount)); */
|
||||
/* -webkit-backdrop-filter: blur(var(--blur-amount)); */
|
||||
border-bottom: 2px solid var(--border-color);
|
||||
padding: 1rem 2rem;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
nav a {
|
||||
color: var(--text-main);
|
||||
text-decoration: none;
|
||||
font-size: 1.2rem;
|
||||
font-weight: 600;
|
||||
margin-left: 20px;
|
||||
transition: color 0.2s ease;
|
||||
}
|
||||
|
||||
.btn {
|
||||
display: inline-block;
|
||||
color: #fff;
|
||||
padding: 0.6rem 1.2rem;
|
||||
border: solid 1px var(--accent);
|
||||
border-radius: var(--radius-md);
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
transition: background 0.2s ease;
|
||||
}
|
||||
|
||||
.btn.disabled {
|
||||
color: var(--text-muted);
|
||||
cursor: not-allowed;
|
||||
border-color: var(--text-muted);
|
||||
}
|
||||
|
||||
.code-wrapper {
|
||||
position: relative;
|
||||
margin: 1.5rem 0;
|
||||
}
|
||||
|
||||
.copy-button {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
padding: 10px 10px;
|
||||
background: var(--container-bg);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: var(--radius-sm);
|
||||
color: var(--text-muted);
|
||||
cursor: pointer;
|
||||
font-size: 0.9rem;
|
||||
transition: all 0.2s ease;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.copy-button:hover {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.copy-button:active {
|
||||
transform: translateY(2px);
|
||||
position: fixed;
|
||||
top: 0; left: 0; right: 0;
|
||||
height: 60px;
|
||||
background: var(--container-bg);
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 2rem;
|
||||
z-index: 100;
|
||||
}
|
||||
nav a { font-weight: bold; font-size: 1.2rem; color: var(--text-main); }
|
||||
|
||||
Reference in New Issue
Block a user