]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Use `<use />` to render transparent SVG logo instead of inserting it
authorEugen Rochko <eugen@zeonfederated.com>
Mon, 27 May 2019 01:33:39 +0000 (03:33 +0200)
committerThibaut Girka <thib@sitedethib.com>
Tue, 28 May 2019 15:50:21 +0000 (17:50 +0200)
Port SCSS changes from 8d5dcc9301c422f131167574da550f8cdaedb73f to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
app/javascript/flavours/glitch/styles/containers.scss
app/javascript/flavours/glitch/styles/footer.scss
app/javascript/flavours/glitch/styles/mastodon-light/diff.scss
app/javascript/flavours/glitch/styles/stream_entries.scss

index b275247398fef9c6c9656ef697372f97b17846a1..b0c187eab52fc6499bd7aa5a17e290f3c9db32bb 100644 (file)
 
       .logo-button {
         background-color: $secondary-text-color;
-
-        svg path:last-child {
-          fill: $secondary-text-color;
-        }
       }
     }
 
index 4d75477e09b8786de6899deaa556d4e869a58938..f74c004e995994b30c89db4e2c1d2807eb1d04b7 100644 (file)
         height: 36px;
         width: auto;
         margin: 0 auto;
-
-        path {
-          fill: lighten($ui-base-color, 34%);
-        }
+        fill: lighten($ui-base-color, 34%);
       }
 
       &:hover,
index 224272f24585f5fba18f911d714c376019d550a4..ce2a2eeb503aeb0448477c5013f80a769912ec9e 100644 (file)
 .button.logo-button {
   color: $white;
 
-  svg path:first-child {
+  svg {
     fill: $white;
   }
 }
index e18696fb7e9c818dca70d147339e347b8dcca0ce..de9c2612c846a74d31ad9240674a351546dbe5b4 100644 (file)
     height: auto;
     vertical-align: middle;
     margin-right: 5px;
-
-    path:first-child {
-      fill: $primary-text-color;
-    }
-
-    path:last-child {
-      fill: $ui-highlight-color;
-    }
+    fill: $primary-text-color;
   }
 
   &:active,
   &:focus,
   &:hover {
     background: lighten($ui-highlight-color, 10%);
-
-    svg path:last-child {
-      fill: lighten($ui-highlight-color, 10%);
-    }
   }
 
   &:disabled,
   &.disabled {
-    svg path:last-child {
-      fill: $ui-primary-color;
-    }
-
     &:active,
     &:focus,
     &:hover {
       background: $ui-primary-color;
-
-      svg path:last-child {
-        fill: $ui-primary-color;
-      }
     }
   }
 
     &:focus,
     &:hover {
       background: $error-red;
-
-      svg path:last-child {
-        fill: $error-red;
-      }
     }
   }