Some front end fixes.

This commit is contained in:
Dessalines 2020-08-01 19:14:54 -04:00
parent 0fccb22cd7
commit 7938e8f5c8
3 changed files with 8 additions and 4 deletions

View File

@ -1,7 +1,7 @@
### Install build requirements ### Install build requirements
#### Ubuntu #### Ubuntu
``` ```
sudo apt install git cargo libssl-dev pkg-config libpq-dev yarn curl gnupg2 sudo apt install git cargo libssl-dev pkg-config libpq-dev yarn curl gnupg2 espeak
# install yarn # install yarn
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list

View File

@ -87,6 +87,10 @@
line-height: 1.0; line-height: 1.0;
} }
.post-title a:visited {
color: var(--gray) !important;
}
.icon { .icon {
display: inline-flex; display: inline-flex;
width: 1em; width: 1em;

View File

@ -315,7 +315,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
<h5 className="mb-1 d-inline-block"> <h5 className="mb-1 d-inline-block">
{this.props.showBody && post.url ? ( {this.props.showBody && post.url ? (
<a <a
className="text-body" className={!post.stickied ? 'text-body' : 'text-primary'}
href={post.url} href={post.url}
target="_blank" target="_blank"
title={post.url} title={post.url}
@ -325,7 +325,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
</a> </a>
) : ( ) : (
<Link <Link
className="text-body" className={!post.stickied ? 'text-body' : 'text-primary'}
to={`/post/${post.id}`} to={`/post/${post.id}`}
title={i18n.t('comments')} title={i18n.t('comments')}
> >
@ -419,7 +419,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
className="unselectable pointer ml-2 text-muted font-italic" className="unselectable pointer ml-2 text-muted font-italic"
data-tippy-content={i18n.t('stickied')} data-tippy-content={i18n.t('stickied')}
> >
<svg class={`icon icon-inline text-success`}> <svg class={`icon icon-inline text-primary`}>
<use xlinkHref="#icon-pin"></use> <use xlinkHref="#icon-pin"></use>
</svg> </svg>
</small> </small>