]> cat aescling's git repositories - mastodon.git/commitdiff
Add checkmark on top of status icon buttons when they are active (#1783)
authorClaire <claire.github-309c@sitedethib.com>
Wed, 25 May 2022 13:09:45 +0000 (15:09 +0200)
committersingle-right-quote <11325618-aescling@users.noreply.gitlab.com>
Fri, 27 May 2022 03:54:56 +0000 (23:54 -0400)
app/javascript/flavours/glitch/styles/accessibility.scss

index cb27497a49931ffa1512dc44db3132b050d7dd83..96e20f8393e1275fb41593f75a631f057614aee2 100644 (file)
@@ -12,6 +12,21 @@ $emojis-requiring-inversion: 'back' 'copyright' 'curly_loop' 'currency_exchange'
   }
 }
 
+// Display a checkmark on active UI elements otherwise differing only by color
+.status__action-bar-button,
+.detailed-status__button .icon-button {
+  position: relative;
+
+  &.active::after {
+    position: absolute;
+    content: "\F00C";
+    font-size: 50%;
+    font-family: FontAwesome;
+    right: -5px;
+    top: -4px;
+  }
+}
+
 .hicolor-privacy-icons {
   .status__visibility-icon.fa-globe,
   .composer--options--dropdown--content--item .fa-globe {