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; fill: currentColor;
} }
.table-collapse { border-collapse: collapse }
@import "components/listing"; @import "components/listing";
@import "components/post"; @import "components/post";
@import "components/talk/slides"; @import "components/talk/slides";
@import "components/talk/video"; @import "components/talk/video";
@import "components/talks-table";
@import "components/testimonial"; @import "components/testimonial";
@tailwind utilities; @tailwind utilities;

View file

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

View file

@ -1,5 +1,5 @@
<div class="overflow-auto"> <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> <thead>
<tr> <tr>
<th class="w-1/4 p-2 text-left bg-white">Date</th> <th class="w-1/4 p-2 text-left bg-white">Date</th>