Create table class

This commit is contained in:
Michael Rose 2015-02-16 09:44:43 -05:00
parent c794ee3174
commit dddcfdba62

View file

@ -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
// --------------------------------------------------