Browse Source

Change contrast of status links that are not mentions nor hashtags (#11406)

master
ThibG 5 years ago
committed by Eugen Rochko
parent
commit
10e78ecf57
2 changed files with 5 additions and 0 deletions
  1. +1
    -0
      app/javascript/mastodon/components/status_content.js
  2. +4
    -0
      app/javascript/styles/mastodon/components.scss

+ 1
- 0
app/javascript/mastodon/components/status_content.js View File

@ -55,6 +55,7 @@ export default class StatusContent extends React.PureComponent {
link.addEventListener('click', this.onHashtagClick.bind(this, link.text), false);
} else {
link.setAttribute('title', link.href);
link.classList.add('unhandled-link');
}
link.setAttribute('target', '_blank');

+ 4
- 0
app/javascript/styles/mastodon/components.scss View File

@ -753,6 +753,10 @@
}
}
a.unhandled-link {
color: lighten($ui-highlight-color, 8%);
}
.status__content__spoiler-link {
background: $action-button-color;

Loading…
Cancel
Save