2023-02-08 15:20:18 +08:00
|
|
|
/* 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 > * {
|
2023-09-12 03:15:14 +08:00
|
|
|
--md-primary-fg-color: #ffffff;
|
|
|
|
--md-primary-bg-color: #1d1d20;
|
|
|
|
|
|
|
|
--md-default-fg-color: #1d1d20;
|
|
|
|
--md-default-bg-color: #ffffff;
|
|
|
|
|
2023-09-12 03:25:07 +08:00
|
|
|
--md-code-fg-color: #1d1d20;
|
|
|
|
|
2023-09-12 03:15:14 +08:00
|
|
|
--md-accent-fg-color: #999;
|
2023-02-08 15:20:18 +08:00
|
|
|
|
2023-09-12 03:15:14 +08:00
|
|
|
--md-admonition-fg-color: #1d1d20;
|
2023-02-08 15:20:18 +08:00
|
|
|
|
2023-09-12 03:15:14 +08:00
|
|
|
--md-typeset-color: #1d1d20;
|
|
|
|
--md-typeset-a-color: #2aa996;
|
2023-02-08 15:20:18 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
[data-md-color-scheme="slate"] {
|
2023-09-12 03:15:14 +08:00
|
|
|
--md-primary-fg-color: #22272e;
|
|
|
|
--md-primary-bg-color: #adbac7;
|
|
|
|
|
|
|
|
--md-default-fg-color: #adbac7;
|
|
|
|
--md-default-bg-color: #22272e;
|
|
|
|
|
2023-11-09 05:13:48 +08:00
|
|
|
--md-code-bg-color: #1d2126;
|
2023-09-12 03:25:07 +08:00
|
|
|
--md-code-fg-color: #adbac7;
|
2023-02-08 15:20:18 +08:00
|
|
|
|
2023-09-12 03:25:07 +08:00
|
|
|
--md-accent-fg-color: #aaa;
|
2023-02-08 15:20:18 +08:00
|
|
|
|
2023-09-12 03:15:14 +08:00
|
|
|
--md-admonition-fg-color: #adbac7;
|
|
|
|
|
|
|
|
--md-footer-fg-color: #adbac7;
|
|
|
|
|
|
|
|
--md-typeset-color: #adbac7;
|
|
|
|
--md-typeset-a-color: #21c8b8 !important;
|
2023-02-08 15:20:18 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* https://github.com/squidfunk/mkdocs-material/issues/4832#issuecomment-1374891676 */
|
|
|
|
.md-nav__link[for] {
|
2023-09-12 03:15:14 +08:00
|
|
|
color: var(--md-default-fg-color) !important;
|
2023-02-08 15:20:18 +08:00
|
|
|
}
|
|
|
|
|
2023-11-09 05:13:48 +08:00
|
|
|
/* Figure class */
|
|
|
|
.animation-figure {
|
|
|
|
border-radius: 0.63rem;
|
|
|
|
display: block;
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Cover image class */
|
|
|
|
.cover-image {
|
|
|
|
width: 28rem;
|
|
|
|
height: auto;
|
|
|
|
border-radius: 0.3rem;
|
|
|
|
box-shadow: var(--md-shadow-z2);
|
|
|
|
display: block;
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|
|
|
|
|
2023-02-08 15:20:18 +08:00
|
|
|
/* Center Markdown Tables (requires md_in_html extension) */
|
|
|
|
.center-table {
|
2023-03-07 01:15:56 +08:00
|
|
|
text-align: center;
|
2023-02-08 15:20:18 +08:00
|
|
|
}
|
|
|
|
|
2023-03-07 01:15:56 +08:00
|
|
|
/* Reset alignment for table cells */
|
2023-09-12 03:15:14 +08:00
|
|
|
.md-typeset .center-table :is(td, th):not([align]) {
|
2023-03-07 01:15:56 +08:00
|
|
|
text-align: initial;
|
2023-02-08 15:20:18 +08:00
|
|
|
}
|
|
|
|
|
2023-03-07 01:15:56 +08:00
|
|
|
/* Font size */
|
|
|
|
.md-typeset {
|
|
|
|
font-size: 0.75rem;
|
|
|
|
line-height: 1.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
.md-typeset pre {
|
|
|
|
font-size: 0.95em;
|
|
|
|
}
|
2023-02-08 15:20:18 +08:00
|
|
|
|
|
|
|
/* Markdown Header */
|
|
|
|
/* https://github.com/squidfunk/mkdocs-material/blob/dcab57dd1cced4b77875c1aa1b53467c62709d31/src/assets/stylesheets/main/_typeset.scss */
|
|
|
|
.md-typeset h1 {
|
|
|
|
font-weight: 400;
|
|
|
|
color: var(--md-default-fg-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.md-typeset h2 {
|
|
|
|
font-weight: 400;
|
|
|
|
}
|
|
|
|
|
|
|
|
.md-typeset h3 {
|
|
|
|
font-weight: 500;
|
|
|
|
}
|
|
|
|
|
2023-10-06 13:31:21 +08:00
|
|
|
.md-typeset h5 {
|
|
|
|
text-transform: none;
|
|
|
|
}
|
|
|
|
|
2023-02-08 15:20:18 +08:00
|
|
|
/* font-family setting for Win10 */
|
|
|
|
body {
|
2023-09-12 03:15:14 +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-08 15:20:18 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* max height of code block */
|
|
|
|
/* https://github.com/squidfunk/mkdocs-material/issues/3444 */
|
|
|
|
.md-typeset pre > code {
|
2023-03-07 01:15:56 +08:00
|
|
|
max-height: 25rem;
|
2023-02-08 15:20:18 +08:00
|
|
|
}
|
2023-09-12 03:15:14 +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);
|
|
|
|
}
|