Comments (10)
sweet. I'll PR this
from rucksack.
Would love to see this functionality added, its a nice shortcut for a common css code pattern
from rucksack.
@seaneking would you accept a PR with this?
from rucksack.
whoops sorry missed this. Not sure if aspect ratio us a good fit for rucksack or not, it's quite heavy handed it what it does. As a developer looking through code with that declaration in it, I wouldn't expect the children of the element to be absolutely positioned etc etc.
More than happy to get feedback from the community on this one though, if there's demand for it then would definitely consider it.
from rucksack.
It's a very standard (and crucial imho) technique, but obviously it's your call. :)
from rucksack.
The padding hack is, but all the other assumptions postcss-aspect ratio make aren't (abspos children etc). That said haven't looked at it for a while.
from rucksack.
There's no other way to do content inside it without it.
from rucksack.
+1 for aspect ratios!
I find myself needing to do that more often that I would have thought.
from rucksack.
Okay, sounds like I'm the minority on this one. Would accept a PR.
While we're all here - what do we think of #47?
FWIW postcss-alias is pretty buggy, and the bugs are pretty fundamental (regexing aliases out of both property names and values).
from rucksack.
Excited that this will be added - another vote for it!
from rucksack.
Related Issues (20)
- Impossible to use rems if set responsive on html? HOT 7
- Request: vertical rhythm HOT 1
- Support PostCSS v6 HOT 16
- autoprefixer test not passing HOT 1
- Who uses Rucksack? HOT 2
- Move website to own domain HOT 1
- Port website to own repo (and Netlify) HOT 1
- Move repos to new org HOT 2
- Create custom plugin for Stylelint HOT 1
- Setting default params HOT 1
- Actual changelog? HOT 1
- Is it working with webpack? HOT 2
- Rename package to postcss-rucksack? HOT 1
- Remove bundled CLI tool
- DOC site is down, it's been a week HOT 2
- Clearfix output should use double colon notation HOT 2
- Responsive Typography sizing off when using REMs
- Support for PostCSS 8 HOT 2
- properties
- Rucksack documentation not found? HOT 4
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 rucksack.