aboutsummaryrefslogtreecommitdiff
path: root/static/css
diff options
context:
space:
mode:
authorRubén Beltrán del Río <ben@nsovocal.com>2017-01-31 00:49:26 -0600
committerGitHub <noreply@github.com>2017-01-31 00:49:26 -0600
commit9b1f50fefe021578113b8f5935084fe4fed110b2 (patch)
tree98805583b7c5041f16b195de823c5524f4de7672 /static/css
parenta6ccda0fbc4df683f9568d85eb22b21684d2a0bd (diff)
Add Comments (#4)
* Preserve whitespace in posts * Create comments handler * Use comments handler * Update paw * Add comment components * Style comments * Remove unnecessary code from app * Fix linter warning * Add key to handle children (thx @javierbyte) * Add toggling to the form * Return all keys always * Correct missing semicolons * Restore redirect * Render posts conditionally * Set poll time to 1s * Set post frequency to 2s * Add polling to comments * Correct typo in error logging * Clear intervals and reduce polling * Stops polling if it's being destroyed * Update changelog
Diffstat (limited to 'static/css')
-rw-r--r--static/css/app.css48
1 files changed, 48 insertions, 0 deletions
diff --git a/static/css/app.css b/static/css/app.css
index 34712e3..2177c51 100644
--- a/static/css/app.css
+++ b/static/css/app.css
@@ -47,16 +47,22 @@ section {
/* The stream */
+.comments-container .comment .comment-meta,
.posts-container .post .post-meta {
background-color: lightgray;
display: flex;
align-items: center;
+ font-size: 20px;
}
+.comment-meta time, .comment-meta a,
.post-meta time, .post-meta a {
padding: 0 10px;
}
+.comments-container .comment .comment-content,
+.comment-form-container .comment-content-input,
+.comment-form-container .comment-submit,
.posts-container .post .post-content,
.post-form-container .post-content-input,
.post-form-container .post-submit {
@@ -68,6 +74,13 @@ section {
padding: 10px;
}
+.comments-container .comment .comment-content,
+.posts-container .post .post-content {
+ white-space: pre-wrap;
+ word-wrap: break-word;
+}
+
+.comment-form-container .comment-content-input,
.post-form-container .post-content-input {
display: block;
margin: 10px;
@@ -76,6 +89,8 @@ section {
height: 140px;
}
+.comment-form-container .comment-submit,
+.comment-form-container .comment-activate,
.post-form-container .post-submit {
margin: 10px auto;
display: block;
@@ -87,7 +102,40 @@ section {
}
.posts-error,
+.comments-error,
.post-form-error {
color: red;
padding: 10px;
}
+
+/* Comments */
+
+.comments-container .comment .comment-meta {
+ background-color: ghostwhite;
+ font-size: 16px;
+}
+
+.comments-container .comment .comment-meta img {
+ width: 24px;
+ height: 24px;
+}
+
+.comments-container .comment .comment-content,
+.comment-form-container .comment-content-input,
+.comment-form-container .comment-submit {
+ font-size: 16px;
+}
+
+.comment-form-container .comment-activate {
+ padding: 2px;
+ font-size: 12px;
+}
+
+.comment-form-container .comment-content-input {
+ height: 70px;
+}
+
+.comment-form-container .comment-activate:active,
+.comment-form-container .comment-submit:active {
+ background-color: magenta;
+}