2022-11-22 04:17:46 +08:00
|
|
|
/* Color Settings */
|
2022-11-04 19:12:12 +08:00
|
|
|
/* 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 > * {
|
2023-09-12 03:13:17 +08:00
|
|
|
--md-primary-fg-color: #ffffff;
|
|
|
|
--md-primary-bg-color: #1d1d20;
|
|
|
|
|
|
|
|
--md-default-fg-color: #1d1d20;
|
|
|
|
--md-default-bg-color: #ffffff;
|
|
|
|
|
2023-09-14 03:36:31 +08:00
|
|
|
--md-code-fg-color: #1d1d20;
|
2024-01-07 04:04:01 +08:00
|
|
|
--md-code-bg-color: #f5f5f5;
|
2023-09-14 03:36:31 +08:00
|
|
|
|
2023-09-12 03:13:17 +08:00
|
|
|
--md-accent-fg-color: #999;
|
2022-11-04 19:12:12 +08:00
|
|
|
|
2023-09-12 03:13:17 +08:00
|
|
|
--md-admonition-fg-color: #1d1d20;
|
2022-11-04 19:12:12 +08:00
|
|
|
|
2023-09-12 03:13:17 +08:00
|
|
|
--md-typeset-color: #1d1d20;
|
2023-12-06 23:26:53 +08:00
|
|
|
--md-typeset-a-color: #349890;
|
|
|
|
|
|
|
|
--md-typeset-btn-color: #55aea6;
|
|
|
|
--md-typeset-btn-hover-color: #52bbb1;
|
2024-01-07 04:04:01 +08:00
|
|
|
|
|
|
|
--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;
|
2022-11-04 19:12:12 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
[data-md-color-scheme="slate"] {
|
2023-09-12 03:13:17 +08:00
|
|
|
--md-primary-fg-color: #22272e;
|
|
|
|
--md-primary-bg-color: #adbac7;
|
|
|
|
|
|
|
|
--md-default-fg-color: #adbac7;
|
|
|
|
--md-default-bg-color: #22272e;
|
|
|
|
|
2023-09-14 03:36:31 +08:00
|
|
|
--md-code-fg-color: #adbac7;
|
2024-01-07 04:04:01 +08:00
|
|
|
--md-code-bg-color: #1d2126;
|
2022-11-04 19:12:12 +08:00
|
|
|
|
2023-09-14 03:36:31 +08:00
|
|
|
--md-accent-fg-color: #aaa;
|
2022-11-04 19:12:12 +08:00
|
|
|
|
2023-09-12 03:13:17 +08:00
|
|
|
--md-admonition-fg-color: #adbac7;
|
|
|
|
|
|
|
|
--md-footer-fg-color: #adbac7;
|
|
|
|
|
|
|
|
--md-typeset-color: #adbac7;
|
2023-12-06 23:26:53 +08:00
|
|
|
--md-typeset-a-color: #52bbb1 !important;
|
|
|
|
|
|
|
|
--md-typeset-btn-color: #52bbb1;
|
|
|
|
--md-typeset-btn-hover-color: #55aea6;
|
2024-01-07 04:04:01 +08:00
|
|
|
|
|
|
|
--md-admonition-pythontutor-color: #30363f;
|
2022-11-15 04:55:19 +08:00
|
|
|
}
|
|
|
|
|
2023-01-30 03:55:13 +08:00
|
|
|
/* https://github.com/squidfunk/mkdocs-material/issues/4832#issuecomment-1374891676 */
|
|
|
|
.md-nav__link[for] {
|
2023-09-12 03:13:17 +08:00
|
|
|
color: var(--md-default-fg-color) !important;
|
2023-01-30 03:55:13 +08:00
|
|
|
}
|
|
|
|
|
2023-11-14 21:27:35 +08:00
|
|
|
/* Figure class */
|
|
|
|
.animation-figure {
|
|
|
|
border-radius: 0.63rem;
|
|
|
|
display: block;
|
|
|
|
margin: 0 auto;
|
2024-01-02 15:06:44 +08:00
|
|
|
box-shadow: var(--md-shadow-z2);
|
2023-11-14 21:27:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Cover image class */
|
|
|
|
.cover-image {
|
|
|
|
width: 28rem;
|
|
|
|
height: auto;
|
|
|
|
border-radius: 0.3rem;
|
|
|
|
box-shadow: var(--md-shadow-z2);
|
|
|
|
display: block;
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|
|
|
|
|
2022-11-15 04:55:19 +08:00
|
|
|
/* Center Markdown Tables (requires md_in_html extension) */
|
|
|
|
.center-table {
|
2023-03-07 01:17:30 +08:00
|
|
|
text-align: center;
|
2022-11-15 04:55:19 +08:00
|
|
|
}
|
|
|
|
|
2023-03-07 01:17:30 +08:00
|
|
|
/* Reset alignment for table cells */
|
2023-09-12 03:13:17 +08:00
|
|
|
.md-typeset .center-table :is(td, th):not([align]) {
|
2023-03-07 01:17:30 +08:00
|
|
|
text-align: initial;
|
2022-11-15 04:55:19 +08:00
|
|
|
}
|
2022-11-22 04:17:46 +08:00
|
|
|
|
2023-03-07 01:17:30 +08:00
|
|
|
/* Font size */
|
|
|
|
.md-typeset {
|
|
|
|
font-size: 0.75rem;
|
|
|
|
line-height: 1.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
.md-typeset pre {
|
|
|
|
font-size: 0.95em;
|
|
|
|
}
|
2022-11-22 04:17:46 +08:00
|
|
|
|
|
|
|
/* Markdown Header */
|
2022-11-24 19:32:32 +08:00
|
|
|
/* https://github.com/squidfunk/mkdocs-material/blob/dcab57dd1cced4b77875c1aa1b53467c62709d31/src/assets/stylesheets/main/_typeset.scss */
|
2022-11-22 04:17:46 +08:00
|
|
|
.md-typeset h1 {
|
|
|
|
font-weight: 400;
|
|
|
|
color: var(--md-default-fg-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.md-typeset h2 {
|
|
|
|
font-weight: 400;
|
|
|
|
}
|
2022-11-24 19:32:32 +08:00
|
|
|
|
|
|
|
.md-typeset h3 {
|
|
|
|
font-weight: 500;
|
|
|
|
}
|
|
|
|
|
2023-10-05 14:34:42 +08:00
|
|
|
.md-typeset h5 {
|
|
|
|
text-transform: none;
|
|
|
|
}
|
|
|
|
|
2024-01-07 04:04:01 +08:00
|
|
|
.md-typeset code {
|
|
|
|
border-radius: 0.2rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.highlight span.filename {
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
|
2022-12-14 04:24:06 +08:00
|
|
|
/* font-family setting for Win10 */
|
|
|
|
body {
|
2023-09-12 03:13:17 +08:00
|
|
|
--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;
|
2023-02-07 04:43:52 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* max height of code block */
|
|
|
|
/* https://github.com/squidfunk/mkdocs-material/issues/3444 */
|
|
|
|
.md-typeset pre > code {
|
2023-03-07 01:17:30 +08:00
|
|
|
max-height: 25rem;
|
2023-02-07 04:43:52 +08:00
|
|
|
}
|
2023-09-12 03:13:17 +08:00
|
|
|
|
|
|
|
/* 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);
|
|
|
|
}
|
2023-12-06 23:26:53 +08:00
|
|
|
|
|
|
|
/* landing page */
|
|
|
|
.header-img-div {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
margin: 0 auto;
|
|
|
|
width: 100%; /* Default to full width */
|
|
|
|
}
|
|
|
|
|
|
|
|
/* rounded button */
|
|
|
|
.rounded-button {
|
|
|
|
display: inline-flex; /* Use flexbox for alignment */
|
|
|
|
align-items: center; /* Align items vertically */
|
|
|
|
justify-content: center; /* Center items horizontally */
|
|
|
|
border-radius: 100px; /* Circular corners */
|
|
|
|
padding: 9px 18px; /* Padding around the text */
|
|
|
|
margin: 0.15em 0;
|
|
|
|
border: none; /* Removes default border */
|
|
|
|
background-color: var(--md-typeset-btn-color); /* Background color */
|
|
|
|
color: var(--md-primary-fg-color) !important; /* Text color */
|
|
|
|
font-size: 0.85em; /* Font size */
|
|
|
|
text-align: center; /* Center the text */
|
|
|
|
text-decoration: none; /* Remove underline from anchor text */
|
|
|
|
cursor: pointer; /* Pointer cursor on hover */
|
|
|
|
}
|
|
|
|
|
|
|
|
.rounded-button:hover {
|
|
|
|
background-color: var(--md-typeset-btn-hover-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.rounded-button svg {
|
|
|
|
fill: var(--md-primary-fg-color); /* Fill SVG icon with text color */
|
|
|
|
width: 1.2em;
|
|
|
|
height: auto;
|
|
|
|
margin-right: 0.5em; /* Add some space between the SVG icon and the text */
|
|
|
|
}
|
2024-01-07 04:04:01 +08:00
|
|
|
|
|
|
|
/* 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;
|
|
|
|
}
|
|
|
|
|
|
|
|
.md-typeset .admonition:focus-within,
|
|
|
|
.md-typeset details:focus-within {
|
|
|
|
box-shadow: var(--md-shadow-z1);
|
|
|
|
}
|
|
|
|
|
|
|
|
.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 {
|
|
|
|
background-color: rgb(55, 118, 171);
|
|
|
|
-webkit-mask-image: var(--md-admonition-icon--pythontutor);
|
|
|
|
mask-image: var(--md-admonition-icon--pythontutor);
|
|
|
|
}
|
|
|
|
|
|
|
|
.md-typeset .admonition-title:before,
|
|
|
|
.md-typeset summary:before {
|
|
|
|
width: 1.25em;
|
|
|
|
}
|
2024-01-09 16:09:35 +08:00
|
|
|
|
|
|
|
.pythontutor-iframe {
|
|
|
|
width: 125%;
|
|
|
|
height: 125%;
|
|
|
|
max-width: 125% !important;
|
|
|
|
max-height: 125% !important;
|
|
|
|
transform: scale(0.8);
|
|
|
|
transform-origin: top left;
|
|
|
|
border: none;
|
|
|
|
}
|