hugo-soresu

My fork of hugo-xmin

git clone git://git.shimmy1996.com/hugo-soresu.git
commit 92f739034715e078b67bd73b0dbcbbe249a2eefb
parent 4a2c90df87ed0da0bb273237926a6ee96d469adc
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Sat, 14 Sep 2019 11:24:33 -0400

Update isso css

Diffstat:
Mlayouts/partials/css/isso.css | 149+++++++++++++++++++++++++++++++++++++++++++++++--------------------------------
1 file changed, 89 insertions(+), 60 deletions(-)
diff --git a/layouts/partials/css/isso.css b/layouts/partials/css/isso.css
@@ -3,7 +3,7 @@
     -moz-box-sizing: border-box;
     box-sizing: border-box;
 }
-#isso-thread a {
+#isso-thread .isso-comment-header a {
     text-decoration: none;
 }
 
@@ -12,45 +12,47 @@
     margin: 0;
 }
 #isso-thread > h4 {
-    color: #555;
     font-weight: bold;
 }
+#isso-thread > .isso-feedlink {
+    float: right;
+    padding-left: 1em;
+}
+#isso-thread > .isso-feedlink > a {
+    font-size: 0.8em;
+    vertical-align: bottom;
+}
 #isso-thread .textarea {
+    background: var(--background-color);
     min-height: 58px;
     outline: 0;
 }
 #isso-thread .textarea.placeholder {
-    color: #999;
 }
 
-.isso-comment {
+#isso-root .isso-comment {
     max-width: 68em;
     padding-top: 0.95em;
     margin: 0.95em auto;
 }
-.isso-comment:not(:first-of-type),
+#isso-root .preview .isso-comment {
+    padding-top: 0;
+    margin: 0;
+}
+#isso-root .isso-comment:not(:first-of-type),
 .isso-follow-up .isso-comment {
-    border-top: 1px dashed #ddd;
+    border-top: 1px dashed var(--stress-2-color);
 }
