diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-09-05 14:31:34 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-09-05 14:31:34 +0200 |
commit | 4f82428a207d426a5cace7c3749655b391e6c156 (patch) | |
tree | 3f2ea82936dca6e1cca1296225673d0ba6bd3900 | |
parent | e494a76b33baae47aee671951cc4459a3f225c86 (diff) | |
download | volse-hubzilla-4f82428a207d426a5cace7c3749655b391e6c156.tar.gz volse-hubzilla-4f82428a207d426a5cace7c3749655b391e6c156.tar.bz2 volse-hubzilla-4f82428a207d426a5cace7c3749655b391e6c156.zip |
hide cover photo by default and show it only if conditions are met
-rw-r--r-- | view/theme/redbasic/css/style.css | 3 | ||||
-rwxr-xr-x | 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 @@ } </script> -<div id="cover-photo" title="{{$hovertitle}}"> +<div class="d-none" id="cover-photo" title="{{$hovertitle}}"> {{$photo_html}} <div id="cover-photo-caption"> <h1>{{$title}}</h1> |