Browse Source

Update footer style

Track3 1 year ago
parent
commit
ec2ea4d9cc
2 changed files with 4 additions and 3 deletions
  1. 2 1
      assets/scss/style.scss
  2. 2 2
      layouts/partials/footer.html

+ 2 - 1
assets/scss/style.scss

@@ -260,6 +260,7 @@ h1#page-title {
     background: transparent;
     &>.footer-inner {
       display: flex;
+      flex-direction: row-reverse;
       padding-top: 1em;
       border-top: 2px solid var(--c-bg-alt);
     }
@@ -267,7 +268,7 @@ h1#page-title {
   .posts-group {
     display: flex;
   }
-  .footer-l {
+  .footer-left {
     flex-grow: 1;
   }
   .site-nav > span {

+ 2 - 2
layouts/partials/footer.html

@@ -1,6 +1,6 @@
 	<footer id="site-footer" class="wrapper">
 		<div class="footer-inner">
-			<div class="footer-l">
+			<div>
 				<nav class="site-nav">
 					<a href="{{"" | relURL}}">Home</a><span>&#47;</span>
 					{{- range .Site.Menus.main -}}
@@ -8,7 +8,7 @@
 					{{- end }}
 				</nav>
 			</div>
-			<div class="footer-r">
+			<div class="footer-left">
 				<p class="site-copy">&copy; {{ now.Format "2006" }} <a href="{{ .Site.BaseURL }}">{{ .Site.Author.name }}</a> &#183; <a href="https://creativecommons.org/licenses/by-nc/4.0/deed.zh" target="_blank" rel="noopener">CC BY-NC 4.0</a> &#183; <a href="{{ "writing/index.xml" | absURL }}" target="_blank" title="RSS" class="icon-link"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-rss"><path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle></svg></a></p>
 			</div>
 		</div>