mirror of
http://bgp.hk.skcks.cn:10086/https://github.com/krahets/hello-algo
synced 2026-04-20 21:00:58 +08:00
Sync multilingual versions (#1875)
* Sync multilingual docs and comments * Refactor zensical extra.css * Refine zensical styles * Tune zensical landing buttons * Refine landing section themes
This commit is contained in:
@@ -84,7 +84,7 @@
|
||||
<path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3 .3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5 .3-6.2 2.3zm44.2-1.7c-2.9 .7-4.9 2.6-4.6 4.9 .3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3 .7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3 .3 2.9 2.3 3.9 1.6 1 3.6 .7 4.3-.7 .7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3 .7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3 .7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z">
|
||||
</path>
|
||||
</svg>
|
||||
<span>代码仓库</span>
|
||||
<span>GitHub</span>
|
||||
</a>
|
||||
</div>
|
||||
<!-- arrow -->
|
||||
@@ -97,7 +97,7 @@
|
||||
</section>
|
||||
|
||||
<!-- Section: reading -->
|
||||
<section data-md-color-scheme="default" data-md-color-primary="white" class="home-div">
|
||||
<section data-md-color-scheme="slate" data-md-color-primary="grey" class="home-div">
|
||||
<div class="section-content">
|
||||
<div class="reading-media">
|
||||
<!-- devices -->
|
||||
@@ -147,7 +147,7 @@
|
||||
</section>
|
||||
|
||||
<!-- Section: endorsements -->
|
||||
<section data-md-color-scheme="slate" data-md-color-primary="grey" class="home-div">
|
||||
<section data-md-color-scheme="slate" data-md-color-primary="grey" class="home-div home-div--black">
|
||||
<div class="section-content">
|
||||
<h3 style="text-align: center; margin: 1em auto;">推荐语</h3>
|
||||
<div class="intro-container" style="margin: 0 auto;">
|
||||
@@ -164,7 +164,7 @@
|
||||
</section>
|
||||
|
||||
<!-- Section: features -->
|
||||
<section data-md-color-scheme="default" data-md-color-primary="white" class="home-div">
|
||||
<section data-md-color-scheme="slate" data-md-color-primary="grey" class="home-div">
|
||||
<div class="section-content">
|
||||
<div class="intro-container">
|
||||
<div class="intro-text">
|
||||
@@ -218,7 +218,7 @@
|
||||
</section>
|
||||
|
||||
<!-- Section: special thanks -->
|
||||
<section class="home-div" data-md-color-primary="grey" data-md-color-scheme="slate">
|
||||
<section class="home-div home-div--black" data-md-color-primary="grey" data-md-color-scheme="slate">
|
||||
<div class="section-content">
|
||||
<h3 style="text-align: center; margin: 0 0 2em 0;">
|
||||
鸣谢
|
||||
@@ -234,7 +234,7 @@
|
||||
</section>
|
||||
|
||||
<!-- Section: contributors -->
|
||||
<section data-md-color-scheme="default" data-md-color-primary="white" class="home-div">
|
||||
<section data-md-color-scheme="slate" data-md-color-primary="grey" class="home-div">
|
||||
<div class="section-content" style="max-width: 90vw;">
|
||||
<!-- author -->
|
||||
<div style="margin: 2em auto;">
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
typedef struct {
|
||||
int *nums; // Array for storing queue elements
|
||||
int front; // Front pointer, points to the front of the queue element
|
||||
int queSize; // Rear pointer, points to rear + 1
|
||||
int queSize; // Current number of elements in the queue
|
||||
int queCapacity; // Queue capacity
|
||||
} ArrayQueue;
|
||||
|
||||
@@ -131,4 +131,4 @@ int main() {
|
||||
delArrayQueue(queue);
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -137,10 +137,8 @@
|
||||
|
||||
// Content comment, used to explain code in detail
|
||||
|
||||
/**
|
||||
* Multi-line
|
||||
* comment
|
||||
*/
|
||||
// Multi-line
|
||||
// comment
|
||||
```
|
||||
|
||||
=== "C"
|
||||
|
||||
@@ -97,7 +97,7 @@
|
||||
</section>
|
||||
|
||||
<!-- Section: reading -->
|
||||
<section data-md-color-scheme="default" data-md-color-primary="white" class="home-div">
|
||||
<section data-md-color-scheme="slate" data-md-color-primary="grey" class="home-div">
|
||||
<div class="section-content">
|
||||
<div class="reading-media">
|
||||
<!-- devices -->
|
||||
@@ -147,7 +147,7 @@
|
||||
</section>
|
||||
|
||||
<!-- Section: endorsements -->
|
||||
<section data-md-color-scheme="slate" data-md-color-primary="grey" class="home-div">
|
||||
<section data-md-color-scheme="slate" data-md-color-primary="grey" class="home-div home-div--black">
|
||||
<div class="section-content">
|
||||
<h3 style="text-align: center; margin: 1em auto;">Endorsements</h3>
|
||||
<div class="intro-container" style="margin: 0 auto;">
|
||||
@@ -164,7 +164,7 @@
|
||||
</section>
|
||||
|
||||
<!-- Section: features -->
|
||||
<section data-md-color-scheme="default" data-md-color-primary="white" class="home-div">
|
||||
<section data-md-color-scheme="slate" data-md-color-primary="grey" class="home-div">
|
||||
<div class="section-content">
|
||||
<div class="intro-container">
|
||||
<div class="intro-text">
|
||||
@@ -218,7 +218,7 @@
|
||||
</section>
|
||||
|
||||
<!-- Section: special thanks -->
|
||||
<section class="home-div" data-md-color-primary="grey" data-md-color-scheme="slate">
|
||||
<section class="home-div home-div--black" data-md-color-primary="grey" data-md-color-scheme="slate">
|
||||
<div class="section-content">
|
||||
<h3 style="text-align: center; margin: 0 0 2em 0;">
|
||||
Special thanks
|
||||
@@ -234,7 +234,7 @@
|
||||
</section>
|
||||
|
||||
<!-- Section: contributors -->
|
||||
<section data-md-color-scheme="default" data-md-color-primary="white" class="home-div">
|
||||
<section data-md-color-scheme="slate" data-md-color-primary="grey" class="home-div">
|
||||
<div class="section-content" style="max-width: 90vw;">
|
||||
<!-- author -->
|
||||
<div style="margin: 2em auto;">
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
typedef struct {
|
||||
int *nums; // キュー要素を格納する配列
|
||||
int front; // 先頭ポインタ。先頭要素を指す
|
||||
int queSize; // 末尾ポインタ。キューの末尾 + 1 を指す
|
||||
int queSize; // 現在のキュー内の要素数
|
||||
int queCapacity; // キューの容量
|
||||
} ArrayQueue;
|
||||
|
||||
@@ -131,4 +131,4 @@ int main() {
|
||||
delArrayQueue(queue);
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -137,10 +137,8 @@
|
||||
|
||||
// 内容コメント。コードを詳しく説明するために使います
|
||||
|
||||
/**
|
||||
* 複数行
|
||||
* コメント
|
||||
*/
|
||||
// 複数行
|
||||
// コメント
|
||||
```
|
||||
|
||||
=== "C"
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
<path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3 .3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5 .3-6.2 2.3zm44.2-1.7c-2.9 .7-4.9 2.6-4.6 4.9 .3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3 .7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3 .3 2.9 2.3 3.9 1.6 1 3.6 .7 4.3-.7 .7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3 .7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3 .7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z">
|
||||
</path>
|
||||
</svg>
|
||||
<span>コードリポジトリ</span>
|
||||
<span>GitHub</span>
|
||||
</a>
|
||||
</div>
|
||||
<!-- arrow -->
|
||||
@@ -97,7 +97,7 @@
|
||||
</section>
|
||||
|
||||
<!-- Section: reading -->
|
||||
<section data-md-color-scheme="default" data-md-color-primary="white" class="home-div">
|
||||
<section data-md-color-scheme="slate" data-md-color-primary="grey" class="home-div">
|
||||
<div class="section-content">
|
||||
<div class="reading-media">
|
||||
<!-- devices -->
|
||||
@@ -147,7 +147,7 @@
|
||||
</section>
|
||||
|
||||
<!-- Section: endorsements -->
|
||||
<section data-md-color-scheme="slate" data-md-color-primary="grey" class="home-div">
|
||||
<section data-md-color-scheme="slate" data-md-color-primary="grey" class="home-div home-div--black">
|
||||
<div class="section-content">
|
||||
<h3 style="text-align: center; margin: 1em auto;">推薦文</h3>
|
||||
<div class="intro-container" style="margin: 0 auto;">
|
||||
@@ -164,7 +164,7 @@
|
||||
</section>
|
||||
|
||||
<!-- Section: features -->
|
||||
<section data-md-color-scheme="default" data-md-color-primary="white" class="home-div">
|
||||
<section data-md-color-scheme="slate" data-md-color-primary="grey" class="home-div">
|
||||
<div class="section-content">
|
||||
<div class="intro-container">
|
||||
<div class="intro-text">
|
||||
@@ -218,7 +218,7 @@
|
||||
</section>
|
||||
|
||||
<!-- Section: special thanks -->
|
||||
<section class="home-div" data-md-color-primary="grey" data-md-color-scheme="slate">
|
||||
<section class="home-div home-div--black" data-md-color-primary="grey" data-md-color-scheme="slate">
|
||||
<div class="section-content">
|
||||
<h3 style="text-align: center; margin: 0 0 2em 0;">
|
||||
謝辞
|
||||
@@ -234,7 +234,7 @@
|
||||
</section>
|
||||
|
||||
<!-- Section: contributors -->
|
||||
<section data-md-color-scheme="default" data-md-color-primary="white" class="home-div">
|
||||
<section data-md-color-scheme="slate" data-md-color-primary="grey" class="home-div">
|
||||
<div class="section-content" style="max-width: 90vw;">
|
||||
<!-- author -->
|
||||
<div style="margin: 2em auto;">
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
/* Set palette on initial load */
|
||||
var palette = __md_get("__palette")
|
||||
if (palette && typeof palette.color === "object") {
|
||||
var theme = palette.color.scheme === "slate" ? "dark_dimmed" : "light"
|
||||
var theme = palette.color.scheme === "slate" ? "noborder_dark" : "light"
|
||||
giscus.setAttribute("data-theme", theme)
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
ref.addEventListener("change", function() {
|
||||
var palette = __md_get("__palette")
|
||||
if (palette && typeof palette.color === "object") {
|
||||
var theme = palette.color.scheme === "slate" ? "dark_dimmed" : "light"
|
||||
var theme = palette.color.scheme === "slate" ? "noborder_dark" : "light"
|
||||
|
||||
/* Instruct Giscus to change theme */
|
||||
var frame = document.querySelector(".giscus-frame")
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Color Settings */
|
||||
/* Theme tokens */
|
||||
/* https://github.com/squidfunk/mkdocs-material/blob/6b5035f5580f97532d664e3d1babf5f320e88ee9/src/assets/stylesheets/main/_colors.scss */
|
||||
/* https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/#custom-colors */
|
||||
:root>* {
|
||||
@@ -14,21 +14,23 @@
|
||||
--md-code-fg-color: #1d1d20;
|
||||
--md-code-bg-color: #f5f5f5;
|
||||
|
||||
--md-accent-fg-color: #999;
|
||||
|
||||
--md-typeset-color: #1d1d20;
|
||||
--md-typeset-a-color: #349890;
|
||||
|
||||
--md-accent-fg-color: var(--md-typeset-a-color);
|
||||
|
||||
--md-typeset-btn-color: #55aea6;
|
||||
--md-typeset-btn-hover-color: #52bbb1;
|
||||
|
||||
--md-admonition-icon--pythontutor: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19.14 7.5A2.86 2.86 0 0 1 22 10.36v3.78A2.86 2.86 0 0 1 19.14 17H12c0 .39.32.96.71.96H17v1.68a2.86 2.86 0 0 1-2.86 2.86H9.86A2.86 2.86 0 0 1 7 19.64v-3.75a2.85 2.85 0 0 1 2.86-2.85h5.25a2.85 2.85 0 0 0 2.85-2.86V7.5h1.18m-4.28 11.79c-.4 0-.72.3-.72.89 0 .59.32.71.72.71a.71.71 0 0 0 .71-.71c0-.59-.32-.89-.71-.89m-10-1.79A2.86 2.86 0 0 1 2 14.64v-3.78A2.86 2.86 0 0 1 4.86 8H12c0-.39-.32-.96-.71-.96H7V5.36A2.86 2.86 0 0 1 9.86 2.5h4.28A2.86 2.86 0 0 1 17 5.36v3.75a2.85 2.85 0 0 1-2.86 2.85H8.89a2.85 2.85 0 0 0-2.85 2.86v2.68H4.86M9.14 5.71c.4 0 .72-.3.72-.89 0-.59-.32-.71-.72-.71-.39 0-.71.12-.71.71s.32.89.71.89Z"/></svg>');
|
||||
--md-admonition-pythontutor-color: #eee;
|
||||
--md-admonition-pythontutor-color: var(--md-code-bg-color);
|
||||
|
||||
--hello-algo-sidebar-width: 13rem;
|
||||
}
|
||||
|
||||
[data-md-color-scheme="slate"] {
|
||||
--theme-dark-base: #1E1E1E;
|
||||
--theme-dark-mantle: #1A1A1A;
|
||||
--theme-dark-base: #1e1e1e;
|
||||
--theme-dark-mantle: #1a1a1a;
|
||||
--theme-dark-crust: #171717;
|
||||
--hero-starfield-bg-color: var(--theme-dark-base);
|
||||
|
||||
@@ -37,25 +39,25 @@
|
||||
|
||||
--md-default-fg-color: #adbac7;
|
||||
--md-default-bg-color: var(--theme-dark-base);
|
||||
--md-default-bg-color--light: rgb(30 30 30 / 0.8);
|
||||
|
||||
--md-body-bg-color: var(--theme-dark-mantle);
|
||||
--md-body-bg-color: var(--md-default-bg-color);
|
||||
--md-header-bg-color: rgba(26, 26, 26, 0.8);
|
||||
|
||||
--md-code-fg-color: #adbac7;
|
||||
--md-code-bg-color: var(--theme-dark-crust);
|
||||
|
||||
--md-accent-fg-color: #aaa;
|
||||
|
||||
--md-footer-fg-color: #adbac7;
|
||||
--md-footer-bg-color: var(--theme-dark-mantle);
|
||||
|
||||
--md-typeset-color: #adbac7;
|
||||
--md-typeset-a-color: #52bbb1;
|
||||
--md-accent-fg-color: var(--md-typeset-a-color);
|
||||
|
||||
--md-typeset-btn-color: #52bbb1;
|
||||
--md-typeset-btn-hover-color: #55aea6;
|
||||
|
||||
--md-admonition-pythontutor-color: var(--theme-dark-crust);
|
||||
--md-footer-fg-color: #adbac7;
|
||||
--md-footer-bg-color: var(--theme-dark-mantle);
|
||||
|
||||
--md-admonition-pythontutor-color: var(--md-code-bg-color);
|
||||
}
|
||||
|
||||
[data-md-color-scheme="slate"][data-md-color-primary="black"],
|
||||
@@ -63,24 +65,82 @@
|
||||
--md-typeset-a-color: #52bbb1;
|
||||
}
|
||||
|
||||
/* Base layout */
|
||||
body {
|
||||
background-color: var(--md-default-bg-color);
|
||||
--md-text-font-family: -apple-system, BlinkMacSystemFont,
|
||||
var(--md-text-font, _), Helvetica, Arial, sans-serif;
|
||||
--md-code-font-family: var(--md-code-font, _), SFMono-Regular, Consolas, Menlo,
|
||||
-apple-system, BlinkMacSystemFont, var(--md-text-font, _), monospace;
|
||||
}
|
||||
|
||||
html:has(body[data-md-color-scheme="slate"]) {
|
||||
background-color: #1e1e1e;
|
||||
}
|
||||
|
||||
html:has(body[data-md-color-scheme="default"]) {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 76.25em) {
|
||||
.md-grid {
|
||||
max-width: calc(61rem + 2 * (var(--hello-algo-sidebar-width) - 12.1rem));
|
||||
}
|
||||
|
||||
.md-sidebar--primary,
|
||||
.md-sidebar--secondary {
|
||||
width: var(--hello-algo-sidebar-width);
|
||||
}
|
||||
|
||||
[dir="ltr"] .md-sidebar__inner {
|
||||
padding-right: calc(100% - (var(--hello-algo-sidebar-width) - 0.6rem));
|
||||
}
|
||||
|
||||
[dir="rtl"] .md-sidebar__inner {
|
||||
padding-left: calc(100% - (var(--hello-algo-sidebar-width) - 0.6rem));
|
||||
}
|
||||
}
|
||||
|
||||
.md-sidebar--primary .md-sidebar__scrollwrap {
|
||||
scrollbar-color: var(--md-default-fg-color--lighter) transparent;
|
||||
}
|
||||
|
||||
.md-sidebar--primary .md-sidebar__scrollwrap::-webkit-scrollbar-thumb,
|
||||
.md-sidebar--primary .md-sidebar__scrollwrap::-webkit-scrollbar-thumb:hover {
|
||||
background-color: var(--md-default-fg-color--lighter);
|
||||
}
|
||||
|
||||
/* Banner and footer */
|
||||
.md-banner {
|
||||
background-color: var(--md-default-bg-color);
|
||||
color: var(--md-default-fg-color);
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
.md-banner .banner-svg svg {
|
||||
margin-right: 0.3rem;
|
||||
height: 0.63rem;
|
||||
fill: var(--md-default-fg-color);
|
||||
}
|
||||
|
||||
.md-footer,
|
||||
.md-footer__inner,
|
||||
.md-footer-meta,
|
||||
.md-footer__link,
|
||||
.md-footer__link:hover {
|
||||
background-color: var(--md-default-bg-color);
|
||||
}
|
||||
|
||||
.md-footer {
|
||||
border-top: 0.05rem solid var(--md-default-fg-color--lightest);
|
||||
}
|
||||
|
||||
[data-md-color-scheme="slate"] .md-footer,
|
||||
[data-md-color-scheme="slate"] .md-footer__inner {
|
||||
background-color: var(--theme-dark-mantle);
|
||||
color: var(--md-footer-fg-color);
|
||||
}
|
||||
|
||||
[data-md-color-scheme="slate"] .md-footer-meta {
|
||||
background-color: var(--theme-dark-crust);
|
||||
color: var(--md-footer-fg-color);
|
||||
}
|
||||
|
||||
[data-md-color-scheme="slate"] .md-footer__link {
|
||||
background-color: var(--theme-dark-crust);
|
||||
color: var(--md-footer-fg-color);
|
||||
}
|
||||
|
||||
[data-md-color-scheme="slate"] .md-footer__inner,
|
||||
[data-md-color-scheme="slate"] .md-footer-meta,
|
||||
[data-md-color-scheme="slate"] .md-footer__link,
|
||||
[data-md-color-scheme="slate"] .md-footer__link:hover {
|
||||
background-color: var(--theme-dark-base);
|
||||
color: var(--md-footer-fg-color);
|
||||
}
|
||||
|
||||
[data-md-color-scheme="slate"] .md-footer__title,
|
||||
@@ -93,40 +153,31 @@
|
||||
color: var(--md-footer-fg-color);
|
||||
}
|
||||
|
||||
/* https://github.com/squidfunk/mkdocs-material/issues/4832#issuecomment-1374891676 */
|
||||
.md-nav__link[for] {
|
||||
color: var(--md-default-fg-color) !important;
|
||||
}
|
||||
|
||||
/* Figure class */
|
||||
/* Shared content elements */
|
||||
.animation-figure {
|
||||
border-radius: 0.3rem;
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
box-shadow: var(--md-shadow-z2);
|
||||
box-shadow: 0 0.03rem 0.16rem rgb(0 0 0 / 0.07);
|
||||
}
|
||||
|
||||
/* Cover image class */
|
||||
.cover-image {
|
||||
width: 28rem;
|
||||
height: auto;
|
||||
border-radius: 0.3rem;
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
box-shadow: var(--md-shadow-z2);
|
||||
box-shadow: 0 0.03rem 0.16rem rgb(0 0 0 / 0.07);
|
||||
}
|
||||
|
||||
/* Center Markdown Tables (requires md_in_html extension) */
|
||||
.center-table {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Reset alignment for table cells */
|
||||
.md-typeset .center-table :is(td, th):not([align]) {
|
||||
text-align: initial;
|
||||
}
|
||||
|
||||
/* Font size */
|
||||
.md-typeset {
|
||||
font-size: 0.75rem;
|
||||
line-height: 1.5;
|
||||
@@ -136,7 +187,6 @@
|
||||
font-size: 0.95em;
|
||||
}
|
||||
|
||||
/* Markdown Header */
|
||||
/* https://github.com/squidfunk/mkdocs-material/blob/dcab57dd1cced4b77875c1aa1b53467c62709d31/src/assets/stylesheets/main/_typeset.scss */
|
||||
.md-typeset h1 {
|
||||
font-weight: 400;
|
||||
@@ -155,11 +205,6 @@
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
.md-typeset a:hover {
|
||||
color: var(--md-typeset-a-color);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.md-typeset code {
|
||||
border-radius: 0.2rem;
|
||||
}
|
||||
@@ -168,21 +213,11 @@
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
/* font-family setting for Win10 */
|
||||
body {
|
||||
--md-text-font-family: -apple-system, BlinkMacSystemFont,
|
||||
var(--md-text-font, _), Helvetica, Arial, sans-serif;
|
||||
--md-code-font-family: var(--md-code-font, _), SFMono-Regular, Consolas, Menlo,
|
||||
-apple-system, BlinkMacSystemFont, var(--md-text-font, _), monospace;
|
||||
}
|
||||
|
||||
/* max height of code block */
|
||||
/* https://github.com/squidfunk/mkdocs-material/issues/3444 */
|
||||
.md-typeset pre>code {
|
||||
max-height: 25rem;
|
||||
}
|
||||
|
||||
/* Keep code block scrollbar hover neutral instead of accent-colored */
|
||||
.md-typeset pre>code:hover {
|
||||
scrollbar-color: var(--md-default-fg-color--lighter) transparent;
|
||||
}
|
||||
@@ -191,29 +226,48 @@ body {
|
||||
background-color: var(--md-default-fg-color--lighter);
|
||||
}
|
||||
|
||||
/* Make the picture not glare in dark theme */
|
||||
[data-md-color-scheme="slate"] .md-typeset img,
|
||||
[data-md-color-scheme="slate"] .md-typeset svg,
|
||||
[data-md-color-scheme="slate"] .md-typeset video {
|
||||
filter: brightness(0.85) invert(0.05);
|
||||
}
|
||||
|
||||
/* landing page */
|
||||
.header-img-div {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin: 0 auto;
|
||||
width: 100%;
|
||||
/* Default to full width */
|
||||
.md-typeset a:not(.md-button) {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.md-typeset a:not(.md-button):hover,
|
||||
.md-typeset a:not(.md-button):focus-visible {
|
||||
color: var(--md-typeset-a-color);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* Admonitions and tabs */
|
||||
.md-typeset .admonition-title:before,
|
||||
.md-typeset summary:before,
|
||||
.md-typeset summary:after {
|
||||
top: 50%;
|
||||
}
|
||||
|
||||
.md-typeset .admonition-title:before,
|
||||
.md-typeset summary:before {
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
|
||||
.md-typeset summary:after {
|
||||
transform: translateY(-50%) rotate(0deg);
|
||||
}
|
||||
|
||||
.md-typeset details[open]>summary:after {
|
||||
transform: translateY(-50%) rotate(90deg);
|
||||
}
|
||||
|
||||
/* Admonition for python tutor */
|
||||
.md-typeset .admonition.pythontutor,
|
||||
.md-typeset details.pythontutor {
|
||||
border-color: var(--md-default-fg-color--lightest);
|
||||
margin-top: 0;
|
||||
margin-bottom: 1.5625em;
|
||||
background-color: var(--md-code-bg-color);
|
||||
}
|
||||
|
||||
.md-typeset .pythontutor>.admonition-title,
|
||||
@@ -228,26 +282,18 @@ body {
|
||||
mask-image: var(--md-admonition-icon--pythontutor);
|
||||
}
|
||||
|
||||
/* code block tabs */
|
||||
[data-md-color-scheme="slate"] .md-typeset details.pythontutor[open]> :not(summary),
|
||||
[data-md-color-scheme="slate"] .md-typeset details.pythontutor[open]> :not(summary) :is(p, li, strong, em, sub, sup, code, a) {
|
||||
background-color: #f5f5f5;
|
||||
color: #1d1d20;
|
||||
}
|
||||
|
||||
.md-typeset .tabbed-labels>label {
|
||||
font-size: 0.61rem;
|
||||
}
|
||||
|
||||
.md-typeset .tabbed-labels--linked>label>a {
|
||||
padding: .78125em 1.0em .625em;
|
||||
}
|
||||
|
||||
/* header banner */
|
||||
.md-banner {
|
||||
background-color: var(--md-code-bg-color);
|
||||
color: var(--md-default-fg-color);
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
.md-banner .banner-svg svg {
|
||||
margin-right: 0.3rem;
|
||||
height: 0.63rem;
|
||||
fill: var(--md-default-fg-color);
|
||||
padding: 0.78125em 1em 0.625em;
|
||||
}
|
||||
|
||||
.pythontutor-iframe {
|
||||
@@ -260,115 +306,59 @@ body {
|
||||
border: none;
|
||||
}
|
||||
|
||||
/* landing page container */
|
||||
/* Landing page layout */
|
||||
.header-img-div {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin: 0 auto;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.home-div {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 3em 2em;
|
||||
background-color: var(--md-default-bg-color);
|
||||
color: var(--md-default-fg-color);
|
||||
font-size: 0.9rem;
|
||||
padding: 3em 2em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.home-div--black {
|
||||
background-color: #101010;
|
||||
}
|
||||
|
||||
.home-div[data-md-color-scheme="default"],
|
||||
.home-div[data-md-color-scheme="default"] h1,
|
||||
.home-div[data-md-color-scheme="default"] h2,
|
||||
.home-div[data-md-color-scheme="default"] h3,
|
||||
.home-div[data-md-color-scheme="default"] h4,
|
||||
.home-div[data-md-color-scheme="default"] h5,
|
||||
.home-div[data-md-color-scheme="default"] h6,
|
||||
.home-div[data-md-color-scheme="slate"],
|
||||
.home-div[data-md-color-scheme="slate"] h1,
|
||||
.home-div[data-md-color-scheme="slate"] h2,
|
||||
.home-div[data-md-color-scheme="slate"] h3,
|
||||
.home-div[data-md-color-scheme="slate"] h4,
|
||||
.home-div[data-md-color-scheme="slate"] h5,
|
||||
.home-div[data-md-color-scheme="slate"] h6 {
|
||||
color: var(--md-default-fg-color);
|
||||
}
|
||||
|
||||
.section-content {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
max-width: 70vw;
|
||||
}
|
||||
|
||||
/* rounded button */
|
||||
.rounded-button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 10em;
|
||||
margin: 0 0.1em;
|
||||
padding: 0.6em 1.3em;
|
||||
border: none;
|
||||
background-color: var(--md-typeset-btn-color);
|
||||
color: var(--md-primary-fg-color) !important;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.rounded-button:hover {
|
||||
background-color: var(--md-typeset-btn-hover-color);
|
||||
}
|
||||
|
||||
.rounded-button span {
|
||||
margin: 0;
|
||||
margin-bottom: 0.07em;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.rounded-button svg {
|
||||
fill: var(--md-primary-fg-color);
|
||||
width: auto;
|
||||
height: 1.2em;
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
|
||||
/* device image */
|
||||
.device-on-hover {
|
||||
width: auto;
|
||||
transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
a:hover .device-on-hover {
|
||||
filter: drop-shadow(0 0 0.2rem rgba(0, 0, 0, 0.15));
|
||||
transform: scale(1.01);
|
||||
}
|
||||
|
||||
/* text button */
|
||||
.reading-media {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: flex-end;
|
||||
height: 32vw;
|
||||
}
|
||||
|
||||
.media-block {
|
||||
height: 100%;
|
||||
margin: 0 0.2em;
|
||||
}
|
||||
|
||||
.text-button {
|
||||
width: auto;
|
||||
color: var(--md-typeset-btn-color);
|
||||
text-decoration: none;
|
||||
text-align: center;
|
||||
margin: 2.7em auto;
|
||||
}
|
||||
|
||||
.text-button span {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.text-button svg {
|
||||
display: inline-block;
|
||||
fill: var(--md-typeset-btn-color);
|
||||
width: auto;
|
||||
height: 0.9em;
|
||||
background-size: cover;
|
||||
padding-top: 0.17em;
|
||||
margin-left: 0.15em;
|
||||
}
|
||||
|
||||
a:hover .text-button span {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* hero image */
|
||||
.hero-div {
|
||||
height: min(84vh, 75vw);
|
||||
width: min(112vh, 100vw);
|
||||
margin: 0 auto;
|
||||
margin-top: -2.4rem;
|
||||
margin: -2.4rem auto 0;
|
||||
padding: 0;
|
||||
position: relative;
|
||||
font-size: min(1.8vh, 2.5vw);
|
||||
@@ -384,13 +374,12 @@ a:hover .text-button span {
|
||||
}
|
||||
|
||||
.hero-bg {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
/* hover on the planets */
|
||||
.hero-div>a>img {
|
||||
width: auto;
|
||||
position: absolute;
|
||||
@@ -402,7 +391,6 @@ a:hover .text-button span {
|
||||
position: absolute;
|
||||
transform: translateX(-50%) translateY(-50%);
|
||||
white-space: nowrap;
|
||||
/* prevent line breaks */
|
||||
color: white;
|
||||
}
|
||||
|
||||
@@ -412,21 +400,136 @@ a:hover .text-button span {
|
||||
}
|
||||
|
||||
.hero-div>a:hover>span {
|
||||
text-decoration: underline;
|
||||
color: var(--md-typeset-btn-color);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.heading-div {
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
transform: translateX(-50%);
|
||||
left: 50%;
|
||||
bottom: min(2vh, 3vw);
|
||||
transform: translateX(-50%);
|
||||
pointer-events: none;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* code badge */
|
||||
/* Landing page CTAs */
|
||||
.rounded-button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.38em;
|
||||
margin: 0 0.1em;
|
||||
padding: 0.72em 1.18em;
|
||||
border: 1px solid rgb(255 255 255 / 0.24);
|
||||
border-radius: 10em;
|
||||
background-color: rgb(24 24 24 / 0.2);
|
||||
color: rgb(232 241 240) !important;
|
||||
font-weight: 400;
|
||||
letter-spacing: 0.01em;
|
||||
line-height: 1.2;
|
||||
min-width: 7.2em;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
box-shadow:
|
||||
0 0.3rem 1rem rgb(0 0 0 / 0.16);
|
||||
transition:
|
||||
color 0.15s ease-out,
|
||||
background-color 0.15s ease-out,
|
||||
border-color 0.15s ease-out,
|
||||
box-shadow 0.15s ease-out;
|
||||
backdrop-filter: saturate(115%) blur(0.18rem);
|
||||
-webkit-backdrop-filter: saturate(115%) blur(0.18rem);
|
||||
}
|
||||
|
||||
.rounded-button:hover {
|
||||
background-color: rgb(255 255 255 / 0.2);
|
||||
border-color: rgb(255 255 255 / 0.34);
|
||||
color: rgb(244 249 248) !important;
|
||||
box-shadow:
|
||||
0 0.4rem 1.2rem rgb(0 0 0 / 0.18);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.heading-div .rounded-button:first-of-type {
|
||||
border-color: rgb(160 223 217 / 0.42);
|
||||
background-color: rgb(42 104 99 / 0.2);
|
||||
color: rgb(233 245 243) !important;
|
||||
}
|
||||
|
||||
.heading-div .rounded-button:first-of-type:hover {
|
||||
background-color: rgb(82 187 177 / 0.28);
|
||||
border-color: rgb(186 228 223 / 0.38);
|
||||
color: rgb(242 249 248) !important;
|
||||
}
|
||||
|
||||
.rounded-button span {
|
||||
margin: 0 0 0.07em;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.rounded-button svg {
|
||||
width: auto;
|
||||
height: 1.2em;
|
||||
margin-right: 0.5em;
|
||||
fill: currentColor;
|
||||
}
|
||||
|
||||
.reading-media {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: flex-end;
|
||||
height: 32vw;
|
||||
}
|
||||
|
||||
.reading-media+p {
|
||||
margin-top: 1em !important;
|
||||
}
|
||||
|
||||
.media-block {
|
||||
height: 100%;
|
||||
margin: 0 0.2em;
|
||||
}
|
||||
|
||||
.text-button {
|
||||
width: auto;
|
||||
margin: 2.7em auto;
|
||||
color: var(--md-typeset-btn-color);
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.text-button span {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.text-button svg {
|
||||
display: inline-block;
|
||||
width: auto;
|
||||
height: 0.9em;
|
||||
margin-left: 0.15em;
|
||||
padding-top: 0.17em;
|
||||
fill: var(--md-typeset-btn-color);
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
a:hover .text-button span {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.device-on-hover {
|
||||
width: auto;
|
||||
transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
a:hover .device-on-hover {
|
||||
filter: drop-shadow(0 0 0.2rem rgba(0, 0, 0, 0.15));
|
||||
transform: scale(1.01);
|
||||
}
|
||||
|
||||
/* Landing page content blocks */
|
||||
.code-badge {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
@@ -434,11 +537,10 @@ a:hover .text-button span {
|
||||
}
|
||||
|
||||
.code-badge img {
|
||||
height: 1.07em;
|
||||
width: auto;
|
||||
height: 1.07em;
|
||||
}
|
||||
|
||||
/* brief intro */
|
||||
.intro-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -455,14 +557,13 @@ a:hover .text-button span {
|
||||
|
||||
.intro-text {
|
||||
flex-grow: 1;
|
||||
/* fill the space */
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
text-align: left;
|
||||
align-items: flex-start;
|
||||
width: fit-content;
|
||||
margin: 2em;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.intro-text>div {
|
||||
@@ -471,6 +572,10 @@ a:hover .text-button span {
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.intro-text svg path {
|
||||
fill: #3b3b3b;
|
||||
}
|
||||
|
||||
.endor-text {
|
||||
width: 50%;
|
||||
}
|
||||
@@ -480,7 +585,10 @@ a:hover .text-button span {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* contributors table */
|
||||
.home-div .intro-quote {
|
||||
color: var(--md-default-fg-color--light) !important;
|
||||
}
|
||||
|
||||
.profile-div {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
@@ -522,7 +630,37 @@ a:hover .text-button span {
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
/* Hide navigation */
|
||||
/* Embedded media */
|
||||
.video-container {
|
||||
position: relative;
|
||||
padding-bottom: 56.25%;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
.video-container iframe {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.starfield {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 0;
|
||||
background-color: var(--hero-starfield-bg-color, transparent);
|
||||
}
|
||||
|
||||
.starfield-origin {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
|
||||
/* Responsive adjustments */
|
||||
@media screen and (max-width: 76.25em) {
|
||||
.section-content {
|
||||
max-width: 95vw;
|
||||
@@ -537,7 +675,6 @@ a:hover .text-button span {
|
||||
}
|
||||
}
|
||||
|
||||
/* mobile devices */
|
||||
@media screen and (max-width: 60em) {
|
||||
.home-div {
|
||||
font-size: 0.75rem;
|
||||
@@ -576,208 +713,3 @@ a:hover .text-button span {
|
||||
flex: 1 1 30%;
|
||||
}
|
||||
}
|
||||
|
||||
.video-container {
|
||||
position: relative;
|
||||
padding-bottom: 56.25%;
|
||||
/* 16:9 */
|
||||
height: 0;
|
||||
}
|
||||
|
||||
.video-container iframe {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
/* starfield */
|
||||
.starfield {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 0;
|
||||
background-color: var(--hero-starfield-bg-color, transparent);
|
||||
}
|
||||
|
||||
.starfield-origin {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
|
||||
/* Zensical-specific adjustments merged into the main stylesheet. */
|
||||
:root>* {
|
||||
--md-accent-fg-color: var(--md-typeset-a-color);
|
||||
--md-admonition-pythontutor-color: var(--md-code-bg-color);
|
||||
--hello-algo-sidebar-width: 13rem;
|
||||
}
|
||||
|
||||
[data-md-color-scheme="slate"] {
|
||||
--md-accent-fg-color: var(--md-typeset-a-color);
|
||||
--md-admonition-pythontutor-color: var(--md-code-bg-color);
|
||||
--md-body-bg-color: var(--md-default-bg-color);
|
||||
--md-default-bg-color--light: rgb(30 30 30 / 0.8);
|
||||
}
|
||||
|
||||
[data-md-color-scheme="slate"] .md-typeset details.pythontutor[open]> :not(summary),
|
||||
[data-md-color-scheme="slate"] .md-typeset details.pythontutor[open]> :not(summary) :is(p, li, strong, em, sub, sup, code, a) {
|
||||
background-color: #f5f5f5;
|
||||
color: #1d1d20;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: var(--md-default-bg-color);
|
||||
}
|
||||
|
||||
html:has(body[data-md-color-scheme="slate"]) {
|
||||
background-color: #1e1e1e;
|
||||
}
|
||||
|
||||
html:has(body[data-md-color-scheme="default"]) {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
.home-div[data-md-color-scheme="default"],
|
||||
.home-div[data-md-color-scheme="default"] h1,
|
||||
.home-div[data-md-color-scheme="default"] h2,
|
||||
.home-div[data-md-color-scheme="default"] h3,
|
||||
.home-div[data-md-color-scheme="default"] h4,
|
||||
.home-div[data-md-color-scheme="default"] h5,
|
||||
.home-div[data-md-color-scheme="default"] h6 {
|
||||
color: var(--md-default-fg-color);
|
||||
}
|
||||
|
||||
.home-div[data-md-color-scheme="slate"],
|
||||
.home-div[data-md-color-scheme="slate"] h1,
|
||||
.home-div[data-md-color-scheme="slate"] h2,
|
||||
.home-div[data-md-color-scheme="slate"] h3,
|
||||
.home-div[data-md-color-scheme="slate"] h4,
|
||||
.home-div[data-md-color-scheme="slate"] h5,
|
||||
.home-div[data-md-color-scheme="slate"] h6 {
|
||||
color: var(--md-default-fg-color);
|
||||
}
|
||||
|
||||
.home-div .intro-quote {
|
||||
color: var(--md-default-fg-color--light) !important;
|
||||
}
|
||||
|
||||
.reading-media+p {
|
||||
margin-top: 1em !important;
|
||||
}
|
||||
|
||||
.md-typeset .admonition-title:before,
|
||||
.md-typeset summary:before,
|
||||
.md-typeset summary:after {
|
||||
top: 50%;
|
||||
}
|
||||
|
||||
.md-typeset .admonition-title:before,
|
||||
.md-typeset summary:before {
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
|
||||
.md-typeset summary:after {
|
||||
transform: translateY(-50%) rotate(0deg);
|
||||
}
|
||||
|
||||
.md-typeset details[open]>summary:after {
|
||||
transform: translateY(-50%) rotate(90deg);
|
||||
}
|
||||
|
||||
.md-nav__link[for] {
|
||||
color: inherit !important;
|
||||
}
|
||||
|
||||
.md-nav__link[for].md-nav__link--active {
|
||||
color: var(--md-accent-fg-color) !important;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 76.25em) {
|
||||
.md-grid {
|
||||
max-width: calc(61rem + 2 * (var(--hello-algo-sidebar-width) - 12.1rem));
|
||||
}
|
||||
|
||||
.md-sidebar--primary,
|
||||
.md-sidebar--secondary {
|
||||
width: var(--hello-algo-sidebar-width);
|
||||
}
|
||||
|
||||
[dir="ltr"] .md-sidebar__inner {
|
||||
padding-right: calc(100% - (var(--hello-algo-sidebar-width) - 0.6rem));
|
||||
}
|
||||
|
||||
[dir="rtl"] .md-sidebar__inner {
|
||||
padding-left: calc(100% - (var(--hello-algo-sidebar-width) - 0.6rem));
|
||||
}
|
||||
}
|
||||
|
||||
.md-sidebar--primary .md-sidebar__scrollwrap {
|
||||
scrollbar-color: var(--md-default-fg-color--lighter) transparent;
|
||||
}
|
||||
|
||||
.md-sidebar--primary .md-sidebar__scrollwrap::-webkit-scrollbar-thumb,
|
||||
.md-sidebar--primary .md-sidebar__scrollwrap::-webkit-scrollbar-thumb:hover {
|
||||
background-color: var(--md-default-fg-color--lighter);
|
||||
}
|
||||
|
||||
.md-footer,
|
||||
.md-footer__inner,
|
||||
.md-footer-meta,
|
||||
.md-footer__link,
|
||||
.md-footer__link:hover {
|
||||
background-color: var(--md-default-bg-color);
|
||||
}
|
||||
|
||||
.md-footer {
|
||||
border-top: 0.05rem solid var(--md-default-fg-color--lightest);
|
||||
}
|
||||
|
||||
[data-md-color-scheme="slate"] .md-footer,
|
||||
[data-md-color-scheme="slate"] .md-footer__inner,
|
||||
[data-md-color-scheme="slate"] .md-footer-meta,
|
||||
[data-md-color-scheme="slate"] .md-footer__link,
|
||||
[data-md-color-scheme="slate"] .md-footer__link:hover {
|
||||
background-color: var(--md-default-bg-color);
|
||||
}
|
||||
|
||||
.md-banner {
|
||||
background-color: var(--md-default-bg-color);
|
||||
}
|
||||
|
||||
.md-typeset .admonition.pythontutor,
|
||||
.md-typeset details.pythontutor,
|
||||
.md-typeset .pythontutor>.admonition-title,
|
||||
.md-typeset .pythontutor>summary {
|
||||
background-color: var(--md-code-bg-color);
|
||||
}
|
||||
|
||||
.md-typeset .pythontutor>.admonition-title::before,
|
||||
.md-typeset .pythontutor>summary::before,
|
||||
.md-typeset .pythontutor>summary::after {
|
||||
top: 50%;
|
||||
}
|
||||
|
||||
.md-typeset .pythontutor>.admonition-title::before,
|
||||
.md-typeset .pythontutor>summary::before {
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
|
||||
.md-typeset .pythontutor>summary::after {
|
||||
transform: translateY(-50%) rotate(0deg);
|
||||
}
|
||||
|
||||
.md-typeset details[open].pythontutor>summary::after {
|
||||
transform: translateY(-50%) rotate(90deg);
|
||||
}
|
||||
|
||||
.md-typeset a:not(.md-button) {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.md-typeset a:not(.md-button):hover,
|
||||
.md-typeset a:not(.md-button):focus-visible {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
typedef struct {
|
||||
int *nums; // Массив для хранения элементов очереди
|
||||
int front; // Указатель head, указывающий на первый элемент очереди
|
||||
int queSize; // Указатель хвоста, указывающий на позицию после хвоста
|
||||
int queSize; // Текущее количество элементов в очереди
|
||||
int queCapacity; // Вместимость очереди
|
||||
} ArrayQueue;
|
||||
|
||||
@@ -131,4 +131,4 @@ int main() {
|
||||
delArrayQueue(queue);
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -137,10 +137,8 @@
|
||||
|
||||
// Содержательный комментарий: подробно поясняет код
|
||||
|
||||
/**
|
||||
* Многострочный
|
||||
* комментарий
|
||||
*/
|
||||
// Многострочный
|
||||
// комментарий
|
||||
```
|
||||
|
||||
=== "C"
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
<path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3 .3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5 .3-6.2 2.3zm44.2-1.7c-2.9 .7-4.9 2.6-4.6 4.9 .3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3 .7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3 .3 2.9 2.3 3.9 1.6 1 3.6 .7 4.3-.7 .7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3 .7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3 .7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z">
|
||||
</path>
|
||||
</svg>
|
||||
<span>Репозиторий кода</span>
|
||||
<span>GitHub</span>
|
||||
</a>
|
||||
</div>
|
||||
<!-- arrow -->
|
||||
@@ -97,7 +97,7 @@
|
||||
</section>
|
||||
|
||||
<!-- Section: reading -->
|
||||
<section data-md-color-scheme="default" data-md-color-primary="white" class="home-div">
|
||||
<section data-md-color-scheme="slate" data-md-color-primary="grey" class="home-div">
|
||||
<div class="section-content">
|
||||
<div class="reading-media">
|
||||
<!-- devices -->
|
||||
@@ -135,7 +135,7 @@
|
||||
</section>
|
||||
|
||||
<!-- Section: endorsements -->
|
||||
<section data-md-color-scheme="slate" data-md-color-primary="grey" class="home-div">
|
||||
<section data-md-color-scheme="slate" data-md-color-primary="grey" class="home-div home-div--black">
|
||||
<div class="section-content">
|
||||
<h3 style="text-align: center; margin: 1em auto;">Рекомендации</h3>
|
||||
<div class="intro-container" style="margin: 0 auto;">
|
||||
@@ -152,7 +152,7 @@
|
||||
</section>
|
||||
|
||||
<!-- Section: features -->
|
||||
<section data-md-color-scheme="default" data-md-color-primary="white" class="home-div">
|
||||
<section data-md-color-scheme="slate" data-md-color-primary="grey" class="home-div">
|
||||
<div class="section-content">
|
||||
<div class="intro-container">
|
||||
<div class="intro-text">
|
||||
@@ -206,7 +206,7 @@
|
||||
</section>
|
||||
|
||||
<!-- Section: special thanks -->
|
||||
<section class="home-div" data-md-color-primary="grey" data-md-color-scheme="slate">
|
||||
<section class="home-div home-div--black" data-md-color-primary="grey" data-md-color-scheme="slate">
|
||||
<div class="section-content">
|
||||
<h3 style="text-align: center; margin: 0 0 2em 0;">
|
||||
Благодарности
|
||||
@@ -222,7 +222,7 @@
|
||||
</section>
|
||||
|
||||
<!-- Section: contributors -->
|
||||
<section data-md-color-scheme="default" data-md-color-primary="white" class="home-div">
|
||||
<section data-md-color-scheme="slate" data-md-color-primary="grey" class="home-div">
|
||||
<div class="section-content" style="max-width: 90vw;">
|
||||
<!-- author -->
|
||||
<div style="margin: 2em auto;">
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
typedef struct {
|
||||
int *nums; // 用於儲存佇列元素的陣列
|
||||
int front; // 佇列首指標,指向佇列首元素
|
||||
int queSize; // 尾指標,指向佇列尾 + 1
|
||||
int queSize; // 當前佇列的元素數量
|
||||
int queCapacity; // 佇列容量
|
||||
} ArrayQueue;
|
||||
|
||||
|
||||
@@ -137,10 +137,8 @@
|
||||
|
||||
// 內容註釋,用於詳解程式碼
|
||||
|
||||
/**
|
||||
* 多行
|
||||
* 註釋
|
||||
*/
|
||||
// 多行
|
||||
// 註釋
|
||||
```
|
||||
|
||||
=== "C"
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
<path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3 .3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5 .3-6.2 2.3zm44.2-1.7c-2.9 .7-4.9 2.6-4.6 4.9 .3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3 .7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3 .3 2.9 2.3 3.9 1.6 1 3.6 .7 4.3-.7 .7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3 .7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3 .7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z">
|
||||
</path>
|
||||
</svg>
|
||||
<span>程式碼倉庫</span>
|
||||
<span>GitHub</span>
|
||||
</a>
|
||||
</div>
|
||||
<!-- arrow -->
|
||||
@@ -97,7 +97,7 @@
|
||||
</section>
|
||||
|
||||
<!-- Section: reading -->
|
||||
<section data-md-color-scheme="default" data-md-color-primary="white" class="home-div">
|
||||
<section data-md-color-scheme="slate" data-md-color-primary="grey" class="home-div">
|
||||
<div class="section-content">
|
||||
<div class="reading-media">
|
||||
<!-- devices -->
|
||||
@@ -147,7 +147,7 @@
|
||||
</section>
|
||||
|
||||
<!-- Section: endorsements -->
|
||||
<section data-md-color-scheme="slate" data-md-color-primary="grey" class="home-div">
|
||||
<section data-md-color-scheme="slate" data-md-color-primary="grey" class="home-div home-div--black">
|
||||
<div class="section-content">
|
||||
<h3 style="text-align: center; margin: 1em auto;">推薦語</h3>
|
||||
<div class="intro-container" style="margin: 0 auto;">
|
||||
@@ -164,7 +164,7 @@
|
||||
</section>
|
||||
|
||||
<!-- Section: features -->
|
||||
<section data-md-color-scheme="default" data-md-color-primary="white" class="home-div">
|
||||
<section data-md-color-scheme="slate" data-md-color-primary="grey" class="home-div">
|
||||
<div class="section-content">
|
||||
<div class="intro-container">
|
||||
<div class="intro-text">
|
||||
@@ -218,7 +218,7 @@
|
||||
</section>
|
||||
|
||||
<!-- Section: special thanks -->
|
||||
<section class="home-div" data-md-color-primary="grey" data-md-color-scheme="slate">
|
||||
<section class="home-div home-div--black" data-md-color-primary="grey" data-md-color-scheme="slate">
|
||||
<div class="section-content">
|
||||
<h3 style="text-align: center; margin: 0 0 2em 0;">
|
||||
鳴謝
|
||||
@@ -234,7 +234,7 @@
|
||||
</section>
|
||||
|
||||
<!-- Section: contributors -->
|
||||
<section data-md-color-scheme="default" data-md-color-primary="white" class="home-div">
|
||||
<section data-md-color-scheme="slate" data-md-color-primary="grey" class="home-div">
|
||||
<div class="section-content" style="max-width: 90vw;">
|
||||
<!-- author -->
|
||||
<div style="margin: 2em auto;">
|
||||
|
||||
Reference in New Issue
Block a user