Skip to content

Commit

Permalink
feat: Update link styles for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
tinykite committed Feb 7, 2024
1 parent 71ffbd0 commit ac4351a
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/components/cap-media-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,15 @@ export class CapMediaList extends LitElement {
}
}
.mediaList__link--light {
text-decoration: none;
&:hover {
--color-link-hover: var(--color-blue-500);
text-decoration: underline;
}
}
.mediaList__date {
color: var(--color-date);
}
Expand Down Expand Up @@ -91,7 +100,14 @@ export class CapMediaList extends LitElement {
"mediaList__item--bulleted": this.decoration === "bulleted",
})}
>
<a class="mediaList__link" href="${link.url}">${link.title}</a>
<a
class=${clsx(
"mediaList__link",
`mediaList__link--${this.theme}`,
)}
href="${link.url}"
>${link.title}</a
>
<span class="mediaList__publisher">${link.publisher}</span>
<span class="mediaList__date">${link.date}</span>
</li>
Expand Down

0 comments on commit ac4351a

Please sign in to comment.