Permalink
Browse files

add quick style for tables in articles

  • Loading branch information...
ryanpitts committed Mar 22, 2013
1 parent e1f5da3 commit 34da0705ca0b0de38290f5f9ef5f08399ab90b92
Showing with 39 additions and 1 deletion.
  1. +39 −1 source/base/static/base/css/app.css
@@ -207,13 +207,47 @@ article .article-block {
overflow: hidden;
}
-h1, h2, h3, h5, h6, ul, ol, .caption, label {
+h1, h2, h3, h5, h6, ul, ol, .caption, label, table {
font-family: 'Open Sans', Helvetica, sans-serif;
font-weight: 400;
text-align: left;
color: #2e2e2d;
}
+table {
+ font-size: 15px;
+ max-width: 100%;
+ border-collapse: collapse;
+ border-spacing: 0;
+ background-color: transparent;
+ width: 100%;
+ margin-bottom: 18px;
+}
+
+table th,
+table td {
+ padding: 8px;
+ line-height: 18px;
+ text-align: left;
+ vertical-align: top;
+ border-top: 1px solid #dddddd;
+}
+
+table thead th {
+ font-weight: bold;
+ vertical-align: bottom;
+}
+
+table thead:first-child tr:first-child th,
+table thead:first-child tr:first-child td {
+ border-top: 0;
+}
+
+tbody tr:nth-child(odd) td,
+tbody tr:nth-child(odd) th {
+ background-color: #f9f9f9;
+}
+
h1, h2 {
font-weight: 300;
text-transform: uppercase;
@@ -1109,6 +1143,10 @@ a.promo p {
line-height: 1.8em;
}
+ article table {
+ font-size: 12px;
+ }
+
p.tagline {
font-size: 1em;
margin-bottom: 0;

0 comments on commit 34da070

Please sign in to comment.