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/400x200 "Medium example image")
![placeholder](http://placehold.it/200x200 "Small 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. 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; font-size: $default-font-size;
} }
body {
-webkit-text-size-adjust: 100%;
}
h1, h1,
h2, h2,
h3, h3,
@ -51,26 +55,6 @@ img {
max-width: 100%; max-width: 100%;
} }
table { td {
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;
vertical-align: top; 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 { &-time {
color: $default-tint; color: $default-tint;
font-family: $sans-font; font-family: $sans-font;
font-weight: 500; font-weight: 700;
letter-spacing: .5px; 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; $sans-font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
$default-font-size: 16px; $default-font-size: 16px;
$monospaced-font: Menlo, Monaco, 'Courier New', monospace; $monospaced-font: Menlo, Monaco, monospace;
$code-color: #bf616a; $code-color: #bf616a;
@mixin box-sizing($type: border-box) { @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> <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> <h1 class="post-title"><a href="{{ post.url | prepend: site.url }}">{{ post.title }}</a></h1>
{{ post.content | truncatewords: 70 }} {{ post.content | truncatewords: 50 }}
</div> </div>
{% endfor %} {% endfor %}