Fixing incorrect footer position when toggling sidebar drawer

This commit is contained in:
Dita Aji Pratama 2024-09-26 19:40:57 +07:00
parent 5bf856ec23
commit 9f0ba0da22
2 changed files with 5 additions and 8 deletions

View File

@ -1,3 +1,3 @@
<footer class="footer" id="footer">
<footer class="footer fixed-bottom" id="footer">
<p>${copyright}</p>
</footer>

View File

@ -26,7 +26,7 @@ body {
.content {
margin-left: 250px;
padding: 20px;
padding-bottom: 20px;
transition: margin-left 0.3s ease-in-out;
}
@ -35,18 +35,15 @@ body {
}
.footer {
position: fixed;
bottom: 0;
width: calc(100% - 250px);
margin-left: 250px;
background-color: #f8f9fa;
padding: 10px;
padding-top: 5px;
text-align: center;
margin-left: 250px;
transition: margin-left 0.3s ease-in-out;
z-index: 1010;
}
.footer.full-width {
width: 100%;
margin-left: 0;
}