Skip to content

Commit 618d230

Browse files
committed
fix read more links
1 parent fd52d0a commit 618d230

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

docs/style.css

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,10 @@
246246
text-decoration: none;
247247
font-weight: 500;
248248
}
249+
/* Darker blue for prose links in light mode (leaves the nav/accent untouched). */
250+
[data-md-color-scheme="default"] .md-typeset a {
251+
color: #2e59cf;
252+
}
249253
/* Keep links bold when wrapped in **bold** (our 500 weight was overriding it). */
250254
.md-typeset strong a,
251255
.md-typeset a strong {
@@ -595,12 +599,20 @@ table {
595599
margin: 1.5rem 0;
596600
}
597601
.grid > div {
602+
position: relative;
598603
padding: var(--card-padding);
599604
border: 1px solid var(--pg-border);
600605
border-radius: var(--pg-radius-lg);
601606
background: var(--md-default-bg-color);
602607
transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease, transform var(--transition-speed) ease;
603608
}
609+
/* Make the whole card clickable: stretch the title link over the card. */
610+
.md-typeset .grid > div h4 a::after {
611+
content: "";
612+
position: absolute;
613+
inset: 0;
614+
z-index: 1;
615+
}
604616
.grid > div:hover {
605617
border-color: var(--pg-accent);
606618
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
@@ -615,15 +627,14 @@ table {
615627
margin: 0 0 0.5rem 0;
616628
font-size: 0.85rem;
617629
}
618-
.grid > div h4 a {
619-
color: var(--pg-accent);
630+
.md-typeset .grid > div h4 a {
620631
text-decoration: none;
621632
font-weight: 650;
622633
}
623634
.grid > div p {
624635
margin: 0;
625636
font-size: 0.78rem;
626-
color: var(--pg-muted);
637+
color: var(--pg-text);
627638
line-height: 1.55;
628639
}
629640

0 commit comments

Comments
 (0)