This commit is contained in:
Unisko PENG, 2023-01-10 20:08:28 +08:00
parent 971f9191c2
commit 76ebae887a
5 changed files with 322 additions and 3 deletions

View File

@ -42,10 +42,15 @@
"variables": {
"doorTheme": {
"nav": [
{
"url": "https://rust-lang.xfoss.com",
"target": "_blank",
"name": "学习 Rust 编程语言 · ⚙️"
},
{
"url": "https://java.xfoss.com",
"target": "_blank",
"name": "学习 Java ☕"
"name": "学习 Java 编程语言 · ☕"
}
]
}
@ -53,8 +58,8 @@
"pluginsConfig": {
"doorTheme": {
"search-placeholder": "请输入关键字搜索",
"logo": "./docs/images/rust-lang-ar21.svg",
"favicon": "./docs/images/rust-fav-icon.png"
"logo": "./images/computer-network-services.png",
"favicon": "./images/network-svgrepo-com.ico"
},
"include-codeblock": {
"template": "ace",

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg fill="#000000" height="800px" width="800px" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 0 465.057 465.057" xml:space="preserve">
<g>
<path d="M156.766,143.002h37.377v25.939h-13.97c-4.142,0-7.5,3.357-7.5,7.5s3.358,7.5,7.5,7.5h104.709c4.143,0,7.5-3.357,7.5-7.5
s-3.357-7.5-7.5-7.5h-13.97v-25.939h37.377c14.728,0,26.709-11.981,26.709-26.709V26.737c0-14.728-11.981-26.709-26.709-26.709
H156.766c-14.728,0-26.709,11.981-26.709,26.709v89.556C130.057,131.021,142.039,143.002,156.766,143.002z M255.913,168.941h-46.77
v-25.939h46.77V168.941z M145.057,26.737c0-6.456,5.252-11.709,11.709-11.709H308.29c6.456,0,11.709,5.253,11.709,11.709v89.556
c0,6.456-5.253,11.709-11.709,11.709H156.766c-6.457,0-11.709-5.253-11.709-11.709V26.737z"/>
<path d="M178.233,281.115H26.709C11.981,281.115,0,293.097,0,307.824v89.556c0,14.728,11.981,26.709,26.709,26.709h37.377v25.939
h-13.97c-4.142,0-7.5,3.357-7.5,7.5s3.358,7.5,7.5,7.5h104.708c4.142,0,7.5-3.357,7.5-7.5s-3.358-7.5-7.5-7.5h-13.969v-25.939
h37.377c14.728,0,26.709-11.981,26.709-26.709v-89.556C204.942,293.097,192.96,281.115,178.233,281.115z M125.856,450.028h-46.77
v-25.939h46.77V450.028z M189.942,397.38c0,6.456-5.252,11.709-11.709,11.709H26.709c-6.457,0-11.709-5.253-11.709-11.709v-89.556
c0-6.456,5.252-11.709,11.709-11.709h151.524c6.457,0,11.709,5.253,11.709,11.709V397.38z"/>
<path d="M438.348,281.115H286.823c-14.728,0-26.709,11.981-26.709,26.709v89.556c0,14.728,11.981,26.709,26.709,26.709H324.2
v25.939h-13.969c-4.143,0-7.5,3.357-7.5,7.5s3.357,7.5,7.5,7.5h104.708c4.143,0,7.5-3.357,7.5-7.5s-3.357-7.5-7.5-7.5h-13.969
v-25.939h37.377c14.728,0,26.709-11.981,26.709-26.709v-89.556C465.057,293.097,453.075,281.115,438.348,281.115z M385.971,450.028
H339.2v-25.939h46.771V450.028z M450.057,397.38c0,6.456-5.253,11.709-11.709,11.709H286.823c-6.456,0-11.709-5.253-11.709-11.709
v-89.556c0-6.456,5.253-11.709,11.709-11.709h151.524c6.456,0,11.709,5.253,11.709,11.709V397.38z"/>
<path d="M355.086,258.615c0,4.143,3.357,7.5,7.5,7.5s7.5-3.357,7.5-7.5v-26.087c0-4.143-3.357-7.5-7.5-7.5H240.028v-18.587
c0-4.143-3.357-7.5-7.5-7.5c-4.142,0-7.5,3.357-7.5,7.5v18.587H102.471c-4.142,0-7.5,3.357-7.5,7.5v26.087
c0,4.143,3.358,7.5,7.5,7.5s7.5-3.357,7.5-7.5v-18.587h245.115V258.615z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.5 KiB

288
theme-door-style.css Normal file
View File

@ -0,0 +1,288 @@
body {
font-family: "Helvetica Neue", "Hiragino Sans GB", "Microsoft YaHei", "\9ED1\4F53", Arial, sans-serif;
letter-spacing: .2px;
text-rendering: optimizeLegibility;
}
::-webkit-scrollbar {
width: 6px;
height: 6px;
background: transparent;
}
.book-summary {
height: 100%;
padding-bottom: 20px;
}
::-webkit-scrollbar-thumb {
background: transparent;
border-radius: 4px;
}
:hover::-webkit-scrollbar-thumb {
background: hsla(0, 0%, 53%, 0.4);
}
:hover::-webkit-scrollbar-track {
background: hsla(0, 0%, 53%, 0.1);
}
.markdown-section a{
color: #EE8866;
}
.markdown-section h1,
.markdown-section h2,
.markdown-section h3,
.markdown-section h4,
.markdown-section h5,
.markdown-section h6 {
margin-bottom: .5em;
font-weight: bold;
}
.markdown-section p {
line-height: 2;
}
.markdown-section img {
padding: 8px;
background: #e4e4e478;
transition: all 1s;
box-sizing: border-box;
box-shadow: 0 0 4px #dcdcdc;
margin-left: 10px;
margin-right: 10px;
max-width: 95%;
}
.markdown-section img:hover {
box-shadow: 0 0 10px #bbb
}
.exc-trigger {
color: #333333;
}
.navigation {
display: none;
}
.sidebar-nav-space {
height: 24px;
}
.book-summary{
bottom: inherit;
}
.book-summary,
.book-body {
top: 80px;
}
.book-header {
position: fixed;
width: 100vw;
left: -10px;
top: 40px;
}
.book-summary ul.summary li.active {
border-right: 3px solid #EE8866;
background: #f3f1f1;
}
.book-summary ul.summary li.active > a {
color: #EE8866;
text-decoration: none;
}
.book-summary ul.summary li a:hover {
text-decoration: none;
}
.page-inner {
max-width: none;
padding: 20px 374px 40px 40px;
}
.header-inner #book-search-input {
float: right;
width: 300px;
margin: 10px 0;
padding: 0;
border: none;
border-radius: .25rem;
background: #EE8866;
user-select: none;
}
.header-inner #book-search-input input[type="text"] {
width: 80%;
background: #f4f5f5;
border-top-left-radius: .25rem;
border-bottom-left-radius: .25rem;
}
.header-inner #book-search-input #searchBtn {
color: #ffffff;
margin-left: 10px;
cursor: pointer;
}
.header-inner #book-search-input #searchBtn:hover {
color: #eae8e8;
}
.header-inner {
width: 100%;
padding: 10px 30px;
border-bottom: 1px solid #dededede;
margin: auto;
height: 80px;
}
.header-inner:before,
.header-inner:after {
content: " ";
display: table;
line-height: 0;
}
.header-inner:after {
clear: both;
}
.header-inner .logo {
float: left;
height: 50px;
width: 221px;
background: url('./logo.svg');
background-size: 221px 50px;
background-repeat: no-repeat;
}
.header-inner .logo img {
display: block;
height: inherit;
padding: 5px 0;
}
.header-inner .title {
float: left;
font-size: 20px;
line-height: 60px;
margin-left: 10px;
color: #575656;
}
/* 导航 */
.header-inner .header-nav {
list-style: none;
margin: 10px 20px 0 0;
padding: 0;
float: right;
display: table;
}
.header-inner .header-nav li {
display: table-cell;
vertical-align: middle;
min-width: 50px;
margin-right: 20px;
padding: 8px 10px 8px 10px;
}
.header-inner .header-nav li a {
color: #5d6778;
font-weight: 500;
padding: .5rem;
}
.header-inner .header-nav li a:hover,
.header-inner .header-nav li a.active {
color: #EE8866;
}
.header-inner .header-nav li a.active:hover {
cursor: #EE8866;
}
@media (max-width: 768px) {
.book-summary,
.book-body {
top: 101px;
}
.header-inner #book-search-input {
clear: both;
width: 100%;
}
}
.book-anchor {
overflow-y: auto;
width: 307px;
height: 100%;
position: absolute;
top: 104px;
right: 30px;
padding: 0 10px 10px 10px;
z-index: 999;
user-select: none;
border-left: 1px solid #ececec;
}
.book-anchor-title {
line-height: 38px;
font-weight: bold;
cursor: pointer;
}
.book-anchor a {
display: block;
line-height: 30px;
color: #656565;
font-size: 13px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.book-anchor a:hover {
color: #EE8866;
text-decoration: none;
}
.book-anchor .selected {
color: #EE8866;
text-decoration: none;
font-weight: bold;
}
.book-anchor .anchor-h1 {}
.book-anchor .anchor-h2 {
padding-left: 20px;
}
.fa {
color: black;
z-index: 999;
text-rendering: optimizeLegibility;
}
.book-anchor .anchor-h3{
padding-left: 30px;
}
@media only screen and (max-width: 1020px) {
.book-anchor {
display: none;
}
.page-inner {
max-width: none;
padding: 20px 5px 5px 5px;
}
.book-body {
top: 120px;
}
.header-nav {
display: none;
}
body-inner {
position: absolute;
min-height: calc(100% - 50px);
}
}