Make more things clickable

This commit is contained in:
Oliver Davies 2019-03-25 23:24:31 +00:00
parent 801a049c6c
commit 032e427c3a
4 changed files with 19 additions and 8 deletions

View file

@ -1,7 +1,9 @@
<div class="spaced-y-2"> <div class="spaced-y-2">
<div class="spaced-y-2px"> <div class="spaced-y-2px">
<h2 class="text-inherit text-lg m-0"> <h2 class="text-inherit text-lg m-0">
{{ post.draft ? 'Draft: '|upper }}{{ post.title }} <a href="{{ post.url }}" class="text-inherit" tabindex="-1">
{{ post.draft ? 'Draft: '|upper }}{{ post.title }}
</a>
</h2> </h2>
{% if show_date %} {% if show_date %}

View file

@ -1,6 +1,8 @@
<article> <article>
<h3 class="text-lg text-black mb-1"> <h3 class="text-lg text-black mb-1">
{{ talk.title }} <a href="{{ talk.url }}" class="text-inherit" tabindex="-1">
{{ talk.title }}
</a>
</h3> </h3>
<div> <div>

View file

@ -28,7 +28,11 @@ episodes:
{% set podcast = page.podcasts[episode.podcast] %} {% set podcast = page.podcasts[episode.podcast] %}
<article> <article>
<h2 class="text-lg">{{ podcast.name }}: {{ episode.title }}</h2> <h2 class="text-lg">
<a href="{{ episode.url }}" class="text-inherit" tabindex="-1">
{{ podcast.name }}: {{ episode.title }}
</a>
</h2>
<time class="text-sm text-gray-800 block mt-px mb-2" datetime="{{ episode.date|date('Y-m-d') }}"> <time class="text-sm text-gray-800 block mt-px mb-2" datetime="{{ episode.date|date('Y-m-d') }}">
{{ episode.date|date('jS F Y') }} {{ episode.date|date('jS F Y') }}

View file

@ -4,6 +4,9 @@ let defaultTheme = require('tailwindcss/defaultTheme')
module.exports = { module.exports = {
theme: { theme: {
extend: { extend: {
colors: {
inherit: 'inherit',
},
fontFamily: { fontFamily: {
mono: ['Roboto Mono', ...defaultTheme.fontFamily.mono], mono: ['Roboto Mono', ...defaultTheme.fontFamily.mono],
}, },
@ -12,17 +15,17 @@ module.exports = {
}, },
borderWidth: { borderWidth: {
3: '3px', 3: '3px',
}, }
}, }
}, },
plugins: [ plugins: [
require('tailwindcss-spaced-items')({ values: defaultTheme.spacing }), require('tailwindcss-spaced-items')({ values: defaultTheme.spacing }),
require('tailwindcss-visuallyhidden')(), require('tailwindcss-visuallyhidden')(),
require('tailwindcss-skip-link')(), require('tailwindcss-skip-link')(),
require('tailwindcss-vuejs')(), require('tailwindcss-vuejs')()
], ],
variants: { variants: {
borderStyle: [...defaultConfig.variants.borderStyle, 'hover', 'focus'], borderStyle: [...defaultConfig.variants.borderStyle, 'hover', 'focus'],
borderWidth: [...defaultConfig.variants.borderStyle, 'hover', 'focus'], borderWidth: [...defaultConfig.variants.borderStyle, 'hover', 'focus']
}, }
} }