[CSS] Fixed footer element from being hidden behind other divs.
This commit is contained in:
parent
6e8c9c49c9
commit
7863bcc4d0
@ -1,13 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* -- RESET --
|
* -- RESET --
|
||||||
*/
|
*/
|
||||||
|
|
||||||
body * {
|
|
||||||
-webkit-box-sizing: border-box;
|
|
||||||
-moz-box-sizing: border-box;
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, body, html, p, blockquote, fieldset, input, textarea {
|
ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, body, html, p, blockquote, fieldset, input, textarea {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
* {
|
* {
|
||||||
-webkit-box-sizing: border-box;
|
-webkit-box-sizing: border-box !important;
|
||||||
-moz-box-sizing: border-box;
|
-moz-box-sizing: border-box !important;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, body, html, p, blockquote, fieldset, input, textarea {
|
ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, body, html, p, blockquote, fieldset, input, textarea {
|
||||||
@ -36,8 +36,10 @@ form {
|
|||||||
* Most of these are inherited from Base, but I want to change a few.
|
* Most of these are inherited from Base, but I want to change a few.
|
||||||
*/
|
*/
|
||||||
body, html {
|
body, html {
|
||||||
|
scroll-behavior: smooth;
|
||||||
-webkit-font-smoothing: subpixel-antialiased;
|
-webkit-font-smoothing: subpixel-antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
height: 100vh;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
font-family: "Open Sans", sans-serif;
|
font-family: "Open Sans", sans-serif;
|
||||||
color: #221E22;
|
color: #221E22;
|
||||||
@ -111,21 +113,41 @@ header * {
|
|||||||
height: 3rem !important;
|
height: 3rem !important;
|
||||||
width: 3rem !important;
|
width: 3rem !important;
|
||||||
}
|
}
|
||||||
@media screen and (max-height: 1090px) {
|
}
|
||||||
|
|
||||||
|
@media screen and (max-height: 800px) {
|
||||||
.content,
|
.content,
|
||||||
.ribbon-wrapper,
|
.ribbon-wrapper,
|
||||||
.content-team {
|
.content-team {
|
||||||
|
top: 0 !important;
|
||||||
|
padding: 1rem !important;
|
||||||
|
}
|
||||||
|
.content-head {
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
.content {
|
||||||
position: relative !important;
|
position: relative !important;
|
||||||
}
|
}
|
||||||
|
.g {
|
||||||
|
position: sticky !important;
|
||||||
|
max-height: min-content !important;
|
||||||
|
padding: unset;
|
||||||
|
}
|
||||||
|
.l-box {
|
||||||
|
margin: unset;
|
||||||
|
padding: 5px !important;
|
||||||
|
}
|
||||||
|
.l-box > * {
|
||||||
|
margin: unset;
|
||||||
|
padding: unset;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* -- BODY --
|
* -- BODY --
|
||||||
*/
|
*/
|
||||||
.body-wrapper {
|
.body-wrapper {
|
||||||
top: 4rem;
|
margin-top: 4rem;
|
||||||
}
|
}
|
||||||
.body-wrapper a {
|
.body-wrapper a {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
@ -181,11 +203,11 @@ header * {
|
|||||||
}
|
}
|
||||||
.content .g .l-box {
|
.content .g .l-box {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
text-align: justify-all;
|
min-width: 10rem;
|
||||||
padding-inline-end: 2rem;
|
margin-right: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content + * {
|
.content ~ * {
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 4rem;
|
top: 4rem;
|
||||||
|
@ -126,13 +126,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="footer l-box is-center">
|
|
||||||
This site's source is <a href="https://code.undefinedhackers.net/GNUsocial/gnusocial.rocks">hosted here</a>.
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
<footer class="footer l-box is-center">
|
||||||
|
This site's source is <a href="https://code.undefinedhackers.net/GNUsocial/gnusocial.rocks">hosted here</a>.
|
||||||
|
</footer>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user