]> cat aescling's git repositories - mastodon.git/commitdiff
Add more button states?
authorClaire <claire.github-309c@sitedethib.com>
Mon, 8 Mar 2021 19:37:46 +0000 (20:37 +0100)
committerClaire <claire.github-309c@sitedethib.com>
Fri, 19 Mar 2021 13:47:54 +0000 (14:47 +0100)
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
app/javascript/flavours/glitch/styles/components/columns.scss

index aaf2c9572dcb19a8c5e4338b4bf4a862d2043254..7d7642a311769c23e3e5f47049553e344be95ab9 100644 (file)
     opacity: 0.5;
   }
 
-  &:hover:not([disabled]) {
-    background-color: darken($ui-base-color, 10%);
-  }
+  &:not([disabled]) {
+    &:hover {
+      background-color: darken($ui-base-color, 10%);
+    }
 
-  &.active {
-    background-color: $ui-highlight-color;
-  }
+    &:focus {
+      background-color: darken($ui-base-color, 15%);
+    }
 
-  &.active:hover:not([disabled]) {
-    background-color: lighten($ui-highlight-color, 10%);
+    &:active {
+      background-color: darken($ui-base-color, 20%);
+    }
+
+    &.active {
+      background-color: $ui-highlight-color;
+
+      &:hover {
+        background-color: lighten($ui-highlight-color, 10%);
+      }
+
+      &:focus {
+        background-color: lighten($ui-highlight-color, 15%);
+      }
+
+      &:active {
+        background-color: lighten($ui-highlight-color, 20%);
+      }
+    }
   }
 
   /* TODO: check RTL? */