Git Product home page Git Product logo

Comments (4)

hworld avatar hworld commented on May 24, 2024

As an example of the fix I applied to the older version previously: #47

from bootstrap-stylus.

maxmx avatar maxmx commented on May 24, 2024

@kane-c My schedule does not allow me to act fast on this repo, care to tackle this one?

from bootstrap-stylus.

kane-c avatar kane-c commented on May 24, 2024

Bootstrap 4 will remove the vendor prefixes entirely in favour of Autoprefixer.

@hworld Could you do something like this as a workaround?
transform: s('scale(1)')

Not ideal of course, but an OK interim solution.

Do you think we should remove all the vendor prefixes from Bootstrap and use Autoprefixer instead?

from bootstrap-stylus.

hworld avatar hworld commented on May 24, 2024

@kane-c From what I know that's how the previous version of bootstrap-stylus was (most vendor prefixed mixins were removed).

The reason being that Stylus is very different than both less and sass (the official languages for bootstrap) regarding mixins.

Less mixins are dotted: https://github.com/twbs/bootstrap/blob/master/less/mixins/vendor-prefixes.less
Sass mixins are @mixined and then @included: https://github.com/twbs/bootstrap-sass/blob/master/assets/stylesheets/bootstrap/mixins/_vendor-prefixes.scss and http://sass-lang.com/guide#topic-6

Stylus is completely transparent, though. Meaning that if someone overrides the default scale function of CSS (something you can't do in less and sass), then the whole project is screwed up.

Based on those reasons, I think it's important to pull them out, mainly because a port of bootstrap to bootstrap-stylus needs to work well as a stylus port, and it currently doesn't.

from bootstrap-stylus.

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.