summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-08-03 19:21:10 +0200
committerJulius Härtl <jus@bitgrid.net>2018-08-03 19:21:10 +0200
commitb4ea19c98149a19399934f9226b9db57d811e861 (patch)
treefd2a52511d6326a04d9460c5bb4924e5aba3095a
parent2d3e5c817cb4142d32a6c923055cbed9d85a1bc4 (diff)
downloadnextcloud-server-b4ea19c98149a19399934f9226b9db57d811e861.tar.gz
nextcloud-server-b4ea19c98149a19399934f9226b9db57d811e861.zip
Fix base layout content padding
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r--core/css/public.scss5
-rw-r--r--core/templates/layout.base.php2
2 files changed, 6 insertions, 1 deletions
diff --git a/core/css/public.scss b/core/css/public.scss
index 19b90064229..0c04b07ab09 100644
--- a/core/css/public.scss
+++ b/core/css/public.scss
@@ -40,6 +40,11 @@
min-height: calc(100vh - 160px);
}
+ /** don't apply content header padding on the base layout */
+ &.layout-base #content {
+ padding-top: 0;
+ }
+
/* force layout to make sure the content element's height matches its contents' height */
.ie #content {
display: inline-block;
diff --git a/core/templates/layout.base.php b/core/templates/layout.base.php
index d38bd114c3e..bad504c97cc 100644
--- a/core/templates/layout.base.php
+++ b/core/templates/layout.base.php
@@ -16,7 +16,7 @@
<?php emit_script_loading_tags($_); ?>
<?php print_unescaped($_['headers']); ?>
</head>
- <body id="body-public">
+ <body id="body-public" class="layout-base">
<?php include 'layout.noscript.warning.php'; ?>
<div id="content" class="app-public" role="main">
<?php print_unescaped($_['content']); ?>