Adjust table styling

This commit is contained in:
Oliver Davies 2017-11-21 22:02:24 +00:00
parent e726d674b0
commit e6639cd1f6
4 changed files with 8 additions and 10 deletions

View file

@ -1,3 +0,0 @@
.talks-table tr:nth-child(odd) {
@apply .bg-grey-lighter;
}

View file

@ -62,11 +62,12 @@ svg {
fill: currentColor;
}
.table-collapse { border-collapse: collapse }
@import "components/listing";
@import "components/post";
@import "components/talk/slides";
@import "components/talk/video";
@import "components/talks-table";
@import "components/testimonial";
@tailwind utilities;

View file

@ -1,5 +1,5 @@
<tr>
<td class="p-2">
<tr class="{{ loop.index is odd ? 'bg-grey-lightest' }}">
<td class="p-2 border-t">
{{ row.event.date|date(row.event.fuzzy_date ? 'F Y' : 'j F Y') }}
{% if row.event.time is defined %}
@ -10,7 +10,7 @@
</td>
{% if not talk_page %}
<td class="p-2">
<td class="p-2 border-t">
{% if row.talk.url is not empty %}
<a href="{{ row.talk.url }}">
{{ row.talk.title }}
@ -29,7 +29,7 @@
</td>
{% endif %}
<td class="p-2">
<td class="p-2 border-t">
{% if row.event.website is not empty %}
<a href="{{ row.event.website }}">
{{ row.event.name }}
@ -46,7 +46,7 @@
</td>
{% if not upcoming %}
<td class="p-2">
<td class="p-2 border-t">
{% if row.event.feedback and row.event.date <= today %}
<a href="{{ row.event.feedback }}"
class="button"

View file

@ -1,5 +1,5 @@
<div class="overflow-auto">
<table class="talks-table w-full border border-grey-light">
<table class="w-full table-collapse border border-grey-light">
<thead>
<tr>
<th class="w-1/4 p-2 text-left bg-white">Date</th>