]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Fix transition: all
authorThibG <thib@sitedethib.com>
Sat, 4 May 2019 15:39:53 +0000 (17:39 +0200)
committerThibaut Girka <thib@sitedethib.com>
Sat, 4 May 2019 17:53:09 +0000 (19:53 +0200)
Port 7aa749ab46b53bc5b234332ac35acc09a636fc28 to glitch-soc

app/javascript/flavours/glitch/styles/admin.scss
app/javascript/flavours/glitch/styles/components/drawer.scss
app/javascript/flavours/glitch/styles/components/index.scss
app/javascript/flavours/glitch/styles/components/search.scss

index 05c7821e44831310152ccd4978b0fef983338cee..74f91599a61b1056775e03500ab4fef0600c997d 100644 (file)
@@ -50,6 +50,7 @@ $content-width: 840px;
         color: $darker-text-color;
         text-decoration: none;
         transition: all 200ms linear;
+        transition-property: color, background-color;
         border-radius: 4px 0 0 4px;
 
         i.fa {
@@ -60,6 +61,7 @@ $content-width: 840px;
           color: $primary-text-color;
           background-color: darken($ui-base-color, 5%);
           transition: all 100ms linear;
+          transition-property: color, background-color;
         }
 
         &.selected {
index 41c7947901b49321bae0d62974fc4993a401e5ca..9f426448fbef1c90c857a25e18cade199bceec59 100644 (file)
       cursor: default;
       pointer-events: none;
       transition: all 100ms linear;
+      transition-property: color, transform, opacity;
     }
 
     .fa-search {
index 788bb2e0ecb2c11b3e445d9d304c5095b330450e..f12f8b7faf49c671da7ecf9a197f01bc208639da 100644 (file)
@@ -25,6 +25,7 @@
   text-decoration: none;
   text-overflow: ellipsis;
   transition: all 100ms ease-in;
+  transition-property: background-color;
   white-space: nowrap;
   width: auto;
 
@@ -33,6 +34,7 @@
   &:hover {
     background-color: lighten($ui-highlight-color, 7%);
     transition: all 200ms ease-out;
+    transition-property: background-color;
   }
 
   &--destructive {
   font-weight: 500;
   border-bottom: 2px solid lighten($ui-base-color, 8%);
   transition: all 200ms linear;
+  transition-property: background;
 
   .fa {
     font-weight: 400;
     @include multi-columns('screen and (min-width: 631px)') {
       background: lighten($ui-base-color, 14%);
       transition: all 100ms linear;
+      transition-property: background;
     }
   }
 
   padding: 0;
   border-radius: 30px;
   background-color: $ui-base-color;
-  transition: all 0.2s ease;
+  transition: background-color 0.2s ease;
 }
 
 .react-toggle:hover:not(.react-toggle--disabled) .react-toggle-track {
 }
 
 .react-toggle-thumb {
-  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0ms;
   position: absolute;
   top: 1px;
   left: 1px;
   background-color: darken($simple-background-color, 2%);
   box-sizing: border-box;
   transition: all 0.25s ease;
+  transition-property: border-color, left;
 }
 
 .react-toggle--checked .react-toggle-thumb {
index 3746fbad20fdf35627aca74ed8afc029dc83a4dd..f59ef019e8816a719733397093c52ac0766eaefc 100644 (file)
@@ -18,6 +18,7 @@
     display: inline-block;
     opacity: 0;
     transition: all 100ms linear;
+    transition-property: transform, opacity;
     font-size: 18px;
     width: 18px;
     height: 18px;