Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Yep, apparently the text in that block is raw text without HTML being sent from an old obselet CRM that only includes < br /> tags
-
You don't need to use !important if you target the element properly, even if it's raw text, it will still be in some kind of container.
-
ajmada2297yI read somewhere a guy had created the 'shame.scss' file to put all crap code he had to push before deadline. I think yours is a good candidate for this practice.
-
@ajmada Harry Roberts (https://csswizardry.com/about/). It's in his talk on refactoring.
-
@pabmeister basically there's already shitty css coming from another place which has shitty selectors,
And this page is being dynamically created from a haml template which I had no access to.
so I had to use the !important,
Trust me I've tried... -
@dextel2 the $font-family is a SASS variable that references the font property value
-
bioDan56227yThe !important is annoying but i can let it pass as an ugly patch.
However, watching the useless double font-size with the "em" typo as "rem" made my eyes puke on my brains instantly.
Related Rants
I feel a high amount of self rightiousnes
undefined
css
bad code