Skip to content

Commit 7e1c7ca

Browse files
committed
Improved footer to be mobile responsive
1 parent 6e8cac7 commit 7e1c7ca

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

duck/html/components/footer.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class FooterBlock(FlexContainer):
2727
"""
2828
def on_create(self):
2929
super().on_create()
30+
self.klass = "footer-block"
3031
self.style["flex-direction"] = "column"
3132

3233
if "heading" in self.kwargs:
@@ -60,7 +61,8 @@ def on_create(self):
6061
self.style["flex-wrap"] = "wrap"
6162

6263
if "footer_items" in self.kwargs:
63-
for heading, elements in self.kwargs.get('footer_items', {}).items():
64+
items = self.kwargs.get('footer_items', {}).items()
65+
for heading, elements in items:
6466
footer_block = FooterBlock(heading=heading, elements=elements)
6567
self.add_child(footer_block)
6668

@@ -129,7 +131,11 @@ def on_create(self):
129131
font-size: .8rem !important;
130132
}
131133
132-
footer proudly-duck-logo {
134+
footer .footer-block {
135+
width: 100%;
136+
}
137+
138+
footer #proudly-duck-logo {
133139
width: 25px;
134140
height: 25px;
135141
margin-top: 5px;

0 commit comments

Comments
 (0)