I'm sure you have seen the React (atom-like) logo before, but as a reminder, this is what it looks like:
Analysing the logo
The logo ...
For further actions, you may consider blocking this person and/or reporting abuse
Hi @dailydevtips1!
You made it looks easy to do 😅🤣!
I have already copy & past some SCSS into my projects, but I didn't fully understand the importance of it. After seeing this handy @extend in action, I am going to try to understand the SCSS codes.
Keep going!
This advice suggests that
@extend
can exhibit surprising behaviour as it will indiscriminately extend every instance of a matching selector that it finds.In this particular case it doesn't matter as the class selector
.orbit
only appears once—so the compiled CSS looks like:To control
@extend
better a placeholder selector can be bound to instead because placeholders only ever appear in one place:Now the compiled CSS looks like this:
Notice how the placeholder selector is gone.
Alternately a
@mixin
could also be used:In the case of the
@mixin
, the declarations are copied to the@include
sites instead.@peerreynders A wild shot here, but you wouldn't be interested in a job over at daily.dev?
😱
Thank you for the detailed explanation 😃
Oh nice, learned something new about that placeholder selector!
Thanks Peer 🙌
Awesome keep it up Renan
This a wonderful series
Thanks Nabil
You should create CSS logo series in dev.to and add posts in it so that your audience can get all at one place.
Ah good point I actually forgot to do that, thanks Shivam.
چند نقل قول براي ارسال پيام براي بهترين دوست
حتماً، در اينجا چند نقل قول زيبا براي ارسال به بهترين دوستتان آورده شده است:
پيامي براي بهترين دوست من ارسال کن
"دوست واقعي کسي است که دستت را بگيرد و قلبت را لمس کند."
"دوستان مثل ستارهها هستند، هميشه نميتواني آنها را ببيني، اما ميداني که هميشه آنجا هستند."
"دوستي يعني يک روح در دو بدن." - ارسطو
"يک دوست خوب مثل شبدر چهاربرگي است: پيدا کردنش دشوار است، اما داشتنش خوشبختي است."
"دوست کسي است که همه چيز را درباره تو ميداند و هنوز هم دوستت دارد." - البرت هوبارد
"در سختترين زمانها، بهترين دوستان ظاهر ميشوند."
This is such a fun series!
Thank you 💖