mirror of
https://github.com/krahets/hello-algo.git
synced 2026-02-03 19:03:42 +08:00
build
This commit is contained in:
@@ -349,7 +349,7 @@
|
||||
<h3>贡献者</h3>
|
||||
<p>本书在开源社区一百多位贡献者的共同努力下不断完善,感谢他们付出的时间与精力!</p>
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -416,7 +416,7 @@
|
||||
<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>
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* Color Settings */
|
||||
/* 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 > * {
|
||||
:root>* {
|
||||
--md-primary-fg-color: #ffffff;
|
||||
--md-primary-bg-color: #1d1d20;
|
||||
|
||||
@@ -69,8 +69,10 @@
|
||||
.md-header--landing {
|
||||
box-shadow: none;
|
||||
transition: none;
|
||||
backdrop-filter: saturate(180%) blur(20px); /* Gaussian blur */
|
||||
-webkit-backdrop-filter: saturate(180%) blur(20px); /* Safari */
|
||||
backdrop-filter: saturate(180%) blur(20px);
|
||||
/* Gaussian blur */
|
||||
-webkit-backdrop-filter: saturate(180%) blur(20px);
|
||||
/* Safari */
|
||||
background-color: var(--md-header-bg-color);
|
||||
}
|
||||
|
||||
@@ -159,7 +161,7 @@ body {
|
||||
|
||||
/* max height of code block */
|
||||
/* https://github.com/squidfunk/mkdocs-material/issues/3444 */
|
||||
.md-typeset pre > code {
|
||||
.md-typeset pre>code {
|
||||
max-height: 25rem;
|
||||
}
|
||||
|
||||
@@ -176,7 +178,8 @@ body {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin: 0 auto;
|
||||
width: 100%; /* Default to full width */
|
||||
width: 100%;
|
||||
/* Default to full width */
|
||||
}
|
||||
|
||||
/* Admonition for python tutor */
|
||||
@@ -192,12 +195,13 @@ body {
|
||||
box-shadow: var(--md-shadow-z1);
|
||||
}
|
||||
|
||||
.md-typeset .pythontutor > .admonition-title,
|
||||
.md-typeset .pythontutor > summary {
|
||||
.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>.admonition-title::before,
|
||||
.md-typeset .pythontutor>summary::before {
|
||||
background-color: rgb(55, 118, 171);
|
||||
-webkit-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 */
|
||||
.hero-div > a > img {
|
||||
.hero-div>a>img {
|
||||
width: auto;
|
||||
position: absolute;
|
||||
transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
.hero-div > a > span {
|
||||
.hero-div>a>span {
|
||||
margin: 0;
|
||||
position: absolute;
|
||||
transform: translateX(-50%) translateY(-50%);
|
||||
white-space: nowrap; /* prevent line breaks */
|
||||
white-space: nowrap;
|
||||
/* prevent line breaks */
|
||||
color: white;
|
||||
}
|
||||
|
||||
.hero-div > a:hover > img {
|
||||
filter: brightness(1.15) saturate(1.1)
|
||||
drop-shadow(0 0 0.5rem rgba(255, 255, 255, 0.2));
|
||||
.hero-div>a:hover>img {
|
||||
filter: brightness(1.15) saturate(1.1) drop-shadow(0 0 0.5rem rgba(255, 255, 255, 0.2));
|
||||
transform: scale(1.03);
|
||||
}
|
||||
|
||||
.hero-div > a:hover > span {
|
||||
.hero-div>a:hover>span {
|
||||
text-decoration: underline;
|
||||
color: var(--md-typeset-btn-color);
|
||||
}
|
||||
@@ -426,7 +430,8 @@ a:hover .text-button span {
|
||||
}
|
||||
|
||||
.intro-text {
|
||||
flex-grow: 1; /* fill the space */
|
||||
flex-grow: 1;
|
||||
/* fill the space */
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
@@ -436,7 +441,7 @@ a:hover .text-button span {
|
||||
margin: 2em;
|
||||
}
|
||||
|
||||
.intro-text > div {
|
||||
.intro-text>div {
|
||||
align-self: flex-start;
|
||||
width: auto;
|
||||
margin: 0 auto;
|
||||
@@ -524,14 +529,15 @@ a:hover .text-button span {
|
||||
margin: 0.7em auto;
|
||||
}
|
||||
|
||||
.profile-cell{
|
||||
.profile-cell {
|
||||
flex: 1 1 30%;
|
||||
}
|
||||
}
|
||||
|
||||
.video-container {
|
||||
position: relative;
|
||||
padding-bottom: 56.25%; /* 16:9 */
|
||||
padding-bottom: 56.25%;
|
||||
/* 16:9 */
|
||||
height: 0;
|
||||
}
|
||||
|
||||
@@ -541,4 +547,4 @@ a:hover .text-button span {
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
@@ -368,7 +368,7 @@
|
||||
<h3>貢獻者</h3>
|
||||
<p>本書在開源社群一百多位貢獻者的共同努力下不斷完善,感謝他們付出的時間與精力!</p>
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user