From 4f82428a207d426a5cace7c3749655b391e6c156 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Wed, 5 Sep 2018 14:31:34 +0200 Subject: hide cover photo by default and show it only if conditions are met --- view/theme/redbasic/css/style.css | 3 ++- view/tpl/cover_photo_widget.tpl | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index 970e4bc89..0a879cb71 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -32,7 +32,8 @@ aside #region_1 { border-right: 1px solid transparent; } -aside #left_aside_wrapper { +aside #left_aside_wrapper, +aside #right_aside_wrapper { margin-bottom: 10px; } diff --git a/view/tpl/cover_photo_widget.tpl b/view/tpl/cover_photo_widget.tpl index ed708ffb5..2de3c74be 100755 --- a/view/tpl/cover_photo_widget.tpl +++ b/view/tpl/cover_photo_widget.tpl @@ -14,6 +14,7 @@ $(document).on('click mouseup keyup', slideUpCover); if($(window).width() > 755) { + $('#cover-photo').removeClass('d-none'); datasrc2src('#cover-photo > img'); if(hide_cover) { @@ -87,7 +88,7 @@ } -
+
{{$photo_html}}

{{$title}}

-- cgit v1.2.3