]> cat aescling's git repositories - mastodon.git/commitdiff
fix(style): Fix styles after classname refactor (#2368)
authorStephen Burgess <stephenburgess8@gmail.com>
Sun, 23 Apr 2017 19:34:33 +0000 (14:34 -0500)
committerEugen <eugen@zeonfederated.com>
Sun, 23 Apr 2017 19:34:33 +0000 (21:34 +0200)
Float detailed status display avatar left. Only apply display block to display names in status info, not in detailed status. Thanks to @nightpool for finding those. Make star icon in notification show up as gold. Add anchor selector back to status__content__spoiler-link in order to override default anchor style elsewhere.

app/assets/javascripts/components/features/status/components/detailed_status.jsx
app/assets/stylesheets/components.scss

index c2fa1a32585af69bf7038c86ef09585b8faa2a1e..8ab2143723d52119dbeb506e3ec8a45ad3df728f 100644 (file)
@@ -51,7 +51,7 @@ class DetailedStatus extends React.PureComponent {
     return (
       <div className='detailed-status'>
         <a href={status.getIn(['account', 'url'])} onClick={this.handleAccountClick} className='detailed-status__display-name'>
-          <div className='.detailed-status__display-avatar'><Avatar src={status.getIn(['account', 'avatar'])} staticSrc={status.getIn(['account', 'avatar_static'])} size={48} /></div>
+          <div className='detailed-status__display-avatar'><Avatar src={status.getIn(['account', 'avatar'])} staticSrc={status.getIn(['account', 'avatar_static'])} size={48} /></div>
           <DisplayName account={status.get('account')} />
         </a>
 
index a7d1b28654ff6399259769232796337f87e38b6f..1c798f2f2dbab3ddedf17b0b12aa88a4981e78f3 100644 (file)
@@ -496,6 +496,9 @@ a.status__content__spoiler-link {
 
 .status__display-name {
   color: lighten($color1, 26%);
+}
+
+.status__info .status__display-name {
   display: block;
   max-width: 100%;
   padding-right: 25px;
@@ -835,7 +838,7 @@ a.status__content__spoiler-link {
 }
 
 .detailed-status__display-avatar {
-  float: right;
+  float: left;
   margin-right: 10px;
 }
 
@@ -861,7 +864,7 @@ a.status__content__spoiler-link {
     opacity: 0.5;
   }
 
-  .status__content__spoiler-link {
+  a.status__content__spoiler-link {
     background: lighten($color1, 26%);
     color: lighten($color1, 4%);
 
@@ -889,6 +892,10 @@ a.status__content__spoiler-link {
 .notification__favourite-icon-wrapper {
   left: -26px;
   position: absolute;
+
+  .star-icon {
+    color: #ca8f04;
+  }
 }
 
 .star-icon.active {