]> cat aescling's git repositories - mastodon.git/commitdiff
Eliminate space around emoji (#5474)
authornullkal <nullkal@nil.nu>
Tue, 7 Nov 2017 18:09:53 +0000 (03:09 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Tue, 7 Nov 2017 18:09:53 +0000 (19:09 +0100)
* Eliminate space around emoji

* More improve emoji style

* Make more compatible with Twemoji

* Make scss-lint happy

* Make not modify normal emoji's behavior

* Decrease status__action-bar's margin-top to 5px

* Make the test be passed

* Revert "Make the test be passed"

This reverts commit 54a8c60e5907ef20a5ceb5ab2c86a933e06f3ece.

* Revert "Make not modify normal emoji's behavior"

This reverts commit 6a5bdf0c11df16ebd190cb3ab9d2e8f1349f435a.

app/javascript/styles/mastodon/components.scss

index 061138e2c53d819490e8f674daa03a2210de769a..3cdc780bf22223d3ea51763e880fd5b21fd36a7c 100644 (file)
   font-weight: 400;
   overflow: hidden;
   white-space: pre-wrap;
+  padding-top: 5px;
 
   &.status__content--with-spoiler {
     white-space: normal;
   }
 
   .emojione {
-    width: 18px;
-    height: 18px;
+    width: 20px;
+    height: 20px;
+    margin: -5px 0 0;
   }
 
   p {
 .status__action-bar {
   align-items: center;
   display: flex;
-  margin-top: 10px;
+  margin-top: 5px;
 }
 
 .status__action-bar-button {
     line-height: 24px;
 
     .emojione {
-      width: 22px;
-      height: 22px;
+      width: 24px;
+      height: 24px;
+      margin: -5px 0 0;
     }
   }