Skip to content

Commit 1eee555

Browse files
committed
Footer in bootstrap container (ultrawide).
1 parent fc2b2ea commit 1eee555

File tree

2 files changed

+38
-19
lines changed

2 files changed

+38
-19
lines changed

internal/webapi/public/css/vspd.css

+28-16
Original file line numberDiff line numberDiff line change
@@ -79,30 +79,42 @@ body {
7979
*/
8080

8181
.vsp-footer {
82-
display: flex;
83-
flex-direction: row;
84-
flex-wrap: wrap;
85-
margin: 0;
86-
font-size: 0.8rem;
87-
background-color: #091440;
88-
flex-shrink: 0;
82+
line-height: 1.2rem;
8983
font-size: 0.8rem;
84+
position: relative;
9085
background-color: #091440;
9186
color: #8997a5;
92-
width: 100%;
9387
}
9488

95-
.vsp-footer-left,
96-
.vsp-footer-right {
97-
display: flex;
98-
justify-content: center;
99-
align-items: center;
89+
.vsp-footer-bg-left,
90+
.vsp-footer-bg-right {
91+
position: absolute;
92+
height: 100%;
93+
}
94+
95+
.vsp-footer-bg-right {
96+
right: 0;
97+
bottom: 0;
98+
background-color: #202a52;
99+
}
100+
101+
@media (max-width: 768px) {
102+
.vsp-footer-bg-left,
103+
.vsp-footer-bg-right {
104+
height: 50%;
105+
}
106+
}
107+
108+
.vsp-footer-left {
109+
background-color: #091440;
100110
}
101111

102112
.vsp-footer-right {
103-
background-color: rgba(237,239,241,.1);
104-
text-align: right;
105-
color: #8997a5;
113+
background-color: #202a52;
114+
/* Top & bottom padding to ensure right is same height as left despite
115+
having one less line of text */
116+
padding-top: 0.6rem;
117+
padding-bottom: 0.6rem;
106118
}
107119

108120
/*

internal/webapi/templates/footer.html

+10-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@
22

33
</div> <!-- vsp-page-content -->
44

5-
<footer class="vsp-footer">
6-
<div class="vsp-footer-left col-md-8 col-12">
5+
<footer class="vsp-footer flex-md-row flex-row-reverse">
6+
<div class="vsp-footer-bg-left d-none d-sm-block col-md-6 col-12"></div>
7+
<div class="vsp-footer-bg-right d-none d-sm-block col-md-6 col-12"></div>
8+
9+
<div class="container d-flex flex-wrap px-0 px-sm-2 mx-0 mx-sm-auto">
10+
11+
<div class="vsp-footer-left col-md-8 col-12 justify-content-center justify-content-md-start px-0">
712
<p class="py-4 m-0">
813
<strong>Stats&nbsp;updated:</strong>&nbsp;{{ timeAgo .WebApiCache.UpdateTime }}
914
<br />
@@ -13,13 +18,15 @@
1318
</p>
1419
</div>
1520

16-
<div class="vsp-footer-right col-md-4 col-12 text-center text-md-right">
21+
<div class="vsp-footer-right col-md-4 col-12 justify-content-center justify-content-md-end text-center text-md-right px-0">
1722
<p class="py-4 m-0">
1823
Decred Developers | 2020-2024
1924
<br />
2025
The source code is available on <a href="https://github.com/decred/vspd" target="_blank" rel="noopener noreferrer">GitHub</a>
2126
</p>
2227
</div>
28+
29+
</div>
2330
</footer>
2431

2532
</body>

0 commit comments

Comments
 (0)