From dddcfdba621effc127b1500e57f0afc2ce3810ff Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Mon, 16 Feb 2015 09:44:43 -0500 Subject: [PATCH] Create table class --- _sass/_layout.scss | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/_sass/_layout.scss b/_sass/_layout.scss index ab412dd..5f63c38 100644 --- a/_sass/_layout.scss +++ b/_sass/_layout.scss @@ -382,7 +382,6 @@ span + .entry-title { } } // Table of Contents -// table of contents #markdown-toc { font-family: $alt-font; margin-top: $gutter; @@ -416,6 +415,41 @@ span + .entry-title { } } +// Tables +.table { + border-collapse: collapse; + margin: ((0px + $doc-line-height) / 2) 0; + margin: ((0rem + ($doc-line-height / $doc-font-size)) / 2) 0; + width: 100%; + tbody { + tr:hover > td, tr:hover > th { + background-color: $table-hover-color; + } + } + thead { + tr:first-child td { + border-bottom: 2px solid $table-border-color; + } + } + th { + padding: (0px + $doc-line-height) / 2; + padding: (0rem + ($doc-line-height / $doc-font-size)) / 2; + font-family: $alt-font; + font-weight: bold; + text-align: left; + background-color: $table-header-color; + border-bottom: 1px solid darken($border-color, 15%); + } + td { + border-bottom: 1px solid $border-color; + padding: (0px + $doc-line-height) / 2; + padding: (0rem + ($doc-line-height / $doc-font-size)) / 2; + @include font-size(18); + } + tr, td, th { + vertical-align: middle; + } +} // Footer // --------------------------------------------------