Skip to content

Commit

Permalink
Make table layout a little better
Browse files Browse the repository at this point in the history
  • Loading branch information
floogulinc committed Apr 3, 2018
1 parent abaf278 commit 4a751e0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
8 changes: 6 additions & 2 deletions css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ $main-nav-color: $bg-blue;
.container {
width: auto;
max-width: 1020px;
padding-left: 20px;
padding-right: 20px;
padding-left: 15px;
padding-right: 15px;
}

.markdown-body {
Expand Down Expand Up @@ -267,6 +267,10 @@ table {
width: 100%;
}

.time-cell, .seminar-cell {
white-space:nowrap;
}

@media print {
.sidebar, .pagination, .search, .edit-button, .masthead-nav {
display: none !important;
Expand Down
4 changes: 2 additions & 2 deletions seminars.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<table>
<thead>
<tr>
<th>Seminar</th>
<th class="seminar-cell">Seminar</th>
<th>Author</th>
<th>Title</th>
<th>Slides</th>
Expand All @@ -27,7 +27,7 @@
{% assign sorted_papers = sem.papers | where_exp:"item", "item.break != true" | sort: 'time' %}
{% for paper in sorted_papers %}
<tr>
<td class="seminar-title"><a href="{{ pageurl }}">{{ sem.title }}</a></td>
<td class="seminar-title seminar-cell"><a href="{{ pageurl }}">{{ sem.title }}</a></td>
<td class="author">{{ paper.author }}</td>
<td class="title"><div class="paper-title">{% if paper.pdf %}<a href="{{ pageurl }}{{ paper.pdf }}">{% endif %}{{ paper.title }}{% if paper.pdf %}</a>{% endif %}</div>
{% if paper.tags %}
Expand Down
4 changes: 2 additions & 2 deletions tags.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h2>{{ tag }}</h2>
<table>
<thead>
<tr>
<th>Seminar</th>
<th class="seminar-cell">Seminar</th>
<th>Author</th>
<th>Title</th>
<th>Slides</th>
Expand All @@ -35,7 +35,7 @@ <h2>{{ tag }}</h2>
{% assign sorted_papers = sem.papers | where_exp:"item", "item.break != true"| where_exp:"item", "item.tags contains tag" | sort: 'time' %}
{% for paper in sorted_papers %}
<tr>
<td class="seminar-title"><a href="{{ pageurl }}">{{ sem.title }}</a></td>
<td class="seminar-title seminar-cell"><a href="{{ pageurl }}">{{ sem.title }}</a></td>
<td class="author">{{ paper.author }}</td>
<td class="title"><div class="paper-title">{% if paper.pdf %}<a href="{{ pageurl }}{{ paper.pdf }}">{% endif %}{{ paper.title }}{% if paper.pdf %}</a>{% endif %}</div>
<div class="paper-tag">
Expand Down

0 comments on commit 4a751e0

Please sign in to comment.