From 830c3ee2bd9be5ac4b4d8387252c498fc27b016d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Sch=C3=A4fer?= Date: Fri, 21 Jun 2024 14:35:28 +0200 Subject: [PATCH 1/6] Style drafts differently, so they can be distinguished from published articles --- client/src/assets/scss/style.scss | 6 +++++- client/src/components/PostPreview.vue | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/client/src/assets/scss/style.scss b/client/src/assets/scss/style.scss index 36ebfa5..bce0481 100644 --- a/client/src/assets/scss/style.scss +++ b/client/src/assets/scss/style.scss @@ -8,7 +8,7 @@ } } -.content, +.content, .card, .jumbotron { transition: .75s ease-out all; @@ -52,6 +52,10 @@ pre { img { max-width: 100%; } + &.draft { + background: repeating-linear-gradient( -45deg, #fff, #fff 10px, #eee 10px, #eee 20px ); + filter: grayscale(.5); + } } .jumbotron { diff --git a/client/src/components/PostPreview.vue b/client/src/components/PostPreview.vue index d5d9ce0..6ca138a 100644 --- a/client/src/components/PostPreview.vue +++ b/client/src/components/PostPreview.vue @@ -2,7 +2,7 @@
-
+
- +