Skip to content

Commit 8a59981

Browse files
committed
Now uses tachyons
1 parent 93871f3 commit 8a59981

File tree

3 files changed

+11
-29
lines changed

3 files changed

+11
-29
lines changed

src/styles/app.scss

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -140,34 +140,12 @@ a.brand {
140140
}
141141
}
142142

143-
table.post-list {
144-
border-collapse: collapse;
145-
width: 100%;
146-
}
147-
table.post-list .post-entry {
148-
font-size: 150%;
149-
}
150-
table.post-list td {
151-
border: none;
152-
padding: 10px 0;
153-
}
154-
table.post-list .post-year {
155-
font-size: 2em;
156-
}
157-
table.post-list .post-link a {
143+
table.post-list a {
158144
text-decoration: none;
159145
}
160-
table.post-list .post-link a:hover {
146+
table.post-list a:hover {
161147
text-decoration: underline;
162148
}
163-
table.post-list .post-date {
164-
opacity: 0.6;
165-
padding-right: 30px;
166-
text-align: right;
167-
}
168-
table.post-list .post-year h3 {
169-
margin: 2rem 0 0 0;
170-
}
171149

172150
.publish-date-author {
173151
color: $gray;

templates/index.hbs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,15 @@
1010
<section id="posts" class="purple">
1111
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
1212

13-
<table class="post-list">
13+
<table class="post-list collapse w-100 f2-l f2-m f3-s">
1414
{{#each posts}}
15-
{{#if show_year}}<tr class="post-year"><td></td><td class="year"><h3>{{year}}</h3></td></tr>{{/if}}
16-
<tr class="post-entry">
17-
<td class="post-date">{{month_name month}} {{day}}</td><td class="post-link"><a href="{{url}}">{{title}}</a></td>
15+
{{#if show_year}}<tr>
16+
<td class="bn"></td>
17+
<td class="bn"><h3 class="f0-l f1-m f2-s mt4 mb0">{{year}}</h3></td>
18+
</tr>{{/if}}
19+
<tr>
20+
<td class="tr o-60 pr4 pr5-l bn">{{month_name month}}&nbsp;{{day}}</td>
21+
<td class="bn"><a href="{{url}}">{{title}}</a></td>
1822
</tr>
1923
{{/each}}
2024
</table>

templates/post.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div class="highlight"></div>
77
</header>
88

9-
<div class="publish-date-author">{{month_name post.month}} {{post.day}}, {{post.year}} {{post.author}}</div>
9+
<div class="publish-date-author">{{month_name post.month}} {{post.day}}, {{post.year}} &middot; {{post.author}}</div>
1010

1111
<div class="post">
1212
{{{ post.contents }}}

0 commit comments

Comments
 (0)