Git Product home page Git Product logo

Comments (15)

celsomiranda avatar celsomiranda commented on May 28, 2024

Well, I've taken a closer look, and although I did somewhat build a Stylus version, Less doesn't support conditions in variables like you use to define $form-element-min-height.

So I guess I can only contribute with the Stylus version.

from sanitize.css.

sotayamashita avatar sotayamashita commented on May 28, 2024

@celsomiranda I am creating stylus version here, https://github.com/sotayamashita/sanitize.stylus

from sanitize.css.

sotayamashita avatar sotayamashita commented on May 28, 2024

@celsomiranda I think if you would like to other version, you should fork it and create project.

from sanitize.css.

jonathantneal avatar jonathantneal commented on May 28, 2024

I’m open to accepting other versions. It might be nice if we used PostCSS to generate the alternate versions from one master pristine copy.

from sanitize.css.

sotayamashita avatar sotayamashita commented on May 28, 2024

@jonathantneal I will send you pull request of stylus version

from sanitize.css.

sotayamashita avatar sotayamashita commented on May 28, 2024

It might be nice if we used PostCSS to generate the alternate versions from one master pristine copy.

Sound good!! but postCSS generate stylus file from SASS or CSS?

from sanitize.css.

ai avatar ai commented on May 28, 2024

@sotayamashita we still need Stylus stringifier, but technically PostCSS can do it.

Right now you can manually generates Stylus string by PostCSS AST (technically it is stringifier).

from sanitize.css.

sotayamashita avatar sotayamashita commented on May 28, 2024

@ai Sounds nice. How about LESS ?

from sanitize.css.

ai avatar ai commented on May 28, 2024

@sotayamashita as I understand Less syntax can be reproduced by non-standard selectors. So you can build Less sources on top of CSS stringifier.

let mixin = postcss.rule({ selector: 'mixin()' });
let variable = postcss.decl({ prop: '@var', value: '1' });

from sanitize.css.

sotayamashita avatar sotayamashita commented on May 28, 2024

@ai Sorry not to replay. I appreciate your kindest reply. I will try to create this feature with PostCSS

from sanitize.css.

jonathantneal avatar jonathantneal commented on May 28, 2024

@sotayamashita, we still don’t have a less version. Would you be interested in creating this or should we close this issue?

from sanitize.css.

sotayamashita avatar sotayamashita commented on May 28, 2024

@jonathantneal you have stylus version ?

from sanitize.css.

jonathantneal avatar jonathantneal commented on May 28, 2024

@sotayamashita, yes?

from sanitize.css.

sotayamashita avatar sotayamashita commented on May 28, 2024

@jonathantneal I got it and I create it today !! πŸš€ After sending PR, please close this

from sanitize.css.

jonathantneal avatar jonathantneal commented on May 28, 2024

Hey @sotayamashita, wanted to get the new release out so I figured this part out, using codepen to verify the results. Released as part of v3.1.1. Thanks for the suggestion all that time ago.

from sanitize.css.

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.