Skip to content
This repository was archived by the owner on Nov 2, 2023. It is now read-only.

Add pre-release table styling from minima #161

Merged
merged 1 commit into from
Oct 1, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions _sass/_tables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/* Pilfered from https://github.com/jekyll/minima/pull/144
* Once a new version of minima is released, this (an the include in `main.scss`
* can probably be deleted.
*/
$table-text-align: left !default;


table {
margin-bottom: $spacing-unit;
width: 100%;
text-align: $table-text-align;
color: lighten($text-color, 18%);
border-collapse: collapse;
border: 1px solid $grey-color-light;
tr {
&:nth-child(even) {
background-color: lighten($grey-color-light, 6%);
}
}
th, td {
padding: ($spacing-unit / 3) ($spacing-unit / 2);
}
th {
background-color: lighten($grey-color-light, 3%);
border: 1px solid darken($grey-color-light, 4%);
border-bottom-color: darken($grey-color-light, 12%);
}
td {
border: 1px solid $grey-color-light;
}
}
1 change: 1 addition & 0 deletions assets/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// Import partials from the `minima` theme.
@import "minima";
@import "minima/syntax-highlighting";
@import "tables";

// Import navigation partial for Software page
@import "intra-navigation";
Expand Down