Comments (6)
hmm, we have a thing called color-image()
for similar cases https://github.com/visionmedia/nib/blob/master/lib/nib/color-image.styl#L2 producing a data uri however I suppose for older browsers that wont work either
from nib.
Did a bit of testing on this hack and it's not very reliable.
from nib.
I've created the following mixin for achieving this - it's pretty clunky as I had to rebuild the hex code from rgb to get it playing nicely with the ms filter.
https://gist.github.com/1769124
from nib.
@jokull What was the problem? We've got code that looks like this that has worked for us:
background: -moz-linear-gradient(top, #fff, #d1d1d1);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0.00, #fff), color-stop(1.00, #d1d1d1));
filter: progid:DXImageTransform.Microsoft.gradient(Enabled='true',StartColorStr=#ffffffff, EndColorStr=#ffd1d1d1, GradientType=0);
Would be nice if nib figured this out for us.
from nib.
We didn't test it fully enough, just had some warning signs that it might not be solid enough. But I suppose if it works for @benmohu and @asuth we should reopen no?
from nib.
ya, 👍 to re-open.
from nib.
Related Issues (20)
- How to pass multiple animations to `animation()` in `vendor.styl`?
- Odd new error building flexbox grid framework with nib
- width: max-content doesn't come with webkit and moz prefix HOT 4
- normalize.styl HOT 1
- Any plans for maintenance? HOT 7
- "Size" utility conflicts with @page rule.
- Not want to use reset.styl
- transition mixin breaks surrounding code
- nsp vulnerability via stylus
- broken with only one level of relative path
- nib and Stylus variables do not work well together HOT 3
- use nib from package.json? HOT 1
- Document placeholder mixin
- exception error upon activating revolution slider 5.4 HOT 4
- Website link broken HOT 4
- Is there any sucessor or anyone with an alternative to NIB? HOT 1
- Please upgrade stylus dependency version to fix NodeJS 14 warnings HOT 8
- Would someone please update the npm version? HOT 8
- Release 1.1.3 with stylus dependency fixed HOT 3
- Importing nib spews warnings about "Accessing non-existent property '<property>' of module exports inside circular dependency" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.