Skip to content

Commit 54f27cf

Browse files
fix: legal footer on public page
Signed-off-by: SebastianKrupinski <[email protected]>
1 parent f967134 commit 54f27cf

File tree

2 files changed

+29
-25
lines changed

2 files changed

+29
-25
lines changed

core/css/public.scss

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,10 @@
7070
/* public footer */
7171
footer {
7272
position: fixed;
73+
left: 50%;
7374
bottom: var(--body-container-margin);
74-
background-color: var(--color-main-background);
75+
transform: translateX(-50%);
76+
background-color: rgba( var(--color-main-background-rgb, 255,255,255), 0.85 );
7577
border-radius: var(--body-container-radius);
7678
box-sizing: border-box;
7779

@@ -80,9 +82,11 @@
8082
align-items: center;
8183
justify-content: center;
8284

83-
width: calc(100% - 2 * var(--body-container-margin));
84-
margin-inline: var(--body-container-margin);
85-
padding-block: var(--default-grid-baseline);
85+
width: auto;
86+
min-width: 0;
87+
max-width: 90vw;
88+
margin: 0;
89+
padding: var(--default-grid-baseline) 2em;
8690

8791
.footer__legal-links {
8892
margin-block-end: var(--default-grid-baseline);
@@ -92,16 +96,16 @@
9296
text-align: center;
9397
color: var(--color-text-maxcontrast);
9498
margin-block: 0 var(--default-grid-baseline);
95-
width: 100%;
99+
white-space: normal;
96100

97101
a {
98-
display: inline-block;
99-
font-size: var(--default-font-size);
100-
font-weight: bold;
101-
line-height: var(--default-line-height);
102-
height: var(--default-line-height);
103-
color: var(--color-text-maxcontrast);
104-
white-space: nowrap;
102+
display: inline-block;
103+
font-size: var(--default-font-size);
104+
font-weight: bold;
105+
line-height: var(--default-line-height);
106+
height: var(--default-line-height);
107+
color: var(--color-text-maxcontrast);
108+
white-space: nowrap;
105109
}
106110
}
107111
}

core/templates/layout.public.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -93,20 +93,20 @@
9393
<?php print_unescaped($_['content']); ?>
9494
</div>
9595

96-
<?php if (isset($template) && $template->getFooterVisible() && ($theme->getLongFooter() !== '' || $_['showSimpleSignUpLink'])) { ?>
96+
<?php if ((isset($template) && $template->getFooterVisible()) || $theme->getLongFooter() !== '' || $_['showSimpleSignUpLink']) { ?>
9797
<footer>
98-
<p><?php print_unescaped($theme->getLongFooter()); ?></p>
99-
<?php
100-
if ($_['showSimpleSignUpLink']) {
101-
?>
102-
<p class="footer__simple-sign-up">
103-
<a href="<?php p($_['signUpLink']); ?>" target="_blank" rel="noreferrer noopener">
104-
<?php p($l->t('Get your own free account')); ?>
105-
</a>
106-
</p>
107-
<?php
108-
}
109-
?>
98+
<?php if ($theme->getLongFooter() !== '') { ?>
99+
<p>
100+
<?php print_unescaped($theme->getLongFooter()); ?>
101+
</p>
102+
<?php } ?>
103+
<?php if ($_['showSimpleSignUpLink']) { ?>
104+
<p class="footer__simple-sign-up">
105+
<a href="<?php p($_['signUpLink']); ?>" target="_blank" rel="noreferrer noopener">
106+
<?php p($l->t('Get your own free account')); ?>
107+
</a>
108+
</p>
109+
<?php } ?>
110110
</footer>
111111
<?php } ?>
112112

0 commit comments

Comments
 (0)