Fix footer and public min-height
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
f014d31551
commit
5e867d6415
|
@ -1,3 +1,5 @@
|
||||||
|
$footer-height: 60px;
|
||||||
|
|
||||||
#body-public {
|
#body-public {
|
||||||
.header-right {
|
.header-right {
|
||||||
|
|
||||||
|
@ -36,8 +38,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
#content {
|
#content {
|
||||||
height: initial;
|
// 100% - footer
|
||||||
min-height: calc(100vh - 160px);
|
min-height: calc(100% - #{$footer-height});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** don't apply content header padding on the base layout */
|
/** don't apply content header padding on the base layout */
|
||||||
|
@ -64,4 +67,22 @@
|
||||||
form input[type='checkbox']+label {
|
form input[type='checkbox']+label {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* public footer */
|
||||||
|
footer {
|
||||||
|
position: relative;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
height: $footer-height;
|
||||||
|
p {
|
||||||
|
color: var(--color-text-lighter);
|
||||||
|
a {
|
||||||
|
color: var(--color-text-lighter);
|
||||||
|
font-weight: 600;
|
||||||
|
padding: 13px;
|
||||||
|
margin: -13px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1049,25 +1049,6 @@ div.crumb {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* public footer */
|
|
||||||
|
|
||||||
#body-public footer {
|
|
||||||
position: relative;
|
|
||||||
text-align: center;
|
|
||||||
.info {
|
|
||||||
color: var(--color-text-lighter);
|
|
||||||
text-align: center;
|
|
||||||
margin: 0 auto;
|
|
||||||
padding: 20px 0;
|
|
||||||
a {
|
|
||||||
color: var(--color-text-lighter);
|
|
||||||
font-weight: 600;
|
|
||||||
padding: 13px;
|
|
||||||
margin: -13px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* LEGACY FIX only - do not use fieldsets for settings */
|
/* LEGACY FIX only - do not use fieldsets for settings */
|
||||||
|
|
||||||
fieldset {
|
fieldset {
|
||||||
|
|
|
@ -78,7 +78,7 @@
|
||||||
</div>
|
</div>
|
||||||
<?php if(isset($template) && $template->getFooterVisible()) { ?>
|
<?php if(isset($template) && $template->getFooterVisible()) { ?>
|
||||||
<footer>
|
<footer>
|
||||||
<p class="info"><?php print_unescaped($theme->getLongFooter()); ?></p>
|
<p><?php print_unescaped($theme->getLongFooter()); ?></p>
|
||||||
</footer>
|
</footer>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue