Skip to content

Instantly share code, notes, and snippets.

@amattn
Created January 28, 2021 17:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amattn/62436c90b960fce85aebc358dd13728e to your computer and use it in GitHub Desktop.
Save amattn/62436c90b960fce85aebc358dd13728e to your computer and use it in GitHub Desktop.
Tailwind input.css file which supports sup and sub tags. see: https://amattn.com/p/brief_history_of_and_advanced_tricks_with_tailwind_css.html
@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";
/* I mostly use this for math like exponents and stuff */
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -0.3em; vertical-align: super;}
sub { bottom: -0.25em; vertical-align: sub;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment