Skip to content

Commit 74b6b6b

Browse files
committed
Sticky footer
1 parent 230d5ea commit 74b6b6b

1 file changed

Lines changed: 13 additions & 12 deletions

File tree

_layouts/default.html

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,26 @@
1313
<![endif]-->
1414
</head>
1515
<body style="margin: 0px; padding: 0px">
16-
17-
<!-- header box -->
18-
<div style="width: 100%; height: 40px; background-color: #fafbfc; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #e1e4e8;">
19-
<div style="max-width: 1024px; margin: auto; position: relative; top: 50%; -webkit-transform: translateY(-50%); -ms-transform: translateY(-50%); transform: translateY(-50%);">
20-
<h3><a href="https://github.com/Microsoft/web-build-tools/wiki">web-build-tools</a> API reference</h3>
16+
<!-- content for sticky-footer -->
17+
<div style="min-height: calc(100vh - 70px);">
18+
<!-- header box -->
19+
<div style="width: 100%; height: 40px; background-color: #fafbfc; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #e1e4e8;">
20+
<div style="max-width: 1024px; margin: auto; position: relative; top: 50%; -webkit-transform: translateY(-50%); -ms-transform: translateY(-50%); transform: translateY(-50%);">
21+
<h3><a href="https://github.com/Microsoft/web-build-tools/wiki">web-build-tools</a> API reference</h3>
22+
</div>
2123
</div>
22-
</div>
2324

24-
<!-- page body -->
25-
<div style="max-width: 1024px; margin: auto; padding-top: 50px; padding-bottom: 50px">
26-
{{ content }}
25+
<!-- page body -->
26+
<div style="max-width: 1024px; margin: auto; padding-top: 50px; padding-bottom: 50px">
27+
{{ content }}
28+
</div>
2729
</div>
2830

29-
<!-- page footer -->
30-
<div style="max-width: 1024px; margin: auto;">
31+
<!-- sticky-footer -->
32+
<div style="max-width: 1024px; margin: auto; height: 50px;">
3133
<i>Copyright © Microsoft Corporation. All rights reserved.</i>
3234
</div>
3335

34-
3536
<script src="{{ '/assets/js/scale.fix.js' | relative_url }}"></script>
3637

3738
{% if site.google_analytics %}

0 commit comments

Comments
 (0)