소스 검색

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 년 전
부모
커밋
3ead7d4eb5
12개의 변경된 파일76개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      css/theme/beige.css
  2. 6 0
      css/theme/black.css
  3. 6 0
      css/theme/blood.css
  4. 6 0
      css/theme/league.css
  5. 6 0
      css/theme/moon.css
  6. 6 0
      css/theme/night.css
  7. 6 0
      css/theme/serif.css
  8. 6 0
      css/theme/simple.css
  9. 6 0
      css/theme/sky.css
  10. 6 0
      css/theme/solarized.css
  11. 10 0
      css/theme/template/theme.scss
  12. 6 0
      css/theme/white.css

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