about summary refs log tree commit diff
path: root/app/javascript/styles/mastodon/tables.scss
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2022-08-25 23:33:34 +0200
committerGitHub <noreply@github.com>2022-08-25 23:33:34 +0200
commit5b0e8cc92b9ca0ab0dc24366d95f67a88c470173 (patch)
treee25c081fa76f34436d859b1f9674287d790bc657 /app/javascript/styles/mastodon/tables.scss
parentd696f729f1dc27c9d92b896c651e1ea73bf93d75 (diff)
Add ability to select all accounts matching search for batch actions (#19053)
Diffstat (limited to 'app/javascript/styles/mastodon/tables.scss')
-rw-r--r--app/javascript/styles/mastodon/tables.scss49
1 files changed, 49 insertions, 0 deletions
diff --git a/app/javascript/styles/mastodon/tables.scss b/app/javascript/styles/mastodon/tables.scss
index 431b8a73a..39211910f 100644
--- a/app/javascript/styles/mastodon/tables.scss
+++ b/app/javascript/styles/mastodon/tables.scss
@@ -190,6 +190,55 @@ a.table-action-link {
     }
   }
 
+  &__select-all {
+    background: $ui-base-color;
+    height: 47px;
+    align-items: center;
+    justify-content: center;
+    border: 1px solid darken($ui-base-color, 8%);
+    border-top: 0;
+    color: $secondary-text-color;
+    display: none;
+
+    &.active {
+      display: flex;
+    }
+
+    .selected,
+    .not-selected {
+      display: none;
+
+      &.active {
+        display: block;
+      }
+    }
+
+    strong {
+      font-weight: 700;
+    }
+
+    span {
+      padding: 8px;
+      display: inline-block;
+    }
+
+    button {
+      background: transparent;
+      border: 0;
+      font: inherit;
+      color: $highlight-text-color;
+      border-radius: 4px;
+      font-weight: 700;
+      padding: 8px;
+
+      &:hover,
+      &:focus,
+      &:active {
+        background: lighten($ui-base-color, 8%);
+      }
+    }
+  }
+
   &__form {
     padding: 16px;
     border: 1px solid darken($ui-base-color, 8%);