This commit is contained in:
周伟
2022-05-11 19:04:14 +08:00
parent 9440ac7291
commit d9c5ffd627
826 changed files with 0 additions and 481675 deletions

View File

@@ -2,43 +2,34 @@
width: 100%;
height: 100%;
}
html {
margin: 0;
height: 100%;
font-size: 20px;
}
body {
font-size: 0.8rem;
}
a {
color: #004ed0;
}
a:visited {
color: #7170db;
}
a:hover {
color: #6d6d6d;
text-decoration: none;
}
img {
max-width: 100%;
max-height: 100%;
}
.right {
text-align: right;
}
.left {
text-align: left;
}
.off-canvas-overlay {
background: rgba(0, 0, 0, 0.2);
position: fixed;
@@ -49,41 +40,33 @@ img {
height: 100%;
z-index: 499;
}
.off-canvas-overlay.show {
display: block;
}
@media all and (min-width: 800px) {
.off-canvas-overlay {
display: none !important;
}
}
.off-canvas-content {
height: 100%;
font-family: sans-serif;
transition: margin 200ms;
}
.off-canvas-content .book-content {
padding: 0 4rem;
}
@media all and (max-width: 800px) {
.off-canvas-content .book-content {
padding: 0 1.25rem;
}
}
.off-canvas-content .book-content .book-post a:hover {
text-decoration: underline;
}
.off-canvas-content .book-content .book-post > *:first-child {
margin-top: 0 !important;
}
.off-canvas-content .book-content .book-post h1,
.off-canvas-content .book-content .book-post h2,
.off-canvas-content .book-content .book-post h3,
@@ -94,169 +77,135 @@ img {
margin-bottom: 1rem;
margin-top: 1.7rem;
}
.off-canvas-content .book-content .book-post h1,
.off-canvas-content .book-content .book-post h2 {
padding-bottom: 0.4rem;
border-bottom: 1px solid #e7e7e7;
}
.off-canvas-content .book-content .book-post h1 {
font-size: 1.4rem;
}
.off-canvas-content .book-content .book-post h2 {
font-size: 1.125rem;
}
.off-canvas-content .book-content .book-post h3 {
font-size: 1rem;
}
.off-canvas-content .book-content .book-post h4 {
font-size: 0.8rem;
}
.off-canvas-content .book-content .book-post h5 {
font-size: 0.7rem;
}
.off-canvas-content .book-content .book-post h6 {
font-size: 0.6rem;
color: grey;
}
.off-canvas-content .book-content .book-post p {
margin-bottom: 1rem;
}
.off-canvas-content .book-content .book-post hr {
border: 1px solid #e7e7e7;
background-color: #e7e7e7;
margin: 1rem 0;
}
.off-canvas-content .book-content .book-post table {
max-width: 100%;
margin: 1.25rem 0;
overflow: auto;
}
.off-canvas-content .book-content .book-post table {
width: 100%;
border-spacing: 0px;
border-collapse: collapse;
}
.off-canvas-content .book-content .book-post table th,
.off-canvas-content .book-content .book-post table td {
padding: 0.7rem;
border: 1px solid #e7e7e7;
text-align: left;
}
.off-canvas-content .book-content .book-post ul,
.off-canvas-content .book-content .book-post ol {
list-style-position: outside;
margin: 0 0 1rem 1.4rem;
}
.off-canvas-content .book-content .book-post ul ol,
.off-canvas-content .book-content .book-post ol ol {
margin-top: 0;
margin-bottom: 0;
}
.off-canvas-content .book-content .book-post ul ul,
.off-canvas-content .book-content .book-post ol ul {
margin-top: 0;
margin-bottom: 0;
}
.off-canvas-content .book-content .book-post ul p,
.off-canvas-content .book-content .book-post ol p {
margin: 0;
}
.off-canvas-content .book-content .book-post blockquote {
margin: 1.125rem 0 1.125rem 0;
padding: 0.2rem 1rem;
}
.off-canvas-content .book-content .book-post blockquote p {
margin-bottom: 0.5rem;
}
.off-canvas-content .book-content .book-post blockquote p:last-child {
margin-bottom: 0;
}
.off-canvas-content .book-content .book-post blockquote ul:last-child {
margin-bottom: 0;
}
.off-canvas-content .book-content .book-post blockquote.right {
border-left: none;
border-right: .1rem solid #dadee4;
}
.off-canvas-content .book-content .book-post .note {
margin: 1.125rem 1.125rem 1.125rem 0;
padding: 0.2rem 1rem;
background-color: #e7f2fa;
border-left: 0.1rem solid #6ab0de;
}
.off-canvas-content .book-content .book-post .note p {
margin-bottom: 0.5rem;
}
.off-canvas-content .book-content .book-post .note p:last-child {
margin-bottom: 0;
}
.off-canvas-content .book-content .book-post .note ul:last-child {
margin-bottom: 0;
}
.off-canvas-content .book-content .book-post .tip {
margin: 1.125rem 1.125rem 1.125rem 0;
padding: 0.2rem 1rem;
background-color: #dbfaf4;
border-left: 0.1rem solid #1abc9c;
}
.off-canvas-content .book-content .book-post .tip p {
margin-bottom: 0.5rem;
}
.off-canvas-content .book-content .book-post .tip p:last-child {
margin-bottom: 0;
}
.off-canvas-content .book-content .book-post .tip ul:last-child {
margin-bottom: 0;
}
.off-canvas-content .book-content .book-post .attention {
margin: 1.125rem 1.125rem 1.125rem 0;
padding: 0.2rem 1rem;
background-color: #ffedcc;
border-left: 0.1rem solid #f0b37e;
}
.off-canvas-content .book-content .book-post .attention p {
margin-bottom: 0.5rem;
}
.off-canvas-content .book-content .book-post .attention p:last-child {
margin-bottom: 0;
}
.off-canvas-content .book-content .book-post .attention ul:last-child {
margin-bottom: 0;
}
.off-canvas-content .book-content .book-post .video-container {
position: relative;
margin-bottom: 1.5rem;
@@ -264,7 +213,6 @@ img {
height: 0;
overflow: hidden;
}
.off-canvas-content .book-content .book-post .video-container iframe {
position: absolute;
width: 100%;
@@ -272,37 +220,30 @@ img {
top: 0;
left: 0;
}
.off-canvas-content .book-content .book-post figcaption {
text-align: center;
font-size: 0.7rem;
margin: 0.5rem 0;
display: none;
}
.off-canvas-content .book-content .book-post img {
display: block;
margin-left: auto;
margin-right: auto;
}
.off-canvas-content .book-content .book-post iframe {
width: 100%;
}
.off-canvas-content .book-content .book-comments {
padding: 0 0 1.5rem 0;
}
.off-canvas-content .book-content #disqus_thread {
margin: 50px 0;
}
.off-canvas-content .book-content .utterances {
max-width: 100%;
margin: 0;
}
.off-canvas-content .book-content pre, .off-canvas-content .book-content .highlight {
font-family: consolas, Menlo, monospace;
background: #f7f7f7;
@@ -310,14 +251,12 @@ img {
line-height: 1.2rem;
margin: 1rem auto 1rem;
}
.off-canvas-content .book-content .gutter {
-moz-user-select: none;
-ms-user-select: none;
-webkit-user-select: none;
user-select: none;
}
.off-canvas-content .book-content code {
font-family: consolas, Menlo, monospace;
border-radius: 3px;
@@ -325,45 +264,37 @@ img {
overflow-wrap: break-word;
word-wrap: break-word;
}
.off-canvas-content .book-content pre {
overflow: auto;
padding: 10px;
}
.off-canvas-content .book-content pre code {
background: none;
color: #4d4d4c;
padding: 0;
text-shadow: none;
}
.off-canvas-content .book-content .highlight {
font-size: 0.6rem;
overflow: auto;
}
.off-canvas-content .book-content .highlight *::selection {
background: #d6d6d6;
}
.off-canvas-content .book-content .highlight pre {
border: 0;
margin: 0;
padding: 6px 0;
}
.off-canvas-content .book-content .highlight table {
border: 0;
margin: 0;
width: auto;
}
.off-canvas-content .book-content .highlight td {
border: 0;
padding: 0;
}
.off-canvas-content .book-content .highlight figcaption {
position: relative;
background: #eff2f3;
@@ -372,22 +303,18 @@ img {
margin: 0;
padding: 0.5em;
}
.off-canvas-content .book-content .highlight figcaption::before, .off-canvas-content .book-content .highlight figcaption::after {
content: " ";
display: table;
}
.off-canvas-content .book-content .highlight figcaption a {
color: #4d4d4c;
position: absolute;
right: 6px;
}
.off-canvas-content .book-content .highlight figcaption a:hover {
border-bottom-color: #4d4d4c;
}
.off-canvas-content .book-content .highlight .marked {
background: #f8e9c0;
border-bottom: 0.05rem solid #ffe7ab;
@@ -395,7 +322,6 @@ img {
color: #3b4351;
padding: 0.05rem 0.1rem 0;
}
.off-canvas-content .book-content .highlight .gutter pre {
background: #eff2f3;
color: #869194;
@@ -403,37 +329,29 @@ img {
padding-right: 10px;
text-align: right;
}
.off-canvas-content .book-content .highlight .code pre {
background: #f7f7f7;
padding-left: 10px;
width: 100%;
}
.off-canvas-content .book-content .gist table {
width: auto;
}
.off-canvas-content .book-content .gist table td {
border: 0;
}
.off-canvas-content .book-content pre .deletion {
background: if true, #fdd, #800000;
}
.off-canvas-content .book-content pre .addition {
background: if true, #dfd, #008000;
}
.off-canvas-content .book-content pre .meta {
color: #eab700;
}
.off-canvas-content .book-content pre .comment {
color: #8e908c;
}
.off-canvas-content .book-content pre .variable,
.off-canvas-content .book-content pre .attribute,
.off-canvas-content .book-content pre .tag,
@@ -449,7 +367,6 @@ img {
.off-canvas-content .book-content pre .css .pseudo {
color: #c82829;
}
.off-canvas-content .book-content pre .number,
.off-canvas-content .book-content pre .preprocessor,
.off-canvas-content .book-content pre .built_in,
@@ -460,7 +377,6 @@ img {
.off-canvas-content .book-content pre .command {
color: #f5871f;
}
.off-canvas-content .book-content pre .ruby .class .title,
.off-canvas-content .book-content pre .css .rules .attribute,
.off-canvas-content .book-content pre .string,
@@ -474,12 +390,10 @@ img {
.off-canvas-content .book-content pre .formula {
color: #718c00;
}
.off-canvas-content .book-content pre .title,
.off-canvas-content .book-content pre .css .hexcolor {
color: #3e999f;
}
.off-canvas-content .book-content pre .function,
.off-canvas-content .book-content pre .python .decorator,
.off-canvas-content .book-content pre .python .title,
@@ -490,29 +404,24 @@ img {
.off-canvas-content .book-content pre .coffeescript .title {
color: #4271ae;
}
.off-canvas-content .book-content pre .keyword,
.off-canvas-content .book-content pre .javascript .function {
color: #8959a8;
}
.off-canvas-content .book-post-info {
position: fixed;
font-size: 0.7rem;
}
@media all and (min-width: 800px) {
.off-canvas-content .book-post-info {
max-width: 10rem;
}
}
@media all and (min-width: 960px) and (max-width: 799px) {
.off-canvas-content .book-post-info {
max-width: 8.5rem;
}
}
.off-canvas-content .book-post-info .book-post-meta {
display: block;
opacity: 1;
@@ -522,134 +431,109 @@ img {
transition: max-height 0.15s ease-in;
transition: opacity 0.15s ease-in;
}
.off-canvas-content .book-post-info .book-post-meta .author {
display: flex;
}
.off-canvas-content .book-post-info .book-post-meta .author .author-img {
display: flex;
align-items: center;
}
.off-canvas-content .book-post-info .book-post-meta .author .author-img figure {
background: #fff;
}
.off-canvas-content .book-post-info .book-post-meta .author .author-title {
display: flex;
justify-content: center;
flex-direction: column;
margin-left: 8px;
}
.off-canvas-content .book-post-info .book-post-meta .link a {
color: #3b4351;
}
.off-canvas-content .book-post-info .book-post-meta .link a:hover {
color: gray;
}
.off-canvas-content .book-post-info .book-post-meta.hide {
opacity: 0;
max-height: 0;
transition: max-height 0.15s ease-out;
}
.off-canvas-content .book-post-info .book-tocbot {
overflow: auto;
position: relative;
padding-right: 0.875rem;
transition: max-height 0.15s ease-in-out;
}
.off-canvas-content .book-post-info .book-tocbot ul {
list-style: none;
position: inherit;
overflow: hidden;
}
.off-canvas-content .book-post-info .book-tocbot ul li {
margin-left: 0.25rem;
}
.off-canvas-content .book-post-info .book-tocbot .toc-link::before {
background-color: white !important;
}
.off-canvas-content .book-post-info .book-tocbot .is-active-link::before {
background-color: #004ed0 !important;
}
.off-canvas-content .book-post-info .book-tocbot-menu {
margin: 1rem 0.75rem;
}
.off-canvas-content .book-post-info .book-tocbot-menu a {
display: block;
margin: 0.375rem 0;
color: #999;
cursor: pointer;
}
.off-canvas-content .book-post-info .book-tocbot-menu a:hover {
color: gray;
}
.off-canvas-content.extend {
margin-left: 0;
}
@media all and (min-width: 800px) {
.off-canvas-content {
margin-left: 12rem;
padding: 2.2rem 2.2rem;
}
}
@media all and (min-width: 960px) and (max-width: 799px) {
.off-canvas-content {
padding: 2.2rem 1.5rem;
}
}
@media all and (max-width: 959px) {
.off-canvas-content {
padding: 2.2rem 0.75rem;
}
}
.book-navbar {
padding-top: 0;
padding-right: 4rem;
padding-bottom: 1.5rem;
padding-left: 4rem;
}
.book-navbar i {
color: #2f2f2f;
}
@media all and (min-width: 800px) {
.book-navbar {
display: none;
}
}
@media all and (max-width: 799px) {
.book-navbar {
display: block;
}
}
@media all and (max-width: 800px) {
.book-navbar {
padding-right: 1.25rem;
padding-left: 1.25rem;
}
}
.book-sidebar {
position: fixed;
width: 12rem;
@@ -658,27 +542,22 @@ img {
background-color: #f7f8f9;
transition: transform 0.2s;
}
.book-sidebar.show {
transform: translateX(0);
}
.book-sidebar.hide {
transform: translateX(-100%);
}
@media all and (min-width: 800px) {
.book-sidebar {
transform: translateX(0);
}
}
@media all and (max-width: 799px) {
.book-sidebar {
transform: translateX(-100%);
}
}
.book-sidebar .book-brand {
display: flex;
position: fixed;
@@ -686,7 +565,6 @@ img {
left: 1.25rem;
height: 2rem;
}
.book-sidebar .book-brand a {
display: inline-flex;
align-items: center;
@@ -695,21 +573,17 @@ img {
color: #2f2f2f;
text-decoration: none;
}
.book-sidebar .book-brand a img {
height: 1.6rem;
width: 1.6rem;
}
.book-sidebar .book-brand a span {
margin-left: 0.5rem;
}
.book-sidebar .book-brand a:hover {
color: #2f2f2f;
text-decoration: none;
}
.book-sidebar .book-menu {
position: fixed;
top: 3.25rem;
@@ -719,7 +593,6 @@ img {
overflow-y: auto;
font-size: 0.7rem;
}
.book-sidebar .book-menu h1,
.book-sidebar .book-menu h2,
.book-sidebar .book-menu h3,
@@ -730,73 +603,59 @@ img {
margin: 1.25rem 0 0.625rem 0;
font-size: 0.7rem;
}
.book-sidebar .book-menu ul,
.book-sidebar .book-menu ol,
.book-sidebar .book-menu li {
margin: 0;
list-style: none;
}
.book-sidebar .book-menu p {
margin: 0;
}
.book-sidebar .book-menu .uncollapsible {
padding: 0 0.6rem 0 1.25rem;
margin: 0 0 0.625rem 0;
border-top: 1px solid #e7e7e7;
}
.book-sidebar .book-menu .accordion {
padding: 0.625rem 0.6rem 0.625rem 1.25rem;
border-top: 1px solid #e7e7e7;
}
.book-sidebar .book-menu .accordion label {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0;
}
.book-sidebar .book-menu .accordion .accordion-body {
margin: 0;
}
.book-sidebar .book-menu .accordion input:checked ~ .accordion-header .icon {
transform: rotate(-180deg);
}
.book-sidebar .book-menu .accordion i.icon-arrow-down::before {
border-width: 0.05rem;
border-color: #696969;
height: 0.3rem;
width: 0.3rem;
}
.book-sidebar .book-menu ul {
margin-left: 0.5rem;
}
.book-sidebar .book-menu li {
margin-top: 0.625rem;
}
.book-sidebar .book-menu a {
color: #2f2f2f;
font-weight: 400;
}
.book-sidebar .book-menu a:hover {
color: gray;
}
.book-sidebar .book-menu .current-tab {
color: #004ed0;
font-weight: 600;
}
.sidebar-toggle {
position: fixed;
bottom: 0.6rem;
@@ -810,17 +669,14 @@ img {
width: 9px;
height: 9px;
}
.sidebar-toggle.extend {
left: 0.7rem;
}
@media all and (max-width: 800px) {
.sidebar-toggle {
display: none;
}
}
.sidebar-toggle > .sidebar-toggle-inner {
width: 4px;
height: 4px;
@@ -828,30 +684,25 @@ img {
background-color: #686868;
display: none;
}
.sidebar-toggle > .sidebar-toggle-inner.show {
display: block;
}
.book-archive h1,
.book-archive h2 {
margin: 0;
}
.book-archive h1 {
font-size: 1.6rem;
font-weight: bold;
padding-bottom: 0.5rem;
margin-bottom: 1rem;
}
.book-archive h2 {
font-size: 1rem;
padding-bottom: 0.75rem;
margin-bottom: 0.75rem;
border-bottom: 1px solid #e7e7e7;
}
.book-archive .years {
padding-bottom: 1.25rem;
}