This commit is contained in:
krahets
2025-01-14 02:45:54 +08:00
parent 17c55b41d5
commit ceef41be19
4 changed files with 30 additions and 24 deletions
+1 -1
View File
@@ -349,7 +349,7 @@
<h3>贡献者</h3> <h3>贡献者</h3>
<p>本书在开源社区一百多位贡献者的共同努力下不断完善,感谢他们付出的时间与精力!</p> <p>本书在开源社区一百多位贡献者的共同努力下不断完善,感谢他们付出的时间与精力!</p>
<a href="https://github.com/krahets/hello-algo/graphs/contributors"> <a href="https://github.com/krahets/hello-algo/graphs/contributors">
<img src="https://contrib.rocks/image?repo=krahets/hello-algo&max=300&columns=16" alt="Contributors" style="width: 100%; max-width: 38.5em;"> <img src="https://contrib.rocks/image?repo=krahets/hello-algo&max=300&columns=12" alt="Contributors" style="width: 100%; max-width: 38.5em;">
</a> </a>
</div> </div>
</div> </div>
+1 -1
View File
@@ -416,7 +416,7 @@
<h3>Contributors</h3> <h3>Contributors</h3>
<p>This book has been refined by the efforts of over 180 contributors. We sincerely thank them for their invaluable time and contributions!</p> <p>This book has been refined by the efforts of over 180 contributors. We sincerely thank them for their invaluable time and contributions!</p>
<a href="https://github.com/krahets/hello-algo/graphs/contributors"> <a href="https://github.com/krahets/hello-algo/graphs/contributors">
<img src="https://contrib.rocks/image?repo=krahets/hello-algo&max=300&columns=16" alt="Contributors" style="width: 100%; max-width: 38.5em;"> <img src="https://contrib.rocks/image?repo=krahets/hello-algo&max=300&columns=12" alt="Contributors" style="width: 100%; max-width: 38.5em;">
</a> </a>
</div> </div>
</div> </div>
+27 -21
View File
@@ -1,7 +1,7 @@
/* Color Settings */ /* Color Settings */
/* https://github.com/squidfunk/mkdocs-material/blob/6b5035f5580f97532d664e3d1babf5f320e88ee9/src/assets/stylesheets/main/_colors.scss */ /* 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 */ /* https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/#custom-colors */
:root > * { :root>* {
--md-primary-fg-color: #ffffff; --md-primary-fg-color: #ffffff;
--md-primary-bg-color: #1d1d20; --md-primary-bg-color: #1d1d20;
@@ -69,8 +69,10 @@
.md-header--landing { .md-header--landing {
box-shadow: none; box-shadow: none;
transition: none; transition: none;
backdrop-filter: saturate(180%) blur(20px); /* Gaussian blur */ backdrop-filter: saturate(180%) blur(20px);
-webkit-backdrop-filter: saturate(180%) blur(20px); /* Safari */ /* Gaussian blur */
-webkit-backdrop-filter: saturate(180%) blur(20px);
/* Safari */
background-color: var(--md-header-bg-color); background-color: var(--md-header-bg-color);
} }
@@ -159,7 +161,7 @@ body {
/* max height of code block */ /* max height of code block */
/* https://github.com/squidfunk/mkdocs-material/issues/3444 */ /* https://github.com/squidfunk/mkdocs-material/issues/3444 */
.md-typeset pre > code { .md-typeset pre>code {
max-height: 25rem; max-height: 25rem;
} }
@@ -176,7 +178,8 @@ body {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
margin: 0 auto; margin: 0 auto;
width: 100%; /* Default to full width */ width: 100%;
/* Default to full width */
} }
/* Admonition for python tutor */ /* Admonition for python tutor */
@@ -192,12 +195,13 @@ body {
box-shadow: var(--md-shadow-z1); box-shadow: var(--md-shadow-z1);
} }
.md-typeset .pythontutor > .admonition-title, .md-typeset .pythontutor>.admonition-title,
.md-typeset .pythontutor > summary { .md-typeset .pythontutor>summary {
background-color: var(--md-code-bg-color); background-color: var(--md-code-bg-color);
} }
.md-typeset .pythontutor > .admonition-title::before,
.md-typeset .pythontutor > summary::before { .md-typeset .pythontutor>.admonition-title::before,
.md-typeset .pythontutor>summary::before {
background-color: rgb(55, 118, 171); background-color: rgb(55, 118, 171);
-webkit-mask-image: var(--md-admonition-icon--pythontutor); -webkit-mask-image: var(--md-admonition-icon--pythontutor);
mask-image: var(--md-admonition-icon--pythontutor); mask-image: var(--md-admonition-icon--pythontutor);
@@ -363,27 +367,27 @@ a:hover .text-button span {
} }
/* hover on the planets */ /* hover on the planets */
.hero-div > a > img { .hero-div>a>img {
width: auto; width: auto;
position: absolute; position: absolute;
transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out; transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
} }
.hero-div > a > span { .hero-div>a>span {
margin: 0; margin: 0;
position: absolute; position: absolute;
transform: translateX(-50%) translateY(-50%); transform: translateX(-50%) translateY(-50%);
white-space: nowrap; /* prevent line breaks */ white-space: nowrap;
/* prevent line breaks */
color: white; color: white;
} }
.hero-div > a:hover > img { .hero-div>a:hover>img {
filter: brightness(1.15) saturate(1.1) filter: brightness(1.15) saturate(1.1) drop-shadow(0 0 0.5rem rgba(255, 255, 255, 0.2));
drop-shadow(0 0 0.5rem rgba(255, 255, 255, 0.2));
transform: scale(1.03); transform: scale(1.03);
} }
.hero-div > a:hover > span { .hero-div>a:hover>span {
text-decoration: underline; text-decoration: underline;
color: var(--md-typeset-btn-color); color: var(--md-typeset-btn-color);
} }
@@ -426,7 +430,8 @@ a:hover .text-button span {
} }
.intro-text { .intro-text {
flex-grow: 1; /* fill the space */ flex-grow: 1;
/* fill the space */
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
@@ -436,7 +441,7 @@ a:hover .text-button span {
margin: 2em; margin: 2em;
} }
.intro-text > div { .intro-text>div {
align-self: flex-start; align-self: flex-start;
width: auto; width: auto;
margin: 0 auto; margin: 0 auto;
@@ -524,14 +529,15 @@ a:hover .text-button span {
margin: 0.7em auto; margin: 0.7em auto;
} }
.profile-cell{ .profile-cell {
flex: 1 1 30%; flex: 1 1 30%;
} }
} }
.video-container { .video-container {
position: relative; position: relative;
padding-bottom: 56.25%; /* 16:9 */ padding-bottom: 56.25%;
/* 16:9 */
height: 0; height: 0;
} }
@@ -541,4 +547,4 @@ a:hover .text-button span {
left: 0; left: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
+1 -1
View File
@@ -368,7 +368,7 @@
<h3>貢獻者</h3> <h3>貢獻者</h3>
<p>本書在開源社群一百多位貢獻者的共同努力下不斷完善,感謝他們付出的時間與精力!</p> <p>本書在開源社群一百多位貢獻者的共同努力下不斷完善,感謝他們付出的時間與精力!</p>
<a href="https://github.com/krahets/hello-algo/graphs/contributors"> <a href="https://github.com/krahets/hello-algo/graphs/contributors">
<img src="https://contrib.rocks/image?repo=krahets/hello-algo&max=300&columns=16" alt="Contributors" style="width: 100%; max-width: 38.5em;"> <img src="https://contrib.rocks/image?repo=krahets/hello-algo&max=300&columns=12" alt="Contributors" style="width: 100%; max-width: 38.5em;">
</a> </a>
</div> </div>
</div> </div>