Comments (5)
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.
hey @Briix. i'm not sure i understand, is it possible for you to describe more detail with maybe an example?
from sheetify.
@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.
I think this might be a reasonable resolution: stackcss/postcss-prefix#9
from sheetify.
Closed in v6.0.0
🎉
from sheetify.
Related Issues (20)
- Normal behaviour ?
- configuring via package.json is sometimes confusing
- Optional sheetify.json? HOT 2
- Passing variables and v6 HOT 2
- json file with the prefixes HOT 2
- Webpack Support HOT 1
- allow operating sans transform
- idea: template string interpolation HOT 5
- 6.1.1 was a breaking change HOT 4
- [Question]Omitting `:host` HOT 3
- SyntaxError: Unexpected token - when requiring sheetify in a file using JSX HOT 7
- Unable to pass options to plugin from the command line HOT 2
- ::theme & ::part support
- Changing CSS when using Bankai does not re-render the document on the dev server HOT 3
- Running into issues with CSS changes in nested files not being reflected in dev environment HOT 9
- Stripping CSS comments HOT 2
- Use native Object.assign instead of xtend HOT 1
- Cascading/compound selector HOT 3
- Nested dependency - how to with browserify? HOT 2
- Switch sf`` to css``
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sheetify.