about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/styles/components
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2021-03-08 20:37:46 +0100
committerClaire <claire.github-309c@sitedethib.com>2021-03-19 14:47:54 +0100
commite71f4d468b217504f3cd5b8f8c133f9c0e1869fc (patch)
treecba538b08eb2a9e9d84248827647aafec0e8112d /app/javascript/flavours/glitch/styles/components
parent200d7a170806ce530218d4d43292f9bf14455ab7 (diff)
Add more button states?
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch/styles/components')
-rw-r--r--app/javascript/flavours/glitch/styles/components/columns.scss34
1 files changed, 26 insertions, 8 deletions
diff --git a/app/javascript/flavours/glitch/styles/components/columns.scss b/app/javascript/flavours/glitch/styles/components/columns.scss
index aaf2c9572..7d7642a31 100644
--- a/app/javascript/flavours/glitch/styles/components/columns.scss
+++ b/app/javascript/flavours/glitch/styles/components/columns.scss
@@ -509,16 +509,34 @@
     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? */