From 1a12c37ecadc50b8062b220772957135195d51d2 Mon Sep 17 00:00:00 2001 From: chateau Date: Wed, 20 Mar 2019 00:42:53 +0100 Subject: [PATCH] scroll .content, not body (otherwise if a custom background image is set the background is also scrolling) --- portal/assets/css/ynh_portal.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/portal/assets/css/ynh_portal.css b/portal/assets/css/ynh_portal.css index b59b220..a271626 100644 --- a/portal/assets/css/ynh_portal.css +++ b/portal/assets/css/ynh_portal.css @@ -82,6 +82,9 @@ body { margin: 0; padding: 0; height: 100%; + top: 0; + position: absolute; + width: 100%; } h1:first-child, @@ -123,6 +126,12 @@ img { padding: 2%; } +.logged .content { + width: 100%; + height: 100%; + overflow: auto; /* scroll .content, not body for easier background customization */ +} + .ynh-wrapper { width: 90%; margin: 2% 5%;