From c1a5e9643589233e0e4e131f1b2808c40370cec9 Mon Sep 17 00:00:00 2001 From: Hendrik Leppelsack Date: Tue, 6 Oct 2015 16:17:25 +0200 Subject: [PATCH 1/4] fix scrollbars in public template --- apps/files_sharing/css/public.css | 5 +- apps/files_sharing/templates/public.php | 63 +++++++++++++------------ core/css/styles.css | 2 +- 3 files changed, 37 insertions(+), 33 deletions(-) diff --git a/apps/files_sharing/css/public.css b/apps/files_sharing/css/public.css index 2b7e84c987d..17356640aef 100644 --- a/apps/files_sharing/css/public.css +++ b/apps/files_sharing/css/public.css @@ -1,7 +1,10 @@ +#content { + height: initial; +} + #preview { background: #fff; text-align: center; - margin: 45px auto 0; min-height: 200px; } diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php index 06d797c3c6f..b5dd653d718 100644 --- a/apps/files_sharing/templates/public.php +++ b/apps/files_sharing/templates/public.php @@ -86,38 +86,39 @@ $thumbSize = 1024; - -
-
- - - - -
- -
+
+
+
+
+ + - -
+ +
+ +
+ + +
+ + + - - - +
- +
+

+ getLongFooter()); ?> +

+
-
-

- getLongFooter()); ?> -

-
diff --git a/core/css/styles.css b/core/css/styles.css index df533aab318..1384f6403e8 100644 --- a/core/css/styles.css +++ b/core/css/styles.css @@ -1164,7 +1164,7 @@ div.crumb:active { /* public footer */ #body-public footer { - margin-top: 65px; + position: relative; text-align: center; } From e7b2da79ecd17cba4dff7fa47b6d4ff71ba8c54e Mon Sep 17 00:00:00 2001 From: Hendrik Leppelsack Date: Tue, 6 Oct 2015 23:55:56 +0200 Subject: [PATCH 2/4] fix public empty message --- apps/files_sharing/css/public.css | 1 - core/css/styles.css | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/files_sharing/css/public.css b/apps/files_sharing/css/public.css index 17356640aef..95013e0a352 100644 --- a/apps/files_sharing/css/public.css +++ b/apps/files_sharing/css/public.css @@ -5,7 +5,6 @@ #preview { background: #fff; text-align: center; - min-height: 200px; } #preview .notCreatable { diff --git a/core/css/styles.css b/core/css/styles.css index 1384f6403e8..ee61fc86e31 100644 --- a/core/css/styles.css +++ b/core/css/styles.css @@ -425,9 +425,9 @@ input[type="submit"].enabled { .emptycontent { font-size: 16px; color: #888; - position: absolute; text-align: center; - top: 30%; + margin-top: 100px; /* ie8 */ + margin-top: 30vh; width: 100%; } #emptycontent h2, From e1286a4151c1ad2c2cbdbd16255a4eaa16254776 Mon Sep 17 00:00:00 2001 From: Hendrik Leppelsack Date: Wed, 7 Oct 2015 00:22:02 +0200 Subject: [PATCH 3/4] fix footer in public gallery --- core/css/styles.css | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/css/styles.css b/core/css/styles.css index ee61fc86e31..3d68a591522 100644 --- a/core/css/styles.css +++ b/core/css/styles.css @@ -404,8 +404,7 @@ input[type="submit"].enabled { width: 100%; } #content .hascontrols { - position: relative; - top: 45px; + margin-top: 45px; } #content-wrapper { position: absolute; From ccfd052e81545099fe7d3527c5f906a56e4f7542 Mon Sep 17 00:00:00 2001 From: Hendrik Leppelsack Date: Wed, 7 Oct 2015 12:33:58 +0200 Subject: [PATCH 4/4] move footer to bottom of public page --- apps/files_sharing/css/public.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/files_sharing/css/public.css b/apps/files_sharing/css/public.css index 95013e0a352..bd8e98e966d 100644 --- a/apps/files_sharing/css/public.css +++ b/apps/files_sharing/css/public.css @@ -1,5 +1,7 @@ #content { height: initial; + min-height: calc(100vh - 120px); + overflow: hidden; } #preview {