Skip to content

Commit d3ae47f

Browse files
committed
fix styles
1 parent c976cb3 commit d3ae47f

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

src/components/ContinueReading.astro

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
</div>
2121

2222
<div class="continue-section" id="continue-section" style="display: none;">
23+
<span class="continue-label">Continue with</span>
2324
<a class="continue-link" id="continue-link" href="/">
24-
<span>Continue with </span>
2525
<span class="continue-title" id="continue-title"></span>
2626
<span class="continue-arrow" aria-hidden="true">&rarr;</span>
2727
</a>
@@ -94,7 +94,7 @@
9494
const firstIncomplete = lessons.find(({ slug }) => !progress[slug]);
9595
if (firstIncomplete) {
9696
const href = firstIncomplete.link.getAttribute('href') || '';
97-
const label = firstIncomplete.link.textContent?.trim() || '';
97+
const label = firstIncomplete.link.querySelector('span')?.textContent?.trim() || '';
9898

9999
const continueSection = document.getElementById('continue-section');
100100
const continueLink = document.getElementById('continue-link') as HTMLAnchorElement | null;
@@ -162,11 +162,19 @@
162162
border-top: 1px solid var(--sl-color-hairline);
163163
}
164164

165+
.continue-label {
166+
display: block;
167+
font-size: var(--sl-text-xs);
168+
color: var(--sl-color-gray-3);
169+
margin-bottom: 0.25rem;
170+
}
171+
165172
.continue-link {
166173
display: inline-flex;
167174
align-items: center;
168175
gap: 0.25rem;
169176
font-size: var(--sl-text-sm);
177+
font-weight: 600;
170178
color: var(--sl-color-text-accent);
171179
text-decoration: none;
172180
}
@@ -175,10 +183,6 @@
175183
text-decoration: underline;
176184
}
177185

178-
.continue-title {
179-
font-weight: 600;
180-
}
181-
182186
.continue-arrow {
183187
font-size: 1rem;
184188
}

0 commit comments

Comments
 (0)