https://htmx.org logo
Join Discord
Powered by
# missing_dot_css
  • m

    mysterious-toddler-20573

    02/12/2022, 6:19 PM
    does it support :has ?
  • m

    mysterious-toddler-20573

    02/12/2022, 6:19 PM
    (I don't see how it could)
  • g

    gorgeous-airport-54386

    02/12/2022, 6:20 PM
    nope
  • g

    gorgeous-airport-54386

    02/12/2022, 6:20 PM
    i found this
  • g

    gorgeous-airport-54386

    02/12/2022, 6:20 PM
    https://preset-env.cssdb.org/features/
  • g

    gorgeous-airport-54386

    02/12/2022, 6:20 PM
    seems to be mostly spec stuff
  • m

    mysterious-toddler-20573

    02/12/2022, 6:21 PM
    oof
  • m

    mysterious-toddler-20573

    02/12/2022, 6:21 PM
    https://github.com/csstools/postcss-plugins/tree/main/plugins/css-has-pseudo
  • m

    mysterious-toddler-20573

    02/12/2022, 6:21 PM
    https://github.com/csstools/postcss-plugins/tree/main/plugins/css-has-pseudo#how-it-works
  • m

    mysterious-toddler-20573

    02/12/2022, 6:22 PM
    i'd like to avoid mutating the DOM as much as possible
  • g

    gorgeous-airport-54386

    02/12/2022, 6:22 PM
    > Next, the JavaScript library adds a [:has] attribute to elements otherwise matching :has natively.
  • g

    gorgeous-airport-54386

    02/12/2022, 6:22 PM
    emphasis mine
  • m

    mysterious-toddler-20573

    02/12/2022, 6:22 PM
    yeah, seems like a non-starter?
  • g

    gorgeous-airport-54386

    02/12/2022, 6:23 PM
    we'll need to go without it seems
  • m

    mysterious-toddler-20573

    02/12/2022, 6:24 PM
    seems like it to me
  • m

    mysterious-toddler-20573

    02/12/2022, 6:24 PM
    also think custom elements are out, as they require js
  • m

    mysterious-toddler-20573

    02/12/2022, 6:24 PM
    if we go js, I'd want to go full js
  • m

    mysterious-toddler-20573

    02/12/2022, 6:24 PM
    and I don't want to go full js
  • g

    gorgeous-airport-54386

    02/12/2022, 6:25 PM
    you can use a custom element tag without defining it in js though
  • m

    mysterious-toddler-20573

    02/12/2022, 6:25 PM
    i was just messing w/ you šŸ˜…
  • m

    mysterious-toddler-20573

    02/12/2022, 6:25 PM
    starts duck duck going
  • g

    gorgeous-ghost-95789

    02/12/2022, 6:26 PM
    I’d say widgets are a separate thing. Html + CSS + hyperscript behaviors in the cookbook for example.
  • g

    gorgeous-ghost-95789

    02/12/2022, 6:27 PM
    So say we all
  • m

    mysterious-toddler-20573

    02/12/2022, 6:28 PM
    constraint: we must use only css/less
  • r

    refined-waiter-90422

    02/12/2022, 6:28 PM
    but yeah the biggest reasons for stylus imho: cuts down on verbosity. your "source css".. like literally cuts it in half or less. can omit: curly braces, colons, semicolons. You can also use other preprocessors if you need it (import).
  • g

    gorgeous-airport-54386

    02/12/2022, 6:29 PM
    Copy code
    css
    missing-card {
      box-shadow: 0 .2em .2em var(--shadow-color);
      ...
    }
  • m

    mysterious-toddler-20573

    02/12/2022, 6:30 PM
    Copy code
    css
      missing-stack {
    
      }
  • r

    refined-waiter-90422

    02/12/2022, 6:30 PM
    that in stylus:
    Copy code
    css
    missing-card
        box-shadow 0 .2em .2em var(--shadow-color)
  • m

    mysterious-toddler-20573

    02/12/2022, 6:30 PM
    šŸ™‚ I'm a less guy I think
  • m

    mysterious-toddler-20573

    02/12/2022, 6:30 PM
    I really hate how less got bounced for saas/scss
1...678...44Latest