Kyxie's version init
This commit is contained in:
@ -27,6 +27,11 @@
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.logo a:hover {
|
||||
transition: 0.15s;
|
||||
color: grey;
|
||||
}
|
||||
|
||||
.logo a img {
|
||||
display: inline;
|
||||
vertical-align: middle;
|
||||
@ -40,6 +45,42 @@
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
svg:hover {
|
||||
transition: 0.15s;
|
||||
}
|
||||
|
||||
.social-icons a:nth-child(1) svg:hover {
|
||||
color: #C84370 !important;
|
||||
}
|
||||
|
||||
.social-icons a:nth-child(2) svg:hover {
|
||||
color: grey !important;
|
||||
}
|
||||
|
||||
.social-icons a:nth-child(3) svg:hover {
|
||||
color: #0A66C2 !important;
|
||||
}
|
||||
|
||||
.social-icons a:nth-child(4) svg:hover {
|
||||
color: #2DC100 !important;
|
||||
}
|
||||
|
||||
.social-icons a:nth-child(5) svg:hover {
|
||||
color: #EA8011 !important;
|
||||
}
|
||||
|
||||
.social-icons a:nth-child(6) svg:hover {
|
||||
color: #FB7299 !important;
|
||||
/* color: #1e88e5 !important; */
|
||||
}
|
||||
|
||||
.social-icons a:nth-child(7) svg:hover {
|
||||
color: #FD4C06 !important;
|
||||
}
|
||||
|
||||
.social-icons a:nth-child(8) svg:hover {
|
||||
color: #FD003A !important;
|
||||
}
|
||||
button#theme-toggle {
|
||||
font-size: 26px;
|
||||
margin: auto 4px;
|
||||
@ -50,10 +91,20 @@ body.dark #moon {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#moon:hover {
|
||||
transition: 0.15s;
|
||||
color: deepskyblue;
|
||||
}
|
||||
|
||||
body:not(.dark) #sun {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#sun:hover {
|
||||
transition: 0.15s;
|
||||
color: gold;
|
||||
}
|
||||
|
||||
#menu {
|
||||
list-style: none;
|
||||
word-break: keep-all;
|
||||
@ -69,6 +120,11 @@ body:not(.dark) #sun {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
#menu a:hover {
|
||||
transition: 0.15s;
|
||||
color: grey;
|
||||
}
|
||||
|
||||
#menu .active {
|
||||
font-weight: 500;
|
||||
border-bottom: 2px solid currentColor;
|
||||
|
@ -15,6 +15,7 @@
|
||||
|
||||
.post-meta,
|
||||
.breadcrumbs {
|
||||
/* author color */
|
||||
color: var(--secondary);
|
||||
font-size: 14px;
|
||||
display: flex;
|
||||
@ -82,7 +83,8 @@
|
||||
|
||||
.post-content del {
|
||||
text-decoration: none;
|
||||
background: linear-gradient(to right, var(--primary) 100%, transparent 0) 0 50%/1px 1px repeat-x;
|
||||
background: linear-gradient(to right, var(--primary) 100%, transparent 0) 0
|
||||
50%/1px 1px repeat-x;
|
||||
}
|
||||
|
||||
.post-content dl,
|
||||
@ -133,7 +135,9 @@
|
||||
}
|
||||
|
||||
.post-content table th,
|
||||
.post-content table:not(.highlighttable, .highlight table, .gist .highlight) td {
|
||||
.post-content
|
||||
table:not(.highlighttable, .highlight table, .gist .highlight)
|
||||
td {
|
||||
min-width: 80px;
|
||||
padding: 12px 8px;
|
||||
line-height: 1.5;
|
||||
@ -168,6 +172,7 @@
|
||||
}
|
||||
|
||||
.post-content .highlight pre {
|
||||
background-color: var(--theme) !important;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
@ -198,16 +203,16 @@
|
||||
font-size: 0.78em;
|
||||
line-height: 1.5;
|
||||
background: var(--code-bg);
|
||||
border-radius: 2px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.post-content pre code {
|
||||
display: block;
|
||||
margin: auto 0;
|
||||
padding: 10px;
|
||||
color: rgb(213, 213, 214);
|
||||
background: var(--hljs-bg) !important;
|
||||
border-radius: var(--radius);
|
||||
/* 主要代码颜色 */
|
||||
color: #abb2bf;
|
||||
font-weight: 200;
|
||||
overflow-x: auto;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
@ -34,6 +34,15 @@
|
||||
transition: transform 0.1s;
|
||||
}
|
||||
|
||||
.button:hover {
|
||||
-webkit-transform: scale(1.1);
|
||||
-moz-transform: scale(1.1);
|
||||
-ms-transform: scale(1.1);
|
||||
-o-transform: scale(1.1);
|
||||
/* box-shadow: 0 0 0 1px grey; */
|
||||
transform: scale(1.1) translateZ(0) translate3d(0, 0, 0) rotate(0.01deg);
|
||||
}
|
||||
|
||||
.button-inner {
|
||||
padding: 0 8px;
|
||||
}
|
||||
|
@ -18,6 +18,7 @@
|
||||
}
|
||||
|
||||
.dark {
|
||||
transition: background-color 0.3s;
|
||||
--theme: rgb(29, 30, 32);
|
||||
--entry: rgb(46, 46, 51);
|
||||
--primary: rgb(218, 218, 219);
|
||||
@ -30,6 +31,7 @@
|
||||
}
|
||||
|
||||
.list {
|
||||
transition: background-color 0.3s;
|
||||
background: var(--code-bg);
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,201 @@
|
||||
/*
|
||||
This is just a placeholder blank stylesheet so as to support adding custom styles budled with theme's default styles
|
||||
:root {
|
||||
--nav-width: 1380px;
|
||||
--article-width: 650px;
|
||||
--toc-width: 300px;
|
||||
}
|
||||
|
||||
Read https://github.com/adityatelange/hugo-PaperMod/wiki/FAQs#bundling-custom-css-with-themes-assets for more info
|
||||
*/
|
||||
.toc {
|
||||
margin: 0 2px 40px 2px;
|
||||
border: 1px solid var(--border);
|
||||
background: var(--entry);
|
||||
border-radius: var(--radius);
|
||||
padding: 0.4em;
|
||||
}
|
||||
|
||||
.toc-container.wide {
|
||||
position: absolute;
|
||||
height: 100%;
|
||||
border-right: 1px solid var(--border);
|
||||
left: calc((var(--toc-width) + var(--gap)) * -1);
|
||||
top: calc(var(--gap) * 2);
|
||||
width: var(--toc-width);
|
||||
}
|
||||
|
||||
.wide .toc {
|
||||
position: sticky;
|
||||
top: var(--gap);
|
||||
border: unset;
|
||||
background: unset;
|
||||
border-radius: unset;
|
||||
width: 100%;
|
||||
margin: 0 2px 40px 2px;
|
||||
}
|
||||
|
||||
.toc details summary {
|
||||
cursor: zoom-in;
|
||||
margin-inline-start: 20px;
|
||||
padding: 12px 0;
|
||||
}
|
||||
|
||||
.toc details[open] summary {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.toc-container.wide .toc .inner {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.active {
|
||||
font-size: 110%;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.toc ul {
|
||||
list-style-type: circle;
|
||||
}
|
||||
|
||||
.toc .inner {
|
||||
margin: 0 0 0 20px;
|
||||
padding: 0px 15px 15px 20px;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.toc li ul {
|
||||
margin-inline-start: calc(var(--gap) * 0.5);
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
.toc li {
|
||||
list-style: none;
|
||||
font-size: 0.95rem;
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
|
||||
.toc li a:hover {
|
||||
color: var(--secondary);
|
||||
}
|
||||
|
||||
/* code font */
|
||||
.post-content pre,
|
||||
code {
|
||||
font-family: "Ubuntu Mono", monospace;
|
||||
max-height: 40rem;
|
||||
}
|
||||
|
||||
/* link */
|
||||
.post-content a {
|
||||
color: #409eff;
|
||||
box-shadow: none;
|
||||
text-decoration: none;
|
||||
}
|
||||
.post-content a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: "Josefin Sans", sans-serif;
|
||||
font-size: 1rem;
|
||||
line-height: 1.5;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.friendurl {
|
||||
text-decoration: none !important;
|
||||
color: black;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
.myfriend {
|
||||
width: 56px !important;
|
||||
height: 56px !important;
|
||||
border-radius: 50% !important;
|
||||
padding: 2px;
|
||||
margin-top: 20px !important;
|
||||
margin-left: 14px !important;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.frienddiv {
|
||||
overflow: auto;
|
||||
height: 100px;
|
||||
width: 49%;
|
||||
display: inline-block !important;
|
||||
border-radius: 5px;
|
||||
background: none;
|
||||
|
||||
-webkit-transition: all ease-out 0.3s;
|
||||
-moz-transition: all ease-out 0.3s;
|
||||
-o-transition: all ease-out 0.3s;
|
||||
transition: all ease-out 0.3s;
|
||||
}
|
||||
|
||||
.dark .frienddiv:hover {
|
||||
background: var(--code-bg);
|
||||
}
|
||||
|
||||
.frienddiv:hover {
|
||||
background: var(--theme);
|
||||
transition: transform 0.5s;
|
||||
webkit-transform: scale(1.1);
|
||||
-moz-transform: scale(1.1);
|
||||
-ms-transform: scale(1.1);
|
||||
-o-transform: scale(1.1);
|
||||
transform: scale(1.1);
|
||||
}
|
||||
|
||||
/* .frienddiv:hover .frienddivleft img {
|
||||
transition: 0.9s !important;
|
||||
-webkit-transition: 0.9s !important;
|
||||
-moz-transition: 0.9s !important;
|
||||
-o-transition: 0.9s !important;
|
||||
-ms-transition: 0.9s !important;
|
||||
transform: rotate(360deg) !important;
|
||||
-webkit-transform: rotate(360deg) !important;
|
||||
-moz-transform: rotate(360deg) !important;
|
||||
-o-transform: rotate(360deg) !important;
|
||||
-ms-transform: rotate(360deg) !important;
|
||||
} */
|
||||
|
||||
.frienddivleft {
|
||||
width: 92px;
|
||||
float: left;
|
||||
margin-right: -5px;
|
||||
}
|
||||
|
||||
.frienddivright {
|
||||
margin-top: 18px;
|
||||
margin-right: 18px;
|
||||
}
|
||||
|
||||
.friendname {
|
||||
text-overflow: ellipsis;
|
||||
font-size: 100%;
|
||||
margin-bottom: 5px;
|
||||
color: var(--primary);
|
||||
}
|
||||
|
||||
.friendinfo {
|
||||
text-overflow: ellipsis;
|
||||
font-size: 70%;
|
||||
color: var(--primary);
|
||||
}
|
||||
|
||||
@media screen and (max-width: 600px) {
|
||||
.friendinfo {
|
||||
display: none;
|
||||
}
|
||||
.frienddivleft {
|
||||
width: 84px;
|
||||
margin: auto;
|
||||
}
|
||||
.frienddivright {
|
||||
height: 100%;
|
||||
margin: auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.friendname {
|
||||
font-size: 18px;
|
||||
}
|
||||
}
|
||||
|
83
assets/css/hljs/an-old-hope.min.css
vendored
83
assets/css/hljs/an-old-hope.min.css
vendored
@ -1,49 +1,84 @@
|
||||
/* 注释 */
|
||||
.hljs-comment,
|
||||
.hljs-quote {
|
||||
color: #b6b18b;
|
||||
font-weight: 200;
|
||||
color: #7f848e;
|
||||
}
|
||||
|
||||
.hljs-deletion,
|
||||
/* html标签 */
|
||||
.hljs-name,
|
||||
.hljs-regexp,
|
||||
.hljs-selector-class,
|
||||
.hljs-selector-id,
|
||||
.hljs-tag,
|
||||
.hljs-tag {
|
||||
font-weight: 200;
|
||||
color: #e06c75;
|
||||
}
|
||||
|
||||
/* html属性 */
|
||||
.hljs-tag {
|
||||
font-weight: 200;
|
||||
color: #d19a66;
|
||||
}
|
||||
|
||||
/* css类名 */
|
||||
.hljs-template-variable,
|
||||
.hljs-variable {
|
||||
color: #eb3c54;
|
||||
.hljs-variable,
|
||||
.hljs-selector-class,
|
||||
.hljs-selector-id {
|
||||
font-weight: 200;
|
||||
color: #ffd709;
|
||||
}
|
||||
|
||||
/* 内置函数 */
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name,
|
||||
.hljs-link,
|
||||
.hljs-literal,
|
||||
.hljs-meta,
|
||||
.hljs-number,
|
||||
.hljs-params,
|
||||
.hljs-type {
|
||||
color: #e7ce56;
|
||||
.hljs-builtin-name {
|
||||
font-weight: 200;
|
||||
color: #56b6c2;
|
||||
}
|
||||
|
||||
/* 函数输入 */
|
||||
.hljs-params {
|
||||
font-weight: 200;
|
||||
color: #e5c07b;
|
||||
}
|
||||
|
||||
/* 数字 */
|
||||
.hljs-number {
|
||||
font-weight: 200;
|
||||
color: #d19a66;
|
||||
}
|
||||
|
||||
/* css属性 */
|
||||
.hljs-attribute {
|
||||
font-weight: 200;
|
||||
color: #ee7c2b;
|
||||
}
|
||||
|
||||
/* 字符串 */
|
||||
.hljs-addition,
|
||||
.hljs-bullet,
|
||||
.hljs-string,
|
||||
.hljs-symbol {
|
||||
color: #4fb4d7;
|
||||
.hljs-symbol,
|
||||
.hljs-string {
|
||||
font-weight: 200;
|
||||
color: #98c379;
|
||||
}
|
||||
|
||||
/* 函数名称 */
|
||||
.hljs-section,
|
||||
.hljs-title {
|
||||
color: #78bb65;
|
||||
font-weight: 200;
|
||||
color: #56b6c2;
|
||||
}
|
||||
|
||||
/* 关键字 */
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag {
|
||||
color: #b45ea4;
|
||||
.hljs-selector-tag,
|
||||
.hljs-literal,
|
||||
.hljs-link,
|
||||
.hljs-meta,
|
||||
.hljs-type {
|
||||
font-weight: 200;
|
||||
color: #c678dd;
|
||||
}
|
||||
|
||||
.hljs {
|
||||
@ -51,7 +86,7 @@
|
||||
overflow-x: auto;
|
||||
background: #1c1d21;
|
||||
color: #c0c5ce;
|
||||
padding: .5em;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
.hljs-emphasis {
|
||||
@ -61,3 +96,9 @@
|
||||
.hljs-strong {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
/* 选中时的背景颜色 */
|
||||
.hljs ::selection,
|
||||
.hljs::selection {
|
||||
background-color: #3d4556;
|
||||
}
|
||||
|
5402
assets/js/highlight.min.js
vendored
5402
assets/js/highlight.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user