ztratar / followr

A no-frills chrome extension to gain followers on twitter through tasteful automation.
ztratar.github.io/followr
146 stars 30 forks source link

Extension mysteriously providing Twitter .btn CSS styles #21

Closed cobyism closed 9 years ago

cobyism commented 9 years ago

With this extension loaded, any .btn button within the Twitter UI is getting the following user agent styles applied:

2015-01-11 at 11 36 am

Resulting in really tight kerning everywhere, because of the letter-spacing: 1px; (most other styles are being overridden elsewhere in the actual CSS from twitter.com):

2015-01-11 at 11 41 am 2015-01-11 at 11 43 am 2015-01-11 at 11 43 am 2015-01-11 at 11 44 am

If I disable this extension and don’t touch anything else, those styles go away. I’ve looked through the code of this extension though, and these styles don’t seem to be anywhere in this repo. I have no idea where this user agent stylesheet rule is coming from, but I’ve narrowed it down to this extension being enabled being the factor which reproduces the issue for me.

Notes:

@ztratar Any ideas?

ztratar commented 9 years ago

The style is in general.css, directly under the .btn class. I'll change the letter spacing to auto and fix this!

cobyism commented 9 years ago

Weird, I could have sworn I grepped the whole repo for it. No idea why I didn’t find that. Thanks for the fix! :heart: