]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Fix design of announcements in admin UI
authorEugen Rochko <eugen@zeonfederated.com>
Tue, 28 Jan 2020 01:21:00 +0000 (02:21 +0100)
committerThibaut Girka <thib@sitedethib.com>
Tue, 28 Jan 2020 18:17:47 +0000 (19:17 +0100)
Port 305abc9e05ddb2db6a40a6eda01578e01e58791f to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
app/javascript/flavours/glitch/styles/admin.scss

index a1895d066986643083245d0bb0f67568b2027ad3..26a98c66fe85fc0f743808f8ca39d38935be1e6e 100644 (file)
@@ -903,3 +903,46 @@ a.name-tag,
 .center-text {
   text-align: center;
 }
+
+.announcements-list {
+  border: 1px solid lighten($ui-base-color, 4%);
+  border-radius: 4px;
+
+  &__item {
+    padding: 15px 0;
+    background: $ui-base-color;
+    border-bottom: 1px solid lighten($ui-base-color, 4%);
+
+    &__title {
+      padding: 0 15px;
+      display: block;
+      font-weight: 500;
+      font-size: 18px;
+      line-height: 1.5;
+      color: $secondary-text-color;
+      text-decoration: none;
+      margin-bottom: 10px;
+
+      &:hover,
+      &:focus,
+      &:active {
+        color: $primary-text-color;
+      }
+    }
+
+    &__meta {
+      padding: 0 15px;
+      color: $dark-text-color;
+    }
+
+    &__action-bar {
+      display: flex;
+      justify-content: space-between;
+      align-items: center;
+    }
+
+    &:last-child {
+      border-bottom: 0;
+    }
+  }
+}