Giter VIP home page Giter VIP logo

Comments (10)

dbox avatar dbox commented on May 29, 2024 2

sweet. I'll PR this

from rucksack.

jescalan avatar jescalan commented on May 29, 2024 1

Would love to see this functionality added, its a nice shortcut for a common css code pattern 👬

from rucksack.

dbox avatar dbox commented on May 29, 2024

@seaneking would you accept a PR with this?

from rucksack.

madeleineostoja avatar madeleineostoja commented on May 29, 2024

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.

dbox avatar dbox commented on May 29, 2024

It's a very standard (and crucial imho) technique, but obviously it's your call. :)

from rucksack.

madeleineostoja avatar madeleineostoja commented on May 29, 2024

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.

dbox avatar dbox commented on May 29, 2024

There's no other way to do content inside it without it.

from rucksack.

covingtondoan avatar covingtondoan commented on May 29, 2024

+1 for aspect ratios!

I find myself needing to do that more often that I would have thought.

from rucksack.

madeleineostoja avatar madeleineostoja commented on May 29, 2024

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.

mwickett avatar mwickett commented on May 29, 2024

Excited that this will be added - another vote for it!

from rucksack.

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.