Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated gradient syntax to the newest spec, added PrefixFree plugin f…

…or older browsers
  • Loading branch information...
commit 387e31dd8d240ebed81c555144962393d22f4f2f 1 parent 48bf9ac
@LeaVerou authored
Showing with 271 additions and 255 deletions.
  1. +271 −255 index.html
View
526 index.html
@@ -1,41 +1,44 @@
<!DOCTYPE html>
<html>
<head>
- <meta charset="utf-8" />
- <title>CSS3 Patterns Gallery</title>
- <link href="style.css" rel="stylesheet" />
+
+<meta charset="utf-8" />
+<title>CSS3 Patterns Gallery</title>
+<link href="style.css" rel="stylesheet" />
+
</head>
<body>
- <h1>CSS3 Patterns Gallery</h1>
- <div id="social">
- <div class="topsy_widget_data"><!--
- {
- "url": "http://lea.verou.me/css3patterns/",
- "title": "CSS3 Patterns Gallery",
- "nick": "LeaVerou"
- }
- --></div>
- <iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fleaverou.me%2Fcss3patterns%2F&amp;send=true&amp;layout=button_count&amp;width=450&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:21px;" allowTransparency="true"></iframe>
- </div>
- <ul id="help">
- <li>Click on a pattern to expand</li>
- <li>Textareas are editable</li>
- <li><a href="#browser-support">Browser support</a></li>
- <li><a href="#new-submissions">Submit a new one</a></li>
- <li><a href="https://github.com/LeaVerou/CSS3-Patterns-Gallery">Github repo</a></li>
- <li>Enjoy!</li>
- </ul>
- <ul id="patterns">
- <li style="background: #36c;
+
+<h1>CSS3 Patterns Gallery</h1>
+<div id="social">
+ <div class="topsy_widget_data"><!--
+ {
+ "url": "http://lea.verou.me/css3patterns/",
+ "title": "CSS3 Patterns Gallery",
+ "nick": "LeaVerou"
+ }
+ --></div>
+ <iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fleaverou.me%2Fcss3patterns%2F&amp;send=true&amp;layout=button_count&amp;width=450&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:21px;" allowTransparency="true"></iframe>
+</div>
+<ul id="help">
+ <li>Click on a pattern to expand</li>
+ <li>Textareas are editable</li>
+ <li><a href="#browser-support">Browser support</a></li>
+ <li><a href="#new-submissions">Submit a new one</a></li>
+ <li><a href="https://github.com/LeaVerou/CSS3-Patterns-Gallery">Github repo</a></li>
+ <li>Enjoy!</li>
+</ul>
+<ul id="patterns">
+ <li style="background: #36c;
background:
- linear-gradient(-25deg, transparent 75%, rgba(255,255,255,.8) 75%) 0 0,
- linear-gradient(-155deg, transparent 75%, rgba(255,255,255,.8) 75%) 0 0,
- linear-gradient(-25deg, transparent 75%, rgba(255,255,255,.8) 75%) 7px -15px,
- linear-gradient(-155deg, transparent 75%, rgba(255,255,255,.8) 75%) 7px -15px,
- #36c;
+linear-gradient(115deg, transparent 75%, rgba(255,255,255,.8) 75%) 0 0,
+linear-gradient(245deg, transparent 75%, rgba(255,255,255,.8) 75%) 0 0,
+linear-gradient(115deg, transparent 75%, rgba(255,255,255,.8) 75%) 7px -15px,
+linear-gradient(245deg, transparent 75%, rgba(255,255,255,.8) 75%) 7px -15px,
+#36c;
background-size: 15px 30px" title="Half-Rombes" data-author="Valentin Agachi" data-author-url="http://agachi.name/"></li>
- <li style="background:
+ <li style="background:
linear-gradient(45deg, #92baac 45px, transparent 45px),
linear-gradient(45deg, #92baac 45px, transparent 45px)64px 64px,
linear-gradient(225deg, transparent 46px, #e1ebbd 46px, #e1ebbd 91px, transparent 91px),
@@ -43,20 +46,21 @@
background-color:#e1ebbd;
background-size: 128px 128px" title="Arrows" data-author="Jeroen Franse" data-author-url="http://twitter.com/jroenf"></li>
- <li style="background:
-linear-gradient(315deg, #ECEDDC 25%, transparent 25%) -50px 0,
+ <li style="background:
+linear-gradient(135deg, #ECEDDC 25%, transparent 25%) -50px 0,
linear-gradient(225deg, #ECEDDC 25%, transparent 25%) -50px 0,
-linear-gradient(135deg, #ECEDDC 25%, transparent 25%),
+linear-gradient(315deg, #ECEDDC 25%, transparent 25%),
linear-gradient(45deg, #ECEDDC 25%, transparent 25%);
background-size: 100px 100px;
background-color: #EC173A;" title="Zig-Zag" data-author="eCSSpert" data-author-url="http://twitter.com/ecsspert"></li>
- <li style="background:
-linear-gradient(-45deg, #708090 22px, #d9ecff 22px, #d9ecff 24px, transparent 24px, transparent 67px, #d9ecff 67px, #d9ecff 69px, transparent 69px),
+
+ <li style="background:
+linear-gradient(135deg, #708090 22px, #d9ecff 22px, #d9ecff 24px, transparent 24px, transparent 67px, #d9ecff 67px, #d9ecff 69px, transparent 69px),
linear-gradient(225deg, #708090 22px, #d9ecff 22px, #d9ecff 24px, transparent 24px, transparent 67px, #d9ecff 67px, #d9ecff 69px, transparent 69px)0 64px;
background-color:#708090;
background-size: 64px 128px" title="Weave" data-author="Jeroen Franse" data-author-url="http://twitter.com/jroenf"></li>
- <li style="background:
+ <li style="background:
radial-gradient(hsl(0, 100%, 27%) 4%, hsl(0, 100%, 18%) 9%, hsla(0, 100%, 20%, 0) 9%) 0 0,
radial-gradient(hsl(0, 100%, 27%) 4%, hsl(0, 100%, 18%) 8%, hsla(0, 100%, 20%, 0) 10%) 50px 50px,
radial-gradient(hsla(0, 100%, 30%, 0.8) 20%, hsla(0, 100%, 20%, 0)) 50px 0,
@@ -70,294 +74,306 @@
background-color: #300;
background-size: 100px 100px;" title="Upholstery" data-author="Nate Eagle" data-author-url="http://nateeagle.com/"></li>
- <li style="background-color:black;
+ <li style="background-color:black;
background-image:
- radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 40px),
- radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 30px),
- radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 40px),
- radial-gradient(rgba(255,255,255,.4), rgba(255,255,255,.1) 2px, transparent 30px);
+radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 40px),
+radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 30px),
+radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 40px),
+radial-gradient(rgba(255,255,255,.4), rgba(255,255,255,.1) 2px, transparent 30px);
background-size: 550px 550px, 350px 350px, 250px 250px, 150px 150px;
background-position: 0 0, 40px 60px, 130px 270px, 70px 100px;" title="Starry night"></li>
-
- <li style="background-color:white;
+
+ <li style="background-color:white;
background-image:
- radial-gradient(midnightblue 9px, transparent 10px),
- repeating-radial-gradient(midnightblue 0, midnightblue 4px, transparent 5px, transparent 20px, midnightblue 21px, midnightblue 25px, transparent 26px, transparent 50px);
+radial-gradient(midnightblue 9px, transparent 10px),
+repeating-radial-gradient(midnightblue 0, midnightblue 4px, transparent 5px, transparent 20px, midnightblue 21px, midnightblue 25px, transparent 26px, transparent 50px);
background-size: 30px 30px, 90px 90px;
background-position: 0 0;" title="Marrakesh" data-author="Divya Manian" data-author-url="http://nimbupani.com"></li>
-
- <li style="background:
- radial-gradient(rgba(255,255,255,0) 0, rgba(255,255,255,.15) 30%, rgba(255,255,255,.3) 32%, rgba(255,255,255,0) 33%) 0 0,
- radial-gradient(rgba(255,255,255,0) 0, rgba(255,255,255,.1) 11%, rgba(255,255,255,.3) 13%, rgba(255,255,255,0) 14%) 0 0,
- radial-gradient(rgba(255,255,255,0) 0, rgba(255,255,255,.2) 17%, rgba(255,255,255,.43) 19%, rgba(255,255,255,0) 20%) 0 110px,
- radial-gradient(rgba(255,255,255,0) 0, rgba(255,255,255,.2) 11%, rgba(255,255,255,.4) 13%, rgba(255,255,255,0) 14%) -130px -170px,
- radial-gradient(rgba(255,255,255,0) 0, rgba(255,255,255,.2) 11%, rgba(255,255,255,.4) 13%, rgba(255,255,255,0) 14%) 130px 370px,
- radial-gradient(rgba(255,255,255,0) 0, rgba(255,255,255,.1) 11%, rgba(255,255,255,.2) 13%, rgba(255,255,255,0) 14%) 0 0,
- linear-gradient(45deg, #343702 0%, #184500 20%, #187546 30%, #006782 40%, #0b1284 50%, #760ea1 60%, #83096e 70%, #840b2a 80%, #b13e12 90%, #e27412 100%);
+
+ <li style="background:
+radial-gradient(rgba(255,255,255,0) 0, rgba(255,255,255,.15) 30%, rgba(255,255,255,.3) 32%, rgba(255,255,255,0) 33%) 0 0,
+radial-gradient(rgba(255,255,255,0) 0, rgba(255,255,255,.1) 11%, rgba(255,255,255,.3) 13%, rgba(255,255,255,0) 14%) 0 0,
+radial-gradient(rgba(255,255,255,0) 0, rgba(255,255,255,.2) 17%, rgba(255,255,255,.43) 19%, rgba(255,255,255,0) 20%) 0 110px,
+radial-gradient(rgba(255,255,255,0) 0, rgba(255,255,255,.2) 11%, rgba(255,255,255,.4) 13%, rgba(255,255,255,0) 14%) -130px -170px,
+radial-gradient(rgba(255,255,255,0) 0, rgba(255,255,255,.2) 11%, rgba(255,255,255,.4) 13%, rgba(255,255,255,0) 14%) 130px 370px,
+radial-gradient(rgba(255,255,255,0) 0, rgba(255,255,255,.1) 11%, rgba(255,255,255,.2) 13%, rgba(255,255,255,0) 14%) 0 0,
+linear-gradient(45deg, #343702 0%, #184500 20%, #187546 30%, #006782 40%, #0b1284 50%, #760ea1 60%, #83096e 70%, #840b2a 80%, #b13e12 90%, #e27412 100%);
background-size: 470px 470px, 970px 970px, 410px 410px, 610px 610px, 530px 530px, 730px 730px, 100% 100%;
background-color: #840b2a;"
- title="Rainbow bokeh" data-author="Auke Zwart" data-author-url="http://twitter.com/okke29"></li>
-
- <li style="background:
- linear-gradient(63deg, #151515 5px, transparent 5px) 0 5px,
- linear-gradient(243deg, #151515 5px, transparent 5px) 10px 0px,
- linear-gradient(63deg, #222 5px, transparent 5px) 0px 10px,
- linear-gradient(243deg, #222 5px, transparent 5px) 10px 5px,
- linear-gradient(0deg, #1b1b1b 10px, transparent 10px),
- linear-gradient(#1d1d1d 25%, #1a1a1a 25%, #1a1a1a 50%, transparent 50%, transparent 75%, #242424 75%, #242424);
+ title="Rainbow bokeh" data-author="Auke Zwart" data-author-url="http://twitter.com/okke29"></li>
+
+ <li style="background:
+linear-gradient(27deg, #151515 5px, transparent 5px) 0 5px,
+linear-gradient(207deg, #151515 5px, transparent 5px) 10px 0px,
+linear-gradient(27deg, #222 5px, transparent 5px) 0px 10px,
+linear-gradient(207deg, #222 5px, transparent 5px) 10px 5px,
+linear-gradient(90deg, #1b1b1b 10px, transparent 10px),
+linear-gradient(#1d1d1d 25%, #1a1a1a 25%, #1a1a1a 50%, transparent 50%, transparent 75%, #242424 75%, #242424);
background-color: #131313;
background-size: 20px 20px;" title="Carbon" data-author="Atle Mo (design), Sébastien Grosjean (code)" data-author-url="http://www.zencocoon.com/"></li>
-
- <li style="background:
- radial-gradient(black 15%, transparent 16%) 0 0,
- radial-gradient(black 15%, transparent 16%) 8px 8px,
- radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 0 1px,
- radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 8px 9px;
+
+ <li style="background:
+radial-gradient(black 15%, transparent 16%) 0 0,
+radial-gradient(black 15%, transparent 16%) 8px 8px,
+radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 0 1px,
+radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 8px 9px;
background-color:#282828;
background-size:16px 16px;" title="Carbon fibre" data-author="Atle Mo (design), Lea Verou (code)" data-author-url="http://subtlepatterns.com/#post-22"></li>
- <li style="background:
- radial-gradient(60% 43%, closest-side circle, #b03 26%, rgba(187,0,51,0) 27%),
- radial-gradient(40% 43%, closest-side circle, #b03 26%, rgba(187,0,51,0) 27%),
- radial-gradient(40% 22%, closest-side circle, #d35 45%, rgba(221,51,85,0) 46%),
- radial-gradient(60% 22%, closest-side circle, #d35 45%, rgba(221,51,85,0) 46%),
- radial-gradient(50% 35%, closest-side circle, #d35 30%, rgba(221,51,85,0) 31%),
+ <li style="background:
+radial-gradient(circle closest-side at 60% 43%, #b03 26%, rgba(187,0,51,0) 27%),
+radial-gradient(circle closest-side at 40% 43%, #b03 26%, rgba(187,0,51,0) 27%),
+radial-gradient(circle closest-side at 40% 22%, #d35 45%, rgba(221,51,85,0) 46%),
+radial-gradient(circle closest-side at 60% 22%, #d35 45%, rgba(221,51,85,0) 46%),
+radial-gradient(circle closest-side at 50% 35%, #d35 30%, rgba(221,51,85,0) 31%),
- radial-gradient(60% 43%, closest-side circle, #b03 26%, rgba(187,0,51,0) 27%) 50px 50px,
- radial-gradient(40% 43%, closest-side circle, #b03 26%, rgba(187,0,51,0) 27%) 50px 50px,
- radial-gradient(40% 22%, closest-side circle, #d35 45%, rgba(221,51,85,0) 46%) 50px 50px,
- radial-gradient(60% 22%, closest-side circle, #d35 45%, rgba(221,51,85,0) 46%) 50px 50px,
- radial-gradient(50% 35%, closest-side circle, #d35 30%, rgba(221,51,85,0) 31%) 50px 50px;
+radial-gradient(circle closest-side at 60% 43%, #b03 26%, rgba(187,0,51,0) 27%) 50px 50px,
+radial-gradient(circle closest-side at 40% 43%, #b03 26%, rgba(187,0,51,0) 27%) 50px 50px,
+radial-gradient(circle closest-side at 40% 22%, #d35 45%, rgba(221,51,85,0) 46%) 50px 50px,
+radial-gradient(circle closest-side at 60% 22%, #d35 45%, rgba(221,51,85,0) 46%) 50px 50px,
+radial-gradient(circle closest-side at 50% 35%, #d35 30%, rgba(221,51,85,0) 31%) 50px 50px;
background-color:#b03;
background-size:100px 100px;" title="Hearts"></li>
-
- <li style="background-color: #6d695c;
+
+ <li style="background-color: #6d695c;
background-image:
- repeating-linear-gradient(-30deg, rgba(255,255,255,.1), rgba(255,255,255,.1) 1px, transparent 1px, transparent 60px),
- repeating-linear-gradient(30deg, rgba(255,255,255,.1), rgba(255,255,255,.1) 1px, transparent 1px, transparent 60px),
- linear-gradient(30deg, rgba(0,0,0,.1) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.1) 75%, rgba(0,0,0,.1)),
- linear-gradient(-30deg, rgba(0,0,0,.1) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.1) 75%, rgba(0,0,0,.1));
+repeating-linear-gradient(120deg, rgba(255,255,255,.1), rgba(255,255,255,.1) 1px, transparent 1px, transparent 60px),
+repeating-linear-gradient(60deg, rgba(255,255,255,.1), rgba(255,255,255,.1) 1px, transparent 1px, transparent 60px),
+linear-gradient(60deg, rgba(0,0,0,.1) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.1) 75%, rgba(0,0,0,.1)),
+linear-gradient(120deg, rgba(0,0,0,.1) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.1) 75%, rgba(0,0,0,.1));
background-size: 70px 120px;" title="Argyle" data-author="Anna Kassner" data-author-url="http://annamation.ca/"></li>
- <li style="background-color: #FF7D9D;
+ <li style="background-color: #FF7D9D;
background-size: 58px 58px;
background-position: 0px 2px, 4px 35px, 29px 31px, 33px 6px,
- 0px 36px, 4px 2px, 29px 6px, 33px 30px;
+0px 36px, 4px 2px, 29px 6px, 33px 30px;
background-image:
- linear-gradient(115deg, #C90032 23px, transparent 23px),
- linear-gradient(295deg, #C90032 23px, transparent 23px),
- linear-gradient(115deg, #C90032 23px, transparent 23px),
- linear-gradient(295deg, #C90032 23px, transparent 23px),
+linear-gradient(335deg, #C90032 23px, transparent 23px),
+linear-gradient(155deg, #C90032 23px, transparent 23px),
+linear-gradient(335deg, #C90032 23px, transparent 23px),
+linear-gradient(155deg, #C90032 23px, transparent 23px),
- linear-gradient(115deg, #C90032 10px, transparent 10px),
- linear-gradient(295deg, #C90032 10px, transparent 10px),
- linear-gradient(115deg, #C90032 10px, transparent 10px),
- linear-gradient(295deg, #C90032 10px, transparent 10px);"
- title="Steps" data-author="Nicolas Gallagher" data-author-url="http://nicolasgallagher.com/"></li>
-
- <li style="background:
- radial-gradient(100% 50%, circle, transparent 20%, rgba(255,255,255,.3) 21%, rgba(255,255,255,.3) 34%, transparent 35%, transparent),
- radial-gradient(0% 50%, circle, transparent 20%, rgba(255,255,255,.3) 21%, rgba(255,255,255,.3) 34%, transparent 35%, transparent) 0 -50px;
+linear-gradient(335deg, #C90032 10px, transparent 10px),
+linear-gradient(155deg, #C90032 10px, transparent 10px),
+linear-gradient(335deg, #C90032 10px, transparent 10px),
+linear-gradient(155deg, #C90032 10px, transparent 10px);"
+ title="Steps" data-author="Nicolas Gallagher" data-author-url="http://nicolasgallagher.com/"></li>
+
+ <li style="background:
+radial-gradient(circle at 100% 50%, transparent 20%, rgba(255,255,255,.3) 21%, rgba(255,255,255,.3) 34%, transparent 35%, transparent),
+radial-gradient(circle at 0% 50%, transparent 20%, rgba(255,255,255,.3) 21%, rgba(255,255,255,.3) 34%, transparent 35%, transparent) 0 -50px;
background-color: slategray;
background-size:75px 100px;" title="Waves"></li>
-
- <li style="background:
- radial-gradient(circle, transparent 20%, slategray 20%, slategray 80%, transparent 80%, transparent),
- radial-gradient(circle, transparent 20%, slategray 20%, slategray 80%, transparent 80%, transparent) 50px 50px,
- linear-gradient(#A8B1BB 8px, transparent 8px) 0 -4px,
- linear-gradient(0, #A8B1BB 8px, transparent 8px) -4px 0;
+
+ <li style="background:
+radial-gradient(circle, transparent 20%, slategray 20%, slategray 80%, transparent 80%, transparent),
+radial-gradient(circle, transparent 20%, slategray 20%, slategray 80%, transparent 80%, transparent) 50px 50px,
+linear-gradient(#A8B1BB 8px, transparent 8px) 0 -4px,
+linear-gradient(90deg, #A8B1BB 8px, transparent 8px) -4px 0;
background-color: slategray;
background-size:100px 100px, 100px 100px, 50px 50px, 50px 50px;" title="Cross"></li>
- <li style="background:
- radial-gradient(50% 59%, circle, #D2CAAB 3%, #364E27 4%, #364E27 11%, rgba(54,78,39,0) 12%, rgba(54,78,39,0)) 50px 0,
- radial-gradient(50% 41%, circle, #364E27 3%, #D2CAAB 4%, #D2CAAB 11%, rgba(210,202,171,0) 12%, rgba(210,202,171,0)) 50px 0,
- radial-gradient(50% 59%, circle, #D2CAAB 3%, #364E27 4%, #364E27 11%, rgba(54,78,39,0) 12%, rgba(54,78,39,0)) 0 50px,
- radial-gradient(50% 41%, circle, #364E27 3%, #D2CAAB 4%, #D2CAAB 11%, rgba(210,202,171,0) 12%, rgba(210,202,171,0)) 0 50px,
- radial-gradient(100% 50%, circle, #D2CAAB 16%, rgba(210,202,171,0) 17%),
- radial-gradient(0% 50%, circle, #364E27 16%, rgba(54,78,39,0) 17%),
- radial-gradient(100% 50%, circle, #D2CAAB 16%, rgba(210,202,171,0) 17%) 50px 50px,
- radial-gradient(0% 50%, circle, #364E27 16%, rgba(54,78,39,0) 17%) 50px 50px;
+ <li style="background:
+radial-gradient(circle at 50% 59%, #D2CAAB 3%, #364E27 4%, #364E27 11%, rgba(54,78,39,0) 12%, rgba(54,78,39,0)) 50px 0,
+radial-gradient(circle at 50% 41%, #364E27 3%, #D2CAAB 4%, #D2CAAB 11%, rgba(210,202,171,0) 12%, rgba(210,202,171,0)) 50px 0,
+radial-gradient(circle at 50% 59%, #D2CAAB 3%, #364E27 4%, #364E27 11%, rgba(54,78,39,0) 12%, rgba(54,78,39,0)) 0 50px,
+radial-gradient(circle at 50% 41%, #364E27 3%, #D2CAAB 4%, #D2CAAB 11%, rgba(210,202,171,0) 12%, rgba(210,202,171,0)) 0 50px,
+radial-gradient(circle at 100% 50%, #D2CAAB 16%, rgba(210,202,171,0) 17%),
+radial-gradient(circle at 0% 50%, #364E27 16%, rgba(54,78,39,0) 17%),
+radial-gradient(circle at 100% 50%, #D2CAAB 16%, rgba(210,202,171,0) 17%) 50px 50px,
+radial-gradient(circle at 0% 50%, #364E27 16%, rgba(54,78,39,0) 17%) 50px 50px;
background-color:#63773F;
background-size:100px 100px;" title="Yin Yang"></li>
-
- <li style="background:
- linear-gradient(126deg, #232927 4%, transparent 4%) -70px 43px,
- linear-gradient( 54deg, #232927 4%, transparent 4%) 30px 43px,
- linear-gradient( 18deg, #e3d7bf 8.5%, transparent 8.5%) 30px 43px,
- linear-gradient(162deg, #e3d7bf 8.5%, transparent 8.5%) -70px 43px,
- linear-gradient(234deg, #e3d7bf 7.5%, transparent 7.5%) -70px 23px,
- linear-gradient(-54deg, #e3d7bf 7.5%, transparent 7.5%) 30px 23px,
-
- linear-gradient(126deg, #232927 4%, transparent 4%) -20px 93px,
- linear-gradient( 54deg, #232927 4%, transparent 4%) 80px 93px,
- linear-gradient( 18deg, #e3d7bf 8.5%, transparent 8.5%) 80px 93px,
- linear-gradient(162deg, #e3d7bf 8.5%, transparent 8.5%) -20px 93px,
- linear-gradient(234deg, #e3d7bf 7.5%, transparent 7.5%) -20px 73px,
- linear-gradient(-54deg, #e3d7bf 7.5%, transparent 7.5%) 80px 73px;
+
+ <li style="background:
+linear-gradient(324deg, #232927 4%, transparent 4%) -70px 43px,
+linear-gradient( 36deg, #232927 4%, transparent 4%) 30px 43px,
+linear-gradient( 72deg, #e3d7bf 8.5%, transparent 8.5%) 30px 43px,
+linear-gradient(288deg, #e3d7bf 8.5%, transparent 8.5%) -70px 43px,
+linear-gradient(216deg, #e3d7bf 7.5%, transparent 7.5%) -70px 23px,
+linear-gradient(144deg, #e3d7bf 7.5%, transparent 7.5%) 30px 23px,
+
+linear-gradient(324deg, #232927 4%, transparent 4%) -20px 93px,
+linear-gradient( 36deg, #232927 4%, transparent 4%) 80px 93px,
+linear-gradient( 72deg, #e3d7bf 8.5%, transparent 8.5%) 80px 93px,
+linear-gradient(288deg, #e3d7bf 8.5%, transparent 8.5%) -20px 93px,
+linear-gradient(216deg, #e3d7bf 7.5%, transparent 7.5%) -20px 73px,
+linear-gradient(144deg, #e3d7bf 7.5%, transparent 7.5%) 80px 73px;
background-color: #232927;
background-size: 100px 100px;"
- title="Stars" data-author="Nicolas Gallagher" data-author-url="http://nicolasgallagher.com/"></li>
-
- <li style="background-image:
- radial-gradient(closest-side, transparent 0%, transparent 75%, #B6CC66 76%, #B6CC66 85%, #EDFFDB 86%, #EDFFDB 94%, #FFFFFF 95%, #FFFFFF 103%, #D9E6A7 104%, #D9E6A7 112%, #798B3C 113%, #798B3C 121%, #FFFFFF 122%, #FFFFFF 130%, #E0EAD7 131%, #E0EAD7 140%),
- radial-gradient(closest-side, transparent 0%, transparent 75%, #B6CC66 76%, #B6CC66 85%, #EDFFDB 86%, #EDFFDB 94%, #FFFFFF 95%, #FFFFFF 103%, #D9E6A7 104%, #D9E6A7 112%, #798B3C 113%, #798B3C 121%, #FFFFFF 122%, #FFFFFF 130%, #E0EAD7 131%, #E0EAD7 140%);
+ title="Stars" data-author="Nicolas Gallagher" data-author-url="http://nicolasgallagher.com/"></li>
+
+ <li style="background-image:
+radial-gradient(closest-side, transparent 0%, transparent 75%, #B6CC66 76%, #B6CC66 85%, #EDFFDB 86%, #EDFFDB 94%, #FFFFFF 95%, #FFFFFF 103%, #D9E6A7 104%, #D9E6A7 112%, #798B3C 113%, #798B3C 121%, #FFFFFF 122%, #FFFFFF 130%, #E0EAD7 131%, #E0EAD7 140%),
+radial-gradient(closest-side, transparent 0%, transparent 75%, #B6CC66 76%, #B6CC66 85%, #EDFFDB 86%, #EDFFDB 94%, #FFFFFF 95%, #FFFFFF 103%, #D9E6A7 104%, #D9E6A7 112%, #798B3C 113%, #798B3C 121%, #FFFFFF 122%, #FFFFFF 130%, #E0EAD7 131%, #E0EAD7 140%);
background-size: 110px 110px;
background-color: #C8D3A7;
background-position: 0 0, 55px 55px;" title="Brady Bunch" data-author="Estelle Weyl" data-author-url="http://www.standardista.com"></li>
-
- <li style="background-color:#def;
+
+ <li style="background-color:#def;
background-image: radial-gradient(closest-side, transparent 98%, rgba(0,0,0,.3) 99%),
- radial-gradient(closest-side, transparent 98%, rgba(0,0,0,.3) 99%);
+radial-gradient(closest-side, transparent 98%, rgba(0,0,0,.3) 99%);
background-size:80px 80px;
background-position:0 0, 40px 40px;" title="Shippo"></li>
-
- <li style="background-color: silver;
-background-image: linear-gradient(115deg, #b00 23px, transparent 23px),
- linear-gradient(295deg, #d00 23px, transparent 23px),
- linear-gradient(115deg, #b00 23px, transparent 23px),
- linear-gradient(295deg, #d00 23px, transparent 23px);
+
+ <li style="background-color: silver;
+background-image: linear-gradient(335deg, #b00 23px, transparent 23px),
+linear-gradient(155deg, #d00 23px, transparent 23px),
+linear-gradient(335deg, #b00 23px, transparent 23px),
+linear-gradient(155deg, #d00 23px, transparent 23px);
background-size: 58px 58px;
background-position: 0px 2px, 4px 35px, 29px 31px, 34px 6px;"
- title="Bricks" data-author="Tab Atkins Jr" data-author-url="http://www.xanthir.com/blog/"></li>
-
- <li style="background-color:silver;
+ title="Bricks" data-author="Tab Atkins Jr" data-author-url="http://www.xanthir.com/blog/"></li>
+
+ <li style="background-color:silver;
background-image:
- radial-gradient(100% 150%, circle, silver 24%, white 25%, white 28%, silver 29%, silver 36%, white 36%, white 40%, transparent 40%, transparent),
- radial-gradient(0 150%, circle, silver 24%, white 25%, white 28%, silver 29%, silver 36%, white 36%, white 40%, transparent 40%, transparent),
- radial-gradient(50% 100%, circle, white 10%, silver 11%, silver 23%, white 24%, white 30%, silver 31%, silver 43%, white 44%, white 50%, silver 51%, silver 63%, white 64%, white 71%, transparent 71%, transparent),
- radial-gradient(100% 50%, circle, white 5%, silver 6%, silver 15%, white 16%, white 20%, silver 21%, silver 30%, white 31%, white 35%, silver 36%, silver 45%, white 46%, white 49%, transparent 50%, transparent),
- radial-gradient(0 50%, circle, white 5%, silver 6%, silver 15%, white 16%, white 20%, silver 21%, silver 30%, white 31%, white 35%, silver 36%, silver 45%, white 46%, white 49%, transparent 50%, transparent);
+radial-gradient(circle at 100% 150%, silver 24%, white 25%, white 28%, silver 29%, silver 36%, white 36%, white 40%, transparent 40%, transparent),
+radial-gradient(circle at 0 150%, silver 24%, white 25%, white 28%, silver 29%, silver 36%, white 36%, white 40%, transparent 40%, transparent),
+radial-gradient(circle at 50% 100%, white 10%, silver 11%, silver 23%, white 24%, white 30%, silver 31%, silver 43%, white 44%, white 50%, silver 51%, silver 63%, white 64%, white 71%, transparent 71%, transparent),
+radial-gradient(circle at 100% 50%, white 5%, silver 6%, silver 15%, white 16%, white 20%, silver 21%, silver 30%, white 31%, white 35%, silver 36%, silver 45%, white 46%, white 49%, transparent 50%, transparent),
+radial-gradient(circle at 0 50%, white 5%, silver 6%, silver 15%, white 16%, white 20%, silver 21%, silver 30%, white 31%, white 35%, silver 36%, silver 45%, white 46%, white 49%, transparent 50%, transparent);
background-size:100px 50px;" title="Seigaiha"></li>
-
- <li style="background-color:#556;
-background-image: linear-gradient(60deg, #445 12%, transparent 12.5%, transparent 87%, #445 87.5%, #445),
- linear-gradient(-60deg, #445 12%, transparent 12.5%, transparent 87%, #445 87.5%, #445),
- linear-gradient(60deg, #445 12%, transparent 12.5%, transparent 87%, #445 87.5%, #445),
- linear-gradient(-60deg, #445 12%, transparent 12.5%, transparent 87%, #445 87.5%, #445),
- linear-gradient(30deg, #99a 25%, transparent 25.5%, transparent 75%, #99a 75%, #99a),
- linear-gradient(30deg, #99a 25%, transparent 25.5%, transparent 75%, #99a 75%, #99a);
+
+ <li style="background-color:#556;
+background-image: linear-gradient(30deg, #445 12%, transparent 12.5%, transparent 87%, #445 87.5%, #445),
+linear-gradient(150deg, #445 12%, transparent 12.5%, transparent 87%, #445 87.5%, #445),
+linear-gradient(30deg, #445 12%, transparent 12.5%, transparent 87%, #445 87.5%, #445),
+linear-gradient(150deg, #445 12%, transparent 12.5%, transparent 87%, #445 87.5%, #445),
+linear-gradient(60deg, #99a 25%, transparent 25.5%, transparent 75%, #99a 75%, #99a),
+linear-gradient(60deg, #99a 25%, transparent 25.5%, transparent 75%, #99a 75%, #99a);
background-size:80px 140px;
background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;" title="Japanese cube"></li>
-
- <li style="background-color:#001;
+
+ <li style="background-color:#001;
background-image: radial-gradient(white 15%, transparent 16%),
- radial-gradient(white 15%, transparent 16%);
+radial-gradient(white 15%, transparent 16%);
background-size:60px 60px;
background-position: 0 0, 30px 30px;" title="Polka dot"></li>
-
- <li style="background:
- linear-gradient(-45deg, white 25%, transparent 25%, transparent 75%, black 75%, black) 0 0,
- linear-gradient(-45deg, black 25%, transparent 25%, transparent 75%, white 75%, white) 1em 1em,
- linear-gradient(45deg, black 17%, transparent 17%, transparent 25%, black 25%, black 36%, transparent 36%, transparent 64%, black 64%, black 75%, transparent 75%, transparent 83%, black 83%) 1em 1em;
+
+ <li style="background:
+linear-gradient(-45deg, white 25%, transparent 25%, transparent 75%, black 75%, black) 0 0,
+linear-gradient(-45deg, black 25%, transparent 25%, transparent 75%, white 75%, white) 1em 1em,
+linear-gradient(45deg, black 17%, transparent 17%, transparent 25%, black 25%, black 36%, transparent 36%, transparent 64%, black 64%, black 75%, transparent 75%, transparent 83%, black 83%) 1em 1em;
background-color: white;
background-size: 2em 2em;"
- title="Houndstooth" data-author="Antoine Bernier" data-author-url="http://abernier.name"></li>
-
- <li style="background-color: #eee;
+title="Houndstooth" data-author="Antoine Bernier" data-author-url="http://abernier.name"></li>
+
+ <li style="background-color: #eee;
background-image: linear-gradient(45deg, black 25%, transparent 25%, transparent 75%, black 75%, black),
- linear-gradient(45deg, black 25%, transparent 25%, transparent 75%, black 75%, black);
+linear-gradient(45deg, black 25%, transparent 25%, transparent 75%, black 75%, black);
background-size:60px 60px;
background-position:0 0, 30px 30px" title="Checkerboard"></li>
-
- <li style="background-color: #eee;
+
+ <li style="background-color: #eee;
background-image: linear-gradient(45deg, black 25%, transparent 25%, transparent 75%, black 75%, black),
- linear-gradient(-45deg, black 25%, transparent 25%, transparent 75%, black 75%, black);
+linear-gradient(-45deg, black 25%, transparent 25%, transparent 75%, black 75%, black);
background-size:60px 60px;" title="Diagonal checkerboard"></li>
- <li style="background-color: hsl(2, 57%, 40%);
+ <li style="background-color: hsl(2, 57%, 40%);
background-image: repeating-linear-gradient(transparent, transparent 50px, rgba(0,0,0,.4) 50px, rgba(0,0,0,.4) 53px, transparent 53px, transparent 63px, rgba(0,0,0,.4) 63px, rgba(0,0,0,.4) 66px, transparent 66px, transparent 116px, rgba(0,0,0,.5) 116px, rgba(0,0,0,.5) 166px, rgba(255,255,255,.2) 166px, rgba(255,255,255,.2) 169px, rgba(0,0,0,.5) 169px, rgba(0,0,0,.5) 179px, rgba(255,255,255,.2) 179px, rgba(255,255,255,.2) 182px, rgba(0,0,0,.5) 182px, rgba(0,0,0,.5) 232px, transparent 232px),
- repeating-linear-gradient(180deg, transparent, transparent 50px, rgba(0,0,0,.4) 50px, rgba(0,0,0,.4) 53px, transparent 53px, transparent 63px, rgba(0,0,0,.4) 63px, rgba(0,0,0,.4) 66px, transparent 66px, transparent 116px, rgba(0,0,0,.5) 116px, rgba(0,0,0,.5) 166px, rgba(255,255,255,.2) 166px, rgba(255,255,255,.2) 169px, rgba(0,0,0,.5) 169px, rgba(0,0,0,.5) 179px, rgba(255,255,255,.2) 179px, rgba(255,255,255,.2) 182px, rgba(0,0,0,.5) 182px, rgba(0,0,0,.5) 232px, transparent 232px),
- repeating-linear-gradient(-35deg, transparent, transparent 2px, rgba(0,0,0,.2) 2px, rgba(0,0,0,.2) 3px, transparent 3px, transparent 5px, rgba(0,0,0,.2) 5px);"
- title="Tartan" data-author="Marta Armada" data-author-url="http://swwweet.com"></li>
-
- <li style="background-color: hsl(34, 53%, 82%);
+repeating-linear-gradient(270deg, transparent, transparent 50px, rgba(0,0,0,.4) 50px, rgba(0,0,0,.4) 53px, transparent 53px, transparent 63px, rgba(0,0,0,.4) 63px, rgba(0,0,0,.4) 66px, transparent 66px, transparent 116px, rgba(0,0,0,.5) 116px, rgba(0,0,0,.5) 166px, rgba(255,255,255,.2) 166px, rgba(255,255,255,.2) 169px, rgba(0,0,0,.5) 169px, rgba(0,0,0,.5) 179px, rgba(255,255,255,.2) 179px, rgba(255,255,255,.2) 182px, rgba(0,0,0,.5) 182px, rgba(0,0,0,.5) 232px, transparent 232px),
+repeating-linear-gradient(125deg, transparent, transparent 2px, rgba(0,0,0,.2) 2px, rgba(0,0,0,.2) 3px, transparent 3px, transparent 5px, rgba(0,0,0,.2) 5px);"
+ title="Tartan" data-author="Marta Armada" data-author-url="http://swwweet.com"></li>
+
+ <li style="background-color: hsl(34, 53%, 82%);
background-image: repeating-linear-gradient(45deg, transparent 5px, hsla(197, 62%, 11%, 0.5) 5px, hsla(197, 62%, 11%, 0.5) 10px,
- hsla(5, 53%, 63%, 0) 10px, hsla(5, 53%, 63%, 0) 35px, hsla(5, 53%, 63%, 0.5) 35px, hsla(5, 53%, 63%, 0.5) 40px,
- hsla(197, 62%, 11%, 0.5) 40px, hsla(197, 62%, 11%, 0.5) 50px, hsla(197, 62%, 11%, 0) 50px, hsla(197, 62%, 11%, 0) 60px,
- hsla(5, 53%, 63%, 0.5) 60px, hsla(5, 53%, 63%, 0.5) 70px, hsla(35, 91%, 65%, 0.5) 70px, hsla(35, 91%, 65%, 0.5) 80px,
- hsla(35, 91%, 65%, 0) 80px, hsla(35, 91%, 65%, 0) 90px, hsla(5, 53%, 63%, 0.5) 90px, hsla(5, 53%, 63%, 0.5) 110px,
- hsla(5, 53%, 63%, 0) 110px, hsla(5, 53%, 63%, 0) 120px, hsla(197, 62%, 11%, 0.5) 120px, hsla(197, 62%, 11%, 0.5) 140px
- ),
- repeating-linear-gradient(135deg, transparent 5px, hsla(197, 62%, 11%, 0.5) 5px, hsla(197, 62%, 11%, 0.5) 10px,
- hsla(5, 53%, 63%, 0) 10px, hsla(5, 53%, 63%, 0) 35px, hsla(5, 53%, 63%, 0.5) 35px, hsla(5, 53%, 63%, 0.5) 40px,
- hsla(197, 62%, 11%, 0.5) 40px, hsla(197, 62%, 11%, 0.5) 50px, hsla(197, 62%, 11%, 0) 50px, hsla(197, 62%, 11%, 0) 60px,
- hsla(5, 53%, 63%, 0.5) 60px, hsla(5, 53%, 63%, 0.5) 70px, hsla(35, 91%, 65%, 0.5) 70px, hsla(35, 91%, 65%, 0.5) 80px,
- hsla(35, 91%, 65%, 0) 80px, hsla(35, 91%, 65%, 0) 90px, hsla(5, 53%, 63%, 0.5) 90px, hsla(5, 53%, 63%, 0.5) 110px,
- hsla(5, 53%, 63%, 0) 110px, hsla(5, 53%, 63%, 0) 140px, hsla(197, 62%, 11%, 0.5) 140px, hsla(197, 62%, 11%, 0.5) 160px
- );" title="Madras" data-author="Divya Manian" data-author-url="http://nimbupani.com"></li>
-
- <li style="background-color: #fff;
+ hsla(5, 53%, 63%, 0) 10px, hsla(5, 53%, 63%, 0) 35px, hsla(5, 53%, 63%, 0.5) 35px, hsla(5, 53%, 63%, 0.5) 40px,
+ hsla(197, 62%, 11%, 0.5) 40px, hsla(197, 62%, 11%, 0.5) 50px, hsla(197, 62%, 11%, 0) 50px, hsla(197, 62%, 11%, 0) 60px,
+ hsla(5, 53%, 63%, 0.5) 60px, hsla(5, 53%, 63%, 0.5) 70px, hsla(35, 91%, 65%, 0.5) 70px, hsla(35, 91%, 65%, 0.5) 80px,
+ hsla(35, 91%, 65%, 0) 80px, hsla(35, 91%, 65%, 0) 90px, hsla(5, 53%, 63%, 0.5) 90px, hsla(5, 53%, 63%, 0.5) 110px,
+ hsla(5, 53%, 63%, 0) 110px, hsla(5, 53%, 63%, 0) 120px, hsla(197, 62%, 11%, 0.5) 120px, hsla(197, 62%, 11%, 0.5) 140px
+ ),
+repeating-linear-gradient(135deg, transparent 5px, hsla(197, 62%, 11%, 0.5) 5px, hsla(197, 62%, 11%, 0.5) 10px,
+ hsla(5, 53%, 63%, 0) 10px, hsla(5, 53%, 63%, 0) 35px, hsla(5, 53%, 63%, 0.5) 35px, hsla(5, 53%, 63%, 0.5) 40px,
+ hsla(197, 62%, 11%, 0.5) 40px, hsla(197, 62%, 11%, 0.5) 50px, hsla(197, 62%, 11%, 0) 50px, hsla(197, 62%, 11%, 0) 60px,
+ hsla(5, 53%, 63%, 0.5) 60px, hsla(5, 53%, 63%, 0.5) 70px, hsla(35, 91%, 65%, 0.5) 70px, hsla(35, 91%, 65%, 0.5) 80px,
+ hsla(35, 91%, 65%, 0) 80px, hsla(35, 91%, 65%, 0) 90px, hsla(5, 53%, 63%, 0.5) 90px, hsla(5, 53%, 63%, 0.5) 110px,
+ hsla(5, 53%, 63%, 0) 110px, hsla(5, 53%, 63%, 0) 140px, hsla(197, 62%, 11%, 0.5) 140px, hsla(197, 62%, 11%, 0.5) 160px
+);" title="Madras" data-author="Divya Manian" data-author-url="http://nimbupani.com"></li>
+
+ <li style="background-color: #fff;
background-image:
- linear-gradient(0deg, transparent 79px, #abced4 79px, #abced4 81px, transparent 81px),
- linear-gradient(#eee .05em, transparent .05em);
+linear-gradient(90deg, transparent 79px, #abced4 79px, #abced4 81px, transparent 81px),
+linear-gradient(#eee .1em, transparent .1em);
background-size: 100% 1.2em;" title="Lined paper" data-author="Sarah Backhouse" data-author-url="http://www.jadu.net"></li>
-
- <li style="background-color:#269;
+
+ <li style="background-color:#269;
background-image: linear-gradient(white 2px, transparent 2px),
- linear-gradient(0, white 2px, transparent 2px),
- linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px),
- linear-gradient(0, rgba(255,255,255,.3) 1px, transparent 1px);
+linear-gradient(90deg, white 2px, transparent 2px),
+linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px),
+linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px);
background-size:100px 100px, 100px 100px, 20px 20px, 20px 20px;
background-position:-2px -2px, -2px -2px, -1px -1px, -1px -1px" title="Blueprint grid"></li>
-
- <li style="background-color:white;
-background-image: linear-gradient(0, rgba(200,0,0,.5) 50%, transparent 50%),
- linear-gradient(rgba(200,0,0,.5) 50%, transparent 50%);
+
+ <li style="background-color:white;
+background-image: linear-gradient(90deg, rgba(200,0,0,.5) 50%, transparent 50%),
+linear-gradient(rgba(200,0,0,.5) 50%, transparent 50%);
background-size:50px 50px;" title="Tablecloth"></li>
-
- <li style="background-color: gray;
+
+ <li style="background-color: gray;
background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.5) 35px, rgba(255,255,255,.5) 70px);" title="Diagonal stripes"></li>
-
- <li style="background-color: #026873;
-background-image: linear-gradient(0, rgba(255,255,255,.07) 50%, transparent 50%),
- linear-gradient(0, rgba(255,255,255,.13) 50%, transparent 50%),
- linear-gradient(0, transparent 50%, rgba(255,255,255,.17) 50%),
- linear-gradient(0, transparent 50%, rgba(255,255,255,.19) 50%);
+
+ <li style="background-color: #026873;
+background-image: linear-gradient(90deg, rgba(255,255,255,.07) 50%, transparent 50%),
+linear-gradient(90deg, rgba(255,255,255,.13) 50%, transparent 50%),
+linear-gradient(90deg, transparent 50%, rgba(255,255,255,.17) 50%),
+linear-gradient(90deg, transparent 50%, rgba(255,255,255,.19) 50%);
background-size: 13px, 29px, 37px, 53px;" title="Cicada stripes" data-author="Randy Merrill" data-author-url="http://forthedeveloper.com/"></li>
-
- <li style="background-color: gray;
-background-image: linear-gradient(0, transparent 50%, rgba(255,255,255,.5) 50%);
-background-size: 50px;" title="Vertical stripes"></li>
+
+ <li style="background-color: gray;
+background-image: linear-gradient(90deg, transparent 50%, rgba(255,255,255,.5) 50%);
+background-size: 50px 50px;" title="Vertical stripes"></li>
- <li style="background-color: gray;
+ <li style="background-color: gray;
background-image: linear-gradient(transparent 50%, rgba(255,255,255,.5) 50%);
-background-size: 50px;" title="Horizontal stripes"></li>
-
- </ul>
-
- <h2 id="browser-support">Browser support</h2>
- <p>The patterns themselves should work on <strong>Firefox 3.6+</strong>, <strong>Chrome</strong>, <strong>Safari 5.1</strong>, <strong>Opera 11.10+</strong> and <strong>IE10+</strong>.
- However, implementation limitations might cause some of them to not be displayed correctly even on those browsers (for example at the time of writing, Gecko is quite buggy with radial gradients).</p>
- <p>Also, this gallery won’t work in Firefox 3.6 and IE10, even though they support gradients, due to a JavaScript limitation.</p>
+background-size: 50px 50px;" title="Horizontal stripes"></li>
- <h2 id="new-submissions">Submission guidelines</h2>
- <p>If you have a new pattern to submit, please <a href="https://github.com/LeaVerou/CSS3-Patterns-Gallery">send a pull request</a>. However, please bear in mind that I can't accept all submissions, sorry for that. For a pattern to be accepted, the following factors are considered (in descending order of importance):</p>
- <ul>
- <li>Does it present a new technique?</li>
- <li>Is the number of gradients and color stops worth the effect? The whole point of those patterns is to make page loading faster by reducing file size and HTTP requests without the unreadable gibberish that data URIs add in our stylesheets. If your pattern needs a 2KB code for example (which becomes 10KB when used in production, due to all the prefixes), then it's not very useful, except serving as a proof of concept.</li>
- <li>How common is the pattern?</li>
- <li>Does it look nice?</li>
- </ul>
+</ul>
+
+<h2 id="browser-support">Browser support</h2>
+<p>The patterns themselves should work on <strong>Firefox 3.6+</strong>, <strong>Chrome</strong>, <strong>Safari 5.1</strong>, <strong>Opera 11.10+</strong> and <strong>IE10+</strong>.
+However, implementation limitations might cause some of them to not be displayed correctly even on those browsers (for example at the time of writing, Gecko is quite buggy with radial gradients).</p>
+<p>Also, this gallery won’t work in Firefox 3.6 and IE10, even though they support gradients, due to a JavaScript limitation.</p>
+
+<h2 id="new-submissions">Submission guidelines</h2>
+<p>If you have a new pattern to submit, please <a href="https://github.com/LeaVerou/CSS3-Patterns-Gallery">send a pull request</a>. However, please bear in mind that I can't accept all submissions, sorry for that. For a pattern to be accepted, the following factors are considered (in descending order of importance):</p>
+<ul>
+ <li>Does it present a new technique?</li>
+ <li>Is the number of gradients and color stops worth the effect? The whole point of those patterns is to make page loading faster by reducing file size and HTTP requests without the unreadable gibberish that data URIs add in our stylesheets. If your pattern needs a 2KB code for example (which becomes 10KB when used in production, due to all the prefixes), then it's not very useful, except serving as a proof of concept.</li>
+ <li>How common is the pattern?</li>
+ <li>Does it look nice?</li>
+</ul>
+
+<p id="footer">
+ By <a href="http://lea.verou.me">Lea Verou</a>
+ &bull; If no other author is mentioned, the pattern is created by <a href="http://lea.verou.me">Lea Verou</a>
+</p>
+
+<script src="http://leaverou.github.com/prefixfree/prefixfree.min.js"></script>
+<script>
+StyleFix.register(function(css, raw) {
+ if (PrefixFree.functions.indexOf('radial-gradient') > -1) {
+ css = css.replace(/radial-gradient\(([a-z-\s]+\s+)?at ([^,]+)(?=,)/g, function($0, shape, center){
+ return 'radial-gradient(' + center + (shape? ', ' + shape : '');
+ });
+ }
- <p id="footer">
- By <a href="http://lea.verou.me">Lea Verou</a>
- &bull; If no other author is mentioned, the pattern is created by <a href="http://lea.verou.me">Lea Verou</a>
- </p>
+ return css;
+});
+</script>
+<script src="http://lea.verou.me/csss/plugins/css-edit.js"></script>
+<script src="http://lea.verou.me/csss/plugins/css-snippets.js"></script>
+<script src="https://raw.github.com/LeaVerou/Incrementable/master/incrementable.js"></script>
+<script src="http://bytesizematters.com/bytesize.js"></script>
+<script src="css3patterns.js"></script>
- <script src="http://lea.verou.me/prefixfree/prefixfree.min.js"></script>
- <script src="http://lea.verou.me/csss/plugins/css-edit.js"></script>
- <script src="http://lea.verou.me/csss/plugins/css-snippets.js"></script>
- <script src="https://raw.github.com/LeaVerou/Incrementable/master/incrementable.js"></script>
- <script src="http://bytesizematters.com/bytesize.js"></script>
- <script src="css3patterns.js"></script>
+<script src="http://www.google-analytics.com/ga.js"></script>
+<script>
+try {
+var pageTracker = _gat._getTracker("UA-597483-5");
+pageTracker._trackPageview();
+} catch(err) {}
+</script>
+<script src="http://cdn.topsy.com/topsy.js?init=topsyWidgetCreator"></script>
- <script src="http://www.google-analytics.com/ga.js"></script>
- <script>
- try {
- var pageTracker = _gat._getTracker("UA-597483-5");
- pageTracker._trackPageview();
- } catch(err) {}
- </script>
- <script src="http://cdn.topsy.com/topsy.js?init=topsyWidgetCreator"></script>
</body>
</html>
Please sign in to comment.
Something went wrong with that request. Please try again.