Skip to content

Commit

Permalink
Added css rules for GFM tables
Browse files Browse the repository at this point in the history
  • Loading branch information
k5e committed Aug 7, 2014
1 parent 497b2d6 commit e233ad8
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 3 deletions.
30 changes: 29 additions & 1 deletion themes/clean.css
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,34 @@ img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }
table { border-collapse: collapse; border-spacing: 0; }
td { vertical-align: top; }

table {
width:100%;
border-collapse:collapse;
border:solid #dddddd;
border-width:1px 1px 2px 1px;
margin:1em 0;
-webkit-border-radius:3px;
-moz-border-radius:3px;
border-radius:3px;
-moz-background-clip:padding;
-webkit-background-clip:padding-box;
background-clip:padding-box
}

table th,
table td {
border:solid #dddddd;border-width:1px;padding:10px;vertical-align:top}

table th>*:first-child,
table td>*:first-child {
margin-top:0}

table th>*:first-child,
table td>*:first-child {
margin-bottom:0}

table th {font-weight:bold;color:#325d72;background-color:#eee}

@media print {
* { background: transparent !important; color: black !important; filter:none !important; -ms-filter: none !important; }
body{font-size:12pt; max-width:100%;}
Expand All @@ -97,4 +125,4 @@ td { vertical-align: top; }
@page :right { margin: 15mm 10mm 15mm 20mm; }
p, h2, h3 { orphans: 3; widows: 3; }
h2, h3 { page-break-after: avoid; }
}
}
30 changes: 29 additions & 1 deletion themes/dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,34 @@ img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }
table { border-collapse: collapse; border-spacing: 0; }
td { vertical-align: top; }

table {
width:100%;
border-collapse:collapse;
border:solid #dddddd;
border-width:1px 1px 2px 1px;
margin:1em 0;
-webkit-border-radius:3px;
-moz-border-radius:3px;
border-radius:3px;
-moz-background-clip:padding;
-webkit-background-clip:padding-box;
background-clip:padding-box
}

table th,
table td {
border:solid #dddddd;border-width:1px;padding:10px;vertical-align:top}

table th>*:first-child,
table td>*:first-child {
margin-top:0}

table th>*:first-child,
table td>*:first-child {
margin-bottom:0}

table th {font-weight:bold;color:#c8d4dc;background-color:#555}

@media print {
* { background: transparent !important; color: black !important; filter:none !important; -ms-filter: none !important; }
body{font-size:12pt; max-width:100%;}
Expand All @@ -97,4 +125,4 @@ td { vertical-align: top; }
@page :right { margin: 15mm 10mm 15mm 20mm; }
p, h2, h3 { orphans: 3; widows: 3; }
h2, h3 { page-break-after: avoid; }
}
}
30 changes: 29 additions & 1 deletion themes/serif.css
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,34 @@ img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }
table { border-collapse: collapse; border-spacing: 0; }
td { vertical-align: top; }

table {
width:100%;
border-collapse:collapse;
border:solid #dddddd;
border-width:1px 1px 2px 1px;
margin:1em 0;
-webkit-border-radius:3px;
-moz-border-radius:3px;
border-radius:3px;
-moz-background-clip:padding;
-webkit-background-clip:padding-box;
background-clip:padding-box
}

table th,
table td {
border:solid #dddddd;border-width:1px;padding:10px;vertical-align:top}

table th>*:first-child,
table td>*:first-child {
margin-top:0}

table th>*:first-child,
table td>*:first-child {
margin-bottom:0}

table th {font-weight:bold;color:#325d72;background-color:#eee}

@media only screen and (min-width: 480px) {
body{font-size:14px;}
}
Expand All @@ -99,4 +127,4 @@ body{font-size:16px;}
@page :right { margin: 15mm 10mm 15mm 20mm; }
p, h2, h3 { orphans: 3; widows: 3; }
h2, h3 { page-break-after: avoid; }
}
}

0 comments on commit e233ad8

Please sign in to comment.