From 12c81cc67691d655dd2f9d30e61a4da193214709 Mon Sep 17 00:00:00 2001 From: Jan-Erik Rediger Date: Tue, 14 Jul 2015 22:57:12 +0200 Subject: [PATCH] Nice table layout --- fnord.css | 18 ++++++++++++++++++ syntax.css | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/fnord.css b/fnord.css index bdebd59..f37347e 100644 --- a/fnord.css +++ b/fnord.css @@ -71,3 +71,21 @@ p code, li code { hr { border: 1px solid #f3f3f3; } +table { + border-collapse: collapse; + border-left: 7px solid #eaeaea; + background-color: #f3f3f3; +} +table th, table td { + padding: 7px 15px; +} +table thead { + text-align: left; +} + +table td:first-child { + width: 20%; +} +table thead tr, table tbody tr:nth-child(even) { + background-color: #eee; +} diff --git a/syntax.css b/syntax.css index da551ae..47ddb64 100644 --- a/syntax.css +++ b/syntax.css @@ -1,4 +1,4 @@ -div.highlight { overflow-x: auto; border: 1px solid silver; background-color: #ddd; } +div.highlight { overflow-x: auto; border: 1px solid silver; background-color: #ddd; margin-bottom: 10px; } div.highlight pre { margin: 0; } .highlight .hll { background-color: #ffffcc } .highlight { background: #f8f8f8; }