Code Monkey home page Code Monkey logo

sass-extras's Introduction

sass-extras

Useful utilities for working with Sass

It includes functions for using SVG inline, generating random colors, system font stack, PRNG, and more…

Install

npm install sass-extras

Supported browsers

Latest Chrome, Firefox, and Safari.

Usage

@import './node_modules/sass-extras/index';

Or with sass-loader:

@import '~sass-extras/index';

Docs

Read the docs.

Related

sass-extras's People

Contributors

richienb avatar sindresorhus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

sass-extras's Issues

Maybe add an intro to documentation website

Hi,

Nice set to functions!

I am looking into packaging these officially for Debian, and routinely added the documentation website as the "Homepage" for the package, because I find that more user-oriented than the Github page.

Would be nice if you added a short intro to the documentation page on what that page is all about - perhaps just one line, with a link to sass-lang and Github websites.

(btw, you seem to make some good quality reusable code - but and a lot of it: Is there perhaps some blog entry or something else where that could aid me in curating what might be sensible to include in Debian?)

svg-url function not working on IE

The SVG encoded with svg-url aren't compatibles with IE10+ (yeah, i know it's a pretty old browser, but heh…).

I think it could come from the quotes used to wrap the encoded data (which need to be double) and thus the ones for the attributes (which need to be single and not encoded), see this article. And I guess < and > need to be encoded to.

Would it be ok to alter the url-encode to change the encoding for maximizing the compatibility, or maybe create a specific encode-svg to keep the first one clean ? Or maybe you just don't want to support IE ? I would be happy to suggest a PR if you want.

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.