with-heart's Avatar

with-heart

@with-heart

I love open source

40
Followers
169
Following
20
Posts
02.09.2024
Joined
Posts Following

Latest posts by with-heart @with-heart

.container {
  display: flex;
  flex-direction: column;
  place-content: center;
  place-items: center;
  
  &:has(.image-card) {
    place-content: start;
  }
}

.container { display: flex; flex-direction: column; place-content: center; place-items: center; &:has(.image-card) { place-content: start; } }

:has() in CSS is so incredible. I was just writing a complicated thing to have an element try to mimic its container's size, etc. so I could mess with the layout for a specific configuration and then BAM :has(div) let me solve the whole problem by actually adjusting the container styles

love it

31.05.2025 00:22 ๐Ÿ‘ 131 ๐Ÿ” 10 ๐Ÿ’ฌ 5 ๐Ÿ“Œ 0

Such a lovely smile! Looks like an incredible adventure

24.01.2025 05:03 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

I think it really depends on the project and org. Like npm is default from inertia but I don't think most of the open source maintainers I know feel a need to use npm and I certainly wouldn't either

12.01.2025 22:40 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Why not both

10.01.2025 08:28 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Arc on iOS. That explanation makes sense to me though. The text isn't long enough/the container can't become wide enough for balancing to make sense basically?

09.01.2025 18:10 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Video thumbnail

This section still needs a look I think. Great article though!

09.01.2025 17:13 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 1
Video thumbnail

๐Ÿ› ๏ธ New Interactive Article: Balancing Text In CSS

I explored text balancing in CSS โ€” what it is, the problems it solves, how it works, and included plenty of examples and use cases. Happy balancing! โš–๏ธ

ishadeed.com/article/bala...

05.01.2025 18:41 ๐Ÿ‘ 200 ๐Ÿ” 40 ๐Ÿ’ฌ 9 ๐Ÿ“Œ 9

This is a fun little trio:

```css
text-wrap: balance;
hyphens: auto;
hyphenate-limit-chars: 10;
```

Allowing hyphenation can help when balancing text. The last property sets the minimum length of hyphenated words to 10 characters which helps avoid undesirable hyphenation of smaller words.

23.12.2024 18:57 ๐Ÿ‘ 91 ๐Ÿ” 11 ๐Ÿ’ฌ 2 ๐Ÿ“Œ 1

It's truly a miracle that humanity survived for so long without fact checkers

09.01.2025 10:36 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Each line of the algorithm is derived from the game state for routes the player owns (plus the player's destination ticket cards in the last line).

If we had a way to capture that game state as data, we could then automate the rest of the process.

21.12.2024 07:14 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

The thing is though, the game's board holds most of the state needed to calculate scores.

Let's imagine the algorithm for how a player's score is calculated:

points = routes points
points += has longest train ? 10 : 0
points += complete destinations - incomplete destinations

21.12.2024 07:14 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Ticket To Ride is a great game but the process can be kinda annoying:

- managing player route scores by moving pieces around the edge of a 31โ€ x 20.75โ€ board
- figuring out who gets the longest train bonus card (+10 points)
- adding/subtracting destination ticket card points

21.12.2024 07:14 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

That third one looks like you're on the PM's security detail. He's in very good hands if he ever travels to the cloud

10.11.2024 22:24 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Introduce yourself with some jobs you've done apart from what you do

- vending machine attendant
- transitory location enumerator (US Census)
- dishwasher
- office coffee specialist
- Kroger store systems support

10.11.2024 21:31 ๐Ÿ‘ 4 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Omg they're actually for real adding code blocks soon? If so that's like a dream come true

09.11.2024 03:04 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Less bandwidth dedicated to that crap frees up bandwidth to see the purpose and meaning and goodness and beauty inherent in the world around me.

08.11.2024 00:56 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

I have no idea if that relates to where you are with things ofc. I'm just "old man telling story"'ing with so of this. But if it does relate, I think there's a lot of value in analyzing and cleaning up your inputs. They can have a fatal influence on how you see and feel the world

08.11.2024 00:52 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Like there's only so much bandwidth available to your senses. If your systems are dedicated to processing a constant barrage of other people and other things elsewhere, dedicated to something so pointless and irrelevant to YOU in each moment, is it surprising that everything feels meaningless?

08.11.2024 00:49 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

I've spent the last few years trying to create limits on the flow of things in my life. I check the news less often, I try (and fail) to be on social media as little as possible

Limits help me see that the more I escape the noise, the more I can actually see lots of things I couldn't before

08.11.2024 00:44 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Humans aren't meant to know what's happening everywhere else all the time either. Communication used to be slower, updates came only at certain intervals. There was only so much you could know about elsewhere, so it was easier to be present somewhere

08.11.2024 00:39 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Humans aren't meant to know what everyone else is thinking. The thoughts of others used to be limited to specific forums: conversation, newspaper, radio, speeches, etc.

The flow was limited so the attention and thought people gave it was limited

But now the dam has burst and we're drowning in it

08.11.2024 00:33 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

I spent a very long time feeling nihilistic about everything, to the point that I was scared I'd never escape it. It's still a struggle sometimes especially when I fall into too much social media, it just naturally encourages proliferation of existential exhaustion.

08.11.2024 00:25 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Video thumbnail

Have you ever needed the CSS paint-order property?

Really handy when working with text-strokes!

07.11.2024 19:32 ๐Ÿ‘ 270 ๐Ÿ” 26 ๐Ÿ’ฌ 19 ๐Ÿ“Œ 6

Well look who it is

30.10.2024 22:55 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0