Roman Vesely

@romanvesely
32 Followers
110 Following
409 Posts

Somewhere between trees and bytes of code.

Software engineer from #Slovakia. Mostly #CSS, #JavaScript, #TypeScript, #React.

webhttps://romanvesely.com
twitterhttps://twitter.com/rmnvsl
githubhttps://github.com/crazko
graffiti & streetarthttps://pixelfed.social/crazko
I just noticed my site build has been failing for a few days. Most of my latest changes are just new bookmarks, which are in #yaml format. So I went to check the first breaking addition.
I didn't know #github shows an error in such cases!

And, of course, this one, which is a complete shift in my thinking about `!important` declaration.

It is not about overriding previous styles, so the current declaration wins. It's about protecting it from being overridden! Use layers for prioritization and `!important` for protection.

> The best selectors don't need naming conventions.

Right, got it. Selector combinations (not sure if this is the correct statement) are much more powerful and with Cascading Layers naming conventions loose their utility.

I am a big proponent of BEM naming convention, I like its simplicity yet straightforwardness of resolving specificity issues. When done right.

I'm looking forward to adopting layers instead of relying on BEM-which, despite its few naming rules, I've often seen misused.

From time-to-time Windows Subsystem for Linux does not want to start when computer wakes up. But this happened for the first time.
Last week I saw a toot about how one used `Math.log()` to give an #ui element a more natural feeling. I cannot find this toot anymore, but it got me thinking.
I was just working on a new implementation of a navigation in our product, adding collapsible and resizable behavior. So I gave it a try. And I think it turned out nice.

There was a time when web sites were built in Flash. And many of those sites had dope intros. Like this site of #graffiti artist CAN2 from more than 20 years ago!

Here's the link of archived version https://web.archive.org/web/20010223202035/http://www.cantwo.de/cantwo.htm.

Thanks @filiph for reminding me there is Ruffle emulator for Flash programs. Now I can explore old stuff that inspired me in my childhood!

Wayback Machine

Ouch.
Omg, Tony Hawk's Pro Skater playlists on the vinyl. How cool is that! Back to the childhood. #thps

Text truncation was not working on my site. I was trying to fix it for quite a time only to find that #CSS Grid (and Flex) items can't be smaller the their content. Therefore, the content that should truncate was instead overflowing the viewport.

Spotted during reading my site on mobile device - smaller screen size - as the issue was not visible otherwise.

Fixed with `grid-template-columns: minmax(0, 1fr);` on the grid container, but there are other options as well.

Waiting for #CSS Masonry implementation dispute to resolve?

Just use good old CSS `columns` property instead! You can create nice and responsive masonry-like layout easily.

Example: My learning log https://romanvesely.com/log

Learning Log

Personal blog. Notes not only about web development.