Browse Source

Update style

Track3 1 year ago
parent
commit
563ccba20a

+ 17 - 7
assets/scss/style.scss

@@ -17,6 +17,7 @@ body {
   --c-bg-alt: #dee8e5;
   --c-txt: #545250;
   --c-txt-alt: #72706e;
+  --c-txt-alt2: rgba(114, 112, 110, .3);
   --c-txt-em: #000;
   margin: 0;
   padding: 1.5rem;
@@ -48,10 +49,11 @@ textarea {
 // Auto light/dark mode
 @media (prefers-color-scheme: dark) {
   body {
-    --c-bg: #14181a;
-    --c-bg-alt: #2d3539;
-    --c-txt: #a9a6a2;
-    --c-txt-alt: #82807d;
+    --c-bg: #1e1f20;
+    --c-bg-alt: #313a3f;
+    --c-txt: #b1aeaa;
+    --c-txt-alt: #898680;
+    --c-txt-alt2: rgba(137, 134, 128, .5);
     --c-txt-em: #fff;
   }
 
@@ -139,10 +141,14 @@ a.tdln,
   color: var(--c-txt-alt)
 }
 
+.dimmer {
+  color: var(--c-txt-alt2)
+}
+
 a {
   color: var(--c-txt);
-  text-decoration: solid underline 1px var(--c-txt-alt);
-  text-underline-offset: 0.2em;
+  text-decoration: solid underline 1px var(--c-txt-alt2);
+  text-underline-offset: 0.25em;
   transition: color .3s, text-decoration-color .3s;
 
   &:hover {
@@ -355,6 +361,10 @@ textarea {
   }
 }
 
+a.footnote-backref {
+  text-decoration: none;
+}
+
 a.footnote-ref {
   padding: 1px 2px;
   line-height: normal;
@@ -428,6 +438,6 @@ a.footnote-ref {
 
 @media all and (min-width: 1400px) {
   h1 {
-    margin-top: 6rem;
+    margin-top: 7rem;
   }
 }

+ 1 - 1
layouts/_default/_markup/render-heading.html

@@ -1 +1 @@
-<h{{ .Level }} id="{{ .Anchor | safeURL }}">{{ .Text | safeHTML }} <a href="#{{ .Anchor | safeURL }}" class="tdln dim"><small>#</small></a></h{{ .Level }}>
+<h{{ .Level }} id="{{ .Anchor | safeURL }}">{{ .Text | safeHTML }} <a href="#{{ .Anchor | safeURL }}" class="tdln dimmer"><small>#</small></a></h{{ .Level }}>

+ 0 - 1
layouts/index.html

@@ -16,7 +16,6 @@
 				<a href="{{.RelPermalink}}">{{.Title}}</a>
 			</li>
 			{{ end }}
-			<li><a href="{{"/writing/" | relURL}}" class="tdln">[…]</a></li>
 		</ul>
 	</section>
 {{- end }}

+ 1 - 1
layouts/writing/single.html

@@ -10,7 +10,7 @@
 		</div>
 		{{- end }}
 		<ul class="lsn dim post-footer">
-			<li>发布于{{ dateFormat "2006-01-02 15:04 -0700" .Date.Local }},最后更新于{{ dateFormat "2006-01-02 15:04 -0700" .Lastmod.Local }}</li>
+			<li>发布于{{ dateFormat "2006-01-02 15:04 MST" .Date.UTC }},最后更新于{{ dateFormat "2006-01-02 15:04 MST" .Lastmod.UTC }}</li>
 			<li>字&emsp;数:{{ .WordCount }}</li>
 			{{- with .Params.tags }}
 			<li>标&emsp;签:{{- range . -}}<a href="{{ "tags/" | relURL }}{{ . | urlize }}" class="post-tag">{{.}}</a>{{ end }}</li>