Browse Source

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.
Christian Fehmer 10 years ago
parent
commit
3ead7d4eb5

+ 6 - 0
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; }
 

+ 6 - 0
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; }
 

+ 6 - 0
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; }
 

+ 6 - 0
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; }
 

+ 6 - 0
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; }
 

+ 6 - 0
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; }
 

+ 6 - 0
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; }
 

+ 6 - 0
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; }
 

+ 6 - 0
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; }
 

+ 6 - 0
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; }
 

+ 10 - 0
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;
 }

+ 6 - 0
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; }