Comments (6)
What about transforming this to that
html, body { height: 100%; }
@media screen {
html {
background: yellow;
}
}
@media screen and (max-width: 1100px) {
html, body {
background: green
}
}
@media screen {
body {
background: red;
}
}
from postcss-cssnext.
You can also nest @supports
per the conditional module that covers nesting @media
(any combination can be nested): http://dev.w3.org/csswg/css-conditional-3/
http://jsbin.com/xoqeso/2/edit
from postcss-cssnext.
yes, i think it's really cool feature
from postcss-cssnext.
Silly example (https://jsbin.com/sakuxiz/edit?css,output):
@media screen {
html {
background: yellow;
}
@media (max-width: 1100px) {
html, body {
background: green
}
}
body {
background: red;
}
}
We can't move media without ruining styles.
from postcss-cssnext.
That markup will work fine in postcss-nesting.
from postcss-cssnext.
postcss-cssnext
has been deprecated in favor or postcss-preset-env
. Read more at https://moox.io/blog/deprecating-cssnext/
from postcss-cssnext.
Related Issues (20)
- Errors When Running Jest Unit Tests HOT 3
- Using variable in rgba is not interpolated correctly HOT 2
- Preserving css variables HOT 1
- no such file or directory @std/esm/esm.js.gz HOT 2
- 4.0 => deprecation + alias to postcss-preset-env ? HOT 23
- How to get rid of the source of modern CSS? HOT 1
- -
- Complex calc function simplifying incorrectly HOT 2
- Autoprefixer update HOT 3
- Using `env` (previously `constant`) in a `calc` HOT 5
- Module build failed: BrowserslistError: Unknown browser major HOT 3
- postcss-nesting version to old for jest inside vue-cli / vue-test-utils HOT 6
- Logical properties support HOT 2
- calc(..) adds space between my unit and the resulting integer. HOT 3
- How to disable autoprefixer? HOT 1
- deprecation warning messages link may happen broken HOT 1
- Can I disable compilation of css-variables to string? HOT 2
- Support for CSS Shadow Parts ? ::part and ::theme HOT 1
- [feature request] provide support for string-set and other paged media HOT 1
- TypeError: dest.on is not a function
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 postcss-cssnext.