Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Responsive QR-Code Card using SCSS

Rino 340

@Rhinozer0s

Desktop design screenshot for the QR code component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

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

@AlexanderTheWise

Posted

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 helpful

1

Rino 340

@Rhinozer0s

Posted

Yess @AlexanderTheWise,

i already saw this but never implemented. Do you have some sources for me to read about?

1

@AlexanderTheWise

Posted

@Rhinozer0s

Of course:

https://web.dev/learn/css/specificity/ https://css-tricks.com/the-sass-ampersand/

2

@waad2lf

Posted

Nice work your project looks awesome

2

@chalamalasaraswathi

Posted

Thank you so much for your compliment.

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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