|
@@ -11,6 +11,27 @@
|
|
--table-row-hover-bg-color: #f5f5f5;
|
|
--table-row-hover-bg-color: #f5f5f5;
|
|
--menu-item-bg-color: #f5f5f5;
|
|
--menu-item-bg-color: #f5f5f5;
|
|
}
|
|
}
|
|
|
|
+@media (prefers-color-scheme: dark) {
|
|
|
|
+ :root {
|
|
|
|
+ --body-bg-color: #121212;
|
|
|
|
+ --content-bg-color: #1d1d1d;
|
|
|
|
+ --card-bg-color: #282828;
|
|
|
|
+ --text-color: #e1e1e1;
|
|
|
|
+ --link-color: #e1e1e1;
|
|
|
|
+ --link-hover-color: #fff;
|
|
|
|
+ --brand-color: #fff;
|
|
|
|
+ --brand-hover-color: #fff;
|
|
|
|
+ --table-row-odd-bg-color: #282828;
|
|
|
|
+ --table-row-hover-bg-color: #363636;
|
|
|
|
+ --menu-item-bg-color: #333;
|
|
|
|
+ }
|
|
|
|
+ img {
|
|
|
|
+ opacity: 0.75;
|
|
|
|
+ }
|
|
|
|
+ img:hover {
|
|
|
|
+ opacity: 1;
|
|
|
|
+ }
|
|
|
|
+}
|
|
html {
|
|
html {
|
|
line-height: 1.15; /* 1 */
|
|
line-height: 1.15; /* 1 */
|
|
-webkit-text-size-adjust: 100%; /* 2 */
|
|
-webkit-text-size-adjust: 100%; /* 2 */
|
|
@@ -375,10 +396,44 @@ td {
|
|
transform: rotate(45deg);
|
|
transform: rotate(45deg);
|
|
top: -5px;
|
|
top: -5px;
|
|
}
|
|
}
|
|
|
|
+.highlight-container {
|
|
|
|
+ position: relative;
|
|
|
|
+}
|
|
|
|
+.highlight-container:hover .copy-btn,
|
|
|
|
+.highlight-container .copy-btn:focus {
|
|
|
|
+ opacity: 1;
|
|
|
|
+}
|
|
|
|
+.copy-btn {
|
|
|
|
+ color: #333;
|
|
|
|
+ cursor: pointer;
|
|
|
|
+ display: inline-block;
|
|
|
|
+ font-weight: bold;
|
|
|
|
+ line-height: 1.6;
|
|
|
|
+ opacity: 0;
|
|
|
|
+ outline: 0;
|
|
|
|
+ padding: 2px 6px;
|
|
|
|
+ position: absolute;
|
|
|
|
+ vertical-align: middle;
|
|
|
|
+ white-space: nowrap;
|
|
|
|
+ -moz-user-select: none;
|
|
|
|
+ -ms-user-select: none;
|
|
|
|
+ -webkit-user-select: none;
|
|
|
|
+ user-select: none;
|
|
|
|
+ transition-delay: 0s;
|
|
|
|
+ transition-duration: 0.2s;
|
|
|
|
+ transition-timing-function: ease-in-out;
|
|
|
|
+ background-color: #eee;
|
|
|
|
+ background-image: linear-gradient(#fcfcfc, #eee);
|
|
|
|
+ border: 1px solid #d5d5d5;
|
|
|
|
+ border-radius: 3px;
|
|
|
|
+ font-size: 0.8125em;
|
|
|
|
+ right: 4px;
|
|
|
|
+ top: 8px;
|
|
|
|
+}
|
|
.highlight,
|
|
.highlight,
|
|
pre {
|
|
pre {
|
|
- background: #f7f7f7;
|
|
|
|
- color: #4d4d4c;
|
|
|
|
|
|
+ background: #1d1f21;
|
|
|
|
+ color: #c5c8c6;
|
|
line-height: 1.6;
|
|
line-height: 1.6;
|
|
margin: 0 auto 20px;
|
|
margin: 0 auto 20px;
|
|
}
|
|
}
|
|
@@ -395,7 +450,7 @@ code {
|
|
word-wrap: break-word;
|
|
word-wrap: break-word;
|
|
}
|
|
}
|
|
.highlight *::selection {
|
|
.highlight *::selection {
|
|
- background: #d6d6d6;
|
|
|
|
|
|
+ background: #373b41;
|
|
}
|
|
}
|
|
.highlight pre {
|
|
.highlight pre {
|
|
border: 0;
|
|
border: 0;
|
|
@@ -413,7 +468,7 @@ code {
|
|
}
|
|
}
|
|
.highlight figcaption {
|
|
.highlight figcaption {
|
|
background: #eee;
|
|
background: #eee;
|
|
- color: #4d4d4c;
|
|
|
|
|
|
+ color: #c5c8c6;
|
|
display: flex;
|
|
display: flex;
|
|
font-size: 0.875em;
|
|
font-size: 0.875em;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
@@ -421,10 +476,10 @@ code {
|
|
padding: 0.5em;
|
|
padding: 0.5em;
|
|
}
|
|
}
|
|
.highlight figcaption a {
|
|
.highlight figcaption a {
|
|
- color: #4d4d4c;
|
|
|
|
|
|
+ color: #c5c8c6;
|
|
}
|
|
}
|
|
.highlight figcaption a:hover {
|
|
.highlight figcaption a:hover {
|
|
- border-bottom-color: #4d4d4c;
|
|
|
|
|
|
+ border-bottom-color: #c5c8c6;
|
|
}
|
|
}
|
|
.highlight .gutter {
|
|
.highlight .gutter {
|
|
-moz-user-select: none;
|
|
-moz-user-select: none;
|
|
@@ -433,14 +488,14 @@ code {
|
|
user-select: none;
|
|
user-select: none;
|
|
}
|
|
}
|
|
.highlight .gutter pre {
|
|
.highlight .gutter pre {
|
|
- background: #eff2f3;
|
|
|
|
- color: #869194;
|
|
|
|
|
|
+ background: #000;
|
|
|
|
+ color: #888f96;
|
|
padding-left: 10px;
|
|
padding-left: 10px;
|
|
padding-right: 10px;
|
|
padding-right: 10px;
|
|
text-align: right;
|
|
text-align: right;
|
|
}
|
|
}
|
|
.highlight .code pre {
|
|
.highlight .code pre {
|
|
- background: #f7f7f7;
|
|
|
|
|
|
+ background: #1d1f21;
|
|
padding-left: 10px;
|
|
padding-left: 10px;
|
|
width: 100%;
|
|
width: 100%;
|
|
}
|
|
}
|
|
@@ -456,26 +511,26 @@ pre {
|
|
}
|
|
}
|
|
pre code {
|
|
pre code {
|
|
background: none;
|
|
background: none;
|
|
- color: #4d4d4c;
|
|
|
|
|
|
+ color: #c5c8c6;
|
|
font-size: 0.875em;
|
|
font-size: 0.875em;
|
|
padding: 0;
|
|
padding: 0;
|
|
text-shadow: none;
|
|
text-shadow: none;
|
|
}
|
|
}
|
|
pre .deletion {
|
|
pre .deletion {
|
|
- background: #fdd;
|
|
|
|
|
|
+ background: #800000;
|
|
}
|
|
}
|
|
pre .addition {
|
|
pre .addition {
|
|
- background: #dfd;
|
|
|
|
|
|
+ background: #008000;
|
|
}
|
|
}
|
|
pre .meta {
|
|
pre .meta {
|
|
- color: #eab700;
|
|
|
|
|
|
+ color: #f0c674;
|
|
-moz-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
-ms-user-select: none;
|
|
-webkit-user-select: none;
|
|
-webkit-user-select: none;
|
|
user-select: none;
|
|
user-select: none;
|
|
}
|
|
}
|
|
pre .comment {
|
|
pre .comment {
|
|
- color: #8e908c;
|
|
|
|
|
|
+ color: #969896;
|
|
}
|
|
}
|
|
pre .variable,
|
|
pre .variable,
|
|
pre .attribute,
|
|
pre .attribute,
|
|
@@ -490,7 +545,7 @@ pre .html .doctype,
|
|
pre .css .id,
|
|
pre .css .id,
|
|
pre .css .class,
|
|
pre .css .class,
|
|
pre .css .pseudo {
|
|
pre .css .pseudo {
|
|
- color: #c82829;
|
|
|
|
|
|
+ color: #c66;
|
|
}
|
|
}
|
|
pre .number,
|
|
pre .number,
|
|
pre .preprocessor,
|
|
pre .preprocessor,
|
|
@@ -500,7 +555,7 @@ pre .literal,
|
|
pre .params,
|
|
pre .params,
|
|
pre .constant,
|
|
pre .constant,
|
|
pre .command {
|
|
pre .command {
|
|
- color: #f5871f;
|
|
|
|
|
|
+ color: #de935f;
|
|
}
|
|
}
|
|
pre .ruby .class .title,
|
|
pre .ruby .class .title,
|
|
pre .css .rules .attribute,
|
|
pre .css .rules .attribute,
|
|
@@ -513,11 +568,11 @@ pre .ruby .symbol,
|
|
pre .xml .cdata,
|
|
pre .xml .cdata,
|
|
pre .special,
|
|
pre .special,
|
|
pre .formula {
|
|
pre .formula {
|
|
- color: #718c00;
|
|
|
|
|
|
+ color: #b5bd68;
|
|
}
|
|
}
|
|
pre .title,
|
|
pre .title,
|
|
pre .css .hexcolor {
|
|
pre .css .hexcolor {
|
|
- color: #3e999f;
|
|
|
|
|
|
+ color: #8abeb7;
|
|
}
|
|
}
|
|
pre .function,
|
|
pre .function,
|
|
pre .python .decorator,
|
|
pre .python .decorator,
|
|
@@ -527,11 +582,11 @@ pre .ruby .title .keyword,
|
|
pre .perl .sub,
|
|
pre .perl .sub,
|
|
pre .javascript .title,
|
|
pre .javascript .title,
|
|
pre .coffeescript .title {
|
|
pre .coffeescript .title {
|
|
- color: #4271ae;
|
|
|
|
|
|
+ color: #81a2be;
|
|
}
|
|
}
|
|
pre .keyword,
|
|
pre .keyword,
|
|
pre .javascript .function {
|
|
pre .javascript .function {
|
|
- color: #8959a8;
|
|
|
|
|
|
+ color: #b294bb;
|
|
}
|
|
}
|
|
.blockquote-center {
|
|
.blockquote-center {
|
|
border-left: none;
|
|
border-left: none;
|
|
@@ -1139,6 +1194,70 @@ pre .javascript .function {
|
|
.use-motion .menu-item {
|
|
.use-motion .menu-item {
|
|
opacity: 0;
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
+.github-corner :hover .octo-arm {
|
|
|
|
+ animation: octocat-wave 560ms ease-in-out;
|
|
|
|
+}
|
|
|
|
+.github-corner svg {
|
|
|
|
+ border: 0;
|
|
|
|
+ color: #fff;
|
|
|
|
+ fill: #222;
|
|
|
|
+ position: absolute;
|
|
|
|
+ right: 0;
|
|
|
|
+ top: 0;
|
|
|
|
+ z-index: 1000;
|
|
|
|
+}
|
|
|
|
+@media (max-width: 991px) {
|
|
|
|
+ .github-corner .github-corner:hover .octo-arm {
|
|
|
|
+ animation: none;
|
|
|
|
+ }
|
|
|
|
+ .github-corner .github-corner .octo-arm {
|
|
|
|
+ animation: octocat-wave 560ms ease-in-out;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+@-moz-keyframes octocat-wave {
|
|
|
|
+ 0%, 100% {
|
|
|
|
+ transform: rotate(0);
|
|
|
|
+ }
|
|
|
|
+ 20%, 60% {
|
|
|
|
+ transform: rotate(-25deg);
|
|
|
|
+ }
|
|
|
|
+ 40%, 80% {
|
|
|
|
+ transform: rotate(10deg);
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+@-webkit-keyframes octocat-wave {
|
|
|
|
+ 0%, 100% {
|
|
|
|
+ transform: rotate(0);
|
|
|
|
+ }
|
|
|
|
+ 20%, 60% {
|
|
|
|
+ transform: rotate(-25deg);
|
|
|
|
+ }
|
|
|
|
+ 40%, 80% {
|
|
|
|
+ transform: rotate(10deg);
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+@-o-keyframes octocat-wave {
|
|
|
|
+ 0%, 100% {
|
|
|
|
+ transform: rotate(0);
|
|
|
|
+ }
|
|
|
|
+ 20%, 60% {
|
|
|
|
+ transform: rotate(-25deg);
|
|
|
|
+ }
|
|
|
|
+ 40%, 80% {
|
|
|
|
+ transform: rotate(10deg);
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+@keyframes octocat-wave {
|
|
|
|
+ 0%, 100% {
|
|
|
|
+ transform: rotate(0);
|
|
|
|
+ }
|
|
|
|
+ 20%, 60% {
|
|
|
|
+ transform: rotate(-25deg);
|
|
|
|
+ }
|
|
|
|
+ 40%, 80% {
|
|
|
|
+ transform: rotate(10deg);
|
|
|
|
+ }
|
|
|
|
+}
|
|
.sidebar {
|
|
.sidebar {
|
|
background: #222;
|
|
background: #222;
|
|
bottom: 0;
|
|
bottom: 0;
|
|
@@ -1203,7 +1322,7 @@ pre .javascript .function {
|
|
}
|
|
}
|
|
.links-of-author a::before,
|
|
.links-of-author a::before,
|
|
.links-of-author span.exturl::before {
|
|
.links-of-author span.exturl::before {
|
|
- background: #442a53;
|
|
|
|
|
|
+ background: #ff4b7d;
|
|
border-radius: 50%;
|
|
border-radius: 50%;
|
|
content: ' ';
|
|
content: ' ';
|
|
display: inline-block;
|
|
display: inline-block;
|