jlai.lu
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
codeinabox@programming.dev to CSS@programming.devEnglish · 2 months ago

The Future of CSS: Target Multiple Classes with the Class Prefix Selector

www.bram.us

external-link
message-square
2
link
fedilink
  • cross-posted to:
  • hackernews@lemmy.bestiver.se
13
external-link

The Future of CSS: Target Multiple Classes with the Class Prefix Selector

www.bram.us

codeinabox@programming.dev to CSS@programming.devEnglish · 2 months ago
message-square
2
link
fedilink
  • cross-posted to:
  • hackernews@lemmy.bestiver.se
To target multiple classes that share the same prefix, you'd typically have to resort to adding an extra base classes to your markup or to using badly performing attribute selectors. To make things easier, CSS is getting a new selector: The Class Prefix Selector (.prefix-*).
alert-triangle
You must log in or register to comment.
  • Marthirial@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    1
    ·
    2 months ago

    Oh come on. It is 2026. Add a dark mode to your blog. You literally write about CSS.

    • TurboWafflz@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      2 months ago

      you have to earn dark mode by reading the blog enough to write a nice dark mode userstyle

CSS@programming.dev

css@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !css@programming.dev
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 3 users / day
  • 32 users / week
  • 93 users / month
  • 300 users / 6 months
  • 2 local subscribers
  • 876 subscribers
  • 374 Posts
  • 213 Comments
  • Modlog
  • mods:
  • Ategon@programming.dev
  • BE: 0.19.21
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org