Skip to content

Instantly share code, notes, and snippets.

@Eriner
Last active January 17, 2023 20:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Eriner/16749bd3f2f65a24c5f2ac02ae679a74 to your computer and use it in GitHub Desktop.
Save Eriner/16749bd3f2f65a24c5f2ac02ae679a74 to your computer and use it in GitHub Desktop.
Bring back the Mastodon toots
.compose-form__publish-button-wrapper .button--block {
font-size: 0px;
}
.compose-form__publish-button-wrapper .button--block::after {
content: "Toot!";
font-size: 15px;
vertical-align: middle;
color: #fff;
}
.ui__header__links .button[href$="/publish"] span {
font-size: 0px;
}
.ui__header__links .button[href$="/publish"] span::after {
content: "Toot";
font-size: 15px;
vertical-align: middle;
color: #fff;
}
@Eriner
Copy link
Author

Eriner commented Nov 16, 2022

The old button color was #2b90d9 I think, but there are other visual elements that I don't want to bother to style. This CSS uses the new color-scheme as of Mastodon v4.0.0.

There is also probably a better way to do this #hack, but I'm not a FE dev. Patches welcome.

@hiway
Copy link

hiway commented Nov 17, 2022

.compose-form__publish-button-wrapper .button--block {
  font-size: 0px;
}

.compose-form__publish-button-wrapper .button--block::after {
  content: "Toot!";
  font-size: 15px;
  vertical-align: middle;
  color: #fff;
}

.ui__header__links .button[href$="/publish"] span {
  font-size: 0px;
}

.ui__header__links .button[href$="/publish"] span::after {
  content: "Toot";
  font-size: 15px;
  vertical-align: middle;
  color: #fff;
}

On Firefox/MacOS, here's the difference:

Screenshot 2022-11-17 at 10 32 25 PM

With changes above:
Screenshot 2022-11-17 at 10 32 55 PM

@Eriner
Copy link
Author

Eriner commented Nov 18, 2022

Hmm, I had complaints from people that the background color was reverting to something else. I can't reproduce so I'm just going to revert the latest change which should address the issue you've brought up @hiway. I also typo'd the font color which I've corrected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment