From 9d784c40ae90ada42efec54ed1cbab1d4d06ef78 Mon Sep 17 00:00:00 2001 From: "wh.huajieyu" Date: Tue, 14 May 2024 11:36:00 +0800 Subject: [PATCH] Update --- _includes/post_list.html | 6 +- _layouts/post.html | 4 +- _sass/_custom.scss | 15 +- _sass/_reset.scss | 333 ------------------------------------- _sass/no-style-please.scss | 2 +- about.md | 2 +- archive.md | 4 +- css/main.scss | 1 - 8 files changed, 21 insertions(+), 346 deletions(-) delete mode 100644 _sass/_reset.scss diff --git a/_includes/post_list.html b/_includes/post_list.html index 9e68594..4ba8a36 100644 --- a/_includes/post_list.html +++ b/_includes/post_list.html @@ -1,5 +1,5 @@ {%-if include.category-%} - {%-assign posts = site.categories[include.category]-%} + {%-assign posts = site.categories[include.category]-%} {%-else-%} {%-assign posts = site.posts-%} {%-endif-%} @@ -15,11 +15,11 @@ {%- for post in posts limit: include.limit -%}
  • {{- post.date | date: site.theme_config.date_format -}} - {{ post.title | downcase }} + {{ post.title | downcase }}
  • {%- endfor -%} {%- if include.show_more and limit_exceeded -%}
  • {{ include.show_more_text | default: "Show more..." }}
  • {%- endif -%} -{%- endif -%} \ No newline at end of file +{%- endif -%} diff --git a/_layouts/post.html b/_layouts/post.html index adfdb55..0b792e1 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -11,7 +11,9 @@ >

    -

    {{ page.title }}

    +

    + {{ page.title }} +

    {{ content }} diff --git a/_sass/_custom.scss b/_sass/_custom.scss index 783c93e..d12c204 100644 --- a/_sass/_custom.scss +++ b/_sass/_custom.scss @@ -51,16 +51,24 @@ body { font-size: 1.2rem; } +a { + color: #3354AA; + text-decoration: none; + background: transparent; +} + code { /* 更改code字体 */ font-family: 'JetBrains Mono', Times, Menlo, Monaco, Consolas, Andale Mono, lucida console, Courier New, monospace; - font-size: 1.05rem; + font-size: 0.9rem; } + .post-meta { text-align: right; } .language-plaintext { - color: #f92672; + /* color: #f92672; */ + color: #B94A48; font-weight: bold; padding: 0 5px; } @@ -117,6 +125,3 @@ code { } } /* end custom scss snippet */ - - - diff --git a/_sass/_reset.scss b/_sass/_reset.scss deleted file mode 100644 index d604d33..0000000 --- a/_sass/_reset.scss +++ /dev/null @@ -1,333 +0,0 @@ -body { - font-family: Verdana, sans-serif; - margin: auto; - padding: 20px; - max-width: 720px; - text-align: left; - background-color: #fff; - word-wrap: break-word; - overflow-wrap: break-word; - line-height: 1.5; - color: #444; - font-size: 16px; -} - -/* Hide scrollbar for Chrome, Safari and Opera */ -html::-webkit-scrollbar { - display: none; -} - -::-webkit-scrollbar { - display: none; /* Chrome Safari */ -} -/* Hide scrollbar for IE, Edge and Firefox */ -html { - -ms-overflow-style: none; - /* IE and Edge */ - scrollbar-width: none; - /* Firefox */ -} - -h1, -h2, -h3, -h4, -h5, -h6, -strong, -b { - color: #222; -} - -h2, h3, h4, h5, h6 { - margin-top: 3rem; -} - -a { - color: #3273dc; - cursor: pointer; - text-decoration: underline; - /*color: #ff5e6c;*/ -} - -.title { - text-decoration: none; - border: 0; -} - -.title h1 { - font-size: 1.5em; -} - -.title span { - font-weight: 400; -} - -.bear::before { - content: "ᕦʕ •ᴥ•ʔᕤ"; - font-weight: 400; -} - -.bear:hover::before { - content: "ᕙʕ ಠᴥಠʔᕗ"; - font-weight: 400; -} - -nav a { - margin-right: 10px; -} - -textarea, -input:not([type="submit"]) { - background-color: inherit; - color: inherit; - border: 1px dashed; - padding: 5px; - font-size: 16px; -} - -.full-width textarea, -.full-width input:not([type="submit"], [type="checkbox"], [type="radio"]) { - width: calc(100% - 15px); -} - -.nav-image { - height: 3.14rem; - border-radius: 12.5%; -} - -textarea:required, -input:required:not([type="submit"]) { - border: 1px solid; -} - -textarea.full-screen { - position: fixed; - background-color: white; - top: -2px; - bottom: -2px; - left: 0; - width: calc(100vw - 30px); - max-width: 720px; - border: 10px solid; - border-width: 10px calc(50vw - 370px); -} - -@media only screen and (max-width: 750px) { - textarea.full-screen { - border-width: 10px; - } -} - -button.floating { - position: fixed; - bottom: 20px; - right: 25px; -} - -button#toggle-full-screen { - float: right; -} - -content { - line-height: 1.6; -} - -table { width: 100%; } - -table, th, td { - border: thin solid black; - border-collapse: collapse; - padding: 0.4rem; -} - -hr { - border-top: 1px dashed; -} - -img { - max-width: 100%; -} - - -blockquote { - border-left: 1px solid #999; - color: #222; - padding-left: 20px; - font-style: italic; -} - -footer { - padding: 25px 0; - text-align: left; -} - -.helptext { - color: #777; - font-size: small; -} - -.errorlist { - color: #eba613; - font-size: small; -} - -#id_favicon { - width: 20px; - text-align: center; -} - -#date-range, -#initial-values, -#import-contacts { - display: none; -} - -#date-range:target, -#initial-values:target, -#import-contacts:target { - display: block; -} - -/* dashboard post list and analytics */ -ul.post-list { - list-style-type: none; - padding: unset; -} - -ul.post-list li { - display: flex; - padding: 10px 0; - border-bottom: 1px dashed; -} - -ul.post-list li span { - flex: 0 0 130px; -} - -ul.post-list li span.number { - flex: 0 0 50px; -} - -ul.post-list li a { - flex: max-content; -} - -ul.post-list li small { - text-align: right; - flex: 0 0 115px; -} - -/* blog posts */ -ul.blog-posts { - list-style-type: none; - padding: unset; -} - -ul.blog-posts li { - display: flex; -} - -ul.blog-posts li span { - flex: 0 0 130px; -} - -ul.blog-posts li a:visited { - color: #8b6fcb; -} - -/* discovery feed */ -ul.discover-posts { - list-style-type: none; - padding: unset; -} - -ul.discover-posts li { - display: flex; - line-height: 1.2; -} - -ul.discover-posts li span { - flex: 0 0 40px; -} - -ul.discover-posts li a:visited { - color: #8b6fcb; -} - -ul.discover-posts li div { - padding-bottom: 8px; -} - -ul.discover-posts li small { - color: #777 !important; -} - -ul.discover-posts li small a { - color: #777 !important; -} - - -@media (prefers-color-scheme: dark) { - body { - background-color: #01242e; - color: #ddd; - } - - h1, - h2, - h3, - h4, - h5, - h6, - strong, - b { - color: #eee; - } - - a { - color: #8cc2dd; - } - - blockquote { - color: #ccc; - } - - .helptext { - color: #aaa; - } -} - - - -ul.blog-posts { - padding-bottom: 0.61803rem; -} - -ul.blog-posts li { - padding-top: 0.61803rem; -} - -small a { - padding-right: 0.61803rem; -} - -hr { - border: 1.61803px solid; -} - -body:hover { - //border-image: ; - border-width: 0; -} - - -small a { - padding-right: 0.61803rem; -} - -.bottom-footer { - padding: 50px; - text-align: center; -} - diff --git a/_sass/no-style-please.scss b/_sass/no-style-please.scss index a4e3ce9..76a147b 100644 --- a/_sass/no-style-please.scss +++ b/_sass/no-style-please.scss @@ -83,7 +83,7 @@ blockquote { font-style: italic; border: thin solid black; padding: 1rem; - + color: #666; p { margin: 0; } } diff --git a/about.md b/about.md index c99faed..52b011d 100644 --- a/about.md +++ b/about.md @@ -2,6 +2,6 @@ layout: default title: Hello --- - +{%-include back_link.html-%} ## 思考为什么这样是正确的。 diff --git a/archive.md b/archive.md index b8b1534..784927b 100644 --- a/archive.md +++ b/archive.md @@ -1,4 +1,6 @@ --- layout: archive title: Archive ---- \ No newline at end of file +--- + +{%-include back_link.html-%} diff --git a/css/main.scss b/css/main.scss index ce80a65..6f27bfe 100644 --- a/css/main.scss +++ b/css/main.scss @@ -3,6 +3,5 @@ @charset 'UTF-8'; -// @import 'reset'; @import 'custom'; @import "no-style-please";