From fe197bd7b4c279e5b8f04271bf3e66c46e52a673 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sat, 1 Oct 2022 10:39:52 +0200 Subject: [PATCH] change quick render to card --- assets/css/app.scss | 15 +++------ templates/page/post/_quick_post.html.twig | 40 ++++++++++++----------- 2 files changed, 26 insertions(+), 29 deletions(-) diff --git a/assets/css/app.scss b/assets/css/app.scss index fcd6af9..6d00628 100644 --- a/assets/css/app.scss +++ b/assets/css/app.scss @@ -642,7 +642,7 @@ pre[class*="language-"] { height: 450px; background-position: center center; background: #f2f2f2 url('../images/quick-post-load.png') no-repeat center center; - border: 2px solid $color-very-light-grey; + // border: 2px solid $color-very-light-grey; border-bottom: 0; cursor: pointer; border-top-left-radius: 5px; @@ -652,10 +652,10 @@ pre[class*="language-"] { &-video { .video-ratio { - border: 2px solid $color-very-light-grey; - border-bottom: 0; - border-top-left-radius: 5px; - border-top-right-radius: 5px; + // border: 2px solid $color-very-light-grey; + // border-bottom: 0; + // border-top-left-radius: 5px; + // border-top-right-radius: 5px; iframe { border-top-left-radius: 5px; @@ -669,11 +669,6 @@ pre[class*="language-"] { } &-body { - padding: 10px 10px 0 10px; - border: 2px solid $color-very-light-grey; - margin-top: -7px; - border-bottom-left-radius: 5px; - border-bottom-right-radius: 5px; word-break: break-all; } } diff --git a/templates/page/post/_quick_post.html.twig b/templates/page/post/_quick_post.html.twig index 3bbf0b1..e306a88 100644 --- a/templates/page/post/_quick_post.html.twig +++ b/templates/page/post/_quick_post.html.twig @@ -25,27 +25,29 @@ {%- endset -%} {% if isVideo %} -
-
-
- +
+
+
+
+ +
+
+ +
+

+ + {{- title -}} + +

+ +

+ {{ url }} +

+ + {{- content|raw -}} + {{- more|raw -}}
- -
-

- - {{- title -}} - -

- -

- {{ url }} -

- - {{- content|raw -}} - {{- more|raw -}} -
{% elseif not image %}