Skip to content

Commit

Permalink
Fix base layout content padding
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Aug 3, 2018
1 parent 2d3e5c8 commit b4ea19c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions core/css/public.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion core/templates/layout.base.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']); ?>
Expand Down

0 comments on commit b4ea19c

Please sign in to comment.