From 76befe936a5ba258571dbd43dc9b5f0f18b5ab3d Mon Sep 17 00:00:00 2001
From: FarseaSH <yy_shao@outlook.com>
Date: Sat, 9 Apr 2022 19:01:23 +0800
Subject: [PATCH] FEATURE: optimize UI, increase margins

---
 assets/style-refractored.scss | 14 ++++++++++----
 layouts/partials/head.html    |  1 +
 layouts/partials/row.html     |  2 +-
 3 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/assets/style-refractored.scss b/assets/style-refractored.scss
index 51d0b4a..d9918a0 100644
--- a/assets/style-refractored.scss
+++ b/assets/style-refractored.scss
@@ -28,10 +28,13 @@ body{
     margin: auto;
 }
 
-.moment-content {
+.moment-content{
     position: relative;
 }
 
+.moment-row{
+    margin-bottom: 20px;
+}
 
 @media (min-width:1150px) {
     .page{
@@ -71,7 +74,7 @@ p{
     }
     
     .signature{
-        color: rgb(0, 0, 0, 0.5);
+        color: rgba(0, 0, 0, 0.5);
         font-size: 20px;
         font-weight: 300;
     }
@@ -258,7 +261,7 @@ p{
     .note{
         font-size: 80%;
         text-indent: 20px;
-        color: rgb(0, 0, 0, 0.5);
+        color: rgba(0, 0, 0, 0.5);
     
         margin-top: 0;
         margin-bottom: 0;
@@ -267,9 +270,12 @@ p{
 
 // hr 
 hr {
+    margin-top: 20px;
     border-width: 0;
     border-top: 1px solid;
-    border-color: rgb(0, 0, 0, 0.1);
+    border-color: rgba(0, 0, 0, 0.1);
+    max-width: 75%;
+    clear: both
 }
 /* END - for the main content */
 
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index b6c4ae8..74111a7 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -32,6 +32,7 @@
 
 <!-- the Moments style css file -->
 {{ $style := resources.Get "style-refractored.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }}
+<link rel="stylesheet" href="{{ $style.Permalink }}">
 
 <!-- fancybox css (js in the end before the body closing tag) -->
 <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.css"/>
diff --git a/layouts/partials/row.html b/layouts/partials/row.html
index 752a025..8ad4584 100644
--- a/layouts/partials/row.html
+++ b/layouts/partials/row.html
@@ -113,7 +113,7 @@
                         <div style="padding-right: 12px;"><i class="far fa-heart"></i></div>
                     </div>
                 </div>
-                <hr style="clear: both">
+                <hr class="seperating_line">
             </div>
         </div>
     </div>