-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix styling issues in Safari #1114
Conversation
haven't really used BEM in practice, why isn't it concatenated? like |
it'll cause more verbose css (we need two classes on there for base styling for |
seems like a broken naming convention if it isn't even valid CSS... |
I believe the "proper" BEM thing is to have them concatenated, somebody just did |
IANABEOECU (I Am Not A BEM Expert Or Even Casual User) |
This is a prime example of why I dislike BEM. Generic .poor/.good/.average classes that apply everywhere would DRY up our CSS (9 occurrences of duplicate styling). What do you guys think about going that route? |
sounds perfect to me, but, again, you could tell me that was valid BEM and I would believe you, so I may not be the best person to ask :) |
I guess there is still validity in going all in on BEM or abandoning it completely. @paulirish cause he has actual opinions on CSS and stuff |
BEM is a convention, but that doesn't mean you have to BEM all the things. There are valid places to use the cascading an reusability features of CSS 💯 |
+1 |
me too on IANABEOECU. :) i'm fine with whatever in the CSS, tbh. It doesn't stress me out. |
PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎨
* Generic class for score colors
R: @paulirish @patrickhulce @brendankenny
This changes all the rating classes to have a single
-
prefix.--poor
is not a valid CSS class. See apache/incubator-pagespeed-ngx#993.Safari before:
After: