Skip to content

Commit

Permalink
Fix footer (#1095)
Browse files Browse the repository at this point in the history
  • Loading branch information
s04v committed Mar 21, 2024
1 parent 70fbd80 commit 930a233
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 7 deletions.
Expand Up @@ -238,8 +238,8 @@
</div>
</div>

<div class="container-fluid body-content">
<div ui-view></div>
<div class="container-fluid body-content body-content-custom">
<div class="ui-view-content" ui-view></div>
<hr />
<footer>
<p class="pull-left">&copy; @DateTime.Now.Year - SimplCommerce</p>
Expand Down
17 changes: 15 additions & 2 deletions src/Modules/SimplCommerce.Module.Core/wwwroot/admin/admin-core.css
@@ -1,5 +1,7 @@
body {
height: auto;
height: 100%;
display:flex;
flex-direction: column;
}

.inline {
Expand Down Expand Up @@ -208,4 +210,15 @@ td>span.glyphicon-remove {
.btn-translate {
margin-right: 3px;
}


.body-content-custom {
width: 100% !important;
margin: 0 !important;
flex: 1;
display: flex;
flex-direction:column;
}

.ui-view-content {
flex: 1;
}
11 changes: 11 additions & 0 deletions src/Modules/SimplCommerce.Module.Core/wwwroot/site.css
@@ -1,4 +1,14 @@
/* Set widths on the form inputs since otherwise they're 100% wide */
html {
height: 100%;
}

body {
height: 100%;
display: flex;
flex-direction: column;
}

input,
select,
textarea {
Expand Down Expand Up @@ -143,6 +153,7 @@ li.nav-item-group, li.nav-item-group a {
}

.footer-content {
padding-top: 20px;
margin-top: 30px;
background-color: #eee;
}
Expand Down
Expand Up @@ -117,7 +117,7 @@

@RenderSection("featured", false)

<div class="container body-content clearfix">
<div class="container body-content clearfix flex-grow-1">
@RenderBody()
</div>
<!-- Footer -->
Expand Down
Expand Up @@ -60,7 +60,7 @@
</div>
</div>
</div>
<div class="container body-content">
<div class="container body-content flex-grow-1">
@RenderBody()
</div>
<div class="footer-content">
Expand Down
2 changes: 1 addition & 1 deletion src/SimplCommerce.WebHost/Views/Shared/_Layout.cshtml
Expand Up @@ -54,7 +54,7 @@
</div>
</div>
<partial name="_CookieConsentPartial" />
<div class="container body-content clearfix">
<div class="container body-content clearfix flex-grow-1">
@RenderBody()
</div>
<div class="footer-content">
Expand Down

0 comments on commit 930a233

Please sign in to comment.