Skip to content

Commit e9538aa

Browse files
committed
updated talk thumbnails
1 parent 13641f5 commit e9538aa

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

makeabilitylab/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
ALLOWED_HOSTS = ['*']
7171

7272
# Makeability Lab Global Variables
73-
ML_WEBSITE_VERSION = "1.3 (fixed navbar, added v3 ML logo)"
73+
ML_WEBSITE_VERSION = "1.3.1 (fixed navbar, added v3 ML logo, added rounded corners to talk thumbnails)"
7474
DATE_MAKEABILITYLAB_FORMED = datetime.date(2012, 1, 1) # Date Makeability Lab was formed
7575
MAX_BANNERS = 7 # Maximum number of banners on a page
7676

website/static/website/css/index.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
.talk-text {
5959
margin-bottom: 20px;
6060
vertical-align: top;
61+
margin-top: 5px;
6162
/*width:80%;*/
6263
/*text-align: center;*/
6364
}

website/templates/snippets/display_talk_snippet.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77
<div class="col-ts-12 col-xs-6 col-sm-4 col-lg-3 talk-column" style="margin-bottom:20px">
88
<div style="width: 100%; height: 300px; contain: content;">
99
<div class="talk2-thumbnail"> {# Add in style="border:thin; border-color:lightgrey; border-style: solid;" for a border #}
10-
{# TODO: I don't get this thumbnail stuff; need to talk to Lee about it #}
10+
{# TODO: Update to use .css rather than inline styles #}
1111
<a href="../../media/{{ talk.pdf_file }}" target="_blank">
1212
<div style="background: white; width:100%; height: 180px; contain: content;">
13-
<img style="border: 1px solid #dddddd; width:100%; height: auto; position: relative;top: 50%; left: 50%;transform: translate(-50%,-50%);object-fit: cover" src="{% thumbnail talk.thumbnail 420x0 detail %}" class="talk2-thumbnail-image img-responsive">
13+
<img style="border: 1px solid #dddddd; border-radius: 5%; width:100%; height: auto; position: relative;top: 50%; left: 50%;transform: translate(-50%,-50%);object-fit: cover"
14+
src="{% thumbnail talk.thumbnail 420x0 detail %}" class="talk2-thumbnail-image img-responsive">
1415
</div>
1516
</a>
1617
</div>

0 commit comments

Comments
 (0)