]> cat aescling's git repositories - mastodon.git/commitdiff
Inactive header in main profile to match column. (#8520)
authorM Somerville <dracos@users.noreply.github.com>
Thu, 30 Aug 2018 21:53:30 +0000 (22:53 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 30 Aug 2018 21:53:30 +0000 (23:53 +0200)
app/javascript/styles/mastodon/containers.scss
app/views/accounts/_header.html.haml

index 8ecedd2cb7fbf9d88c82b202cf58f09865f2e011..2c2ce5d3b8f0ec04963fb159206999c1e3195206 100644 (file)
     margin-bottom: 10px;
     box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
 
+    &.inactive {
+      opacity: 0.5;
+
+      .public-account-header__image,
+      .avatar {
+        filter: grayscale(100%);
+      }
+
+      .logo-button {
+        background-color: $secondary-text-color;
+
+        svg path:last-child {
+          fill: $secondary-text-color;
+        }
+      }
+    }
+
     &__image {
       border-radius: 4px 4px 0 0;
       overflow: hidden;
               border-bottom: 4px solid $highlight-text-color;
               opacity: 1;
             }
+
+            &.inactive::after {
+              border-bottom-color: $secondary-text-color;
+            }
           }
 
           &:hover {
index f09beff98ba9dba092bdac8c78a6a9f4beaecdc9..95e55a1b0249556908f1955f50e36083b6fcb8a4 100644 (file)
@@ -1,4 +1,4 @@
-.public-account-header
+.public-account-header{:class => ("inactive" if account.moved?)}
   .public-account-header__image
     = image_tag account.header.url, class: 'parallax'
   .public-account-header__bar