about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/styles/components/columns.scss
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2021-03-08 18:40:34 +0100
committerClaire <claire.github-309c@sitedethib.com>2021-03-19 14:47:06 +0100
commit200d7a170806ce530218d4d43292f9bf14455ab7 (patch)
treee5174b806a226776f0d7ffcb4fe08f5881ff7cd3 /app/javascript/flavours/glitch/styles/components/columns.scss
parentc7f04961b6dcb1b7e12136deadcf65076c130c40 (diff)
Change notification settings UI to be more compact
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch/styles/components/columns.scss')
-rw-r--r--app/javascript/flavours/glitch/styles/components/columns.scss44
1 files changed, 44 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/styles/components/columns.scss b/app/javascript/flavours/glitch/styles/components/columns.scss
index 90aa5859d..aaf2c9572 100644
--- a/app/javascript/flavours/glitch/styles/components/columns.scss
+++ b/app/javascript/flavours/glitch/styles/components/columns.scss
@@ -483,6 +483,50 @@
   margin-right: 5px;
 }
 
+.column-settings__pillbar {
+  display: flex;
+  overflow: hidden;
+  background-color: transparent;
+  border: 0;
+  border-radius: 4px;
+  margin-bottom: 10px;
+  align-items: stretch;
+}
+
+.pillbar-button {
+  border: 0;
+  color: #fafafa;
+  padding: 2px;
+  margin: 0;
+  margin-left: 2px;
+  font-size: inherit;
+  flex: auto;
+  background-color: $ui-base-color;
+  transition: background-color 0.2s ease;
+
+  &[disabled] {
+    cursor: not-allowed;
+    opacity: 0.5;
+  }
+
+  &:hover:not([disabled]) {
+    background-color: darken($ui-base-color, 10%);
+  }
+
+  &.active {
+    background-color: $ui-highlight-color;
+  }
+
+  &.active:hover:not([disabled]) {
+    background-color: lighten($ui-highlight-color, 10%);
+  }
+
+  /* TODO: check RTL? */
+  &:first-child {
+    margin-left: 0;
+  }
+}
+
 .empty-column-indicator,
 .error-column,
 .follow_requests-unlocked_explanation {