Giter Site home page Giter Site logo

Comments (3)

RwwL avatar RwwL commented on September 2, 2024

I would also be interested in seeing the -pie-background rule supported somehow in nib, but I wouldn't want want to see those rules ignored completely if it meant I couldn't use variable names for the color values in the -pie-background's gradient.

from nib.

walling avatar walling commented on September 2, 2024

I think it would be awesome if Nib added -pie-background automagically (in cases for background that makes sense). This feature should be enabled by a global config variable use-css3pie.

from nib.

walling avatar walling commented on September 2, 2024

The above pull request fixes this issue. Possible quick fix:

// css3pie.styl file:

css3pie-path = "PIE.htc"

pie()
  if css3pie-path
    behavior url(css3pie-path)

pie-linear-gradient(start, stops...)
  background linear-gradient(start, stops)
  -pie-background unquote("linear-gradient(%s, %s)" % (start stops))

// Usage:

body
  pie-linear-gradient top, 0% #46BFD3, 4% #3398B7, 100% #287790
  pie()

.fancy-box
  border-radius 5px
  pie()

from nib.

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.