Konstantin Dankov (@kdankov) header
Konstantin Dankov (@kdankov) profile picture

Product Manager Design, UI, UX, DevOps, Home Lab, Self-Hosting and Photography

Sofia
Joined November 2008
Photo by Konstantin Dankov (@kdankov)Photo by Konstantin Dankov (@kdankov)Photo by Konstantin Dankov (@kdankov)Photo by Konstantin Dankov (@kdankov)Photo by Konstantin Dankov (@kdankov)Photo by Konstantin Dankov (@kdankov)Photo by Konstantin Dankov (@kdankov)Photo by Konstantin Dankov (@kdankov)
Konstantin Dankov retweeted
If you're a nerd like me, you'll love this 🤓 Stop centering icons with align-items: center. Here's how to build a flexible box that perfectly aligns icons, text, and the box itself at any size, using CSS and a little math.
32
97
8
1,380
44,560
Konstantin Dankov retweeted
Replying to @ladybirdbrowser
@ladybirdbrowser is so exciting. after a year of chromium wrappers, Arc-knockoffs of varying quality and many lacklustre launches, here is a foundational new browser engine. excited to see this develop ladybird.org/
41
68
5
2,581
92,588
Konstantin Dankov retweeted
Chuckling at all the people saying "wait but @ladybirdbrowser just feels like a browser" Hell yeah it does! 🤓
56
22
4
1,332
25,273
Konstantin Dankov retweeted
Ladybird is now in alpha 🐞 Downloads for macOS and Linux available on our website. ladybird.org/posts/alpha/
406
1,209
410
9,801
996,443
Konstantin Dankov retweeted
soon
74
79
17
1,896
49,181
Konstantin Dankov retweeted
morphing popover menu 🪄 css can let you detect the active anchor position @​container anchored(fallback: --top-left) popover stays full size; content grows from the grid origin that the fallback sets ↓
yes and no 🤙 in Chrome, yes. jus' need a little CSS to work out which side the popover opens on. if you don't need that, you can do it with html + css alone ✨ xitter.gq/jh3yy/status/201634258…
5
22
2
248
15,925
Konstantin Dankov retweeted
psa: keep your css :has() rules tight 🙇‍♂️ no wildcards, broad targets .component:has(.something) button 🚫 agents love slappin' :has() on a landmark but that has the potential to cause huge style recalcs from rules you might think are unrelated 🧑‍🔬
15
18
3
208
10,970
Today is a good day! Time to check in on the bobs #bobiverse This will be epic!
1
33
Konstantin Dankov retweeted
update: now you can use css progress() for adaptive radius, shadow, etc. ↓ same trick, but progress() does the division + clamps for you! 🧑‍🍳 .card__surface { --r: 42px; --g: 24px; border-radius: calc( progress((100vi - 100cqi) / 2, 0px, var(--g)) * var(--r) ); }
a little css trick i like ↓ adapt the radius gradually based on available space shrink from --r to 0 within --g 🧑‍🍳 .card__surface { --r: 42px; --g: 24px; border-radius: clamp( 0px, (100vi - 100cqi) / 2 * var(--r) / var(--g), var(--r) ); }
17
52
4
884
51,410
Konstantin Dankov retweeted
What do you call an emotionally in tune web typographer? An empath
3
1
18
4,233
Konstantin Dankov retweeted
they should've called it "artificial knowledge" rather than artificial intelligence
62
95
7
1,585
55,406
Konstantin Dankov retweeted
Having a Design Engineer (aka UX Engineer) on your team is a game changer. Attention to detail, product quality, velocity, all benefit from this hybrid role. Yet most tech companies overlook the importance of having people that excel at “front-of-the-front-end” work.
5
41
3
239
20,347
Konstantin Dankov retweeted
Here it is with DevTools open 👀 Can slow down those cross-document View Transitions and see the network requests coming in 🤙 Could totally spend time tweaking different parts of the transition, timing, etc. ✨
Wild that you can build this whole UI with CSS and MPA View Transitions alone 🤯 @​view-transition { navigation: auto; } Each view is a different route ✨
7
21
1
314
33,954
Konstantin Dankov retweeted
no js
💡 CSS Tip! Using scroll-driven animations, you can link a CSS variable with a range slider and easily update its value! No more JavaScript to do this. A few lines of CSS, one HTML element and you can update any value in real time. @CodePen demo in the reply 👇
2
5
69
7,598
🔗 Alternatives to Using Pure Black (#000000) for Text and Backgrounds uxplanet.org/alternatives-to… #a11y #design
78
943
76
9,546
754,655
Really awesome talk to open CSS Day. All presentations are worth watching btw. Web Design Engineering With the New CSS | Matthias Ott | CSS Day 2024 youtube.com/watch?v=su6WA0kU…
39
Konstantin Dankov retweeted
Replying to @KevinJPowell
Auto margins with flexbox. It usually reduces so much code, but I hardly see people using it. People know it, but don’t seem to be using it when required. Here’s an article I found - css-tricks.com/the-peculiar-…
2
5
1
86
5,162
New course by @lydiahallie: Testing Your JavaScript Knowledge! Challenge yourself with 50 interactive quiz questions on the event loop, scopes and closures, the "this" keyword, classes and prototypes, garbage collection, and more frontendmasters.com/courses/…
1
15
2
154
25,944