Skip to content

Commit 5bc8c94

Browse files
authored
Merge pull request #7249 from nextcloud/guest-flex
Guest flex instead of absolute
2 parents 7fdc4b5 + a936aea commit 5bc8c94

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

core/css/guest.css

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
/* Default and reset */
66
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, dialog, figure, footer, header, hgroup, nav, section { margin:0; padding:0; border:0; outline:0; font-weight:inherit; font-size:100%; font-family:inherit; vertical-align:baseline; cursor:default; }
7-
html, body { height:100%; }
7+
html { height:100%; }
88
article, aside, dialog, figure, footer, header, hgroup, nav, section { display:block; }
99
body { line-height:1.5; }
1010
table { border-collapse:separate; border-spacing:0; white-space:nowrap; }
@@ -28,7 +28,8 @@ body {
2828
background-repeat: no-repeat;
2929
background-size: cover;
3030
background-attachment: fixed; /* fix background gradient */
31-
height: 100%; /* fix sticky footer */
31+
min-height: 100%; /* fix sticky footer */
32+
height: auto;
3233
}
3334

3435
/* Various fonts settings */
@@ -60,6 +61,13 @@ h3 {
6061
}
6162

6263
/* Global content */
64+
body {
65+
display: flex;
66+
flex-direction: column;
67+
justify-content: center;
68+
align-items: center;
69+
}
70+
6371
#header .logo {
6472
background-image: url('../img/logo.svg?v=1');
6573
background-repeat: no-repeat;
@@ -77,15 +85,8 @@ h3 {
7785
max-height: 200px;
7886
}
7987
.wrapper {
80-
min-height: 100%;
81-
margin: 0 auto -70px;
8288
width: 300px;
83-
}
84-
.v-align {
85-
position: absolute;
86-
top: 50%;
87-
left: 50%;
88-
transform: translate(-50%, -50%);
89+
margin-top: 10%;
8990
}
9091

9192
/* Default FORM */
@@ -723,6 +724,7 @@ img.icon-loading-small-dark, object.icon-loading-small-dark, video.icon-loading-
723724
footer,
724725
.push {
725726
height: 70px;
727+
margin-top: auto;
726728
}
727729

728730
footer .info a {

0 commit comments

Comments
 (0)