Git Product home page Git Product logo

css3patterns's People

Contributors

abernier avatar alaingourves avatar arthur007110 avatar asakurasol avatar avaly avatar davidkaneda avatar ecsspert avatar jroenf avatar leaverou avatar misterlogan avatar moox avatar neagle avatar neofyt avatar notsolucky avatar tbaltrushaitis 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  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

css3patterns's Issues

Displaying remote gist patterns [Idea]

Hi,

CSS3patterns is awsome!

Let me share an idea with you: what about relying on gists to allow 3rd-party devs to use css3patterns UI to display/test their own patterns... As you said,

I can't accept all submissions, sorry for that.

but github can :) , and your UI is already neat to display them.

What I suggest is a special URL for gist-hosted patterns, eg: http://leaverou.me/css3patterns/#gist-XXXXX which will display the remote pattern into your UI.

I've created a YQL table which rely on gist API in order to be able to fetch the gist's content client-side, eg:

var yQuery = "USE 'http://gist.github.com/raw/1097256' AS github.gist.content; select * from github.gist.content where gist_id='" + XXXXX + '";

$.getJSON("http://query.yahooapis.com/v1/public/yql?q=" + encodeURIComponent(yQuery) + "&format=json&diagnostics=true&callback=?", function (data) {
    console.log(data);
});

You can test this code here

Cheers.

— Antoine

Patterns don't show

None of the patterns inside of ul#patterns show. They all have display:none set.

I found the offending line in Developer Tools:

body[style] #patterns > li:not(:target) {
    display: none;
}

I'll look for it in the actual code here at GitHub, but I'm sure someone who's actually familiar with the code structure can find it more quickly than me.

Update
When I load http://lea.verou.me/css3patterns/ (no target) location.hash still returns some truey value. So, the code that starts at about line 62 of css3patterns.js adds the style property to the body element which is supposed to hide all of the patterns except for the one I've selected. Since there isn't actually a target, the second part of the ternary clause (querySelector) doesn't actually match a valid element and nothing is shown.

This is weird. location.hash should be falsy. I suspect it's just me and I think the problem might go away after I clear my cache and close my browser.

Update
Nope. That's wrong. The problem occurs after clearing the cache and restarting the browser. I can duplicate the problem locally after cloning the repository, but I can also confirm that the onhashchange function code doesn't execute on page load .

This doesn't happen on Firefox and it doesn't happen in an incognito window. So, I guess I've confirmed that it's only me. It must be a browser extension.

just thank you

Just a big thank you for you guys sharing your work for free.

Ced. Webdesigner.

LESS.js

Just another idea,

Creating CSS patterns often requires to manually compute values (ex: "half the size"...), or have a variable in mind (ex: "my background is white")...

Have you thought of using something like LESS?

The pattern could then be saved as less stylesheet, but it should be displayed as plain CSS on the site (like it is) to allow users to just copy/paste the snippet which is good.

Let me know your thoughts about it ;)

— Antoine

Pattern question

Hi!
Anyone have an idea how to create 45deg (or any degree) rotated tablecloth pattern? :)

Best,
Bartek

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.