|
21 | 21 | {#each data.posts as post}
|
22 | 22 | {#if !post.metadata.draft}
|
23 | 23 | <article class="post" data-pubdate={post.date}>
|
24 |
| - <a class="no-underline" href="/{post.slug}" title="Read the article »"> |
| 24 | + <a href="/{post.slug}" title="Read the article »"> |
25 | 25 | <h2>{post.metadata.title}</h2>
|
26 | 26 | <p>{post.metadata.description}</p>
|
27 | 27 | </a>
|
|
42 | 42 |
|
43 | 43 | h2 {
|
44 | 44 | display: inline-block;
|
45 |
| - margin: 3.2rem 0 0.4rem 0; |
| 45 | + /* margin: 3.2rem 0 0.4rem 0; */ |
46 | 46 | color: var(--sk-text-2);
|
47 | 47 | max-width: 18em;
|
48 | 48 | font-size: var(--sk-text-m);
|
49 | 49 | font-weight: 400;
|
50 | 50 | }
|
51 | 51 |
|
52 |
| - .post:first-child { |
53 |
| - margin: 0 0 2rem 0; |
54 |
| - padding: 0 0 4rem 0; |
55 |
| - border-bottom: var(--sk-thick-border-width) solid #6767785b; /* based on --second */ |
56 |
| - } |
| 52 | + .post { |
| 53 | + margin: 2em 0; |
57 | 54 |
|
58 |
| - .post:first-child h2 { |
59 |
| - font-size: 4rem; |
60 |
| - font-weight: 400; |
61 |
| - color: var(--sk-text-2); |
| 55 | + &:first-child { |
| 56 | + margin: 0 0 2rem 0; |
| 57 | + padding: 0 0 4rem 0; |
| 58 | +
|
| 59 | + h2 { |
| 60 | + font-size: 4rem; |
| 61 | + font-weight: 400; |
| 62 | + color: var(--sk-text-2); |
| 63 | + } |
| 64 | + } |
| 65 | +
|
| 66 | + a { |
| 67 | + display: block; |
| 68 | + text-decoration: none; |
| 69 | +
|
| 70 | + &:hover h2 { |
| 71 | + text-decoration: underline; |
| 72 | + } |
| 73 | + } |
| 74 | +
|
| 75 | + p { |
| 76 | + font-size: var(--sk-text-s); |
| 77 | + max-width: 30em; |
| 78 | + color: var(--sk-text-3); |
| 79 | + margin: 0; |
| 80 | + } |
62 | 81 | }
|
63 | 82 |
|
64 | 83 | .post:where(:first-child, :nth-child(2))::before {
|
65 | 84 | content: 'Latest post • ' attr(data-pubdate);
|
66 |
| - color: var(--sk-theme-3); |
67 |
| - font-family: var(--sk-font-heading); |
| 85 | + color: var(--sk-text-4); |
| 86 | + font-family: var(--sk-font-ui); |
68 | 87 | font-size: var(--sk-text-xs);
|
69 | 88 | font-weight: 400;
|
70 |
| - letter-spacing: 0.05em; |
71 | 89 | text-transform: uppercase;
|
72 | 90 | }
|
73 | 91 |
|
74 | 92 | .post:nth-child(2)::before {
|
75 | 93 | content: 'Older posts';
|
76 | 94 | }
|
77 | 95 |
|
78 |
| - .post p { |
79 |
| - font-size: var(--sk-text-s); |
80 |
| - max-width: 30em; |
81 |
| - color: var(--sk-text-3); |
82 |
| - } |
83 |
| -
|
84 |
| - .post > a { |
85 |
| - display: block; |
86 |
| - } |
87 |
| -
|
88 |
| - .posts a:hover, |
| 96 | + /* .posts a:hover, |
89 | 97 | .posts a:hover > h2 {
|
90 | 98 | color: var(--sk-theme-3);
|
91 |
| - } |
| 99 | + } */ |
92 | 100 | </style>
|
0 commit comments