Skip to content

Commit

Permalink
downloads: layout fixes (fix missing paragraph spacing)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhornig authored and avarga committed Dec 7, 2018
1 parent ad173cf commit c592508
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
16 changes: 8 additions & 8 deletions _includes/download-card.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="card">
<div class="card-content">
<div class="left"><span class="card-title">{{ item.title }}</span>
{% if item.date %}<time style=""><i class="far fa-calendar-alt"></i>&nbsp;{{item.date}}</time>&nbsp;&nbsp;{% endif %}
{% if item.date %}<time><i class="far fa-calendar-alt"></i>&nbsp;{{item.date}}</time>&nbsp;&nbsp;{% endif %}
</div>
<div class="right">
{% unless item.tabs %}
Expand All @@ -14,12 +14,12 @@
{% if item.content %} <div>{{ item.content | markdownify }}</div> {% endif %}
{% if item.more-url %}<a href="{{ item.more-url }}" class="waves-effect btn-small black-text grey lighten-2" style="margin-top: 4px;">Read more</a>{% endif %}
{% unless item.tabs %}
<p>
<div>
{% if item.filesize %}Size:&nbsp;{{item.filesize | divided_by: 1048576}}MB&nbsp;&nbsp;{% endif %}
{% if item.md5 %}MD5:&nbsp;{{item.md5}}&nbsp;&nbsp;{% endif %}
{% if item.sha1 %}SHA1:&nbsp;{{item.sha1}}&nbsp;&nbsp;{% endif %}
</p>
{% if item.ipfs %}<p><a class="black-text" style="text-decoration: underline;" href="https://docs.ipfs.io/introduction/install/" target="_blank">IPFS</a>: {{item.ipfs}}</p>{% endif %}
</div>
{% if item.ipfs %}<div><a class="black-text" style="text-decoration: underline;" href="https://docs.ipfs.io/introduction/install/" target="_blank">IPFS</a>: {{item.ipfs}}</div>{% endif %}
{% endunless %}
</div>
{% if item.tabs %}
Expand All @@ -44,13 +44,13 @@
{% if tab.download-url %}<a href="{{ tab.download-url }}" class="waves-effect waves-light green btn-small right" style="margin-left: 10px"><i class="material-icons right">file_download</i>Download</a>{% endif %}
{% if tab.torrent-url %}<a href="{{ tab.torrent-url }}" class="waves-effect blue-grey btn-small right" style="margin-left: 10px"><i class="material-icons right">cloud_download</i>Torrent</a>{% endif %}
{% if item.website-url %}<a href="{{ item.website-url }}" target="_blank" class="waves-effect blue-grey btn-small right" style="margin-left: 10px"><i class="material-icons right">language</i>Website</a>{% endif %}
<p>
<div>
{% if tab.filesize%}Size:&nbsp;{{tab.filesize | divided_by: 1048576}}MB&nbsp;&nbsp;{% endif %}
{% if tab.md5 %}MD5:&nbsp;{{tab.md5}}&nbsp;&nbsp;{% endif %}
{% if tab.sha1 %}SHA1:&nbsp;{{tab.sha1}}&nbsp;&nbsp;{% endif %}
</p>
{% if tab.ipfs %}<p><a class="black-text" style="text-decoration: underline;" href="https://docs.ipfs.io/introduction/install/" target="_blank">IPFS</a>: {{tab.ipfs}}</p>{% endif %}
{% if tab.description %}<p>{{tab.description}}</p>{% endif %}
</div>
{% if tab.ipfs %}<div><a class="black-text" style="text-decoration: underline;" href="https://docs.ipfs.io/introduction/install/" target="_blank">IPFS</a>: {{tab.ipfs}}</div>{% endif %}
{% if tab.description %}<div>{{tab.description}}</div>{% endif %}
<div style="clear: both"></div>
</div>
{% endfor %}
Expand Down
2 changes: 1 addition & 1 deletion _includes/download-item.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
{% endfor %}
</ul>
</div>
<div class="card-content" sytle="padding: ">
<div class="card-content">
{% for tab in item.tabs %}
<div id="{{item.id}}_{{tab.id}}">
{% if tab.download-url %}<a href="{{ tab.download-url }}" class="waves-effect waves-light green btn right" style="margin-left: 10px"><i class="material-icons right">file_download</i>Download</a>{% endif %}
Expand Down
5 changes: 3 additions & 2 deletions _sass/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@

/* card customization */
.download-cards .card .card-content { padding: 1rem; }
.download-cards .card .card-content p { margin: 0.5rem 0; }
.download-cards .card .card-content time { position: relative; top: -8px; }
.download-list .collapsible-body { padding: 1rem; }
.download-list .collapsible-item p { margin: 0; }
.download-list .collapsible-body { padding: 0.5rem 1rem; }
.download-list .collapsible-item p { margin: 0.5rem 0; }
.download-list .collapsible-item .card-content { padding: 1rem 0 0 0; }
.download-list .collapsible-item { background-color: color("grey", "lighten-3"); }
.download-list .collapsible-header { padding: 0.7rem; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
download: true
layout: download-details
title: OMNeT++ 3.2 and earlier releases
date: 2013-04-22
sortkey: "2013-04-22"
sortkey: "2007-10-10"
category: omnetpp
website-url: https://ipfs.omnetpp.org/release/old
---
Expand Down

0 comments on commit c592508

Please sign in to comment.