改了下结构目录使之更可维护

This commit is contained in:
fly316
2025-06-10 18:58:57 +08:00
parent c18c012960
commit 3c0a72d512
16 changed files with 81 additions and 15 deletions
+51
View File
@@ -0,0 +1,51 @@
:root {
--dark-base-background: #222;
--dark-base-color: #bbc0c4;
--dark-theme-color: #42b983;
--dark-heading-color: var(--dark-theme-color);
--dark-cover-background: #000000a8;
--dark-code-color: rgba(213, 213, 213, 0.68);
--dark-code-background: rgba(42, 41, 41, 0.47);
--dark-tip-background: #2c0000;
--dark-warn-background: #005842;
--dark-icon-size: 25px;
--dark-icon-transition: .1s ease-in-out .1s;
--dark-moon-color: #000000;
--dark-sun-color: #ffffff;
}
/*更改切换按钮的位置跟紫薯统计错开*/
button[onclick="docsifyDarkSwitcher()"] {
position: fixed;
right: 10px;
}
/*更改左下角菜单按钮防止跟深色模式冲突*/
.docsify-dark-mode .sidebar-toggle span{
background-color: #80eddd !important;
}
.docsify-dark-mode .sidebar-toggle {
background: transparent !important;
}
/*图片亮度*/
.docsify-dark-mode .medium-zoom-image{
filter: brightness(0.8);
}
/*搜索栏适配夜间模式*/
.docsify-dark-mode .search a {
color: rgba(255, 255, 255, 0.65);
}
.docsify-dark-mode .search a:hover{
color: #ffffff !important;
.search-keyword {
color: rgba(99, 246, 111, 0.78);
}
}
.docsify-dark-mode .search .search-keyword {
color: rgba(70, 185, 66, 0.55);
}
+100
View File
@@ -0,0 +1,100 @@
.cover .mask {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
background-color: #fff;
}
section.cover img:first-child {
filter: drop-shadow(5px 5px 100px var(--theme-color, #42b983));
}
section.cover .cover-main > p:last-child a {
letter-spacing: -.1px;
padding: 12px 24px;
background-color: #ebebef;
border: none;
color: #000000;
font-size: 14px;
font-weight: 600;
margin: 5px 8px;
}
section.cover .cover-main > p:last-child a:last-child:hover {
color: #ffffff;
}
section.cover h1 span {
color: var(--theme-color, #42b983);
}
section.cover h1,
section.cover blockquote {
font-weight: 700;
}
section.cover p:nth-last-child(2),
section.cover ul {
line-height: 1.5;
font-weight: 500;
}
@media only screen and (min-width: 960px) {
section.cover .cover-main {
margin: 0 72px;
}
section.cover .cover-main,
section.cover h1,
section.cover blockquote {
text-align: left;
}
section.cover h1,
section.cover blockquote {
font-size: 56px;
margin: 0;
}
section.cover p:nth-last-child(2),
section.cover ul {
font-size: 24px;
}
section.cover p {
max-width: 576px;
}
section.cover .cover-main > p:last-child {
margin-left: -8px;
}
section.cover blockquote {
margin-top: -52px;
line-height: -1px;
}
section.cover p:nth-last-child(2),
section.cover ul {
margin-top: -32px;
}
section.cover p {
line-height: 1;
}
section.cover ul {
margin-left: 0;
}
section.cover img:first-child {
float: right;
position: absolute;
top: 50%;
left: 75%;
transform: translate(-50%, -50%);
width: 540px;
}
}
+1
View File
@@ -0,0 +1 @@
.sidebar-nav li{position:relative;margin:0;cursor:pointer}.sidebar-nav ul:not(.app-sub-sidebar)>li:not(.file)::before{content:'';display:block;position:absolute;top:11px;left:-12px;height:6px;width:6px;border-right:1px solid #505d6b;border-bottom:1px solid #505d6b;transform:rotate(-45deg);transition:transform .1s}.sidebar-nav ul:not(.app-sub-sidebar)>li.open::before{transform:rotate(45deg)}.sidebar-nav ul:not(.app-sub-sidebar)>li.collapse::before{transform:rotate(-45deg)}
+104
View File
@@ -0,0 +1,104 @@
.content {
display: flex;
flex-direction: row-reverse;
justify-content: center;
}
.markdown-section {
flex: 1 1 0%;
margin: 0 48px;
}
.nav {
width: var(--toc-width, 200px);
align-self: flex-start;
flex: 0 0 auto;
}
aside.nav.nothing {
width: 0;
}
.page_toc {
position: fixed;
border-left-style: solid;
border-left-width: 1px;
border-left-color: rgba(0, 0, 0, 0.07);
border-image-slice: 1;
padding-left: 5px;
}
.page_toc code {
background-color: #f8f8f8;
border-radius: 2px;
color: #e96900;
font-family: 'Roboto Mono', Monaco, courier, monospace;
font-size: 0.8rem;
margin: 0 2px;
padding: 3px 5px;
}
.page_toc p.title {
margin: 0px 0 0px 9px;
padding-bottom: 5px;
font-weight: 600;
font-size: 1.2em;
}
.page_toc .anchor:hover:after {
content: "";
}
.page_toc ul {
list-style-type: none;
margin-top: 0px;
padding-left: 10px;
color: var(--text-color-base, black);
text-decoration: none;
font-weight: 300;
line-height: 1.6em;
}
.page_toc ul a:hover span {
color: var(--text-color-tertiary, #42b983);
border-bottom: none !important;
text-decoration:none !important;
}
.page_toc ul a {
color: var(--text-color-base, black);
text-decoration: none;
font-weight: 300;
line-height: 1.6em;
}
@media screen and (max-width: 1300px) {
.page_toc {
position: relative;
left: 0;
top: -20px;
padding: 10px 0;
border: none;
border-bottom: 1px solid #ddd;
font-size: 1.0em;
}
.page_toc a:before {
content: "- ";
}
.nav {
margin: 0 auto;
width: 800px;
}
.page_toc p.title {
font-weight: 300;
font-size: 1.8em;
}
.content {
display: block;
}
.markdown-section {
margin: 0 auto;
}
}
.page_toc .active {
border-left: 5px solid;
color: var(--theme-color, #42b983);
padding-left: 10px;
}
File diff suppressed because one or more lines are too long