From 3ead7d4eb573b7c9ef75dc00926ac63bad873e23 Mon Sep 17 00:00:00 2001 From: Christian Fehmer Date: Sat, 28 Feb 2015 19:15:14 +0100 Subject: [PATCH] Markdown table column alignment #1050 The alignment information were already in the generated html. The css was the only thing missing, so I added it. --- css/theme/beige.css | 6 ++++++ css/theme/black.css | 6 ++++++ css/theme/blood.css | 6 ++++++ css/theme/league.css | 6 ++++++ css/theme/moon.css | 6 ++++++ css/theme/night.css | 6 ++++++ css/theme/serif.css | 6 ++++++ css/theme/simple.css | 6 ++++++ css/theme/sky.css | 6 ++++++ css/theme/solarized.css | 6 ++++++ css/theme/template/theme.scss | 10 ++++++++++ css/theme/white.css | 6 ++++++ 12 files changed, 76 insertions(+) diff --git a/css/theme/beige.css b/css/theme/beige.css index 514427c..944dbd8 100644 --- a/css/theme/beige.css +++ b/css/theme/beige.css @@ -163,6 +163,12 @@ body { padding: 0.2em 0.5em 0.2em 0.5em; border-bottom: 1px solid; } +.reveal table th[align="center"], .reveal table td[align="center"] { + text-align: center; } + +.reveal table th[align="right"], .reveal table td[align="right"] { + text-align: right; } + .reveal table tr:last-child td { border-bottom: none; } diff --git a/css/theme/black.css b/css/theme/black.css index 7d3bee4..ee2ead8 100644 --- a/css/theme/black.css +++ b/css/theme/black.css @@ -159,6 +159,12 @@ body { padding: 0.2em 0.5em 0.2em 0.5em; border-bottom: 1px solid; } +.reveal table th[align="center"], .reveal table td[align="center"] { + text-align: center; } + +.reveal table th[align="right"], .reveal table td[align="right"] { + text-align: right; } + .reveal table tr:last-child td { border-bottom: none; } diff --git a/css/theme/blood.css b/css/theme/blood.css index 768d2a3..bf4de94 100644 --- a/css/theme/blood.css +++ b/css/theme/blood.css @@ -168,6 +168,12 @@ body { padding: 0.2em 0.5em 0.2em 0.5em; border-bottom: 1px solid; } +.reveal table th[align="center"], .reveal table td[align="center"] { + text-align: center; } + +.reveal table th[align="right"], .reveal table td[align="right"] { + text-align: right; } + .reveal table tr:last-child td { border-bottom: none; } diff --git a/css/theme/league.css b/css/theme/league.css index c6d07f6..41967d2 100644 --- a/css/theme/league.css +++ b/css/theme/league.css @@ -165,6 +165,12 @@ body { padding: 0.2em 0.5em 0.2em 0.5em; border-bottom: 1px solid; } +.reveal table th[align="center"], .reveal table td[align="center"] { + text-align: center; } + +.reveal table th[align="right"], .reveal table td[align="right"] { + text-align: right; } + .reveal table tr:last-child td { border-bottom: none; } diff --git a/css/theme/moon.css b/css/theme/moon.css index 4817c18..ac93638 100644 --- a/css/theme/moon.css +++ b/css/theme/moon.css @@ -163,6 +163,12 @@ body { padding: 0.2em 0.5em 0.2em 0.5em; border-bottom: 1px solid; } +.reveal table th[align="center"], .reveal table td[align="center"] { + text-align: center; } + +.reveal table th[align="right"], .reveal table td[align="right"] { + text-align: right; } + .reveal table tr:last-child td { border-bottom: none; } diff --git a/css/theme/night.css b/css/theme/night.css index 71319b2..6a5ed31 100644 --- a/css/theme/night.css +++ b/css/theme/night.css @@ -157,6 +157,12 @@ body { padding: 0.2em 0.5em 0.2em 0.5em; border-bottom: 1px solid; } +.reveal table th[align="center"], .reveal table td[align="center"] { + text-align: center; } + +.reveal table th[align="right"], .reveal table td[align="right"] { + text-align: right; } + .reveal table tr:last-child td { border-bottom: none; } diff --git a/css/theme/serif.css b/css/theme/serif.css index ed85db6..fc83e5d 100644 --- a/css/theme/serif.css +++ b/css/theme/serif.css @@ -159,6 +159,12 @@ body { padding: 0.2em 0.5em 0.2em 0.5em; border-bottom: 1px solid; } +.reveal table th[align="center"], .reveal table td[align="center"] { + text-align: center; } + +.reveal table th[align="right"], .reveal table td[align="right"] { + text-align: right; } + .reveal table tr:last-child td { border-bottom: none; } diff --git a/css/theme/simple.css b/css/theme/simple.css index d9153d7..ea08a27 100644 --- a/css/theme/simple.css +++ b/css/theme/simple.css @@ -159,6 +159,12 @@ body { padding: 0.2em 0.5em 0.2em 0.5em; border-bottom: 1px solid; } +.reveal table th[align="center"], .reveal table td[align="center"] { + text-align: center; } + +.reveal table th[align="right"], .reveal table td[align="right"] { + text-align: right; } + .reveal table tr:last-child td { border-bottom: none; } diff --git a/css/theme/sky.css b/css/theme/sky.css index f7e8402..83842c4 100644 --- a/css/theme/sky.css +++ b/css/theme/sky.css @@ -166,6 +166,12 @@ body { padding: 0.2em 0.5em 0.2em 0.5em; border-bottom: 1px solid; } +.reveal table th[align="center"], .reveal table td[align="center"] { + text-align: center; } + +.reveal table th[align="right"], .reveal table td[align="right"] { + text-align: right; } + .reveal table tr:last-child td { border-bottom: none; } diff --git a/css/theme/solarized.css b/css/theme/solarized.css index 583201a..649f7a9 100644 --- a/css/theme/solarized.css +++ b/css/theme/solarized.css @@ -163,6 +163,12 @@ body { padding: 0.2em 0.5em 0.2em 0.5em; border-bottom: 1px solid; } +.reveal table th[align="center"], .reveal table td[align="center"] { + text-align: center; } + +.reveal table th[align="right"], .reveal table td[align="right"] { + text-align: right; } + .reveal table tr:last-child td { border-bottom: none; } diff --git a/css/theme/template/theme.scss b/css/theme/template/theme.scss index d1be10a..5409826 100644 --- a/css/theme/template/theme.scss +++ b/css/theme/template/theme.scss @@ -199,6 +199,16 @@ body { border-bottom: 1px solid; } +.reveal table th[align="center"], +.reveal table td[align="center"] { + text-align: center; +} + +.reveal table th[align="right"], +.reveal table td[align="right"] { + text-align: right; +} + .reveal table tr:last-child td { border-bottom: none; } diff --git a/css/theme/white.css b/css/theme/white.css index 5fdb2fc..c77d5ab 100644 --- a/css/theme/white.css +++ b/css/theme/white.css @@ -159,6 +159,12 @@ body { padding: 0.2em 0.5em 0.2em 0.5em; border-bottom: 1px solid; } +.reveal table th[align="center"], .reveal table td[align="center"] { + text-align: center; } + +.reveal table th[align="right"], .reveal table td[align="right"] { + text-align: right; } + .reveal table tr:last-child td { border-bottom: none; }