Giter Club home page Giter Club logo

Comments (5)

yoshuawuyts avatar yoshuawuyts commented on May 18, 2024

Yeah I'd be keen for this, as it allows us to define non-prefixed styles inline. Given that I'm using tachyons nowadays I don't really use prefixing anymore anyway, and the humans I've seen write prefixed tachyons tend to use :host anyway. 👍 from me!

from sheetify.

ahdinosaur avatar ahdinosaur commented on May 18, 2024

hey @Briix. i'm not sure i understand, is it possible for you to describe more detail with maybe an example?

from sheetify.

Briix avatar Briix commented on May 18, 2024

@ahdinosaur Sorry for the really slow response!
Originally :host seemed like an unnecessary selector to me, but I'm actually not so sure anymore.
It was mainly because I've mostly seen sheetify used in two ways:

  • to create inline styles, thus using the :host selector
  • to create additional styles with selectors or classes

The :host selector doesn't make a lot of sense to me in both of those scenarios. My main frustration was when I wanted to add some additional atomic classes, like .padding-5vh etc and then applying those to divs. If I want to apply this to the top level div I have to "prefix" it with :host like so: :host.padding-5vh.

I have played around with it some more however, and the above scenario seems to be easily avoided by just adding an outer div the style is applied to.

So it hasn't been as big of a hassle as I originally thought it would be and I can see arguments for keeping/removing it, so I would definitely love some more input and thoughts on it :-)

from sheetify.

yoshuawuyts avatar yoshuawuyts commented on May 18, 2024

I think this might be a reasonable resolution: stackcss/postcss-prefix#9

from sheetify.

yoshuawuyts avatar yoshuawuyts commented on May 18, 2024

Closed in v6.0.0 🎉

from sheetify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.