-.isso-comment > div.avatar,
-.isso-postbox > .avatar {
+.isso-comment > div.avatar {
     display: block;
     float: left;
     width: 7%;
     margin: 3px 15px 0 0;
 }
-.isso-postbox > .avatar {
-    float: left;
-    margin: 5px 10px 0 5px;
-    width: 48px;
-    height: 48px;
-    overflow: hidden;
-}
-.isso-comment > div.avatar > svg,
-.isso-postbox > .avatar > svg {
+.isso-comment > div.avatar > svg {
     max-width: 48px;
     max-height: 48px;
-    border: 1px solid #ddd;
+    border: 3px solid var(--stress-2-color);
     border-radius: 5px;
 }
 .isso-comment > div.text-wrapper {
@@ -72,24 +74,24 @@
 .isso-comment > div.text-wrapper > .isso-comment-header a.permalink,
 .isso-comment > div.text-wrapper > .isso-comment-header .note,
 .isso-comment > div.text-wrapper > .isso-comment-header a.parent {
-    color: gray !important;
+    color: var(--text-color) !important;
     font-weight: normal;
-    text-shadow: none !important;
 }
 .isso-comment > div.text-wrapper > .isso-comment-header .spacer:hover,
 .isso-comment > div.text-wrapper > .isso-comment-header a.permalink:hover,
 .isso-comment > div.text-wrapper > .isso-comment-header .note:hover,
 .isso-comment > div.text-wrapper > .isso-comment-header a.parent:hover {
-    color: #606060 !important;
+    color: var(--accent-color) !important;
 }
 .isso-comment > div.text-wrapper > .isso-comment-header .note {
     float: right;
 }
 .isso-comment > div.text-wrapper > .isso-comment-header .author {
     font-weight: bold;
-    color: #555;
+    color: var(--text-color);
 }
-.isso-comment > div.text-wrapper > .textarea-wrapper .textarea {
+.isso-comment > div.text-wrapper > .textarea-wrapper .textarea,
+.isso-comment > div.text-wrapper > .textarea-wrapper .preview {
     margin-top: 0.2em;
 }
 .isso-comment > div.text-wrapper > div.text p {
@@ -107,28 +109,25 @@
     font-size: 130%;
     font-weight: bold;
 }
-.isso-comment > div.text-wrapper > div.textarea-wrapper .textarea {
+.isso-comment > div.text-wrapper > div.textarea-wrapper .textarea,
+.isso-comment > div.text-wrapper > div.textarea-wrapper .preview {
     width: 100%;
-    border: 1px solid #f0f0f0;
+    border: 3px solid var(--stress-2-color);
     border-radius: 5px;
 }
 .isso-comment > div.text-wrapper > .isso-comment-footer {
     font-size: 0.80em;
-    color: gray !important;
+    color: var(--text-color);
     clear: left;
 }
+.isso-feedlink,
 .isso-comment > div.text-wrapper > .isso-comment-footer a {
+    font-weight: bold;
     text-decoration: none;
-    padding: 5px;
-    border-radius: 5px;
-    border: 0px;
-    line-height: 1.5em;
-    background: #eee;
-    color: #700000;
 }
+.isso-feedlink:hover,
 .isso-comment > div.text-wrapper > .isso-comment-footer a:hover {
-    color: #700000 !important;
-    text-shadow: none !important;
+    text-decoration: underline;
 }
 .isso-comment > div.text-wrapper > .isso-comment-footer > a {
     position: relative;
@@ -138,7 +137,7 @@
     padding-left: 1em;
 }
 .isso-comment > div.text-wrapper > .isso-comment-footer .votes {
-    color: gray;
+    color: var(--text-color);
 }
 .isso-comment > div.text-wrapper > .isso-comment-footer .upvote svg,
 .isso-comment > div.text-wrapper > .isso-comment-footer .downvote svg {
@@ -148,10 +147,14 @@
 .isso-comment .isso-postbox {
     margin-top: 0.8em;
 }
+.isso-comment.isso-no-votes span.votes {
+    display: none;
+}
 
 .isso-postbox {
     max-width: 68em;
     margin: 0 auto 2em;
+    clear: right;
 }
 .isso-postbox > .form-wrapper {
     display: block;
@@ -161,51 +164,82 @@
 .isso-postbox > .form-wrapper > .auth-section .post-action {
     display: block;
 }
-.isso-postbox > .form-wrapper .textarea {
+.isso-postbox > .form-wrapper .textarea,
+.isso-postbox > .form-wrapper .preview {
     margin: 0 0 .3em;
     padding: .4em .8em;
     border-radius: 5px;
-    background-color: #eee;
-    border: 2px solid #ddd;
+    background: var(--background-color);
+    border: 3px solid var(--stress-2-color);
+}
+.isso-postbox > .form-wrapper input[type=checkbox] {
+    vertical-align: middle;
+    position: relative;
+    bottom: 1px;
+    margin-left: 0;
+}
+.isso-postbox > .form-wrapper .notification-section {
+    font-size: 0.90em;
+    padding-top: .3em;
 }
 #isso-thread .textarea:focus,
 #isso-thread input:focus {
-    border-color: #700000;
+    border-color: var(--accent-color);
 }
 .isso-postbox > .form-wrapper > .auth-section .input-wrapper {
     display: inline-block;
     position: relative;
-    max-width: 20%;
+    max-width: 25%;
     margin: 0;
-    margin-right: .3em;
 }
 .isso-postbox > .form-wrapper > .auth-section .input-wrapper input {
     padding: .3em 10px;
     max-width: 100%;
     border-radius: 5px;
-    background-color: #eee;
-    line-height: 1.5em;
-    border: 2px solid #ddd;
-}
-.isso-postbox > .form-wrapper > .auth-section .input-wrapper input:focus {
-    outline: 0;
-    border-color: #700000;
+    background: var(--background-color);
+    color: var(--text-color);
+    line-height: 1.4em;
+    border: 3px solid var(--stress-2-color);
 }
 .isso-postbox > .form-wrapper > .auth-section .post-action {
     display: inline-block;
     float: right;
-    margin: 0;
+    margin: 0 0 0 5px;
 }
 .isso-postbox > .form-wrapper > .auth-section .post-action > input {
-    padding: 5px;
+    padding: calc(.3em - 1px);
     border-radius: 5px;
-    border: 0px;
-    color: #700000;
+    border: 0;
+    background-color: var(--stress-1-color);
+    color: var(--accent-color);
     cursor: pointer;
     outline: 0;
-    line-height: 1.5em;
-    background: #eee;
-    font-weight: normal;
+    line-height: 1.4em;
+}
+.isso-postbox > .form-wrapper > .auth-section .post-action > input:hover {
+    text-decoration: underline;
+}
+.isso-postbox > .form-wrapper > .auth-section .post-action > input:active {
+    color: var(--text-color);
+}
+.isso-postbox > .form-wrapper .preview,
+.isso-postbox > .form-wrapper input[name="edit"],
+.isso-postbox.preview-mode > .form-wrapper input[name="preview"],
+.isso-postbox.preview-mode > .form-wrapper .textarea {
+    display: none;
+}
+.isso-postbox.preview-mode > .form-wrapper .preview {
+    display: block;
+}
+.isso-postbox.preview-mode > .form-wrapper input[name="edit"] {
+    display: inline;
+}
+.isso-postbox > .form-wrapper .preview {
+    background: var(--background-color);
+}
+.isso-postbox > .form-wrapper > .notification-section {
+    display: none;
+    padding-bottom: 10px;
 }
 @media screen and (max-width:600px) {
     .isso-postbox > .form-wrapper > .auth-section .input-wrapper {
@@ -216,9 +250,4 @@
     .isso-postbox > .form-wrapper > .auth-section .input-wrapper input {
         width: 100%;
     }
-    .isso-postbox > .form-wrapper > .auth-section .post-action {
-        display: block;
-        float: none;
-        text-align: right;
-    }
 }