]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Change contrast of status links that are not mentions nor hashtags
authorThibG <thib@sitedethib.com>
Sun, 28 Jul 2019 04:00:51 +0000 (06:00 +0200)
committerThibaut Girka <thib@sitedethib.com>
Sun, 28 Jul 2019 14:47:36 +0000 (16:47 +0200)
Port 10e78ecf57242cc5030b903131bf27e027bb4a97 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
app/javascript/flavours/glitch/components/status_content.js
app/javascript/flavours/glitch/styles/components/status.scss

index befbe340f972edcdc9e06890ee63b3163531b33d..602a2806471c21dcfada3c34b3a81d1af3d5861c 100644 (file)
@@ -51,6 +51,7 @@ export default class StatusContent extends React.PureComponent {
       } else {
         link.addEventListener('click', this.onLinkClick.bind(this), false);
         link.setAttribute('title', link.href);
+        link.classList.add('unhandled-link');
       }
 
       link.setAttribute('target', '_blank');
index ccc6da594c4175cad19ee0153402b12e6325c560..803494df64897f3a76595352f9940cbaff0c9ac8 100644 (file)
     }
   }
 
+  a.unhandled-link {
+    color: lighten($ui-highlight-color, 8%);
+  }
+
   .status__content__spoiler-link {
     background: lighten($ui-base-color, 30%);