Design comparison
Solution retrospective
Hey Guys 🫡,
simple project, but maybe some of you can make some little suggestions for improvement.
I´m grateful for any help 🤝
Community feedback
- @AlexanderTheWisePosted over 1 year ago
Good copy.
When you're nesting classes like this: .card{ .... .card__qr-code{...} }
it will transpile to this: .card{...} .card .card__qr-code {...} => higher specificity (20)
Use "&" for BEM elements when using SASS. .card{ &__qr-code{...} => concatenation = (".card" + "__qr-code") }
It will transpile to this: .card {...} .card__qr-code{...} => lower specificity (10)
Marked as helpful1@Rhinozer0sPosted over 1 year agoYess @AlexanderTheWise,
i already saw this but never implemented. Do you have some sources for me to read about?
1@AlexanderTheWisePosted over 1 year ago@Rhinozer0s
Of course:
https://web.dev/learn/css/specificity/ https://css-tricks.com/the-sass-ampersand/
2 - @waad2lfPosted over 1 year ago
Nice work your project looks awesome
2@chalamalasaraswathiPosted over 1 year agoThank you so much for your compliment.
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord