]> cat aescling's git repositories - mastodon.git/commitdiff
Messing around with box-shadow
authorClaire <claire.github-309c@sitedethib.com>
Mon, 8 Mar 2021 19:45:47 +0000 (20:45 +0100)
committerClaire <claire.github-309c@sitedethib.com>
Fri, 19 Mar 2021 13:47:57 +0000 (14:47 +0100)
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
app/javascript/flavours/glitch/styles/components/columns.scss

index 7d7642a311769c23e3e5f47049553e344be95ab9..42d64c135d0c5e977254b1a2106cf249b782037d 100644 (file)
   font-size: inherit;
   flex: auto;
   background-color: $ui-base-color;
-  transition: background-color 0.2s ease;
+  transition-property: background-color, box-shadow;
+  transition: all 0.2s ease;
 
   &[disabled] {
     cursor: not-allowed;
 
     &.active {
       background-color: $ui-highlight-color;
+      box-shadow: inset 0 5px darken($ui-highlight-color, 20%);
 
       &:hover {
         background-color: lighten($ui-highlight-color, 10%);
+        box-shadow: inset 0 5px darken($ui-highlight-color, 10%);
       }
 
       &:focus {
         background-color: lighten($ui-highlight-color, 15%);
+        box-shadow: inset 0 5px darken($ui-highlight-color, 5%);
       }
 
       &:active {
         background-color: lighten($ui-highlight-color, 20%);
+        box-shadow: inset 0 5px $ui-highlight-color;
       }
     }
   }