From 89793f5e996dbabf8054f06899066c8ff1508406 Mon Sep 17 00:00:00 2001
From: trphoenix <spd260@126.com>
Date: 星期一, 14 四月 2025 19:03:16 +0800
Subject: [PATCH] add themes
---
Help/site/css/base.css | 725 ++++++++++++++++++++++++++++++++++---------------------
1 files changed, 448 insertions(+), 277 deletions(-)
diff --git a/Help/site/css/base.css b/Help/site/css/base.css
index f5f27ba..5c8018c 100644
--- a/Help/site/css/base.css
+++ b/Help/site/css/base.css
@@ -1,70 +1,455 @@
-html {
- /* The nav header is 3.5rem high, plus 20px for the margin-top of the
- main container. */
- scroll-padding-top: calc(3.5rem + 20px);
+body {
+ background-color: #f8f8f8;
}
-/* Replacement for `body { background-attachment: fixed; }`, which has
- performance issues when scrolling on large displays. See #1394. */
-body::before {
- content: ' ';
- position: fixed;
+/***********************************************************************
+ Top bar
+ ***********************************************************************/
+
+.navbar {
+ background-color: #546e7a;
+ box-shadow: 0 1.5px 3px rgba(0,0,0,.24), 0 3px 8px rgba(0,0,0,.05);
+ border: none;
+ border-radius: 0px;
+ margin-bottom: 0px;
+ height: 50px;
+ z-index: 2;
+}
+
+.wm-top-page {
+ overflow: hidden;
+}
+
+.wm-page-content {
+ max-width: 700px;
+ position: relative;
+}
+
+.wm-page-top-frame { display: none; }
+.wm-top-page > .wm-page-top-frame { display: block; }
+.wm-top-page > .wm-page-content { display: none; }
+
+.wm-top-brand {
+ display: inline-block;
+ float: left;
+ overflow: visible;
+ width: 0px;
+ height: 50px;
+ color: #fff;
+ font-size: 18px;
+ white-space: nowrap;
+ text-decoration: none;
+}
+
+.wm-top-link, .wm-top-link:hover, .wm-top-link:active, .wm-top-link:visited, .wm-top-link:focus {
+ color: #fff;
+ text-decoration: none;
+}
+
+.wm-vcenter:before {
+ content: '';
+ display: inline-block;
+ height: 100%;
+ vertical-align: middle;
+ margin-left: -0.25em;
+}
+
+.wm-vcentered {
+ display: inline-block;
+ vertical-align: middle;
+}
+
+.wm-top-title {
+ display: inline-block;
+ line-height: 16px;
+ vertical-align: middle;
+}
+
+.wm-top-logo {
+ max-height: 100%;
+}
+
+.wm-top-version {
+ border: 1px solid #ddd;
+ border-radius: 3px;
+ padding: 0px 5px;
+ color: #ddd;
+ font-size: 8pt;
+}
+
+.wm-top-tool {
+ height: 50px;
+ white-space: nowrap;
+}
+
+.wm-top-tool-expanded {
+ position: absolute;
+ right: 0px;
+ padding: inherit;
+ width: 100%;
+ background-color: #546e7a;
+}
+
+.wm-top-search {
+ width: 20rem;
+}
+
+#wm-toc-button {
+ margin-right: 1rem;
+ margin-left: 0.5rem;
+}
+
+/***********************************************************************
+ Table of contents (side pane)
+ ***********************************************************************/
+
+.wm-toc-pane {
+ position: absolute;
+ top: 0px;
+ padding-top: 70px;
+ height: 100%;
+ min-width: 250px;
+ max-width: 350px;
+ z-index: 1;
+ background-color: #f2f2f2;
+ border-right: 1px solid #e0e0e0;
+ overflow: auto;
+ margin-left: 0px;
+ padding-left: 1rem;
+ padding-right: 1rem;
+ padding-bottom: 2rem;
+ transition: margin-left 0.3s;
+}
+
+.wm-content-pane {
+ position: absolute;
+ top: 0px;
+ padding-top: 50px;
+ height: 100%;
+ width: 100%;
+ z-index: 0;
+ padding-left: 250px;
+ transition: padding-left 0.3s;
+ /* required for iPhone to scroll the contained iframe */
+ -webkit-overflow-scrolling: touch;
+}
+
+.wm-toc-pane.wm-toc-dropdown {
+ position: absolute;
+ display: block;
+ top: 0;
+ left: 0;
+ margin-left: 0;
+ height: auto;
+ box-shadow: 2px 3px 4px 0 grey;
+}
+
+.wm-toc-repo {
+ margin-top: -15px;
+ margin-bottom: 5px;
+ padding-bottom: 5px;
+ border-bottom: 1px solid #e0e0e0;
+}
+
+.wm-toc-hidden > .wm-toc-pane {
+ margin-left: -250px;
+}
+
+.wm-toc-hidden > .wm-content-pane {
+ padding-left: 0px;
+}
+
+.wm-small-show {
+ display: none;
+}
+
+#wm-search-form {
+ width: 100%;
+}
+#wm-search-show {
+ display: none;
+}
+
+@media (max-width: 600px) {
+ .wm-small-hide {
+ display: none;
+ }
+ .wm-small-show {
+ display: block;
+ }
+ .wm-small-left {
+ float: left !important;
+ }
+ #wm-search-show {
+ display: block;
+ margin-left: 1rem;
+ }
+ .wm-top-tool-expanded #wm-search-show {
+ display: none;
+ }
+ .wm-top-search {
+ display: none;
+ }
+ .wm-top-tool-expanded .wm-top-search {
+ display: table;
width: 100%;
- height: 100%;
- top: 0;
- left: 0;
- background-color: var(--bs-body-bg);
- background: url(../img/grid.png) repeat-x;
- will-change: transform;
- z-index: -1;
+ padding: 0px;
+ }
+
+ .wm-top-page {
+ overflow: visible;
+ }
+ .wm-top-container {
+ /* This prevents horizontal overflow, but cuts off search results on bigger
+ * screens, so included in small-screen section */
+ overflow-x: hidden;
+ }
+ .wm-toc-pane {
+ display: none;
+ }
+ .wm-content-pane {
+ padding-left: 0px;
+ overflow: visible;
+ }
}
-body > .container {
- margin-top: 20px;
- min-height: 400px;
+.wm-toctree {
+ list-style-type: none;
+ line-height: 16px;
+ padding-left: 0px;
}
-.navbar.fixed-top {
- position: -webkit-sticky;
- position: sticky;
+.wm-toctree a, .wm-toctree a:visited, .wm-toctree a:hover, .wm-toctree a:focus {
+ color: #546e7a;
+ text-decoration: none;
+ outline: none;
}
+
+.wm-toc-text {
+ display: block;
+ padding: 4px;
+ cursor: pointer;
+}
+
+.wm-toc-lev1 > .wm-toc-text { padding-left: 14px; }
+.wm-toc-lev2 > .wm-toc-text { padding-left: 28px; }
+.wm-toc-lev3 > .wm-toc-text { padding-left: 42px; }
+.wm-toc-lev4 > .wm-toc-text { padding-left: 56px; }
+.wm-toc-lev5 > .wm-toc-text { padding-left: 70px; }
+.wm-toc-lev6 > .wm-toc-text { padding-left: 84px; }
+
+.wm-toc-lev1 + .wm-page-toc { margin-left: 14px; }
+.wm-toc-lev2 + .wm-page-toc { margin-left: 28px; }
+.wm-toc-lev3 + .wm-page-toc { margin-left: 42px; }
+.wm-toc-lev4 + .wm-page-toc { margin-left: 56px; }
+.wm-toc-lev5 + .wm-page-toc { margin-left: 70px; }
+.wm-toc-lev6 + .wm-page-toc { margin-left: 84px; }
+
+.wm-toc-li-nested {
+ padding: 0px;
+ margin: 0px;
+}
+
+.wm-toc-opener > .wm-toc-text::before {
+ content: "\25B6 \FE0E";
+ display: inline-block;
+ vertical-align: middle;
+ font-size: 8px;
+ width: 14px;
+}
+
+.wm-toc-opener.wm-toc-open > .wm-toc-text::before {
+ content: "\25BC \FE0E";
+}
+
+.wm-toc-li.wm-current, .wm-toc-li.wm-current:hover {
+ background-color: #546e7a;
+ color: white;
+}
+
+.wm-toc-li:hover {
+ background-color: #e0e0e0;
+}
+
+.wm-toc-li.wm-current a {
+ color: white;
+}
+
+.wm-toc-li-nested.wm-page-toc {
+ font-size: 1.2rem;
+ line-height: 1.2rem;
+ overflow: hidden;
+ border-left: 1px solid #546e7a;
+}
+
+.wm-page-toc-opener > .wm-toc-text::after {
+ content: "\25C4";
+ display: inline-block;
+ float: right;
+ vertical-align: middle;
+ font-size: 8px;
+}
+
+.wm-page-toc-opener.wm-page-toc-open > .wm-toc-text::after {
+ content: "\25BC";
+}
+
+.wm-page-toc-text {
+ padding: 2px 2px 2px 1rem;
+ display: block;
+ cursor: pointer;
+}
+
+.wm-article {
+ width: 1px;
+ min-width: 100%;
+ height: 100%;
+ border: none;
+}
+
+.btn:focus, .btn:active:focus, .btn.active:focus, .btn.focus, .btn:active.focus, .btn.active.focus {
+ outline: none;
+}
+
+.btn-default:focus, .btn-default.focus {
+ color: #333;
+ background-color: #fff;
+ border-color: #ccc;
+}
+
+.btn-default.greybtn {
+ color: #888;
+}
+
+.wm-article-nav-buttons {
+ margin: 1rem 0;
+}
+
+.wm-page-content img {
+ max-width: 100%;
+ display: inline-block;
+ padding: 4px;
+ line-height: 1.428571429;
+ background-color: #fff;
+ border: 1px solid #ddd;
+ border-radius: 4px;
+ margin: 20px auto 30px auto;
+}
+
+.wm-page-content a {
+ color: #2fa4e7;
+}
+
+.wm-article-nav {
+ display: inline-block;
+ max-width: 48%;
+ white-space: nowrap;
+ color: #546e7a;
+ text-align: right;
+}
+
+.wm-article-nav > .btn-link {
+ display: block;
+ padding-left: 0.5rem;
+ padding-right: 0.5rem;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+
+.wm-article-nav > a, .wm-article-nav > a:visited, .wm-article-nav > a:hover, .wm-article-nav > a:focus {
+ color: #546e7a;
+ text-decoration: none;
+ outline: none;
+}
+
+/***********************************************************************
+ * Dropdown search results
+ ***********************************************************************/
+#mkdocs-search-results.dropdown-menu {
+ width: 40rem;
+ overflow-y: auto;
+ overflow-x: hidden;
+ white-space: normal;
+ max-height: calc(100vh - 60px);
+ max-width: 90vw;
+}
+
+#mkdocs-search-results {
+ font-family: "Helvetica Neue",Helvetica,Arial,sans-serif,FontAwesome;
+}
+
+.search-link {
+ font-size: 1.2rem;
+}
+
+.search-title {
+ font-weight: bold;
+ color: #337ab7;
+ padding-right: 1rem;
+}
+
+.search-text {
+ color: #666;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+
+.search-text > b {
+ color: #000;
+}
+
+.wm-search-page {
+ list-style: none;
+ padding: 5px 0;
+}
+
+.wm-search-page > li {
+ padding: 1rem 0;
+ border-bottom: 1px solid #ccc;
+}
+
+.wm-search-page .search-link {
+ font-size: inherit;
+}
+
+.wm-search-page .search-link:hover, .wm-search-page .search-link:active {
+ text-decoration: none;
+}
+
+.wm-search-page .search-link:hover .search-title {
+ text-decoration: underline;
+}
+
+
+
+/***********************************************************************
+ * The rest is taken from base.css from mkdocs.
+ ***********************************************************************/
.source-links {
- float: right;
-}
-
-.col-md-9 img {
- max-width: 100%;
- display: inline-block;
- padding: 4px;
- line-height: 1.428571429;
- background-color: var(--bs-secondary-bg-subtle);
- border: 1px solid var(--bs-secondary-border-subtle);
- border-radius: 4px;
- margin: 20px auto 30px auto;
+ float: right;
}
h1 {
- color: inherit;
+ color: #444;
font-weight: 400;
font-size: 42px;
}
h2, h3, h4, h5, h6 {
- color: inherit;
+ color: #444;
font-weight: 300;
}
hr {
border-top: 1px solid #aaa;
- opacity: 1;
}
pre, .rst-content tt {
max-width: 100%;
- background-color: var(--bs-body-bg);
- border: solid 1px var(--bs-border-color);
- color: var(--bs-body-color);
+ background: #fff;
+ border: solid 1px #e1e4e5;
+ color: #333;
overflow-x: auto;
}
@@ -74,126 +459,39 @@
code {
padding: 2px 5px;
- background-color: rgba(var(--bs-body-bg-rgb), 0.75);
- border: solid 1px var(--bs-border-color);
- color: var(--bs-body-color);
+ background: #fff;
+ border: solid 1px #e1e4e5;
+ color: #333;
white-space: pre-wrap;
word-wrap: break-word;
}
pre code {
- display: block;
+ background: transparent;
border: none;
white-space: pre;
word-wrap: normal;
- font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
+ font-family: monospace,serif;
font-size: 12px;
}
-kbd {
- padding: 2px 4px;
- font-size: 90%;
- color: var(--bs-secondary-text-emphasis);
- background-color: var(--bs-secondary-bg-subtle);
- border-radius: 3px;
- -webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);
- box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);
-}
-
a code {
- color: inherit;
+ color: #2FA4E7;
}
a:hover code, a:focus code {
- color: inherit;
+ color: #157AB5;
}
footer {
- margin-top: 30px;
margin-bottom: 10px;
text-align: center;
font-weight: 200;
+ font-size: smaller;
}
.modal-dialog {
margin-top: 60px;
-}
-
-/*
- * Side navigation
- *
- * Scrollspy and affixed enhanced navigation to highlight sections and secondary
- * sections of docs content.
- */
-
-.bs-sidebar.affix {
- position: -webkit-sticky;
- position: sticky;
- /* The nav header is 3.5rem high, plus 20px for the margin-top of the
- main container. */
- top: calc(3.5rem + 20px);
-}
-
-.bs-sidebar.card {
- padding: 0;
- max-height: 90%;
- overflow-y: auto;
-}
-
-/* Toggle (vertically flip) sidebar collapse icon */
-.bs-sidebar .navbar-toggler span {
- -moz-transform: scale(1, -1);
- -webkit-transform: scale(1, -1);
- -o-transform: scale(1, -1);
- -ms-transform: scale(1, -1);
- transform: scale(1, -1);
-}
-
-.bs-sidebar .navbar-toggler.collapsed span {
- -moz-transform: scale(1, 1);
- -webkit-transform: scale(1, 1);
- -o-transform: scale(1, 1);
- -ms-transform: scale(1, 1);
- transform: scale(1, 1);
-}
-
-/* First level of nav */
-.bs-sidebar > .navbar-collapse > .nav {
- padding-top: 10px;
- padding-bottom: 10px;
- border-radius: 5px;
- width: 100%;
-}
-
-/* All levels of nav */
-.bs-sidebar .nav > li > a {
- display: block;
- padding: 5px 20px;
- z-index: 1;
-}
-.bs-sidebar .nav > li > a:hover,
-.bs-sidebar .nav > li > a:focus {
- text-decoration: none;
- border-right: 1px solid;
-}
-.bs-sidebar .nav > li > a.active,
-.bs-sidebar .nav > li > a.active:hover,
-.bs-sidebar .nav > li > a.active:focus {
- font-weight: bold;
- background-color: transparent;
- border-right: 1px solid;
-}
-
-.bs-sidebar .nav .nav .nav {
- margin-left: 1em;
-}
-
-.bs-sidebar .nav > li > a {
- font-weight: bold;
-}
-
-.bs-sidebar .nav .nav > li > a {
- font-weight: normal;
}
.headerlink {
@@ -201,20 +499,13 @@
font-size: 14px;
display: none;
padding-left: .5em;
- text-decoration: none;
- vertical-align: middle;
}
-h1:hover .headerlink, h2:hover .headerlink, h3:hover .headerlink, h4:hover .headerlink, h5:hover .headerlink, h6:hover .headerlink {
+h1:hover .headerlink, h2:hover .headerlink, h3:hover .headerlink, h4:hover .headerlink, h5:hover .headerlink, h6:hover .headerlink{
display:inline-block;
}
-blockquote {
- padding-left: 10px;
- border-left: 4px solid #e6e6e6;
-}
-
-.admonition, details {
+.admonition {
padding: 15px;
margin-bottom: 20px;
border: 1px solid transparent;
@@ -222,145 +513,25 @@
text-align: left;
}
-.admonition.note, details.note {
- color: var(--bs-primary-text-emphasis);
- background-color: var(--bs-primary-bg-subtle);
- border-color: var(--bs-primary-border-subtle);
+.admonition.note { /* csslint allow: adjoining-classes */
+ color: #3a87ad;
+ background-color: #d9edf7;
+ border-color: #bce8f1;
}
-.admonition.note h1, .admonition.note h2, .admonition.note h3,
-.admonition.note h4, .admonition.note h5, .admonition.note h6,
-details.note h1, details.note h2, details.note h3,
-details.note h4, details.note h5, details.note h6 {
- color: var(--bs-primary-text-emphasis);
+.admonition.warning { /* csslint allow: adjoining-classes */
+ color: #c09853;
+ background-color: #fcf8e3;
+ border-color: #fbeed5;
}
-.admonition.info, details.info {
- color: var(--bs-info-text-emphasis);
- background-color: var(--bs-info-bg-subtle);
- border-color: var(--bs-info-border-subtle);
+.admonition.danger { /* csslint allow: adjoining-classes */
+ color: #b94a48;
+ background-color: #f2dede;
+ border-color: #eed3d7;
}
-.admonition.info h1, .admonition.info h2, .admonition.info h3,
-.admonition.info h4, .admonition.info h5, .admonition.info h6,
-details.info h1, details.info h2, details.info h3,
-details.info h4, details.info h5, details.info h6 {
- color: var(--bs-info-text-emphasis);
-}
-
-.admonition.warning, details.warning {
- color: var(--bs-warning-text-emphasis);
- background-color: var(--bs-warning-bg-subtle);
- border-color: var(--bs-warning-border-subtle);
-}
-
-.admonition.warning h1, .admonition.warning h2, .admonition.warning h3,
-.admonition.warning h4, .admonition.warning h5, .admonition.warning h6,
-details.warning h1, details.warning h2, details.warning h3,
-details.warning h4, details.warning h5, details.warning h6 {
- color: var(--bs-warning-text-emphasis);
-}
-
-.admonition.danger, details.danger {
- color: var(--bs-danger-text-emphasis);
- background-color: var(--bs-danger-bg-subtle);
- border-color: var(--bs-danger-border-subtle);
-}
-
-.admonition.danger h1, .admonition.danger h2, .admonition.danger h3,
-.admonition.danger h4, .admonition.danger h5, .admonition.danger h6,
-details.danger h1, details.danger h2, details.danger h3,
-details.danger h4, details.danger h5, details.danger h6 {
- color: var(--bs-danger-text-emphasis);
-}
-
-.admonition, details {
- color: var(--bs-light-text-emphasis);
- background-color: var(--bs-light-bg-subtle);
- border-color: var(--bs-light-border-subtle);
-}
-
-.admonition h1, .admonition h2, .admonition h3,
-.admonition h4, .admonition h5, .admonition h6,
-details h1, details h2, details h3,
-details h4, details h5, details h6 {
- color: var(--bs-light-text-emphasis);
-}
-
-.admonition-title, summary {
+.admonition-title {
font-weight: bold;
text-align: left;
-}
-
-.admonition>p:last-child, details>p:last-child {
- margin-bottom: 0;
-}
-
-@media (max-width: 991.98px) {
- .navbar-collapse.show {
- overflow-y: auto;
- max-height: calc(100vh - 3.5rem);
- }
-}
-
-.dropdown-item.open {
- color: var(--bs-dropdown-link-active-color);
- background-color: var(--bs-dropdown-link-active-bg);
-}
-
-.dropdown-submenu > .dropdown-menu {
- margin: 0 0 0 1.5rem;
- padding: 0;
- border-width: 0;
-}
-
-.dropdown-submenu > a::after {
- display: block;
- content: " ";
- float: right;
- width: 0;
- height: 0;
- border-color: transparent;
- border-style: solid;
- border-width: 5px 0 5px 5px;
- border-left-color: var(--bs-dropdown-link-active-color);
- margin-top: 5px;
- margin-right: -10px;
-}
-
-.dropdown-submenu:hover > a::after {
- border-left-color: var(--bs-dropdown-link-active-color);
-}
-
-@media (min-width: 992px) {
- .dropdown-menu {
- overflow-y: auto;
- max-height: calc(100vh - 3.5rem);
- }
-
- .dropdown-submenu {
- position: relative;
- }
-
- .dropdown-submenu > .dropdown-menu {
- position: fixed !important;
- margin-top: -9px;
- margin-left: -2px;
- border-width: 1px;
- padding: 0.5rem 0;
- }
-
- .dropdown-submenu.pull-left {
- float: none;
- }
-
- .dropdown-submenu.pull-left > .dropdown-menu {
- left: -100%;
- margin-left: 10px;
- }
-}
-
-@media print {
- /* Remove sidebar when print */
- .col-md-3 { display: none; }
}
--
Gitblit v1.8.0