Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix footer in safari, arrange sponsors #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions ilpycon/templates/homepage_sponsors.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,21 @@ <h2>{% trans "Sponsors" %}</h2>
{% sponsors sponsor_level.name as level_sponsors %}
{% if level_sponsors %}
<div class="row">
<div class="col-3 sponsor-name">
<div class="col-lg-3 sponsor-name">
<h3>{{ sponsor_level.name }}</h3>
</div>
<div class="col-9 sp-logos">

{% sponsors sponsor_level.name as level_sponsors %}
{% for sponsor in level_sponsors %}
<div class="sp-logo">
<div class="col-lg-3 sp-logo">
<a href="{{ sponsor.external_url }}" title="{{ sponsor.name }}">
{% thumbnail sponsor.website_logo '300x300' as icon %} {# Set size according to level? #}
<img src="{{ icon|data_uri }}" alt="{{ sponsor.name }}">
</a>
</div>
{% endfor %}
</div>
</div>
{% endif %}

</div>
{% endif %}
{% endfor %}
</div>

2 changes: 1 addition & 1 deletion static/src/scss/apps/_eldan.scss
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ footer {
background-repeat: no-repeat;
width: 142px;
height: 200px;
background-position-x: right 20px;
background-position-x: right;
}

}
Expand Down
25 changes: 19 additions & 6 deletions static/src/scss/apps/_sponsors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,28 @@
margin: 0.5em auto;
padding: 0.3em 0;
}
.row { margin-top: 2em; }
.row {
margin-top: 1em;
border-bottom: 1px solid gray;
padding: 10px;
}

.sponsor-name {
text-align: right;
text-align: left;
padding: 20px 70px;
h3 {
color: gray;
}
}
.sp-logos {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-evenly;
}
img { max-height: 100px; }
.sp-logo {
text-align: center;
img {
max-height: 100px;
max-width: 240px;
padding: 10px;
}
}
}