aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-09-05 14:31:34 +0200
committerMario Vavti <mario@mariovavti.com>2018-09-05 14:31:34 +0200
commit4f82428a207d426a5cace7c3749655b391e6c156 (patch)
tree3f2ea82936dca6e1cca1296225673d0ba6bd3900
parente494a76b33baae47aee671951cc4459a3f225c86 (diff)
downloadvolse-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.css3
-rwxr-xr-xview/tpl/cover_photo_widget.tpl3
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>