diff --git a/examples/index.html b/examples/index.html
new file mode 100644
index 0000000..6a2b1d0
--- /dev/null
+++ b/examples/index.html
@@ -0,0 +1,137 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Diagonal Checkerboard
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/examples/js/less-1.4.0.min.js b/examples/js/less-1.4.0.min.js
new file mode 100644
index 0000000..4f0ee4f
--- /dev/null
+++ b/examples/js/less-1.4.0.min.js
@@ -0,0 +1,11 @@
+/*
+ * LESS - Leaner CSS v1.4.0
+ * http://lesscss.org
+ *
+ * Copyright (c) 2009-2013, Alexis Sellier
+ * Licensed under the Apache 2.0 License.
+ *
+ * @licence
+ */(function(e,t){function n(t){return e.less[t.split("/")[1]]}function f(){r.env==="development"?(r.optimization=0,r.watchTimer=setInterval(function(){r.watchMode&&g(function(e,t,n,i,s){e?k(e,i.href):t&&S(t.toCSS(r),i,s.lastModified)})},r.poll)):r.optimization=3}function m(){var e=document.getElementsByTagName("style");for(var t=0;t0&&(s.splice(o-1,2),o-=2)}return i.hostPart=r[1],i.directories=s,i.path=r[1]+s.join("/"),i.fileUrl=i.path+(r[4]||""),i.url=i.fileUrl+(r[5]||""),i}function w(t,n,i,s){var o=b(t.href,e.location.href),u=o.url,a=l&&l.getItem(u),f=l&&l.getItem(u+":timestamp"),c={css:a,timestamp:f},h,p={relativeUrls:r.relativeUrls,currentDirectory:o.path,filename:u};t instanceof r.tree.parseEnv?(h=new r.tree.parseEnv(t),p.entryPath=h.currentFileInfo.entryPath,p.rootpath=h.currentFileInfo.rootpath,p.rootFilename=h.currentFileInfo.rootFilename):(h=new r.tree.parseEnv(r),h.mime=t.type,p.entryPath=o.path,p.rootpath=r.rootpath||o.path,p.rootFilename=u),h.relativeUrls&&(r.rootpath?p.rootpath=b(r.rootpath+y(o.path,p.entryPath)).path:p.rootpath=o.path),x(u,t.type,function(e,a){v+=e.replace(/@import .+?;/ig,"");if(!i&&c&&a&&(new Date(a)).valueOf()===(new Date(c.timestamp)).valueOf())S(c.css,t),n(null,null,e,t,{local:!0,remaining:s},u);else try{h.contents[u]=e,h.paths=[o.path],h.currentFileInfo=p,(new r.Parser(h)).parse(e,function(r,i){if(r)return n(r,null,null,t);try{n(r,i,e,t,{local:!1,lastModified:a,remaining:s},u),h.currentFileInfo.rootFilename===u&&N(document.getElementById("less-error-message:"+E(u)))}catch(r){n(r,null,null,t)}})}catch(f){n(f,null,null,t)}},function(e,r){n({type:"File",message:"'"+r+"' wasn't found ("+e+")"},null,null,t)})}function E(e){return e.replace(/^[a-z-]+:\/+?[^\/]+/,"").replace(/^\//,"").replace(/\.[a-zA-Z]+$/,"").replace(/[^\.\w-]+/g,"-").replace(/\./g,":")}function S(e,t,n){var r=t.href||"",i="less:"+(t.title||E(r)),s=document.getElementById(i),o=!1,u=document.createElement("style");u.setAttribute("type","text/css"),t.media&&u.setAttribute("media",t.media),u.id=i;if(u.styleSheet)try{u.styleSheet.cssText=e}catch(a){throw new Error("Couldn't reassign styleSheet.cssText.")}else u.appendChild(document.createTextNode(e)),o=s!==null&&s.childNodes.length>0&&u.childNodes.length>0&&s.firstChild.nodeValue===u.firstChild.nodeValue;var f=document.getElementsByTagName("head")[0];if(s==null||o===!1){var c=t&&t.nextSibling||null;(c||document.getElementsByTagName("head")[0]).parentNode.insertBefore(u,c)}s&&o===!1&&f.removeChild(s);if(n&&l){C("saving "+r+" to cache.");try{l.setItem(r,e),l.setItem(r+":timestamp",n)}catch(a){C("failed to save")}}}function x(e,t,n,i){function a(t,n,r){t.status>=200&&t.status<300?n(t.responseText,t.getResponseHeader("Last-Modified")):typeof r=="function"&&r(t.status,e)}var s=T(),u=o?r.fileAsync:r.async;typeof s.overrideMimeType=="function"&&s.overrideMimeType("text/css"),s.open("GET",e,u),s.setRequestHeader("Accept",t||"text/x-less, text/css; q=0.9, */*; q=0.5"),s.send(null),o&&!r.fileAsync?s.status===0||s.status>=200&&s.status<300?n(s.responseText):i(s.status,e):u?s.onreadystatechange=function(){s.readyState==4&&a(s,n,i)}:a(s,n,i)}function T(){if(e.XMLHttpRequest)return new XMLHttpRequest;try{return new ActiveXObject("MSXML2.XMLHTTP.3.0")}catch(t){return C("browser doesn't support AJAX."),null}}function N(e){return e&&e.parentNode.removeChild(e)}function C(e){r.env=="development"&&typeof console!="undefined"&&console.log("less: "+e)}function k(e,n){var i="less-error-message:"+E(n||""),s='{line} {content} ',o=document.createElement("div"),u,a,f=[],l=e.filename||n,c=l.match(/([^\/]+(\?.*)?)$/)[1];o.id=i,o.className="less-error-message",a=""+(e.type||"Syntax")+"Error: "+(e.message||"There is an error in your .less file")+" "+'in '+c+" ";var h=function(e,n,r){e.extract[n]!=t&&f.push(s.replace(/\{line\}/,(parseInt(e.line)||0)+(n-1)).replace(/\{class\}/,r).replace(/\{content\}/,e.extract[n]))};e.extract?(h(e,0,""),h(e,1,"line"),h(e,2,""),a+="on line "+e.line+", column "+(e.column+1)+":
"+""):e.stack&&(a+=" "+e.stack.split("\n").slice(1).join(" ")),o.innerHTML=a,S([".less-error-message ul, .less-error-message li {","list-style-type: none;","margin-right: 15px;","padding: 4px 0;","margin: 0;","}",".less-error-message label {","font-size: 12px;","margin-right: 15px;","padding: 4px 0;","color: #cc7777;","}",".less-error-message pre {","color: #dd6666;","padding: 4px 0;","margin: 0;","display: inline-block;","}",".less-error-message pre.line {","color: #ff0000;","}",".less-error-message h3 {","font-size: 20px;","font-weight: bold;","padding: 15px 0 5px 0;","margin: 0;","}",".less-error-message a {","color: #10a","}",".less-error-message .error {","color: red;","font-weight: bold;","padding-bottom: 2px;","border-bottom: 1px dashed red;","}"].join("\n"),{title:"error-message"}),o.style.cssText=["font-family: Arial, sans-serif","border: 1px solid #e00","background-color: #eee","border-radius: 5px","-webkit-border-radius: 5px","-moz-border-radius: 5px","color: #e00","padding: 15px","margin-bottom: 15px"].join(";"),r.env=="development"&&(u=setInterval(function(){document.body&&(document.getElementById(i)?document.body.replaceChild(o,document.getElementById(i)):document.body.insertBefore(o,document.body.firstChild),clearInterval(u))},10))}var r,i,s;typeof environment=="object"&&{}.toString.call(environment)==="[object Environment]"?(typeof e=="undefined"?r={}:r=e.less={},i=r.tree={},r.mode="rhino"):typeof e=="undefined"?(r=exports,i=n("./tree"),r.mode="node"):(typeof e.less=="undefined"&&(e.less={}),r=e.less,i=e.less.tree={},r.mode="browser"),r.Parser=function(t){function m(){a=c[u],f=o,h=o}function g(){c[u]=a,o=f,h=o}function y(){o>h&&(c[u]=c[u].slice(o-h),h=o)}function b(e){var t=e.charCodeAt(0);return t===32||t===10||t===9}function w(e){var t,n,r,i,a;if(e instanceof Function)return e.call(p.parsers);if(typeof e=="string")t=s.charAt(o)===e?e:null,r=1,y();else{y();if(!(t=e.exec(c[u])))return null;r=t[0].length}if(t)return E(r),typeof t=="string"?t:t.length===1?t[0]:t}function E(e){var t=o,n=u,r=o+c[u].length,i=o+=e;while(o=0&&t.charAt(n)!=="\n";n--)r++;return{line:typeof e=="number"?(t.slice(0,e).match(/\n/g)||"").length:null,column:r}}function k(e,t,i){var s=i.currentFileInfo.filename;return r.mode!=="browser"&&r.mode!=="rhino"&&(s=n("path").resolve(s)),{lineNumber:C(e,t).line+1,fileName:s}}function L(e,t){var n=N(e,t),r=C(e.index,n),i=r.line,s=r.column,o=n.split("\n");this.type=e.type||"Syntax",this.message=e.message,this.filename=e.filename||t.currentFileInfo.filename,this.index=e.index,this.line=typeof i=="number"?i+1:null,this.callLine=e.call&&C(e.call,n).line+1,this.callExtract=o[C(e.call,n).line],this.stack=e.stack,this.column=s,this.extract=[o[i-1],o[i],o[i+1]]}var s,o,u,a,f,l,c,h,p,d=this;t instanceof i.parseEnv||(t=new i.parseEnv(t));var v=this.imports={paths:t.paths||[],queue:[],files:t.files,contents:t.contents,mime:t.mime,error:null,push:function(e,n,i){var s=this;this.queue.push(e),r.Parser.importer(e,n,function(t,n,r){s.queue.splice(s.queue.indexOf(e),1);var o=r in s.files;s.files[r]=n,t&&!s.error&&(s.error=t),i(t,n,o)},t)}};return L.prototype=new Error,L.prototype.constructor=L,this.env=t=t||{},this.optimization="optimization"in this.env?this.env.optimization:1,p={imports:v,parse:function(e,a){var f,d,v,m,g,y,b=[],E,S=null;o=u=h=l=0,s=e.replace(/\r\n/g,"\n"),s=s.replace(/^\uFEFF/,""),c=function(e){var n=0,r=/(?:@\{[\w-]+\}|[^"'`\{\}\/\(\)\\])+/g,i=/\/\*(?:[^*]|\*+[^\/*])*\*+\/|\/\/.*/g,o=/"((?:[^"\\\r\n]|\\.)*)"|'((?:[^'\\\r\n]|\\.)*)'|`((?:[^`]|\\.)*)`/g,u=0,a,f=e[0],l;for(var c=0,h,p;c0?"missing closing `}`":"missing opening `{`",filename:t.currentFileInfo.filename},t)),e.map(function(e){return e.join("")})}([[]]);if(S)return a(new L(S,t));try{f=new i.Ruleset([],w(this.parsers.primary)),f.root=!0,f.firstRoot=!0}catch(x){return a(new L(x,t))}f.toCSS=function(e){var s,o,u;return function(s,o){s=s||{};var u,a=new i.evalEnv(s);typeof o=="object"&&!Array.isArray(o)&&(o=Object.keys(o).map(function(e){var t=o[e];return t instanceof i.Value||(t instanceof i.Expression||(t=new i.Expression([t])),t=new i.Value([t])),new i.Rule("@"+e,t,!1,0)}),a.frames=[new i.Ruleset(null,o)]);try{var f=e.call(this,a);(new i.joinSelectorVisitor).run(f),(new i.processExtendsVisitor).run(f);var l=f.toCSS({compress:Boolean(s.compress),dumpLineNumbers:t.dumpLineNumbers,strictUnits:Boolean(s.strictUnits)})}catch(c){throw new L(c,t)}return s.yuicompress&&r.mode==="node"?n("ycssmin").cssmin(l,s.maxLineLen):s.compress?l.replace(/(\s)+/g,"$1"):l}}(f.eval);if(o=0&&s.charAt(T)!=="\n";T--)N++;S={type:"Parse",message:"Unrecognised input",index:o,filename:t.currentFileInfo.filename,line:g,column:N,extract:[y[g-2],y[g-1],y[g]]}}var C=function(e){e=S||e||p.imports.error,e?(e instanceof L||(e=new L(e,t)),a(e)):a(null,f)};t.processImports!==!1?(new i.importVisitor(this.imports,C)).run(f):C()},parsers:{primary:function(){var e,t=[];while((e=w(this.extendRule)||w(this.mixin.definition)||w(this.rule)||w(this.ruleset)||w(this.mixin.call)||w(this.comment)||w(this.directive))||w(/^[\s\n]+/)||w(/^;+/))e&&t.push(e);return t},comment:function(){var e;if(s.charAt(o)!=="/")return;if(s.charAt(o+1)==="/")return new i.Comment(w(/^\/\/.*/),!0);if(e=w(/^\/\*(?:[^*]|\*+[^\/*])*\*+\/\n?/))return new i.Comment(e)},entities:{quoted:function(){var e,n=o,r,u=o;s.charAt(n)==="~"&&(n++,r=!0);if(s.charAt(n)!=='"'&&s.charAt(n)!=="'")return;r&&w("~");if(e=w(/^"((?:[^"\\\r\n]|\\.)*)"|'((?:[^'\\\r\n]|\\.)*)'/))return new i.Quoted(e[0],e[1]||e[2],r,u,t.currentFileInfo)},keyword:function(){var e;if(e=w(/^[_A-Za-z-][_A-Za-z0-9-]*/))return i.colors.hasOwnProperty(e)?new i.Color(i.colors[e].slice(1)):new i.Keyword(e)},call:function(){var e,n,r,s,a=o;if(!(e=/^([\w-]+|%|progid:[\w\.]+)\(/.exec(c[u])))return;e=e[1],n=e.toLowerCase();if(n==="url")return null;o+=e.length;if(n==="alpha"){s=w(this.alpha);if(typeof s!="undefined")return s}w("("),r=w(this.entities.arguments);if(!w(")"))return;if(e)return new i.Call(e,r,a,t.currentFileInfo)},arguments:function(){var e=[],t;while(t=w(this.entities.assignment)||w(this.expression)){e.push(t);if(!w(","))break}return e},literal:function(){return w(this.entities.dimension)||w(this.entities.color)||w(this.entities.quoted)||w(this.entities.unicodeDescriptor)},assignment:function(){var e,t;if((e=w(/^\w+(?=\s?=)/i))&&w("=")&&(t=w(this.entity)))return new i.Assignment(e,t)},url:function(){var e;if(s.charAt(o)!=="u"||!w(/^url\(/))return;return e=w(this.entities.quoted)||w(this.entities.variable)||w(/^(?:(?:\\[\(\)'"])|[^\(\)'"])+/)||"",S(")"),new i.URL(e.value!=null||e instanceof i.Variable?e:new i.Anonymous(e),t.currentFileInfo)},variable:function(){var e,n=o;if(s.charAt(o)==="@"&&(e=w(/^@@?[\w-]+/)))return new i.Variable(e,n,t.currentFileInfo)},variableCurly:function(){var e,n,r=o;if(s.charAt(o)==="@"&&(n=w(/^@\{([\w-]+)\}/)))return new i.Variable("@"+n[1],r,t.currentFileInfo)},color:function(){var e;if(s.charAt(o)==="#"&&(e=w(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})/)))return new i.Color(e[1])},dimension:function(){var e,t=s.charCodeAt(o);if(t>57||t<43||t===47||t==44)return;if(e=w(/^([+-]?\d*\.?\d+)(%|[a-z]+)?/))return new i.Dimension(e[1],e[2])},unicodeDescriptor:function(){var e;if(e=w(/^U\+[0-9a-fA-F?]+(\-[0-9a-fA-F?]+)?/))return new i.UnicodeDescriptor(e[0])},javascript:function(){var e,t=o,n;s.charAt(t)==="~"&&(t++,n=!0);if(s.charAt(t)!=="`")return;n&&w("~");if(e=w(/^`([^`]*)`/))return new i.JavaScript(e[1],o,n)}},variable:function(){var e;if(s.charAt(o)==="@"&&(e=w(/^(@[\w-]+)\s*:/)))return e[1]},extend:function(e){var t,n,r=o,s,u=[];if(!w(e?/^&:extend\(/:/^:extend\(/))return;do{s=null,t=[];for(;;){s=w(/^(all)(?=\s*(\)|,))/);if(s)break;n=w(this.element);if(!n)break;t.push(n)}s=s&&s[1],u.push(new i.Extend(new i.Selector(t),s,r))}while(w(","));return S(/^\)/),e&&S(/^;/),u},extendRule:function(){return this.extend(!0)},mixin:{call:function(){var e=[],n,r,u,a,f,l=o,c=s.charAt(o),h=!1;if(c!=="."&&c!=="#")return;m();while(n=w(/^[#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/))e.push(new i.Element(r,n,o)),r=w(">");w("(")&&(u=this.mixin.args.call(this,!0).args,S(")")),u=u||[],w(this.important)&&(h=!0);if(e.length>0&&(w(";")||T("}")))return new i.mixin.Call(e,u,l,t.currentFileInfo,h);g()},args:function(e){var t=[],n=[],r,u=[],a,f,l,c,h,p={args:null,variadic:!1};for(;;){if(e)h=w(this.expression);else{w(this.comment);if(s.charAt(o)==="."&&w(/^\.{3}/)){p.variadic=!0,w(";")&&!r&&(r=!0),(r?n:u).push({variadic:!0});break}h=w(this.entities.variable)||w(this.entities.literal)||w(this.entities.keyword)}if(!h)break;l=null,h.throwAwayComments&&h.throwAwayComments(),c=h;var d=null;if(e){if(h.value.length==1)var d=h.value[0]}else d=h;if(d&&d instanceof i.Variable)if(w(":"))t.length>0&&(r&&x("Cannot mix ; and , as delimiter types"),a=!0),c=S(this.expression),l=f=d.name;else{if(!e&&w(/^\.{3}/)){p.variadic=!0,w(";")&&!r&&(r=!0),(r?n:u).push({name:h.name,variadic:!0});break}e||(f=l=d.name,c=null)}c&&t.push(c),u.push({name:l,value:c});if(w(","))continue;if(w(";")||r)a&&x("Cannot mix ; and , as delimiter types"),r=!0,t.length>1&&(c=new i.Value(t)),n.push({name:f,value:c}),f=null,t=[],a=!1}return p.args=r?n:u,p},definition:function(){var e,t=[],n,r,u,a,f,c=!1;if(s.charAt(o)!=="."&&s.charAt(o)!=="#"||T(/^[^{]*\}/))return;m();if(n=w(/^([#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+)\s*\(/)){e=n[1];var h=this.mixin.args.call(this,!1);t=h.args,c=h.variadic,w(")")||(l=o,g()),w(this.comment),w(/^when/)&&(f=S(this.conditions,"expected condition")),r=w(this.block);if(r)return new i.mixin.Definition(e,t,r,f,c);g()}}},entity:function(){return w(this.entities.literal)||w(this.entities.variable)||w(this.entities.url)||w(this.entities.call)||w(this.entities.keyword)||w(this.entities.javascript)||w(this.comment)},end:function(){return w(";")||T("}")},alpha:function(){var e;if(!w(/^\(opacity=/i))return;if(e=w(/^\d+/)||w(this.entities.variable))return S(")"),new i.Alpha(e)},element:function(){var e,t,n,r;n=w(this.combinator),e=w(/^(?:\d+\.\d+|\d+)%/)||w(/^(?:[.#]?|:*)(?:[\w-]|[^\x00-\x9f]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/)||w("*")||w("&")||w(this.attribute)||w(/^\([^()@]+\)/)||w(/^[\.#](?=@)/)||w(this.entities.variableCurly),e||w("(")&&(r=w(this.selector))&&w(")")&&(e=new i.Paren(r));if(e)return new i.Element(n,e,o)},combinator:function(){var e,t=s.charAt(o);if(t===">"||t==="+"||t==="~"||t==="|"){o++;while(s.charAt(o).match(/\s/))o++;return new i.Combinator(t)}return s.charAt(o-1).match(/\s/)?new i.Combinator(" "):new i.Combinator(null)},selector:function(){var e,t,n=[],r,u,a,f=[];while((a=w(this.extend))||(t=w(this.element))){a?f.push.apply(f,a):(f.length&&x("Extend can only be used at the end of selector"),r=s.charAt(o),n.push(t),t=null);if(r==="{"||r==="}"||r===";"||r===","||r===")")break}if(n.length>0)return new i.Selector(n,f);f.length&&x("Extend must be used to extend a selector, it cannot be used on its own")},attribute:function(){var e="",t,n,r;if(!w("["))return;(t=w(this.entities.variableCurly))||(t=S(/^(?:[_A-Za-z0-9-\*]*\|)?(?:[_A-Za-z0-9-]|\\.)+/));if(r=w(/^[|~*$^]?=/))n=w(this.entities.quoted)||w(/^[\w-]+/)||w(this.entities.variableCurly);return S("]"),new i.Attribute(t,r,n)},block:function(){var e;if(w("{")&&(e=w(this.primary))&&w("}"))return e},ruleset:function(){var e=[],n,r,u,a;m(),t.dumpLineNumbers&&(a=k(o,s,t));while(n=w(this.selector)){e.push(n),w(this.comment);if(!w(","))break;w(this.comment)}if(e.length>0&&(r=w(this.block))){var f=new i.Ruleset(e,r,t.strictImports);return t.dumpLineNumbers&&(f.debugInfo=a),f}l=o,g()},rule:function(e){var n,r,u=s.charAt(o),a,c;m();if(u==="."||u==="#"||u==="&")return;if(n=w(this.variable)||w(this.property)){r=!e&&(t.compress||n.charAt(0)==="@")?w(this.value)||w(this.anonymousValue):w(this.anonymousValue)||w(this.value),a=w(this.important);if(r&&w(this.end))return new i.Rule(n,r,a,f,t.currentFileInfo);l=o,g();if(r&&!e)return this.rule(!0)}},anonymousValue:function(){if(match=/^([^@+\/'"*`(;{}-]*);/.exec(c[u]))return o+=match[0].length-1,new i.Anonymous(match[1])},"import":function(){var e,n,r=o;m();var s=w(/^@import?\s+/),u=(s?w(this.importOptions):null)||{};if(s&&(e=w(this.entities.quoted)||w(this.entities.url))){n=w(this.mediaFeatures);if(w(";"))return n=n&&new i.Value(n),new i.Import(e,n,u,r,t.currentFileInfo)}g()},importOptions:function(){var e,t={},n,r;if(!w("("))return null;do if(e=w(this.importOption)){n=e,r=!0;switch(n){case"css":n="less",r=!1;break;case"once":n="multiple",r=!1}t[n]=r;if(!w(","))break}while(e);return S(")"),t},importOption:function(){var e=w(/^(less|css|multiple|once)/);if(e)return e[1]},mediaFeature:function(){var e,n,r=[];do if(e=w(this.entities.keyword))r.push(e);else if(w("(")){n=w(this.property),e=w(this.value);if(!w(")"))return null;if(n&&e)r.push(new i.Paren(new i.Rule(n,e,null,o,t.currentFileInfo,!0)));else{if(!e)return null;r.push(new i.Paren(e))}}while(e);if(r.length>0)return new i.Expression(r)},mediaFeatures:function(){var e,t=[];do if(e=w(this.mediaFeature)){t.push(e);if(!w(","))break}else if(e=w(this.entities.variable)){t.push(e);if(!w(","))break}while(e);return t.length>0?t:null},media:function(){var e,n,r,u;t.dumpLineNumbers&&(u=k(o,s,t));if(w(/^@media/)){e=w(this.mediaFeatures);if(n=w(this.block))return r=new i.Media(n,e),t.dumpLineNumbers&&(r.debugInfo=u),r}},directive:function(){var e,n,r,u,a,f,l,c,h,p;if(s.charAt(o)!=="@")return;if(n=w(this["import"])||w(this.media))return n;m(),e=w(/^@[a-z-]+/);if(!e)return;l=e,e.charAt(1)=="-"&&e.indexOf("-",2)>0&&(l="@"+e.slice(e.indexOf("-",2)+1));switch(l){case"@font-face":c=!0;break;case"@viewport":case"@top-left":case"@top-left-corner":case"@top-center":case"@top-right":case"@top-right-corner":case"@bottom-left":case"@bottom-left-corner":case"@bottom-center":case"@bottom-right":case"@bottom-right-corner":case"@left-top":case"@left-middle":case"@left-bottom":case"@right-top":case"@right-middle":case"@right-bottom":c=!0;break;case"@page":case"@document":case"@supports":case"@keyframes":c=!0,h=!0;break;case"@namespace":p=!0}h&&(e+=" "+(w(/^[^{]+/)||"").trim());if(c){if(r=w(this.block))return new i.Directive(e,r)}else if((n=p?w(this.expression):w(this.entity))&&w(";")){var d=new i.Directive(e,n);return t.dumpLineNumbers&&(d.debugInfo=k(o,s,t)),d}g()},value:function(){var e,t=[],n;while(e=w(this.expression)){t.push(e);if(!w(","))break}if(t.length>0)return new i.Value(t)},important:function(){if(s.charAt(o)==="!")return w(/^! *important/)},sub:function(){var e,t;if(w("("))if(e=w(this.addition))return t=new i.Expression([e]),S(")"),t.parens=!0,t},multiplication:function(){var e,t,n,r,u,a=[];if(e=w(this.operand)){u=b(s.charAt(o-1));while(!T(/^\/[*\/]/)&&(n=w("/")||w("*"))){if(!(t=w(this.operand)))break;e.parensInOp=!0,t.parensInOp=!0,r=new i.Operation(n,[r||e,t],u),u=b(s.charAt(o-1))}return r||e}},addition:function(){var e,t,n,r,u;if(e=w(this.multiplication)){u=b(s.charAt(o-1));while((n=w(/^[-+]\s+/)||!u&&(w("+")||w("-")))&&(t=w(this.multiplication)))e.parensInOp=!0,t.parensInOp=!0,r=new i.Operation(n,[r||e,t],u),u=b(s.charAt(o-1));return r||e}},conditions:function(){var e,t,n=o,r;if(e=w(this.condition)){while(w(",")&&(t=w(this.condition)))r=new i.Condition("or",r||e,t,n);return r||e}},condition:function(){var e,t,n,r,s=o,u=!1;w(/^not/)&&(u=!0),S("(");if(e=w(this.addition)||w(this.entities.keyword)||w(this.entities.quoted))return(r=w(/^(?:>=|=<|[<=>])/))?(t=w(this.addition)||w(this.entities.keyword)||w(this.entities.quoted))?n=new i.Condition(r,e,t,s,u):x("expected expression"):n=new i.Condition("=",e,new i.Keyword("true"),s,u),S(")"),w(/^and/)?new i.Condition("and",n,w(this.condition)):n},operand:function(){var e,t=s.charAt(o+1);s.charAt(o)==="-"&&(t==="@"||t==="(")&&(e=w("-"));var n=w(this.sub)||w(this.entities.dimension)||w(this.entities.color)||w(this.entities.variable)||w(this.entities.call);return e&&(n.parensInOp=!0,n=new i.Negative(n)),n},expression:function(){var e,t,n=[],r;while(e=w(this.addition)||w(this.entity))n.push(e),!T(/^\/[\/*]/)&&(t=w("/"))&&n.push(new i.Anonymous(t));if(n.length>0)return new i.Expression(n)},property:function(){var e;if(e=w(/^(\*?-?[_a-z0-9-]+)\s*:/))return e[1]}}}};if(r.mode==="browser"||r.mode==="rhino")r.Parser.importer=function(e,t,n,r){!/^([a-z-]+:)?\//.test(e)&&t.currentDirectory&&(e=t.currentDirectory+e);var i=r.toSheet(e);i.processImports=!1,i.currentFileInfo=t,w(i,function(e,t,r,i,s,o){n.call(null,e,t,o)},!0)};(function(r){function u(e){return r.functions.hsla(e.h,e.s,e.l,e.a)}function a(e,t){return e instanceof r.Dimension&&e.unit.is("%")?parseFloat(e.value*t/100):f(e)}function f(e){if(e instanceof r.Dimension)return parseFloat(e.unit.is("%")?e.value/100:e.value);if(typeof e=="number")return e;throw{error:"RuntimeError",message:"color functions take numbers as parameters"}}function l(e){return Math.min(1,Math.max(0,e))}r.functions={rgb:function(e,t,n){return this.rgba(e,t,n,1)},rgba:function(e,t,n,i){var s=[e,t,n].map(function(e){return a(e,256)});return i=f(i),new r.Color(s,i)},hsl:function(e,t,n){return this.hsla(e,t,n,1)},hsla:function(e,t,n,r){function o(e){return e=e<0?e+1:e>1?e-1:e,e*6<1?s+(i-s)*e*6:e*2<1?i:e*3<2?s+(i-s)*(2/3-e)*6:s}e=f(e)%360/360,t=l(f(t)),n=l(f(n)),r=l(f(r));var i=n<=.5?n*(t+1):n+t-n*t,s=n*2-i;return this.rgba(o(e+1/3)*255,o(e)*255,o(e-1/3)*255,r)},hsv:function(e,t,n){return this.hsva(e,t,n,1)},hsva:function(e,t,n,r){e=f(e)%360/360*360,t=f(t),n=f(n),r=f(r);var i,s;i=Math.floor(e/60%6),s=e/60-i;var o=[n,n*(1-t),n*(1-s*t),n*(1-(1-s)*t)],u=[[0,3,1],[2,0,1],[1,0,3],[1,2,0],[3,1,0],[0,1,2]];return this.rgba(o[u[i][0]]*255,o[u[i][1]]*255,o[u[i][2]]*255,r)},hue:function(e){return new r.Dimension(Math.round(e.toHSL().h))},saturation:function(e){return new r.Dimension(Math.round(e.toHSL().s*100),"%")},lightness:function(e){return new r.Dimension(Math.round(e.toHSL().l*100),"%")},hsvhue:function(e){return new r.Dimension(Math.round(e.toHSV().h))},hsvsaturation:function(e){return new r.Dimension(Math.round(e.toHSV().s*100),"%")},hsvvalue:function(e){return new r.Dimension(Math.round(e.toHSV().v*100),"%")},red:function(e){return new r.Dimension(e.rgb[0])},green:function(e){return new r.Dimension(e.rgb[1])},blue:function(e){return new r.Dimension(e.rgb[2])},alpha:function(e){return new r.Dimension(e.toHSL().a)},luma:function(e){return new r.Dimension(Math.round(e.luma()*e.alpha*100),"%")},saturate:function(e,t){var n=e.toHSL();return n.s+=t.value/100,n.s=l(n.s),u(n)},desaturate:function(e,t){var n=e.toHSL();return n.s-=t.value/100,n.s=l(n.s),u(n)},lighten:function(e,t){var n=e.toHSL();return n.l+=t.value/100,n.l=l(n.l),u(n)},darken:function(e,t){var n=e.toHSL();return n.l-=t.value/100,n.l=l(n.l),u(n)},fadein:function(e,t){var n=e.toHSL();return n.a+=t.value/100,n.a=l(n.a),u(n)},fadeout:function(e,t){var n=e.toHSL();return n.a-=t.value/100,n.a=l(n.a),u(n)},fade:function(e,t){var n=e.toHSL();return n.a=t.value/100,n.a=l(n.a),u(n)},spin:function(e,t){var n=e.toHSL(),r=(n.h+t.value)%360;return n.h=r<0?360+r:r,u(n)},mix:function(e,t,n){n||(n=new r.Dimension(50));var i=n.value/100,s=i*2-1,o=e.toHSL().a-t.toHSL().a,u=((s*o==-1?s:(s+o)/(1+s*o))+1)/2,a=1-u,f=[e.rgb[0]*u+t.rgb[0]*a,e.rgb[1]*u+t.rgb[1]*a,e.rgb[2]*u+t.rgb[2]*a],l=e.alpha*i+t.alpha*(1-i);return new r.Color(f,l)},greyscale:function(e){return this.desaturate(e,new r.Dimension(100))},contrast:function(e,t,n,r){if(!e.rgb)return null;typeof n=="undefined"&&(n=this.rgba(255,255,255,1)),typeof t=="undefined"&&(t=this.rgba(0,0,0,1));if(t.luma()>n.luma()){var i=n;n=t,t=i}return typeof r=="undefined"?r=.43:r=f(r),e.luma()*e.alpha=d){if(this.env.ieCompat!==!1)return this.env.silent||console.warn("Skipped data-uri embedding of %s because its size (%dKB) exceeds IE8-safe %dKB!",o,v,d),(new r.URL(i||t,this.currentFileInfo)).eval(this.env);this.env.silent||console.warn("WARNING: Embedding %s (%dKB) exceeds IE8's data-uri size limit of %dKB!",o,v,d)}p=f?p.toString("base64"):encodeURIComponent(p);var m="'data:"+s+","+p+"'";return new r.URL(new r.Anonymous(m))}},r._mime={_types:{".htm":"text/html",".html":"text/html",".gif":"image/gif",".jpg":"image/jpeg",".jpeg":"image/jpeg",".png":"image/png"},lookup:function(e){var i=n("path").extname(e),s=r._mime._types[i];if(s===t)throw new Error('Optional dependency "mime" is required for '+i);return s},charsets:{lookup:function(e){return e&&/^text\//.test(e)?"UTF-8":""}}};var i=[{name:"ceil"},{name:"floor"},{name:"sqrt"},{name:"abs"},{name:"tan",unit:""},{name:"sin",unit:""},{name:"cos",unit:""},{name:"atan",unit:"rad"},{name:"asin",unit:"rad"},{name:"acos",unit:"rad"}],s=function(e,t){return function(n){return t!=null&&(n=n.unify()),this._math(Math[e],t,n)}};for(var o=0;o255?255:e<0?0:e).toString(16),e.length===1?"0"+e:e}).join("");return n&&(r=r.split(""),r[0]==r[1]&&r[2]==r[3]&&r[4]==r[5]?r=r[0]+r[2]+r[4]:r=r.join("")),"#"+r},operate:function(t,n,r){var i=[];r instanceof e.Color||(r=r.toColor());for(var s=0;s<3;s++)i[s]=e.operate(t,n,this.rgb[s],r.rgb[s]);return new e.Color(i,this.alpha+r.alpha)},toHSL:function(){var e=this.rgb[0]/255,t=this.rgb[1]/255,n=this.rgb[2]/255,r=this.alpha,i=Math.max(e,t,n),s=Math.min(e,t,n),o,u,a=(i+s)/2,f=i-s;if(i===s)o=u=0;else{u=a>.5?f/(2-i-s):f/(i+s);switch(i){case e:o=(t-n)/f+(t255?255:e<0?0:e).toString(16),e.length===1?"0"+e:e}).join("")},compare:function(e){return e.rgb?e.rgb[0]===this.rgb[0]&&e.rgb[1]===this.rgb[1]&&e.rgb[2]===this.rgb[2]&&e.alpha===this.alpha?0:-1:-1}}}(n("../tree")),function(e){e.Comment=function(e,t){this.value=e,this.silent=!!t},e.Comment.prototype={type:"Comment",toCSS:function(e){return e.compress?"":this.value},eval:function(){return this}}}(n("../tree")),function(e){e.Condition=function(e,t,n,r,i){this.op=e.trim(),this.lvalue=t,this.rvalue=n,this.index=r,this.negate=i},e.Condition.prototype={type:"Condition",accept:function(e){this.lvalue=e.visit(this.lvalue),this.rvalue=e.visit(this.rvalue)},eval:function(e){var t=this.lvalue.eval(e),n=this.rvalue.eval(e),r=this.index,i,i=function(e){switch(e){case"and":return t&&n;case"or":return t||n;default:if(t.compare)i=t.compare(n);else{if(!n.compare)throw{type:"Type",message:"Unable to perform comparison",index:r};i=n.compare(t)}switch(i){case-1:return e==="<"||e==="=<";case 0:return e==="="||e===">="||e==="=<";case 1:return e===">"||e===">="}}}(this.op);return this.negate?!i:i}}}(n("../tree")),function(e){e.Dimension=function(n,r){this.value=parseFloat(n),this.unit=r&&r instanceof e.Unit?r:new e.Unit(r?[r]:t)},e.Dimension.prototype={type:"Dimension",accept:function(e){this.unit=e.visit(this.unit)},eval:function(e){return this},toColor:function(){return new e.Color([this.value,this.value,this.value])},toCSS:function(e){if(e&&e.strictUnits&&!this.unit.isSingular())throw new Error("Multiple units in dimension. Correct the units or use the unit function. Bad unit: "+this.unit.toString());var t=this.value,n=String(t);t!==0&&t<1e-6&&t>-0.000001&&(n=t.toFixed(20).replace(/0+$/,""));if(e&&e.compress){if(t===0&&!this.unit.isAngle())return n;t>0&&t<1&&(n=n.substr(1))}return n+this.unit.toCSS(e)},operate:function(t,n,r){var i=e.operate(t,n,this.value,r.value),s=this.unit.clone();if(n==="+"||n==="-"){if(s.numerator.length===0&&s.denominator.length===0)s.numerator=r.unit.numerator.slice(0),s.denominator=r.unit.denominator.slice(0);else if(r.unit.numerator.length!=0||s.denominator.length!=0){r=r.convertTo(this.unit.usedUnits());if(t.strictUnits&&r.unit.toString()!==s.toString())throw new Error("Incompatible units. Change the units or use the unit function. Bad units: '"+s.toString()+"' and '"+r.unit.toString()+"'.");i=e.operate(t,n,this.value,r.value)}}else n==="*"?(s.numerator=s.numerator.concat(r.unit.numerator).sort(),s.denominator=s.denominator.concat(r.unit.denominator).sort(),s.cancel()):n==="/"&&(s.numerator=s.numerator.concat(r.unit.denominator).sort(),s.denominator=s.denominator.concat(r.unit.numerator).sort(),s.cancel());return new e.Dimension(i,s)},compare:function(t){if(t instanceof e.Dimension){var n=this.unify(),r=t.unify(),i=n.value,s=r.value;return s>i?-1:s=1?this.numerator[0]:this.denominator.length>=1?this.denominator[0]:(!e||!e.strictUnits)&&this.backupUnit?this.backupUnit:""},toString:function(){var e,t=this.numerator.join("*");for(e=0;e0)for(n=0;n":e.compress?">":" > ","|":e.compress?"|":" | "}[this.value]}}}(n("../tree")),function(e){e.Expression=function(e){this.value=e},e.Expression.prototype={type:"Expression",accept:function(e){this.value=e.visit(this.value)},eval:function(t){var n,r=this.parens&&!this.parensInOp,i=!1;return r&&t.inParenthesis(),this.value.length>1?n=new e.Expression(this.value.map(function(e){return e.eval(t)})):this.value.length===1?(this.value[0].parens&&!this.value[0].parensInOp&&(i=!0),n=this.value[0].eval(t)):n=this,r&&t.outOfParenthesis(),this.parens&&this.parensInOp&&!t.isMathOn()&&!i&&(n=new e.Paren(n)),n},toCSS:function(e){return this.value.map(function(t){return t.toCSS?t.toCSS(e):""}).join(" ")},throwAwayComments:function(){this.value=this.value.filter(function(t){return!(t instanceof e.Comment)})}}}(n("../tree")),function(e){e.Extend=function(t,n,r){this.selector=t,this.option=n,this.index=r;switch(n){case"all":this.allowBefore=!0,this.allowAfter=!0;break;default:this.allowBefore=!1,this.allowAfter=!1}},e.Extend.prototype={type:"Extend",accept:function(e){this.selector=e.visit(this.selector)},eval:function(t){return new e.Extend(this.selector.eval(t),this.option,this.index)},clone:function(t){return new e.Extend(this.selector,this.option,this.index)},findSelfSelectors:function(e){var t=[];for(d=0;d1){var r=this.emptySelectors();n=new e.Ruleset(r,t.mediaBlocks),n.multiMedia=!0}return delete t.mediaBlocks,delete t.mediaPath,n},evalNested:function(t){var n,r,i=t.mediaPath.concat([this]);for(n=0;n0;n--)t.splice(n,0,new e.Anonymous("and"));return new e.Expression(t)})),new e.Ruleset([],[])},permute:function(e){if(e.length===0)return[];if(e.length===1)return e[0];var t=[],n=this.permute(e.slice(1));for(var r=0;r0){c=!0;for(a=0;athis.params.length)return!1;if(this.required>0&&n>this.params.length)return!1}r=Math.min(n,this.arity);for(var s=0;si.selectors[o].elements.length?Array.prototype.push.apply(r,i.find(new e.Selector(t.elements.slice(1)),n)):r.push(i);break}}),this._lookups[o]=r)},toCSS:function(t){var n=[],r=[],i=[],s=[],o,u,a;for(var f=0;f0){u=e.debugInfo(t,this),o=this.paths.map(function(e){return e.map(function(e){return e.toCSS(t)}).join("").trim()}).join(t.compress?",":",\n");for(var f=r.length-1;f>=0;f--)(r[f].slice(0,2)==="/*"||i.indexOf(r[f])===-1)&&i.unshift(r[f]);r=i,n.push(u+o+(t.compress?"{":" {\n ")+r.join(t.compress?"":"\n ")+(t.compress?"}":"\n}\n"))}return n.push(s),n.join("")+(t.compress?"\n":"")},joinSelectors:function(e,t,n){for(var r=0;r0)for(i=0;i0&&this.mergeElementsOnToSelectors(g,a);for(s=0;s0&&(l[0].elements=l[0].elements.slice(0),l[0].elements.push(new e.Element(f.combinator,"",0))),y.push(l);else for(o=0;o0?(h=l.slice(0),m=h.pop(),d=new e.Selector(m.elements.slice(0),r.extendList),v=!1):d=new e.Selector([],r.extendList),c.length>1&&(p=p.concat(c.slice(1))),c.length>0&&(v=!1,d.elements.push(new e.Element(f.combinator,c[0].elements[0].value,0)),d.elements=d.elements.concat(c[0].elements.slice(1))),v||h.push(d),h=h.concat(p),y.push(h)}a=y,g=[]}}g.length>0&&this.mergeElementsOnToSelectors(g,a);for(i=0;i0&&t.push(a[i])},mergeElementsOnToSelectors:function(t,n){var r,i,s;if(n.length==0){n.push([new e.Selector(t)]);return}for(r=0;r0?i[i.length-1]=new e.Selector(i[i.length-1].elements.concat(t),i[i.length-1].extendList):i.push(new e.Selector(t))}}}(n("../tree")),function(e){e.Selector=function(e,t){this.elements=e,this.extendList=t||[]},e.Selector.prototype={type:"Selector",accept:function(e){this.elements=e.visit(this.elements),this.extendList=e.visit(this.extendList)},match:function(e){var t=this.elements,n=t.length,r,i,s,o;r=e.elements.slice(e.elements.length&&e.elements[0].value==="&"?1:0),i=r.length,s=Math.min(n,i);if(i===0||n1?"["+e.value.map(function(e){return e.toCSS(!1)}).join(", ")+"]":e.toCSS(!1)}}(n("./tree")),function(e){var t=["paths","optimization","files","contents","relativeUrls","strictImports","dumpLineNumbers","compress","processImports","mime","currentFileInfo"];e.parseEnv=function(e){r(e,this,t),this.contents||(this.contents={}),this.files||(this.files={});if(!this.currentFileInfo){var n=e.filename||"input";e.filename=null;var i=n.replace(/[^\/\\]*$/,"");this.currentFileInfo={filename:n,relativeUrls:this.relativeUrls,rootpath:e.rootpath||"",currentDirectory:i,entryPath:i,rootFilename:n}}},e.parseEnv.prototype.toSheet=function(t){var n=new e.parseEnv(this);return n.href=t,n.type=this.mime,n};var n=["silent","verbose","compress","ieCompat","strictMath","strictUnits"];e.evalEnv=function(e,t){r(e,this,n),this.frames=t||[]},e.evalEnv.prototype.inParenthesis=function(){this.parensStack||(this.parensStack=[]),this.parensStack.push(!0)},e.evalEnv.prototype.outOfParenthesis=function(){this.parensStack.pop()},e.evalEnv.prototype.isMathOn=function(){return this.strictMath?this.parensStack&&this.parensStack.length:!0},e.evalEnv.prototype.isPathRelative=function(e){return!/^(?:[a-z-]+:|\/)/.test(e)};var r=function(e,t,n){if(!e)return;for(var r=0;r100){var p="{unable to calculate}",d="{unable to calculate}";try{p=u[0].selfSelectors[0].toCSS(),d=u[0].selector.toCSS()}catch(v){}throw{message:"extend circular reference detected. One of the circular extends is currently:"+p+":extend("+d+")"}}return u.concat(f.doExtendChaining(u,n,r+1))}return u},inInheritanceChain:function(e,t){if(e===t)return!0;if(t.parents){if(this.inInheritanceChain(e,t.parents[0]))return!0;if(this.inInheritanceChain(e,t.parents[1]))return!0}return!1},visitRule:function(e,t){t.visitDeeper=!1},visitMixinDefinition:function(e,t){t.visitDeeper=!1},visitSelector:function(e,t){t.visitDeeper=!1},visitRuleset:function(e,t){if(e.root)return;var n,r,i,s=this.allExtendsStack[this.allExtendsStack.length-1],o=[],u=this;for(i=0;i0&&f[c.matched].combinator.value!==o?c=null:c.matched++,c&&(c.finished=c.matched===f.length,c.finished&&!e.allowAfter&&(i+1i&&s>0&&(o[o.length-1].elements=o[o.length-1].elements.concat(n[i].elements.slice(s)),s=0,i++),o=o.concat(n.slice(i,match.pathIndex)),o.push(new e.Selector(a.elements.slice(s,match.index).concat([f]).concat(r.elements.slice(1)))),i=match.endPathIndex,s=match.endPathElementIndex,s>=a.elements.length&&(s=0,i++);return i0&&(o[o.length-1].elements=o[o.length-1].elements.concat(n[i].elements.slice(s)),s=0,i++),o=o.concat(n.slice(i,n.length)),o},visitRulesetOut:function(e){},visitMedia:function(e,t){var n=e.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);n=n.concat(this.doExtendChaining(n,e.allExtends)),this.allExtendsStack.push(n)},visitMediaOut:function(e){this.allExtendsStack.length=this.allExtendsStack.length-1},visitDirective:function(e,t){var n=e.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);n=n.concat(this.doExtendChaining(n,e.allExtends)),this.allExtendsStack.push(n)},visitDirectiveOut:function(e){this.allExtendsStack.length=this.allExtendsStack.length-1}}}(n("./tree"));var o=/^(file|chrome(-extension)?|resource|qrc|app):/.test(location.protocol);r.env=r.env||(location.hostname=="127.0.0.1"||location.hostname=="0.0.0.0"||location.hostname=="localhost"||location.port.length>0||o?"development":"production"),r.async=r.async||!1,r.fileAsync=r.fileAsync||!1,r.poll=r.poll||(o?1e3:1500);if(r.functions)for(var u in r.functions)r.tree.functions[u]=r.functions[u];var a=/!dumpLineNumbers:(comments|mediaquery|all)/.exec(location.hash);a&&(r.dumpLineNumbers=a[1]),r.watch=function(){return r.watchMode||(r.env="development",f()),this.watchMode=!0},r.unwatch=function(){return clearInterval(r.watchTimer),this.watchMode=!1},/!watch/.test(location.hash)&&r.watch();var l=null;if(r.env!="development")try{l=typeof e.localStorage=="undefined"?null:e.localStorage}catch(c){}var h=document.getElementsByTagName("link"),p=/^text\/(x-)?less$/;r.sheets=[];for(var d=0;d .argyle(black, white); // @color1, @color2
+ &:hover {
+ #patterns > .argyle(#269);
+ }
+}
+
+.arrows {
+ #patterns > .arrows(#000, #fff); // @color1, @color2
+ &:hover {
+ #patterns > .arrows();
+ }
+}
+
+.blueprint {
+ #patterns > .blueprint(#000, #fff); // @color1, @color2
+ &:hover {
+ #patterns > .blueprint();
+ }
+}
+
+.brady-bunch {
+ #patterns > .brady-bunch(black,white,black,white,black,white,white); // @color1, @color2, @color3, @color4, @color5, @color6, @color7
+ &:hover {
+ #patterns > .brady-bunch();
+ }
+}
+
+.bricks {
+ #patterns > .bricks(gray, white); // @color1, @color2
+ &:hover {
+ #patterns > .bricks();
+ }
+}
+
+.carbon {
+ #patterns > .carbon(); // @color1
+ &:hover {
+ #patterns > .carbon(#910082)
+ }
+}
+
+.carbon-fibre {
+ #patterns > .carbon-fibre(); // @color1, @color2, @color3
+ &:hover {
+ #patterns > .carbon-fibre(#fff,lighten(#004599, 1),lighten(#004599, 2))
+ }
+}
+
+.checkerboard {
+ #patterns > .checkerboard(); // @color1, @color2
+ &:hover {
+ #patterns > .checkerboard(black, #3D98F1)
+ }
+}
+
+.cicada-stripes {
+ #patterns > .cicada-stripes(black); // @color1
+ &:hover {
+ #patterns > .cicada-stripes()
+ }
+}
+
+ .cross{
+ #patterns > .cross(black, white); // @color1, @color2
+ &:hover {
+ #patterns > .cross()
+ }
+}
+
+.diagonal-checkerboard {
+ #patterns > .diagonal-checkerboard(); // @color1, @color2
+ &:hover {
+ #patterns > .diagonal-checkerboard(black, #3D98F1)
+ }
+}
+
+.diagonal-stripes {
+ #patterns > .diagonal-stripes();
+ &:hover {
+ #patterns > .diagonal-stripes(#F13D97); // @color1, @color2
+ }
+}
+
+.half-rombes {
+ #patterns > .half-rombes(black,white); // @color1, @color2
+ &:hover {
+ #patterns > .half-rombes()
+ }
+}
+
+.hearts {
+ #patterns > .hearts(black,white); // @color1, @color2
+ &:hover {
+ #patterns > .hearts()
+ }
+}
+
+.horizontal-stripes {
+ #patterns > .horizontal-stripes(); // @color1, @color2
+ &:hover {
+ #patterns > .horizontal-stripes(#F13D97)
+ }
+}
+
+.houndstooth {
+ #patterns > .houndstooth(); // @color1, @color2
+ &:hover {
+ #patterns > .houndstooth(#F13D97)
+ }
+}
+
+.japanese-cube {
+ #patterns > .japanese-cube(black); // @color1
+ &:hover {
+ #patterns > .japanese-cube()
+ }
+}
+
+.lined-paper {
+ #patterns > .lined-paper(black, white); // @color1, @color2
+ &:hover {
+ #patterns > .lined-paper()
+ }
+}
+
+ .madras {
+ #patterns > .madras(black, white,grey,black); // @color1, @color2, @color3, @color4
+ &:hover {
+ #patterns > .madras()
+ }
+}
+
+.marrakesh {
+ #patterns > .marrakesh(black, white); // @color1, @color2
+ &:hover {
+ #patterns > .marrakesh()
+ }
+}
+
+.microbial-mat {
+ #patterns > .microbial-mat(black,white); // @color1, @color2
+ &:hover {
+ #patterns > .microbial-mat()
+ }
+}
+
+.polkadots {
+ #patterns > .polkadots(#000, #fff); // @color1, @color2
+ &:hover {
+ #patterns > .polkadots(#F13D97);
+ }
+}
+
+.rainbow-bokeh {
+ #patterns > .rainbow-bokeh(black,gray,black,gray,black,gray,black,gray,black,gray);
+ &:hover {
+ #patterns > .rainbow-bokeh(); // accepts up to 10 colors not sure about the praticality of this one though
+ }
+}
+
+.seigaiha {
+ #patterns > .seigaiha(#000, #fff); // @color1, @color2
+ &:hover {
+ #patterns > .seigaiha(#97F13D, black);
+ }
+}
+
+.shippo {
+ #patterns > .shippo(#000, #fff); // @color1, @color2
+ &:hover {
+ #patterns > .shippo(#97F13D, black);
+ }
+}
+
+.stairs {
+ #patterns > .stairs(#fff); // @color1
+ &:hover {
+ #patterns > .stairs(#004599);
+ }
+}
+
+.starry-night {
+ #patterns > .starry-night(); // @color1, @color2
+ &:hover {
+ #patterns > .starry-night(black, yellow);
+ }
+}
+
+.stars {
+ #patterns > .stars(#000, #fff); // @color1, @color2
+ &:hover {
+ #patterns > .stars(#000, #F4DD22);
+ }
+}
+
+.steps {
+ #patterns > .steps(#fff, #000); // @color1, @color2
+ &:hover {
+ #patterns > .steps();
+ }
+}
+
+.tablecloth {
+ #patterns > .tablecloth(#fff, rgba(200,200,200,.5)); // @color1, @color2 N.B color2 will need to have a transparency effect on it
+ &:hover {
+ #patterns > .tablecloth();
+ }
+}
+
+.tartan {
+ #patterns > .tartan(gray); // @color1
+ &:hover {
+ #patterns > .tartan();
+ }
+}
+
+.upholstery {
+ #patterns > .upholstery(gray); // @color1
+ &:hover {
+ #patterns > .upholstery();
+ }
+}
+
+.vertical-stripes {
+ #patterns > .vertical-stripes(); // @color1, @color2
+ &:hover {
+ #patterns > .vertical-stripes(#F13D97);
+ }
+}
+
+.waves {
+ #patterns > .waves(#fff, #000); // @color1, @color2
+ &:hover {
+ #patterns > .waves();
+ }
+}
+
+.weave {
+ #patterns > .weave(#000, #fff); // @color1, @color2
+ &:hover {
+ #patterns > .weave();
+ }
+}
+
+.yin-yang {
+ #patterns > .yin-yang(#000, #fff);
+ &:hover {
+ #patterns > .yin-yang();
+ }
+}
+
+.zig-zag {
+ #patterns > .zig-zag(#000, #fff); // @color1, @color2
+ &:hover {
+ #patterns > .zig-zag();
+ }
+}
\ No newline at end of file
diff --git a/patterns.less b/patterns.less
index 7d8cdd5..0a62bc6 100644
--- a/patterns.less
+++ b/patterns.less
@@ -1,412 +1,420 @@
/* Less Mixins for CSS3 Patterns
Pattern Gallery from Lea Verou: http://lea.verou.me/css3patterns/
Made into Less mixins by Steve Workman: http://www.steveworkman.com
+ And sensibly optionised by Sean Steindl: https://github.com/laughingwithu
All patterns (c) their original authors
*/
#patterns {
- // Microbial Mat by Logan McBroom - http://logan.mcbroom.me
- .microbial-mat(@color: #613) {
- background: radial-gradient(0% 50%, circle, rgba(96, 16, 48, 0) 9px, @color 10px, rgba(96, 16, 48, 0) 11px) 0px 10px,
- radial-gradient(100% 100%, rgba(96, 16, 48, 0) 9px, @color 10px, rgba(96, 16, 48, 0) 11px),
- #8a3;
- background-size: 20px 20px;
- }
- // Stairs by Logan McBroom - http://logan.mcbroom.me
- .stairs() {
- background: linear-gradient(63deg, #999 23%, transparent 23%) 7px 0,
- linear-gradient(63deg, transparent 74%, #999 78%),
- linear-gradient(63deg, transparent 34%, #999 38%, #999 58%, transparent 62%),
- #444;
- background-size: 16px 48px;
- }
- // Half-Rombes by Valentin Agachi - http://agachi.name/
- .half-rombes(@color: #36c) {
- background: @color;
- background: 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,
- @color;
- background-size: 15px 30px
+ // Argyle by Anna Kassner - http://annamation.ca/
+ .argyle(@color1: #6d695c, @color2: black) {
+ background-color: @color1;
+ background-image: repeating-linear-gradient(120deg, hsla(hue(@color2), saturation(@color2), lightness(@color2),.1), hsla(hue(@color2), saturation(@color2), lightness(@color2),.1) 1px, transparent 1px, transparent 60px),
+ repeating-linear-gradient(60deg, hsla(hue(@color2), saturation(@color2), lightness(@color2),.1), hsla(hue(@color2), saturation(@color2), lightness(@color2),.1) 1px, transparent 1px, transparent 60px),
+ linear-gradient(60deg, hsla(hue(@color2), saturation(@color2), lightness(@color2),.1) 25%, transparent 25%, transparent 75%, hsla(hue(@color2), saturation(@color2), lightness(@color2),.1) 75%, hsla(hue(@color2), saturation(@color2), lightness(@color2),.1)),
+ linear-gradient(120deg, hsla(hue(@color2), saturation(@color2), lightness(@color2),.1) 25%, transparent 25%, transparent 75%, hsla(hue(@color2), saturation(@color2), lightness(@color2),.1) 75%, hsla(hue(@color2), saturation(@color2), lightness(@color2),.1));
+ background-size: 70px 120px;
}
-
+
// Arrows by Jeroen Franse - http://twitter.com/jroenf
- .Arrows(@color1: #92baac, @color2: #e1ebbd) {
+ .arrows(@color1: #92baac, @color2: #e1ebbd) {
background: linear-gradient(45deg, @color1 45px, transparent 45px)64px 64px,
linear-gradient(45deg, @color1 45px, transparent 45px,transparent 91px, @color2 91px, @color2 135px, transparent 135px),
linear-gradient(-45deg, @color1 23px, transparent 23px, transparent 68px,@color1 68px,@color1 113px,transparent 113px,transparent 158px,@color1 158px);
- background-color:@color2;
+ background-color:@color2;
background-size: 128px 128px;
}
-
- // Zig-zag by eCSSpert - http://twitter.com/ecsspert
- .zig-zag(@color1: #ECEDDC, @color2: #EC173A) {
- background: linear-gradient(135deg, @color1 25%, transparent 25%) -50px 0,
- linear-gradient(225deg, @color1 25%, transparent 25%) -50px 0,
- linear-gradient(315deg, @color1 25%, transparent 25%),
- linear-gradient(45deg, @color1 25%, transparent 25%);
- background-size: 100px 100px;
- background-color: @color2;
- }
-
- // Weave by Jeroen Franse - http://twitter.com/jroenf
- .weave(@color1: #708090, @color2: #d9ecff) {
- background: linear-gradient(135deg, @color1 22px, @color2 22px, @color2 24px, transparent 24px, transparent 67px, @color2 67px, @color2 69px, transparent 69px),
- linear-gradient(225deg, @color1 22px, @color2 22px, @color2 24px, transparent 24px, transparent 67px, @color2 67px, @color2 69px, transparent 69px)0 64px;
- background-color:@color1;
- background-size: 64px 128px
- }
-
- // Upholstery by Nate Eagle - http://nateeagle.com/
- .upholstery(@color: #300) {
- 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,
- radial-gradient(hsla(0, 100%, 30%, 0.8) 20%, hsla(0, 100%, 20%, 0)) 0 50px,
- radial-gradient(hsla(0, 100%, 20%, 1) 35%, hsla(0, 100%, 20%, 0) 60%) 50px 0,
- radial-gradient(hsla(0, 100%, 20%, 1) 35%, hsla(0, 100%, 20%, 0) 60%) 100px 50px,
- radial-gradient(hsla(0, 100%, 15%, 0.7), hsla(0, 100%, 20%, 0)) 0 0,
- radial-gradient(hsla(0, 100%, 15%, 0.7), hsla(0, 100%, 20%, 0)) 50px 50px,
- linear-gradient(45deg, hsla(0, 100%, 20%, 0) 49%, hsla(0, 100%, 0%, 1) 50%, hsla(0, 100%, 20%, 0) 70%) 0 0,
- linear-gradient(-45deg, hsla(0, 100%, 20%, 0) 49%, hsla(0, 100%, 0%, 1) 50%, hsla(0, 100%, 20%, 0) 70%) 0 0;
- background-color: @color;
- background-size: 100px 100px;
- }
-
- // Starry Night by Lea Verou
- .starry-night() {
- 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);
- background-size: 550px 550px, 350px 350px, 250px 250px, 150px 150px;
- background-position: 0 0, 40px 60px, 130px 270px, 70px 100px;
+
+ // Blueprint grid by Lea Verou
+ .blueprint(@color1:#269, @color2:white) {
+ background-color: @color1;
+ background-image:
+ linear-gradient(@color2 2px, transparent 2px),
+ linear-gradient(90deg, @color2 2px, transparent 2px),
+ linear-gradient(hsla(hue(@color2), saturation(@color2), lightness(@color2),.3) 1px, transparent 1px),
+ linear-gradient(90deg, hsla(hue(@color2), saturation(@color2), lightness(@color2),.3) 1px, transparent 1px);
+ background-size:100px 100px, 100px 100px, 20px 20px, 20px 20px;
+ background-position:-2px -2px, -2px -2px, -1px -1px, -1px -1px
}
-
- // Marrakesh by Divya Manian - http://nimbupani.com
- .Marrakesh() {
- 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);
- background-size: 30px 30px, 90px 90px;
- background-position: 0 0;
+
+ // Brady Bunch by Estelle Weyl - http://www.standardista.com
+ .brady-bunch(@color2: #B6CC66, @color3: #EDFFDB, @color4: #FFFFFF, @color5: #D9E6A7, @color6: #798B3C, @color7: #E0EAD7, @color1: #C8D3A7) {
+ background-image: radial-gradient(closest-side, transparent 0%, transparent 75%, @color2 76%, @color2 85%, @color3 86%, @color3 94%, @color4 95%, @color4 103%, @color5 104%, @color5 112%, @color6 113%, @color6 121%, @color4 122%, @color4 130%, @color7 131%, @color7 140%),
+ radial-gradient(closest-side, transparent 0%, transparent 75%, @color2 76%, @color2 85%, @color3 86%, @color3 94%, @color4 95%, @color4 103%, @color5 104%, @color5 112%, @color6 113%, @color6 121%, @color4 122%, @color4 130%, @color7 131%, @color7 140%);
+ background-size: 110px 110px;
+ background-color: @color1;
+ background-position: 0 0, 55px 55px;
}
- // Rainbow Bokeh by Auke Zwart - http://twitter.com/okke29
- .rainbow-bokeh() {
- 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;
+ // Bricks by Tab Atkins Jr - http://www.xanthir.com/blog/
+ .bricks(@color1: #d00, @color2: Silver) {
+ background-color: @color2;
+ background-image: linear-gradient(335deg, darken(@color1 ,6.6) 23px, transparent 23px),
+ linear-gradient(155deg, @color1 23px, transparent 23px),
+ linear-gradient(335deg, darken(@color1 ,6.6) 23px, transparent 23px),
+ linear-gradient(155deg, @color1 23px, transparent 23px);
+ background-size: 58px 58px;
+ background-position: 0px 2px, 4px 35px, 29px 31px, 34px 6px;
}
- // Carbon by Atle Mo (design), Sébastien Grosjean (code) - http://www.zencocoon.com/
- .carbon(@color: #282828) {
- 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: @color;
+ // Carbon by Atle Mo (design), Sébastien Grosjean (code) - http://www.zencocoon.com/
+ .carbon(@color1:#131313) {
+ background:
+ linear-gradient(27deg, lighten(@color1, .6) 5px, transparent 5px) 0 5px,
+ linear-gradient(207deg, lighten(@color1, .6) 5px, transparent 5px) 10px 0px,
+ linear-gradient(27deg, lighten(@color1, 5.7) 5px, transparent 5px) 0px 10px,
+ linear-gradient(207deg, lighten(@color1, 5.7) 5px, transparent 5px) 10px 5px,
+ linear-gradient(90deg, lighten(@color1, 3) 10px, transparent 10px),
+ linear-gradient(lighten(@color1, 3.9) 25%, lighten(@color1, 2.8) 25%, lighten(@color1, 2.8) 50%, transparent 50%, transparent 75%, lighten(@color1, 6.5) 75%, lighten(@color1, 6.5));
+ background-color: @color1;
background-size: 20px 20px;
}
// Carbon fibre by Atle Mo (design), Lea Verou (code) - http://subtlepatterns.com/#post-22
- .carbonfibre(@bgcolor: #282828) {
- background: -webkit-radial-gradient(black 15%, transparent 16%) 0 0,
- -webkit-radial-gradient(black 15%, transparent 16%) 5px 5px,
- -webkit-radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 0 1px,
- -webkit-radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 5px 5px;
- background: -moz-radial-gradient(black 15%, transparent 16%) 0 0,
- -moz-radial-gradient(black 15%, transparent 16%) 5px 5px,
- -moz-radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 0 1px,
- -moz-radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 5px 5px;
- background: -o-radial-gradient(black 15%, transparent 16%) 0 0,
- -o-radial-gradient(black 15%, transparent 16%) 5px 5px,
- -o-radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 0 1px,
- -o-radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 5px 5px;
- background: radial-gradient(black 15%, transparent 16%) 0 0,
- radial-gradient(black 15%, transparent 16%) 5px 5px,
- radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 0 1px,
- radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 5px 5px;
- background-color:@bgcolor;
- background-size:10px 10px;
- }
-
- // Hearts by Lea Verou
- .hearts(@color: #b03) {
- 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(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:@color;
- background-size:100px 100px;
- }
-
- // Argyle by Anna Kassner - http://annamation.ca/
- .argyle(@color: #6d695c) {
- background-color: @color;
- background-image: 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;
+ .carbon-fibre(@color1:#282828, @color2:black, @color3: white) {
+ background: -webkit-radial-gradient(@color2 15%, transparent 16%) 0 0,
+ -webkit-radial-gradient(@color2 15%, transparent 16%) 8px 8px,
+ -webkit-radial-gradient(hsla(hue(@color3), saturation(@color3), lightness(@color3),.1) 15%, transparent 20%) 0 1px,
+ -webkit-radial-gradient(hsla(hue(@color3), saturation(@color3), lightness(@color3),.1) 15%, transparent 20%) 8px 8px;
+ background: -o-radial-gradient(@color2 15%, transparent 16%) 0 0,
+ -o-radial-gradient(@color2 15%, transparent 16%) 8px 8px,
+ -o-radial-gradient(hsla(hue(@color3), saturation(@color3), lightness(@color3),.1) 15%, transparent 20%) 0 1px,
+ -o-radial-gradient(hsla(hue(@color3), saturation(@color3), lightness(@color3),.1) 15%, transparent 20%) 8px 9px;
+ background: radial-gradient(@color2 15%, transparent 16%) 0 0,
+ radial-gradient(@color2 15%, transparent 16%) 8px 8px,
+ radial-gradient(hsla(hue(@color3), saturation(@color3), lightness(@color3),.1) 15%, transparent 20%) 0 1px,
+ radial-gradient(hsla(hue(@color3), saturation(@color3), lightness(@color3),.1) 15%, transparent 20%) 8px 9px;
+ background-color:@color1;
+ background-size:16px 16px;
}
-
- // Steps by Nicolas Gallagher - http://nicolasgallagher.com/
- .steps(@color1: #FF7D9D, @color2: #C90032) {
- background-color: @color1;
- background-size: 58px 58px;
- background-position: 0px 2px, 4px 35px, 29px 31px, 33px 6px,
- 0px 36px, 4px 2px, 29px 6px, 33px 30px;
+
+ // Checkerboard by Lea Verou
+ .checkerboard(@color1:black, @color2:#fff){
+ background-color: @color2;
background-image:
- linear-gradient(335deg, @color2 23px, transparent 23px),
- linear-gradient(155deg, @color2 23px, transparent 23px),
- linear-gradient(335deg, @color2 23px, transparent 23px),
- linear-gradient(155deg, @color2 23px, transparent 23px),
-
- linear-gradient(335deg, @color2 10px, transparent 10px),
- linear-gradient(155deg, @color2 10px, transparent 10px),
- linear-gradient(335deg, @color2 10px, transparent 10px),
- linear-gradient(155deg, @color2 10px, transparent 10px);
+ linear-gradient(45deg, @color1 25%, transparent 25%, transparent 75%, @color1 75%, @color1),
+ linear-gradient(45deg, @color1 25%, transparent 25%, transparent 75%, @color1 75%, @color1);
+ background-size:60px 60px;
+ background-position:0 0, 30px 30px
}
-
- // Waves by Lea Verou
- .waves() {
- 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;
+
+ // Cicada stripes by Randy Merrill - http://forthedeveloper.com/
+ .cicada-stripes(@color1: #026873) {
+ background-color: @color1;
+ 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;
}
// Cross by Lea Verou
- .cross() {
- 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;
+ .cross(@color1: slategray, @color2:#A8B1BB) {
+ background: radial-gradient(circle, transparent 20%, @color1 20%, @color1 80%, transparent 80%, transparent),
+ radial-gradient(circle, transparent 20%, @color1 20%, @color1 80%, transparent 80%, transparent) 50px 50px,
+ linear-gradient(@color2 8px, transparent 8px) 0 -4px,
+ linear-gradient(90deg, @color2 8px, transparent 8px) -4px 0;
+ background-color: @color1;
background-size:100px 100px, 100px 100px, 50px 50px, 50px 50px;
}
-
- // Yin Yang by Lea Verou
- .yin-yang() {
- 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;
+
+ // Diagonal Checkerboard by Lea Verou
+ .diagonal-checkerboard(@color1:black, @color2:#fff) {
+ background-color: @color2;
+ background-image: linear-gradient(45deg, @color1 25%, transparent 25%, transparent 75%, @color1 75%, @color1),
+ linear-gradient(-45deg, @color1 25%, transparent 25%, transparent 75%, @color1 75%, @color1);
+ background-size:60px 60px;
}
- // Stars by Nicholas Gallagher - http://nicolasgallagher.com/
- .stars(@color1: #232927, @color2: #e3d7bf) {
- background: linear-gradient(324deg, @color1 4%, transparent 4%) -70px 43px,
- linear-gradient( 36deg, @color1 4%, transparent 4%) 30px 43px,
- linear-gradient( 72deg, @color2 8.5%, transparent 8.5%) 30px 43px,
- linear-gradient(288deg, @color2 8.5%, transparent 8.5%) -70px 43px,
- linear-gradient(216deg, @color2 7.5%, transparent 7.5%) -70px 23px,
- linear-gradient(144deg, @color2 7.5%, transparent 7.5%) 30px 23px,
-
- linear-gradient(324deg, @color1 4%, transparent 4%) -20px 93px,
- linear-gradient( 36deg, @color1 4%, transparent 4%) 80px 93px,
- linear-gradient( 72deg, @color2 8.5%, transparent 8.5%) 80px 93px,
- linear-gradient(288deg, @color2 8.5%, transparent 8.5%) -20px 93px,
- linear-gradient(216deg, @color2 7.5%, transparent 7.5%) -20px 73px,
- linear-gradient(144deg, @color2 7.5%, transparent 7.5%) 80px 73px;
+ // Diagonal Stripes by Lea Verou
+ .diagonal-stripes(@color1: black, @color2: white) {
background-color: @color1;
- background-size: 100px 100px;
+ background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, @color2 35px, @color2 70px);
}
- // Brady Bunch by Estelle Weyl - http://www.standardista.com
- .brady-bunch() {
- 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;
+ // Half-Rombes by Valentin Agachi - http://agachi.name/
+ .half-rombes(@color1: #36c, @color2: white ) {
+ background: @color1;
+ background: linear-gradient(115deg, transparent 75%, hsla(hue(@color2), saturation(@color2), lightness(@color2),0.8) 75%) 0 0,
+ linear-gradient(245deg, transparent 75%, hsla(hue(@color2), saturation(@color2), lightness(@color2),0.8) 75%) 0 0,
+ linear-gradient(115deg, transparent 75%, hsla(hue(@color2), saturation(@color2), lightness(@color2),0.8) 75%) 7px -15px,
+ linear-gradient(245deg, transparent 75%, hsla(hue(@color2), saturation(@color2), lightness(@color2),0.8) 75%) 7px -15px,
+ @color1;
+ background-size: 15px 30px
}
-
- // Shippo by Lea Verou
- .shippo(@color) {
- background-color:@color;
- 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%);
- background-size:80px 80px;
- background-position:0 0, 40px 40px;
+
+ // Hearts by Lea Verou
+ .hearts(@color1: #b03, @color2: #d35) {
+ background: radial-gradient(circle closest-side at 60% 43%, @color1 26%, hsla(hue(@color1), saturation(@color1), lightness(@color1),0) 27%),
+ radial-gradient(circle closest-side at 40% 43%, @color1 26%, hsla(hue(@color1), saturation(@color1), lightness(@color1),0) 27%),
+ radial-gradient(circle closest-side at 40% 22%, @color2 45%, hsla(hue(@color2), saturation(@color2), lightness(@color2),0) 46%),
+ radial-gradient(circle closest-side at 60% 22%, @color2 45%, hsla(hue(@color2), saturation(@color2), lightness(@color2),0) 46%),
+ radial-gradient(circle closest-side at 50% 35%, @color2 30%, hsla(hue(@color2), saturation(@color2), lightness(@color2),0) 31%),
+
+ radial-gradient(circle closest-side at 60% 43%, @color1 26%, hsla(hue(@color1), saturation(@color1), lightness(@color1),0) 27%) 50px 50px,
+ radial-gradient(circle closest-side at 40% 43%, @color1 26%, hsla(hue(@color1), saturation(@color1), lightness(@color1),0) 27%) 50px 50px,
+ radial-gradient(circle closest-side at 40% 22%, @color2 45%, hsla(hue(@color2), saturation(@color2), lightness(@color2),0) 46%) 50px 50px,
+ radial-gradient(circle closest-side at 60% 22%, @color2 45%, hsla(hue(@color2), saturation(@color2), lightness(@color2),0) 46%) 50px 50px,
+ radial-gradient(circle closest-side at 50% 35%, @color2 30%, hsla(hue(@color2), saturation(@color2), lightness(@color2),0) 31%) 50px 50px;
+ background-color:@color1;
+ background-size:100px 100px;
}
- // Bricks by Tab Atkins Jr - http://www.xanthir.com/blog/
- .bricks(@color1: #b00, @color2: #d00) {
- background-color: silver;
- background-image: linear-gradient(335deg, @color1 23px, transparent 23px),
- linear-gradient(155deg, @color2 23px, transparent 23px),
- linear-gradient(335deg, @color1 23px, transparent 23px),
- linear-gradient(155deg, @color2 23px, transparent 23px);
- background-size: 58px 58px;
- background-position: 0px 2px, 4px 35px, 29px 31px, 34px 6px;
+ // Horizontal Stripes by Lea Verou
+ .horizontal-stripes(@color1: Black, @color2: white) {
+ background-color: @color1;
+ background-image: linear-gradient(transparent 50%, @color2 50%);
+ background-size: 50px 50px;
}
- // Seigaiha by Lea Verou
- .seigaiha() {
- background-color:silver;
- background-image: 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;
+ // Houndstooth by Antoine Bernier - http://abernier.name
+ .houndstooth(@color1:white, @color2:black) {
+ background: linear-gradient(-45deg, @color1 25%, transparent 25%, transparent 75%, @color2 75%, @color2) 0 0,
+ linear-gradient(-45deg, @color2 25%, transparent 25%, transparent 75%, @color1 75%, @color1) 1em 1em,
+ linear-gradient(45deg, @color2 17%, transparent 17%, transparent 25%, @color2 25%, @color2 36%, transparent 36%, transparent 64%, @color2 64%, @color2 75%, transparent 75%, transparent 83%, @color2 83%) 1em 1em;
+ background-color: @color1;
+ background-size: 2em 2em;
}
// Japanese Cube by Lea Verou
- .japanese-cube() {
- 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);
+ .japanese-cube(@color1: #445) {
+ background-color: lighten(@color1, 8);
+ background-image: linear-gradient(30deg, @color1 12%, transparent 12.5%, transparent 87%, @color1 87.5%, @color1),
+ linear-gradient(150deg, @color1 12%, transparent 12.5%, transparent 87%, @color1 87.5%, @color1),
+ linear-gradient(30deg, @color1 12%, transparent 12.5%, transparent 87%, @color1 87.5%, @color1),
+ linear-gradient(150deg, @color1 12%, transparent 12.5%, transparent 87%, @color1 87.5%, @color1),
+ linear-gradient(60deg, lighten(@color1, 34) 25%, transparent 25.5%, transparent 75%, lighten(@color1, 34) 75%, lighten(@color1, 34)),
+ linear-gradient(60deg, lighten(@color1, 34) 25%, transparent 25.5%, transparent 75%, lighten(@color1, 34) 75%, lighten(@color1, 34));
background-size:80px 140px;
background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
}
- // Polka dot by Lea Verou
- .polka-dot() {
- background-color:#001;
- background-image: radial-gradient(white 15%, transparent 16%),
- radial-gradient(white 15%, transparent 16%);
- background-size:60px 60px;
- background-position: 0 0, 30px 30px;
+ // Lined Paper by Sarah Backhouse - http://www.jadu.net
+ .lined-paper(@color1: #fff, @color2: #abced4) {
+ background-color: @color1;
+ background-image: linear-gradient(90deg, transparent 79px, @color2 79px, @color2 81px, transparent 81px),
+ linear-gradient(#eee .1em, transparent .1em);
+ background-size: 100% 1.2em;
}
- // Houndstooth by Antoine Bernier - http://abernier.name
- .houndstooth() {
- 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;
+ // Madras by Divya Manian - http://nimbupani.com
+ .madras(@color1: #f7b355, @color2: #d2766e, @color3: #0A232D, @color4:#e9d3b7) {
+ background-color: @color4;
+ background-image: repeating-linear-gradient(45deg, transparent 5px, hsla(hue(@color3), saturation(@color3), lightness(@color3), 0.5) 5px, hsla(hue(@color3), saturation(@color3), lightness(@color3), 0.5) 10px,
+ hsla(hue(@color2), saturation(@color2), lightness(@color2), 0) 10px, hsla(hue(@color2), saturation(@color2), lightness(@color2), 0) 35px, hsla(hue(@color2), saturation(@color2), lightness(@color2), 0.5) 35px, hsla(hue(@color2), saturation(@color2), lightness(@color2), 0.5) 40px,
+ hsla(hue(@color3), saturation(@color3), lightness(@color3), 0.5) 40px, hsla(hue(@color3), saturation(@color3), lightness(@color3), 0.5) 50px, hsla(hue(@color3), saturation(@color3), lightness(@color3), 0) 50px, hsla(hue(@color3), saturation(@color3), lightness(@color3), 0) 60px,
+ hsla(hue(@color2), saturation(@color2), lightness(@color2), 0.5) 60px, hsla(hue(@color2), saturation(@color2), lightness(@color2), 0.5) 70px, hsla(hue(@color1), saturation(@color1), lightness(@color1), 0.5) 70px, hsla(hue(@color1), saturation(@color1), lightness(@color1), 0.5) 80px,
+ hsla(hue(@color1), saturation(@color1), lightness(@color1), 0) 80px, hsla(hue(@color1), saturation(@color1), lightness(@color1), 0) 90px, hsla(hue(@color2), saturation(@color2), lightness(@color2), 0.5) 90px, hsla(hue(@color2), saturation(@color2), lightness(@color2), 0.5) 110px,
+ hsla(hue(@color2), saturation(@color2), lightness(@color2), 0) 110px, hsla(hue(@color2), saturation(@color2), lightness(@color2), 0) 120px, hsla(hue(@color3), saturation(@color3), lightness(@color3), 0.5) 120px, hsla(hue(@color3), saturation(@color3), lightness(@color3), 0.5) 140px
+ ),
+ repeating-linear-gradient(135deg, transparent 5px, hsla(hue(@color3), saturation(@color3), lightness(@color3), 0.5) 5px, hsla(hue(@color3), saturation(@color3), lightness(@color3), 0.5) 10px,
+ hsla(hue(@color2), saturation(@color2), lightness(@color2), 0) 10px, hsla(hue(@color2), saturation(@color2), lightness(@color2), 0) 35px, hsla(hue(@color2), saturation(@color2), lightness(@color2), 0.5) 35px, hsla(hue(@color2), saturation(@color2), lightness(@color2), 0.5) 40px,
+ hsla(hue(@color3), saturation(@color3), lightness(@color3), 0.5) 40px, hsla(hue(@color3), saturation(@color3), lightness(@color3), 0.5) 50px, hsla(hue(@color3), saturation(@color3), lightness(@color3), 0) 50px, hsla(hue(@color3), saturation(@color3), lightness(@color3), 0) 60px,
+ hsla(hue(@color2), saturation(@color2), lightness(@color2), 0.5) 60px, hsla(hue(@color2), saturation(@color2), lightness(@color2), 0.5) 70px, hsla(hue(@color1), saturation(@color1), lightness(@color1), 0.5) 70px, hsla(hue(@color1), saturation(@color1), lightness(@color1), 0.5) 80px,
+ hsla(hue(@color1), saturation(@color1), lightness(@color1), 0) 80px, hsla(hue(@color1), saturation(@color1), lightness(@color1), 0) 90px, hsla(hue(@color2), saturation(@color2), lightness(@color2), 0.5) 90px, hsla(hue(@color2), saturation(@color2), lightness(@color2), 0.5) 110px,
+ hsla(hue(@color2), saturation(@color2), lightness(@color2), 0) 110px, hsla(hue(@color2), saturation(@color2), lightness(@color2), 0) 140px, hsla(hue(@color3), saturation(@color3), lightness(@color3), 0.5) 140px, hsla(hue(@color3), saturation(@color3), lightness(@color3), 0.5) 160px
+ );
+ }
+
+ // Marrakesh by Divya Manian - http://nimbupani.com
+ .marrakesh(@color1: white, @color2: midnightblue) {
+ background-color:@color1;
+ background-image: radial-gradient(@color2 9px, transparent 10px),
+ repeating-radial-gradient(@color2 0, @color2 4px, transparent 5px, transparent 20px, @color2 21px, @color2 25px, transparent 26px, transparent 50px);
+ background-size: 30px 30px, 90px 90px;
+ background-position: 0 0;
}
- // Checkerboard by Lea Verou
- .checkerboard() {
- 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);
- background-size:60px 60px;
- background-position:0 0, 30px 30px
+ // Microbial Mat by Logan McBroom - http://logan.mcbroom.me
+ .microbial-mat(@color1: #8a3, @color2: #613) {
+ background: radial-gradient(circle at 0% 50%, hsla(hue(@color2), saturation(@color2), lightness(@color2),0) 9px, @color2 10px, hsla(hue(@color2), saturation(@color2), lightness(@color2),0) 11px) 0px 10px,
+ radial-gradient(at 100% 100%, hsla(hue(@color2), saturation(@color2), lightness(@color2),0) 9px, @color2 10px, hsla(hue(@color2), saturation(@color2), lightness(@color2),0) 11px), @color1;
+ background-size: 20px 20px;
}
-
- // Diagonal Checkerboard by Lea Verou
- .diagonal-checkerboard() {
- 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);
+
+ // Polka dot by Lea Verou
+ .polkadots(@color1:#001, @color2:white) {
+ background-color:@color1;
+ background-image:
+ radial-gradient(@color2 15%, transparent 16%),
+ radial-gradient(@color2 15%, transparent 16%);
background-size:60px 60px;
+ background-position: 0 0, 30px 30px;
}
- // Tartan by Marta Armada - http://swwweet.com
- .tartan() {
- 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(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);
+ // Rainbow Bokeh by Auke Zwart - http://twitter.com/okke29
+ .rainbow-bokeh(@color1: #343702, @color2: #184500, @color3: #187546, @color4: #006782, @color5: #0b1284, @color6: #760ea1, @color7: #83096e, @color8: #840b2a, @color9: #b13e12, @color10: #e27412) {
+ 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, @color1 0%, @color2 20%, @color3 30%, @color4 40%, @color5 50%, @color6 60%, @color7 70%, @color8 80%, @color9 90%, @color10 100%);
+ background-size: 470px 470px, 970px 970px, 410px 410px, 610px 610px, 530px 530px, 730px 730px, 100% 100%;
+ background-color: @color8;
}
-
- // Madras by Divya Manian - http://nimbupani.com
- .madras() {
- 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
- );
+
+ // Seigaiha by Lea Verou
+ .seigaiha(@color1:silver, @color2:white) {
+ background-color:@color1;
+ background-image:
+ radial-gradient(circle at 100% 150%, @color1 24%, @color2 25%, @color2 28%, @color1 29%, @color1 36%, @color2 36%, @color2 40%, transparent 40%, transparent),
+ radial-gradient(circle at 0 150%, @color1 24%, @color2 25%, @color2 28%, @color1 29%, @color1 36%, @color2 36%, @color2 40%, transparent 40%, transparent),
+ radial-gradient(circle at 50% 100%, @color2 10%, @color1 11%, @color1 23%, @color2 24%, @color2 30%, @color1 31%, @color1 43%, @color2 44%, @color2 50%, @color1 51%, @color1 63%, @color2 64%, @color2 71%, transparent 71%, transparent),
+ radial-gradient(circle at 100% 50%, @color2 5%, @color1 6%, @color1 15%, @color2 16%, @color2 20%, @color1 21%, @color1 30%, @color2 31%, @color2 35%, @color1 36%, @color1 45%, @color2 46%, @color2 49%, transparent 50%, transparent),
+ radial-gradient(circle at 0 50%, @color2 5%, @color1 6%, @color1 15%, @color2 16%, @color2 20%, @color1 21%, @color1 30%, @color2 31%, @color2 35%, @color1 36%, @color1 45%, @color2 46%, @color2 49%, transparent 50%, transparent);
+ background-size:100px 50px;
}
-
- // Lined Paper by Sarah Backhouse - http://www.jadu.net
- .lined-paper() {
- background-color: #fff;
- background-image: linear-gradient(90deg, transparent 79px, #abced4 79px, #abced4 81px, transparent 81px),
- linear-gradient(#eee .1em, transparent .1em);
- background-size: 100% 1.2em;
+
+ // Shippo by Lea Verou
+ .shippo(@color:#def, @color2: black) {
+ background-color:@color;
+ background-image: radial-gradient(closest-side, transparent 98%, hsla(hue(@color2), saturation(@color2), lightness(@color2),.3) 99%),
+ radial-gradient(closest-side, transparent 98%, hsla(hue(@color2), saturation(@color2), lightness(@color2),.3) 99%);
+ background-size:80px 80px;
+ background-position:0 0, 40px 40px;
}
-
- // Blueprint grid by Lea Verou
- .blueprint-grid() {
- background-color:#269;
- background-image: linear-gradient(white 2px, transparent 2px),
- 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;
+
+ // Stairs by Logan McBroom - http://logan.mcbroom.me
+ .stairs(@color1:#999) {
+ background:
+ linear-gradient(63deg, @color1 23%, transparent 23%) 7px 0,
+ linear-gradient(63deg, transparent 74%, @color1 78%),
+ linear-gradient(63deg, transparent 34%, @color1 38%, @color1 58%, transparent 62%),
+ #444;
+ background-size: 16px 48px;
+ }
+
+ // Starry Night by Lea Verou
+ .starry-night(@color1: black, @color2: #fff) {
+ background-color: @color1;
+ background-image: radial-gradient(@color2, hsla(hue(@color2), saturation(@color2), lightness(@color2),.2) 2px, transparent 40px),
+ radial-gradient(@color2, hsla(hue(@color2), saturation(@color2), lightness(@color2),.15) 1px, transparent 30px),
+ radial-gradient(@color2, hsla(hue(@color2), saturation(@color2), lightness(@color2),.1) 2px, transparent 40px),
+ radial-gradient(hsla(hue(@color2), saturation(@color2), lightness(@color2),.4), hsla(hue(@color2), saturation(@color2), lightness(@color2),.1) 2px, transparent 30px);
+ background-size: 550px 550px, 350px 350px, 250px 250px, 150px 150px;
+ background-position: 0 0, 40px 60px, 130px 270px, 70px 100px;
+ }
+
+ // Stars by Nicholas Gallagher - http://nicolasgallagher.com/
+ .stars(@color1: #232927, @color2: #e3d7bf) {
+ background:
+ linear-gradient(324deg, @color1 4%, transparent 4%) -70px 43px,
+ linear-gradient( 36deg, @color1 4%, transparent 4%) 30px 43px,
+ linear-gradient( 72deg, @color2 8.5%, transparent 8.5%) 30px 43px,
+ linear-gradient(288deg, @color2 8.5%, transparent 8.5%) -70px 43px,
+ linear-gradient(216deg, @color2 7.5%, transparent 7.5%) -70px 23px,
+ linear-gradient(144deg, @color2 7.5%, transparent 7.5%) 30px 23px,
+ linear-gradient(324deg, @color1 4%, transparent 4%) -20px 93px,
+ linear-gradient( 36deg, @color1 4%, transparent 4%) 80px 93px,
+ linear-gradient( 72deg, @color2 8.5%, transparent 8.5%) 80px 93px,
+ linear-gradient(288deg, @color2 8.5%, transparent 8.5%) -20px 93px,
+ linear-gradient(216deg, @color2 7.5%, transparent 7.5%) -20px 73px,
+ linear-gradient(144deg, @color2 7.5%, transparent 7.5%) 80px 73px;
+ background-color: @color1;
+ background-size: 100px 100px;
+ }
+
+ // Steps by Nicolas Gallagher - http://nicolasgallagher.com/
+ .steps(@color1: #FF7D9D, @color2: #C90032) {
+ background-color: @color1;
+ background-size: 58px 58px;
+ background-position: 0px 2px, 4px 35px, 29px 31px, 33px 6px,
+ 0px 36px, 4px 2px, 29px 6px, 33px 30px;
+ background-image:
+ linear-gradient(335deg, @color2 23px, transparent 23px),
+ linear-gradient(155deg, @color2 23px, transparent 23px),
+ linear-gradient(335deg, @color2 23px, transparent 23px),
+ linear-gradient(155deg, @color2 23px, transparent 23px),
+ linear-gradient(335deg, @color2 10px, transparent 10px),
+ linear-gradient(155deg, @color2 10px, transparent 10px),
+ linear-gradient(335deg, @color2 10px, transparent 10px),
+ linear-gradient(155deg, @color2 10px, transparent 10px);
}
// Tablecloth by Lea Verou
- .tablecloth() {
- 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%);
+ .tablecloth(@color1: white, @color2: rgba(200,0,0,.5)) {
+ background-color:@color1;
+ background-image:
+ linear-gradient(90deg, @color2 50%, transparent 50%),
+ linear-gradient(@color2 50%, transparent 50%);
background-size:50px 50px;
}
- // Diagonal Stripes by Lea Verou
- .diagonal-stripes() {
- background-color: gray;
- background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.5) 35px, rgba(255,255,255,.5) 70px);
+ // Tartan by Marta Armada - http://swwweet.com
+ .tartan(@color1: hsl(2, 57%, 40%)) {
+ background-color:@color1;
+ 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(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);
}
- // Cicada stripes by Randy Merrill - http://forthedeveloper.com/
- .cicada-stripes() {
- 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;
+ // Upholstery by Nate Eagle - http://nateeagle.com/
+ .upholstery(@color1: #300) {
+ @color2: lighten(@color1, 10);
+ @color3: lighten(@color1, 20);
+ @color4: lighten(@color1, 13.4);
+ background:
+ radial-gradient(lighten(@color1, 17) 4%, lighten(@color1, 8) 9%, hsla(hue(@color2), saturation(@color2), lightness(@color2), 0) 9%) 0 0,
+ radial-gradient(lighten(@color1, 17) 4%, lighten(@color1, 8) 8%, hsla(hue(@color2), saturation(@color2), lightness(@color2), 0) 10%) 50px 50px,
+ radial-gradient(hsla(hue(@color3), saturation(@color3), lightness(@color3), 0.8) 20%, hsla(hue(@color2), saturation(@color2), lightness(@color2), 0)) 50px 0,
+ radial-gradient(hsla(hue(@color3), saturation(@color3), lightness(@color3), 0.8) 20%, hsla(hue(@color2), saturation(@color2), lightness(@color2), 0)) 0 50px,
+ radial-gradient(hsla(hue(@color2), saturation(@color2), lightness(@color2), 1) 35%, hsla(hue(@color2), saturation(@color2), lightness(@color2), 0) 60%) 50px 0,
+ radial-gradient(hsla(hue(@color2), saturation(@color2), lightness(@color2), 1) 35%, hsla(hue(@color2), saturation(@color2), lightness(@color2), 0) 60%) 100px 50px,
+ radial-gradient(hsla(hue(@color4), saturation(@color4), lightness(@color4), 0.7), hsla(hue(@color2), saturation(@color2), lightness(@color2), 0)) 0 0,
+ radial-gradient(hsla(hue(@color4), saturation(@color4), lightness(@color4), 0.7), hsla(hue(@color2), saturation(@color2), lightness(@color2), 0)) 50px 50px,
+ linear-gradient(45deg, hsla(hue(@color2), saturation(@color2), lightness(@color2), 0) 49%, hsla(0, 100%, 0%, 1) 50%, hsla(hue(@color2), saturation(@color2), lightness(@color2), 0) 70%) 0 0,
+ linear-gradient(-45deg, hsla(hue(@color2), saturation(@color2), lightness(@color2), 0) 49%, hsla(0, 100%, 0%, 1) 50%, hsla(hue(@color2), saturation(@color2), lightness(@color2), 0) 70%) 0 0;
+ background-color: @color1;
+ background-size: 100px 100px;
}
-
+
// Vertical Stripes by Lea Verou
- .vertical-stripes() {
- background-color: gray;
- background-image: linear-gradient(90deg, transparent 50%, rgba(255,255,255,.5) 50%);
+ .vertical-stripes(@color1: black, @color2: white) {
+ background-color: @color1;
+ background-image: linear-gradient(90deg, transparent 50%, @color2 50%);
background-size: 50px 50px;
}
- // Horizontal Stripes by Lea Verou
- .horizontal-stripes() {
- background-color: gray;
- background-image: linear-gradient(transparent 50%, rgba(255,255,255,.5) 50%);
- background-size: 50px 50px;
+ // Waves by Lea Verou
+ .waves(@color1: slategray, @color2: rgba(255,255,255,.3)) {
+ background: radial-gradient(circle at 100% 50%, transparent 20%, @color2 21%, @color2 34%, transparent 35%, transparent),
+ radial-gradient(circle at 0% 50%, transparent 20%, @color2 21%, @color2 34%, transparent 35%, transparent) 0 -50px;
+ background-color: @color1;
+ background-size:75px 100px;
+ }
+
+ // Weave by Jeroen Franse - http://twitter.com/jroenf
+ .weave(@color1: #708090, @color2: #d9ecff) {
+ background: linear-gradient(135deg, @color1 22px, @color2 22px, @color2 24px, transparent 24px, transparent 67px, @color2 67px, @color2 69px, transparent 69px),
+ linear-gradient(225deg, @color1 22px, @color2 22px, @color2 24px, transparent 24px, transparent 67px, @color2 67px, @color2 69px, transparent 69px)0 64px;
+ background-color:@color1;
+ background-size: 64px 128px
+ }
+
+ // Yin Yang by Lea Verou
+ .yin-yang(@color1: #63773F, @color2: #D2CAAB, @color3: #364E27, @color4: rgba(54,78,39,0), @color5: rgba(210,202,171,0)) {
+ background: radial-gradient(circle at 50% 59%, @color2 3%, @color3 4%, @color3 11%, @color4 12%, @color5) 50px 0,
+ radial-gradient(circle at 50% 41%, @color3 3%, @color2 4%, @color2 11%, @color5 12%, @color5) 50px 0,
+ radial-gradient(circle at 50% 59%, @color2 3%, @color3 4%, @color3 11%, @color4 12%, @color4) 0 50px,
+ radial-gradient(circle at 50% 41%, @color3 3%, @color2 4%, @color2 11%, @color5 12%, @color5) 0 50px,
+ radial-gradient(circle at 100% 50%, @color2 16%, @color5 17%),
+ radial-gradient(circle at 0% 50%, @color3 16%, @color4 17%),
+ radial-gradient(circle at 100% 50%, @color2 16%, @color5 50px 50px,
+ radial-gradient(circle at 0% 50%, @color3 16%, @color4 17%) 50px 50px;
+ background-color:@color1;
+ background-size:100px 100px;
+ }
+
+ // Zig-zag by eCSSpert - http://twitter.com/ecsspert
+ .zig-zag(@color1: #ECEDDC, @color2: #EC173A) {
+ background: linear-gradient(135deg, @color1 25%, transparent 25%) -50px 0,
+ linear-gradient(225deg, @color1 25%, transparent 25%) -50px 0,
+ linear-gradient(315deg, @color1 25%, transparent 25%),
+ linear-gradient(45deg, @color1 25%, transparent 25%);
+ background-size: 100px 100px;
+ background-color: @color2;
}
-}
\ No newline at end of file
+}
\ No newline at end of file