Skip to content

Commit d270e95

Browse files
committed
add margins and fix of the footer layout
1 parent f6479e4 commit d270e95

2 files changed

Lines changed: 17 additions & 14 deletions

File tree

apps/commons/static/commons/css/base.scss

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,18 @@ body {
3030
.content-page {
3131
max-width: 59rem;
3232
min-height: calc(100vh - #{$navbar-height} - #{$footer-height} + 1px);
33-
padding: 2rem 0rem 5rem 0rem;
33+
padding: 2rem 1.2rem 5rem 1.2rem;
3434

3535
@include from($custom-mobile) {
3636
& > .box {
3737
padding: 2rem;
3838
}
3939
}
4040

41+
@include from($desktop){
42+
padding: 2rem 0rem 5rem 0rem;
43+
}
44+
4145
&.is-wide {
4246
max-width: 80rem;
4347
}
@@ -46,10 +50,13 @@ body {
4650
max-width: 47rem;
4751
}
4852
}
49-
53+
/
54+
5055
.footer-page {
5156
background-color: $footer-bg;
5257
position: relative;
58+
margin-top: 2em;
59+
padding: 1.5em 1.5em 2.2em 1.5em;
5360

5461
a {
5562
color: $footer-fg;
@@ -62,22 +69,14 @@ body {
6269
.footer-column {
6370
color: #ebebeb;
6471
padding-top: 2rem;
65-
padding-bottom: 0.5rem;
66-
67-
@include from($desktop) {
68-
padding-top: 2rem;
69-
padding-bottom: 3rem;
70-
}
72+
7173
}
7274

7375
h1,
7476
h2 {
7577
color: whitesmoke;
7678
}
7779

78-
i {
79-
padding-right: 0.2rem;
80-
}
8180
}
8281

8382
/* Error class for Django Forms https://bit.ly/3vidyK2 */

apps/commons/templates/footer.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% load utils %}
2-
<footer class="footer-page has-text-centered" style="margin-top: 4em;">
2+
<footer class="footer-page has-text-centered">
33
<a class="footer-button" id="scrollToTopBtn" href=""
44
><img
55
class="footer__button--image"
@@ -8,7 +8,7 @@
88
titile="scroll button up"
99
/></a>
1010
<div class="columns">
11-
<div class="column has-text-weight-light">
11+
<div class="column has-text-weight-light is-one-third-desktop">
1212
<div class="footer-column">
1313
<h2 class="subtitle"><i class="fas fa-award"></i> Créditos</h2>
1414
<ul class="footer-column-items">
@@ -23,7 +23,11 @@ <h2 class="subtitle"><i class="fas fa-award"></i> Créditos</h2>
2323
<div class="footer-column">
2424
<h2 class="subtitle"><i class="fas fa-copyright"></i> {{ organization.name }}</h2>
2525
<ul class="footer-column-items">
26-
<li>{{ organization.full_address }}</li>
26+
<li>{{ organization.address }}</li>
27+
{% if organization.rest_address %}
28+
<li>{{ organization.rest_address }}</li>
29+
{% endif %}
30+
<li>{{ organization.postal_code }}, {{ organization.city }}</li>
2731
<li><a href="mailto:{{ organization.email }}">{{ organization.email }}</a></li>
2832
<li><a href="{% url 'about:index' %}">Sobre la asociación</a></li>
2933
</ul>

0 commit comments

Comments
 (0)