Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixing up a couple of home-page display issues

  • Loading branch information...
commit 8dd358a6798c62d9a7e6853cd8723fece74d76e7 1 parent c1c2e41
@rossbruniges rossbruniges authored
View
9 gameon/base/static/base/css/home.css
@@ -131,7 +131,7 @@ div[role=main] .big-picture .busta {
border-radius: 8px;
width: 31%;
margin-right: 2%;
- min-height: 300px;
+ min-height: 540px;
}
.entries li:nth-child(3n+1) {
clear: none;
@@ -154,6 +154,13 @@ div[role=main] .big-picture .busta {
.winners li a {
position: relative;
}
+.winners li a .hide {
+ position: absolute;
+ left: -9999em;
+ height: 1px;
+ overflow: hidden;
+ display: block;
+}
.winners .champ a {
position: static;
}
View
9 gameon/static_site/templates/static_site/closed.html
@@ -42,6 +42,9 @@ <h2 class="announce">{{ winners.best_hack.title }}</h2>
</a>
<p class="whimper">{{ winners.best_hack.description|truncate(300) }}</p>
+ {% if winners.best_device.description|count > 300 %}
+ <p class="whimper"><a href="{{ url('submissions.entry_single', slug=winners.best_hack.slug) }}">Read more <span class="hide">about {{ winners.best_hack.title }}</span></a></p>
+ {% endif %}
</li>
<li>
<a class="cf" href="{{ url('submissions.entry_single', slug=winners.best_device.slug) }}">
@@ -51,6 +54,9 @@ <h2 class="announce">{{ winners.best_device.title }}</h2>
{{ winners.best_device.get_award_badge()|safe }}
</a>
<p class="whimper">{{ winners.best_device.description|truncate(300) }}</p>
+ {% if winners.best_device.description|count > 300 %}
+ <p class="whimper"><a href="{{ url('submissions.entry_single', slug=winners.best_device.slug) }}">Read more <span class="hide">about {{ winners.best_device.title }}</span></a></p>
+ {% endif %}
</li>
<li>
<a class="cf" href="{{ url('submissions.entry_single', slug=winners.best_web.slug) }}">
@@ -60,6 +66,9 @@ <h2 class="announce">{{ winners.best_web.title }}</h2>
{{ winners.best_web.get_award_badge()|safe }}
</a>
<p class="whimper">{{ winners.best_web.description|truncate(300) }}</p>
+ {% if winners.best_device.description|count > 300 %}
+ <p class="whimper"><a href="{{ url('submissions.entry_single', slug=winners.best_web.slug) }}">Read more <span class="hide">about {{ winners.best_web.title }}</span></a></p>
+ {% endif %}
</li>
</ol>
<p><a href="{{ url('submissions.entry_list') }}" class="cta">See all entries</a></p>
Please sign in to comment.
Something went wrong with that request. Please try again.