Remove table support

Clashes with code line numbering
This commit is contained in:
Chester How 2017-03-16 11:22:39 +08:00
parent 7acb84080d
commit b1bda410f7
5 changed files with 8 additions and 62 deletions

View File

@ -82,42 +82,4 @@ Quisque consequat sapien eget quam rhoncus, sit amet laoreet diam tempus. Aliqua
![placeholder](http://placehold.it/400x200 "Medium example image")
![placeholder](http://placehold.it/200x200 "Small example image")
### Tables
Aenean lacinia bibendum nulla sed consectetur. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
<table>
<thead>
<tr>
<th>Name</th>
<th>Upvotes</th>
<th>Downvotes</th>
</tr>
</thead>
<tfoot>
<tr>
<td>Totals</td>
<td>21</td>
<td>23</td>
</tr>
</tfoot>
<tbody>
<tr>
<td>Alice</td>
<td>10</td>
<td>11</td>
</tr>
<tr>
<td>Bob</td>
<td>4</td>
<td>3</td>
</tr>
<tr>
<td>Charlie</td>
<td>7</td>
<td>9</td>
</tr>
</tbody>
</table>
Nullam id dolor id nibh ultricies vehicula ut id elit. Sed posuere consectetur est at lobortis. Nullam quis risus eget urna mollis ornare vel eu leo.

View File

@ -15,6 +15,10 @@ html {
font-size: $default-font-size;
}
body {
-webkit-text-size-adjust: 100%;
}
h1,
h2,
h3,
@ -51,26 +55,6 @@ img {
max-width: 100%;
}
table {
border: 1px solid $grey-2;
border-collapse: collapse;
font-size: 85%;
margin-bottom: 1rem;
width: 100%;
}
td,
th {
border: 1px solid $grey-2;
padding: .25rem .5rem;
td {
vertical-align: top;
}
th {
text-align: left;
}
tbody tr:nth-child(odd) td,
tbody tr:nth-child(odd) th {
background-color: $grey-3;
}

View File

@ -8,7 +8,7 @@
&-time {
color: $default-tint;
font-family: $sans-font;
font-weight: 500;
font-weight: 700;
letter-spacing: .5px;
}

View File

@ -10,7 +10,7 @@ $serif-font: 'Libre Baskerville', 'Times New Roman', Times, serif;
$sans-font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
$default-font-size: 16px;
$monospaced-font: Menlo, Monaco, 'Courier New', monospace;
$monospaced-font: Menlo, Monaco, monospace;
$code-color: #bf616a;
@mixin box-sizing($type: border-box) {

View File

@ -9,7 +9,7 @@ title: Home
<time class="post-time" datetime="{{ post.date }}">{{ post.date | date_to_string | upcase }}</time>
<h1 class="post-title"><a href="{{ post.url | prepend: site.url }}">{{ post.title }}</a></h1>
{{ post.content | truncatewords: 70 }}
{{ post.content | truncatewords: 50 }}
</div>
{% endfor %}