]> cat aescling's git repositories - mastodon.git/commitdiff
Change contrast of status links that are not mentions nor hashtags (#11406)
authorThibG <thib@sitedethib.com>
Sun, 28 Jul 2019 04:00:51 +0000 (06:00 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 28 Jul 2019 04:00:51 +0000 (06:00 +0200)
app/javascript/mastodon/components/status_content.js
app/javascript/styles/mastodon/components.scss

index 8a05415afd40a7834f7a655dc2ce7f6cd0a649d3..871fab2dcfa736558772b5761b8d48989921c72f 100644 (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');
index dd6306fb2b282770b159e9d4cf1a605e19190327..293de45fe04dbc8f676b38e55ea49293c7f879e8 100644 (file)
     }
   }
 
+  a.unhandled-link {
+    color: lighten($ui-highlight-color, 8%);
+  }
+
   .status__content__spoiler-link {
     background: $action-button-color;