Browse Source

Update comment style

Track3 2 years ago
parent
commit
4d1b4943c9
2 changed files with 30 additions and 9 deletions
  1. 28 8
      assets/scss/partials/_comments.scss
  2. 2 1
      assets/scss/style.scss

+ 28 - 8
assets/scss/partials/_comments.scss

@@ -1,4 +1,5 @@
 #comments {
+  font-size: .95rem;
   margin-top: 3em;
   overflow-wrap: break-word;
   text-align: initial;
@@ -9,33 +10,49 @@
 }
 
 .comment-form {
-  margin: 1em 0;
+  margin-top: 1em;
   border: 3px double var(--c-txt-alt);
   padding: .5em;
-  > label {
+
+  label {
+    display: inline-block;
+    width: 100%;
+    margin-top: .5em;
     font-size: .9em;
   }
-  > button[type=submit] {
+  button {
+    width: 100%;
     margin-top: 1em;
     margin-bottom: .2em;
-    width: 100%;
+    line-height: 2;
+  }
+  .form-wrapper {
+    display: flex;
+    gap: .5em;
   }
 }
 
+.comment-preview {
+  width: 100%;
+  min-height: 1em;
+  padding: 2px 6px;
+  border: 1px dashed var(--c-txt-alt);
+}
+
 .comment-group {
-  margin-top: 1em;
+  margin-top: 2em;
   article {
     display: flex;
     margin: 1em 0;
-    padding: 1em 0;
+    padding-top: 1em;
     border-top: 1px solid var(--c-bg-alt);
   }
 }
 
 .comment-avatar {
-  margin-right: 1em;
+  margin-right: .8em;
   > img {
-    width: 50px;
+    width: 40px;
     height: auto;
     border-radius: 50%;
   }
@@ -54,6 +71,9 @@
     margin: 1em 0;
     overflow-wrap: anywhere;
   }
+  img {
+    max-width: 100%;
+  }
 }
 
 .reply-btn {

+ 2 - 1
assets/scss/style.scss

@@ -160,6 +160,7 @@ input[type=text], input[type=email]{
   width: 100%;
   border: 1px solid var(--c-txt-alt);
   border-width: 0 0 1px 0;
+  background-color: transparent;
 }
 
 textarea {
@@ -167,7 +168,7 @@ textarea {
   max-width: 100%;
   padding: 2px 6px;
   border: 1px solid var(--c-txt-alt);
-
+  background-color: transparent;
 }
 
 // Global layouts