Skip to content

Commit b964094

Browse files
authored
Merge pull request #46784 from nextcloud/fix/public-footer
2 parents 5639d99 + 7c15bb1 commit b964094

File tree

7 files changed

+46
-23
lines changed

7 files changed

+46
-23
lines changed

apps/theming/lib/ThemingDefaults.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public function getShortFooter() {
158158
}
159159
}
160160
if ($legalLinks !== '') {
161-
$footer .= '<br/>' . $legalLinks;
161+
$footer .= '<br/><span class="footer__legal-links">' . $legalLinks . '</span>';
162162
}
163163

164164
return $footer;

core/css/public.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/css/public.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/css/public.scss

Lines changed: 40 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,18 @@
22
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
33
* SPDX-License-Identifier: AGPL-3.0-or-later
44
*/
5-
$footer-height: 65px;
6-
75
#body-public {
6+
--footer-height: calc(var(--default-line-height) + 2 * var(--default-grid-baseline));;
7+
8+
&:has(.footer__legal-links),
9+
&:has(.footer__simple-sign-up) {
10+
--footer-height: calc(2 * var(--default-line-height) + 3 * var(--default-grid-baseline));;
11+
}
12+
13+
&:has(.footer__legal-links):has(.footer__simple-sign-up) {
14+
--footer-height: calc(3 * var(--default-line-height) + 3 * var(--default-grid-baseline));
15+
}
16+
817
.header-right {
918

1019
#header-primary-action a {
@@ -41,9 +50,11 @@ $footer-height: 65px;
4150
}
4251

4352
#content {
44-
// 100% - footer
45-
min-height: calc(100% - #{$footer-height});
53+
min-height: var(--body-height, calc(100% - var(--footer-height)));
54+
}
4655

56+
#app-content-vue {
57+
padding-block-end: var(--footer-height);
4758
}
4859

4960
/** don't apply content header padding on the base layout */
@@ -68,27 +79,39 @@ $footer-height: 65px;
6879
/* public footer */
6980
footer {
7081
position: fixed;
82+
bottom: var(--body-container-margin);;
83+
background-color: var(--color-main-background);
84+
border-radius: var(--body-container-radius);
85+
box-sizing: border-box;
86+
7187
display: flex;
88+
flex-direction: column;
7289
align-items: center;
7390
justify-content: center;
74-
height: $footer-height;
75-
flex-direction: column;
76-
bottom: 0;
77-
width: calc(100% - 16px);
78-
margin: 8px;
79-
background-color: var(--color-main-background);
80-
border-radius: var(--border-radius-large);
91+
92+
height: var(--footer-height);
93+
width: calc(100% - 2 * var(--body-container-margin));
94+
margin-inline: var(--body-container-margin);
95+
padding-block: var(--default-grid-baseline);
96+
97+
.footer__legal-links {
98+
margin-block-end: var(--default-grid-baseline);
99+
}
100+
81101
p {
82102
text-align: center;
83-
color: var(--color-text-lighter);
103+
color: var(--color-text-maxcontrast);
104+
margin-block: 0 var(--default-grid-baseline);
105+
width: 100%;
106+
84107
a {
85-
color: var(--color-text-lighter);
108+
display: inline-block;
109+
font-size: var(--default-font-size);
86110
font-weight: bold;
111+
line-height: var(--default-line-height);
112+
height: var(--default-line-height);
113+
color: var(--color-text-maxcontrast);
87114
white-space: nowrap;
88-
/* increasing clickability to more than the text height */
89-
padding: 10px;
90-
margin: -10px;
91-
line-height: 200%;
92115
}
93116
}
94117
}

core/css/server.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)