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

Commit 3bdac9a

Browse files
adamvosshandrews
authored andcommitted
Add pre-release table styling from minima
1 parent b17c75d commit 3bdac9a

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

_sass/_tables.scss

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/* Pilfered from https://github.com/jekyll/minima/pull/144
2+
* Once a new version of minima is released, this (an the include in `main.scss`
3+
* can probably be deleted.
4+
*/
5+
$table-text-align: left !default;
6+
7+
8+
table {
9+
margin-bottom: $spacing-unit;
10+
width: 100%;
11+
text-align: $table-text-align;
12+
color: lighten($text-color, 18%);
13+
border-collapse: collapse;
14+
border: 1px solid $grey-color-light;
15+
tr {
16+
&:nth-child(even) {
17+
background-color: lighten($grey-color-light, 6%);
18+
}
19+
}
20+
th, td {
21+
padding: ($spacing-unit / 3) ($spacing-unit / 2);
22+
}
23+
th {
24+
background-color: lighten($grey-color-light, 3%);
25+
border: 1px solid darken($grey-color-light, 4%);
26+
border-bottom-color: darken($grey-color-light, 12%);
27+
}
28+
td {
29+
border: 1px solid $grey-color-light;
30+
}
31+
}

assets/main.scss

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
// Import partials from the `minima` theme.
77
@import "minima";
88
@import "minima/syntax-highlighting";
9+
@import "tables";
910

1011
// Import navigation partial for Software page
1112
@import "intra-navigation";

0 commit comments

Comments
 (0)