Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(UI): Fix some link hover colors #1598

Merged
merged 1 commit into from
Jun 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
margin-top: -6.5px;
}

.post-title a:visited {
.post-title a:visited:not(:hover) {
color: var(--bs-gray) !important;
}

Expand Down
14 changes: 7 additions & 7 deletions src/shared/components/post/post-listing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
const post_view = this.postView;
return (
<span className="small">
<PersonListing person={post_view.creator} />
<PersonListing person={post_view.creator} muted={true} />
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This got in here by accident, though I am planning on exploring this.

{this.creatorIsMod_ && (
<span className="mx-1 badge text-bg-light">
{I18NextService.i18n.t("mod")}
Expand Down Expand Up @@ -444,8 +444,8 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
<Link
className={`d-inline ${
!post.featured_community && !post.featured_local
? "text-body"
: "text-primary"
? "link-dark"
: "link-primary"
}`}
to={`/post/${post.id}`}
title={I18NextService.i18n.t("comments")}
Expand All @@ -470,8 +470,8 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
<a
className={
!post.featured_community && !post.featured_local
? "text-body"
: "text-primary"
? "link-dark"
: "link-primary"
}
href={url}
title={url}
Expand Down Expand Up @@ -554,10 +554,10 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
const url = post.url;

return (
<p className="d-flex text-muted align-items-center gap-1 small m-0">
<p className="small m-0">
{url && !(hostname(url) === getExternalHost()) && (
<a
className="text-muted fst-italic"
className="fst-italic link-dark link-opacity-75 link-opacity-100-hover"
href={url}
title={url}
rel={relTags}
Expand Down