From 96c3e709963516a06ad6e723a7bba3fbf5fc1ba2 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Tue, 3 May 2011 18:12:43 -0700 Subject: cleanup old stuff --- .DS_Store | Bin 0 -> 6148 bytes README.md | 16 + assets/img/dropdown-arrow.gif | Bin 0 -> 49 bytes assets/img/tablesorter-indicators.png | Bin 0 -> 451 bytes baseline-1.0.0.min.css | 217 ++++ docs/assets/img/baseline-10px.png | Bin 0 -> 152 bytes docs/assets/img/blueprint-icon.png | Bin 0 -> 193217 bytes docs/assets/img/grid-20px.png | Bin 0 -> 324 bytes docs/assets/img/grid-940px.png | Bin 0 -> 160 bytes docs/assets/img/twitter-logo-no-bird.png | Bin 0 -> 1509 bytes docs/assets/js/application.js | 24 + docs/assets/js/jquery/chili/css.js | 85 ++ docs/assets/js/jquery/chili/html.js | 80 ++ docs/assets/js/jquery/chili/jquery.chili-2.2.js | 704 +++++++++++++ docs/assets/js/jquery/chili/js.js | 75 ++ docs/assets/js/jquery/chili/php-f.js | 142 +++ docs/assets/js/jquery/chili/php.js | 138 +++ docs/assets/js/jquery/chili/recipes.js | 364 +++++++ docs/assets/js/jquery/hashgrid.js | 340 +++++++ docs/assets/js/jquery/jquery.tipsy.js | 104 ++ docs/assets/js/less-1.0.41.min.js | 69 ++ docs/grid.html | 168 ++++ docs/index.html | 1195 ++++++++++++++++++++++ grid.html | 168 ---- img/baseline-10px.png | Bin 152 -> 0 bytes img/blueprint-icon.png | Bin 193217 -> 0 bytes img/dropdown-arrow.gif | Bin 49 -> 0 bytes img/grid-20px.png | Bin 324 -> 0 bytes img/grid-940px.png | Bin 160 -> 0 bytes img/tablesorter-indicators.png | Bin 451 -> 0 bytes img/twitter-logo-no-bird.png | Bin 1509 -> 0 bytes index.html | 1224 ----------------------- js/jquery/chili/css.js | 85 -- js/jquery/chili/html.js | 80 -- js/jquery/chili/jquery.chili-2.2.js | 704 ------------- js/jquery/chili/js.js | 75 -- js/jquery/chili/php-f.js | 142 --- js/jquery/chili/php.js | 138 --- js/jquery/chili/recipes.js | 364 ------- js/jquery/hashgrid.js | 340 ------- js/jquery/jquery.tipsy.js | 104 -- js/less-1.0.41.min.js | 69 -- less/baseline.css | 216 ---- less/baseline.less | 24 - less/bootstrap.less | 211 ---- less/docs.less | 200 ---- less/forms.less | 336 ------- less/patterns.less | 526 ---------- less/reset.less | 16 - less/scaffolding.less | 110 -- less/tables.less | 121 --- less/type.less | 256 ----- readme.markdown | 15 - 53 files changed, 3721 insertions(+), 5524 deletions(-) create mode 100644 .DS_Store create mode 100644 README.md create mode 100644 assets/img/dropdown-arrow.gif create mode 100644 assets/img/tablesorter-indicators.png create mode 100644 baseline-1.0.0.min.css create mode 100644 docs/assets/img/baseline-10px.png create mode 100644 docs/assets/img/blueprint-icon.png create mode 100644 docs/assets/img/grid-20px.png create mode 100644 docs/assets/img/grid-940px.png create mode 100644 docs/assets/img/twitter-logo-no-bird.png create mode 100644 docs/assets/js/application.js create mode 100755 docs/assets/js/jquery/chili/css.js create mode 100755 docs/assets/js/jquery/chili/html.js create mode 100755 docs/assets/js/jquery/chili/jquery.chili-2.2.js create mode 100755 docs/assets/js/jquery/chili/js.js create mode 100755 docs/assets/js/jquery/chili/php-f.js create mode 100755 docs/assets/js/jquery/chili/php.js create mode 100755 docs/assets/js/jquery/chili/recipes.js create mode 100755 docs/assets/js/jquery/hashgrid.js create mode 100644 docs/assets/js/jquery/jquery.tipsy.js create mode 100644 docs/assets/js/less-1.0.41.min.js create mode 100644 docs/grid.html create mode 100644 docs/index.html delete mode 100644 grid.html delete mode 100644 img/baseline-10px.png delete mode 100644 img/blueprint-icon.png delete mode 100644 img/dropdown-arrow.gif delete mode 100644 img/grid-20px.png delete mode 100644 img/grid-940px.png delete mode 100644 img/tablesorter-indicators.png delete mode 100644 img/twitter-logo-no-bird.png delete mode 100644 index.html delete mode 100755 js/jquery/chili/css.js delete mode 100755 js/jquery/chili/html.js delete mode 100755 js/jquery/chili/jquery.chili-2.2.js delete mode 100755 js/jquery/chili/js.js delete mode 100755 js/jquery/chili/php-f.js delete mode 100755 js/jquery/chili/php.js delete mode 100755 js/jquery/chili/recipes.js delete mode 100755 js/jquery/hashgrid.js delete mode 100644 js/jquery/jquery.tipsy.js delete mode 100644 js/less-1.0.41.min.js delete mode 100644 less/baseline.css delete mode 100644 less/baseline.less delete mode 100644 less/bootstrap.less delete mode 100644 less/docs.less delete mode 100644 less/forms.less delete mode 100644 less/patterns.less delete mode 100644 less/reset.less delete mode 100644 less/scaffolding.less delete mode 100644 less/tables.less delete mode 100644 less/type.less delete mode 100644 readme.markdown diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 000000000..f9f60d0a8 Binary files /dev/null and b/.DS_Store differ diff --git a/README.md b/README.md new file mode 100644 index 000000000..e1869d18b --- /dev/null +++ b/README.md @@ -0,0 +1,16 @@ +# Twitter Baseline + +Baseline is Twitter's toolkit for kickstarting CSS for websites, apps, and more. It includes base CSS styles for typography, forms, buttons, tables, grids, navigation, alerts, and more. + +# Authors + +**Mark Otto** +http://twitter.com/mdo + +-------------------------------------------------- + +# Todos + +* Cross browser checks? Show this anywhere? +* Write up brief section on browser support +* LICENSE from legal \ No newline at end of file diff --git a/assets/img/dropdown-arrow.gif b/assets/img/dropdown-arrow.gif new file mode 100644 index 000000000..2da9c1d54 Binary files /dev/null and b/assets/img/dropdown-arrow.gif differ diff --git a/assets/img/tablesorter-indicators.png b/assets/img/tablesorter-indicators.png new file mode 100644 index 000000000..af3c40522 Binary files /dev/null and b/assets/img/tablesorter-indicators.png differ diff --git a/baseline-1.0.0.min.css b/baseline-1.0.0.min.css new file mode 100644 index 000000000..72ec50ed0 --- /dev/null +++ b/baseline-1.0.0.min.css @@ -0,0 +1,217 @@ +html,body{margin:0;padding:0;} +h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,cite,code,del,dfn,em,img,q,s,samp,small,strike,strong,sub,sup,tt,var,dd,dl,dt,li,ol,ul,fieldset,form,label,legend,button,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;font-weight:normal;font-style:normal;font-size:100%;line-height:1;font-family:inherit;} +table{border-collapse:collapse;border-spacing:0;} +ol,ul{list-style:none;} +q:before,q:after,blockquote:before,blockquote:after{content:"";} +.clearfix{zoom:1;}.clearfix:after{display:block;visibility:hidden;height:0;clear:both;content:".";} +.right{float:right;} +.left{float:left;} +.container{width:940px;margin:0 auto;} +div.row{zoom:1;}div.row:after{display:block;visibility:hidden;height:0;clear:both;content:".";} +div.row div.span1{display:inline;float:left;width:40px;margin-left:20px;}div.row div.span1:first-child{margin-left:0;} +div.row div.span2{display:inline;float:left;width:100px;margin-left:20px;}div.row div.span2:first-child{margin-left:0;} +div.row div.span3{display:inline;float:left;width:160px;margin-left:20px;}div.row div.span3:first-child{margin-left:0;} +div.row div.span4{display:inline;float:left;width:220px;margin-left:20px;}div.row div.span4:first-child{margin-left:0;} +div.row div.span5{display:inline;float:left;width:280px;margin-left:20px;}div.row div.span5:first-child{margin-left:0;} +div.row div.span6{display:inline;float:left;width:340px;margin-left:20px;}div.row div.span6:first-child{margin-left:0;} +div.row div.span7{display:inline;float:left;width:400px;margin-left:20px;}div.row div.span7:first-child{margin-left:0;} +div.row div.span8{display:inline;float:left;width:460px;margin-left:20px;}div.row div.span8:first-child{margin-left:0;} +div.row div.span9{display:inline;float:left;width:520px;margin-left:20px;}div.row div.span9:first-child{margin-left:0;} +div.row div.span10{display:inline;float:left;width:580px;margin-left:20px;}div.row div.span10:first-child{margin-left:0;} +div.row div.span11{display:inline;float:left;width:640px;margin-left:20px;}div.row div.span11:first-child{margin-left:0;} +div.row div.span12{display:inline;float:left;width:700px;margin-left:20px;}div.row div.span12:first-child{margin-left:0;} +div.row div.span13{display:inline;float:left;width:760px;margin-left:20px;}div.row div.span13:first-child{margin-left:0;} +div.row div.span14{display:inline;float:left;width:820px;margin-left:20px;}div.row div.span14:first-child{margin-left:0;} +div.row div.span15{display:inline;float:left;width:880px;margin-left:20px;}div.row div.span15:first-child{margin-left:0;} +div.row div.span16{display:inline;float:left;width:940px;margin-left:20px;}div.row div.span16:first-child{margin-left:0;} +html,body{background-color:#fff;} +body{margin:0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;font-weight:normal;line-height:20px;color:#555555;text-rendering:optimizeLegibility;-webkit-box-shadow:inset 0 1px 0 #ffffff;-moz-box-shadow:inset 0 1px 0 #ffffff;box-shadow:inset 0 1px 0 #ffffff;} +div.container{width:940px;margin:0 auto;} +div.container-fluid{padding:20px;zoom:1;}div.container-fluid:after{display:block;visibility:hidden;height:0;clear:both;content:".";} +div.container-fluid div.sidebar{float:left;width:220px;} +div.container-fluid div.content{min-width:700px;max-width:1180px;margin-left:240px;} +a{color:#0069d6;text-decoration:none;line-height:inherit;}a:hover{color:#0050a3;text-decoration:underline;} +.btn{display:inline-block;background-color:#e0e0e0;background-repeat:no-repeat;background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#f9f9f9), color-stop(0.25, #f9f9f9), to(#e0e0e0));background-image:-webkit-linear-gradient(#f9f9f9, color-stop(0.25, #f9f9f9), #e0e0e0);background-image:-moz-linear-gradient(#f9f9f9, color-stop(#f9f9f9, 0.25), #e0e0e0);padding:4px 14px;text-shadow:0 1px 0 rgba(255, 255, 255, 0.75);color:#555555;line-height:20px;border:1px solid rgba(0, 0, 0, 0.1);border-bottom-color:rgba(0, 0, 0, 0.25);-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.25),0 1px 2px rgba(0, 0, 0, 0.1);-moz-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.25),0 1px 2px rgba(0, 0, 0, 0.1);box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.25),0 1px 2px rgba(0, 0, 0, 0.1);cursor:pointer;}.btn:hover{background-position:0 -15px;color:#3b3b3b;text-decoration:none;} +.btn.primary{background-color:#0069d6;background-repeat:no-repeat;background-image:-webkit-gradient(linear, left top, left bottom, from(#08b5fb), to(#0069d6));background-image:-webkit-linear-gradient(#08b5fb, #0069d6);background-image:-moz-linear-gradient(#08b5fb, #0069d6);background-image:-o-linear-gradient(top, #08b5fb, #0069d6);background-image:-khtml-gradient(linear, left top, left bottom, from(#08b5fb), to(#0069d6));filter:progid:DXImageTransform.Microsoft.Gradient(StartColorStr='#08b5fb', EndColorStr='#0069d6', GradientType=0);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorStr='#08b5fb', EndColorStr='#0069d6', GradientType=0))";color:#fff;text-shadow:0 -1px 0 rgba(0, 0, 0, 0.25);}.btn.primary:hover{color:#fff;} +.btn.large{font-size:16px;line-height:30px;-moz-border-radius:6px;border-radius:6px;} +.btn.small{padding-right:9px;padding-left:9px;font-size:11px;line-height:16px;} +button.btn::-moz-focus-inner,input[type=submit].btn::-moz-focus-inner{padding:0;border:0;} +p{font-size:14px;font-weight:normal;line-height:20px;margin-bottom:20px;}p small{font-size:12px;color:#777777;} +h1,h2,h3,h4,h5,h6{font-weight:500;color:#333333;}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small{color:#777777;} +h1{margin-bottom:20px;font-size:30px;line-height:40px;}h1 small{font-size:18px;} +h2{font-size:24px;line-height:40px;}h2 small{font-size:14px;} +h3,h4,h5,h6{line-height:40px;} +h3{font-size:18px;}h3 small{font-size:14px;} +h4{font-size:16px;}h4 small{font-size:12px;} +h5{font-size:14px;} +h6{font-size:13px;color:#777777;text-transform:uppercase;} +ul,ol{margin:0 0 20px 25px;} +ul ul,ul ol,ol ol,ol ul{margin-bottom:0;} +ul{list-style:disc;} +ol{list-style:decimal;} +li{line-height:20px;color:#555555;} +ul.unstyled{list-style:none;margin-left:0;} +dl{margin-bottom:20px;}dl dt,dl dd{line-height:20px;} +dl dt{font-weight:bold;} +dl dd{margin-left:10px;} +span.label{background-color:#ccc;padding:3px 5px;font-size:10px;font-weight:bold;color:#fff;text-shadow:0 0 1px rgba(0, 0, 0, 0.01);text-transform:uppercase;-moz-border-radius:3px;border-radius:3px;}span.label.expired{background-color:#f5f5f5;color:#999;} +span.label.pending{background-color:#48489b;} +span.label.declined{background-color:#9b4848;} +span.label.active,span.label.approved{background-color:#59bf59;} +span.label.disabled{background-color:#faa226;} +span.label.scheduled{background-color:#f5f5f5;color:#59bf59;text-shadow:0 1px 0 rgba(255, 255, 255, 0.5);} +hr{margin:0 0 19px;border:0;border-bottom:1px solid #eee;} +strong{font-style:inherit;font-weight:bold;line-height:inherit;} +em{font-style:italic;font-weight:inherit;line-height:inherit;} +.muted{color:#cccccc;} +blockquote{margin-bottom:20px;border-left:5px solid #eee;padding-left:15px;}blockquote p{font-size:14px;font-weight:300;line-height:20px;margin-bottom:0;} +blockquote cite{display:block;font-size:12px;font-weight:300;line-height:20px;color:#777777;}blockquote cite:before{content:'\2014 \00A0';} +address{display:block;line-height:20px;margin-bottom:20px;} +code,pre{padding:0 3px 2px;font-family:Monaco, Andale Mono, Courier New, monospace;font-size:12px;-moz-border-radius:3px;border-radius:3px;} +code{background-color:#fee9cc;color:rgba(0, 0, 0, 0.75);padding:2px 3px;} +pre{background-color:#f5f5f5;display:block;padding:19px;margin:0 0 20px;line-height:20px;font-size:12px;border:1px solid rgba(0, 0, 0, 0.15);-moz-border-radius:3px;border-radius:3px;white-space:pre-wrap;} +pre.css,pre.html{background-color:#fff;} +pre ol{background-color:#feeed6;list-style:decimal;margin:-19px;padding-left:59px;-moz-border-radius:2px;border-radius:2px;}pre ol li{background-color:#fff;padding:0 10px;border-left:1px solid rgba(0, 0, 0, 0.1);border-left-color:#fddfb3;font-size:11px;line-height:20px;color:#777777;text-shadow:0 1px 1px rgba(255, 255, 255, 0.5);word-wrap:break-word;} +pre ol li:first-child{padding-top:9px;} +pre ol li:last-child{padding-bottom:9px;} +span.html__tag_start,span.html__tag_end{color:#277ac1;font-weight:normal;} +span.html__attr_name{color:#d78b41;} +span.html__attr_value{color:#de4a3f;} +form{margin-bottom:20px;}form fieldset{margin-bottom:20px;padding-top:20px;}form fieldset legend{display:block;margin-left:150px;font-size:20px;line-height:1;color:#333333;} +form div.clearfix{margin-bottom:20px;} +form label,form input,form select,form textarea{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;font-weight:normal;line-height:normal;} +form label{padding-top:6px;font-size:13px;line-height:18px;float:left;width:130px;text-align:right;} +form div.input{margin-left:150px;} +form input[type=checkbox],form input[type=radio]{cursor:pointer;} +form input[type=text],form input[type=password],form textarea,form select,form .uneditable-input{display:block;width:210px;margin:0;padding:4px;font-size:13px;line-height:20px;height:20px;color:#555555;border:1px solid #bbb;-moz-border-radius:3px;border-radius:3px;} +form select,form input[type=file]{height:30px;line-height:30px;} +form textarea{height:auto;} +form .uneditable-input{background-color:#eee;display:block;border-color:#ccc;-webkit-box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.075);-moz-box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.075);box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.075);} +form input[type=text],form input[type=password],form select,form textarea{-webkit-transition:border linear 0.2s,box-shadow linear 0.2s;-moz-transition:border linear 0.2s,box-shadow linear 0.2s;transition:border linear 0.2s,box-shadow linear 0.2s;} +form input[type=text]:focus,form input[type=password]:focus,form textarea:focus{outline:none;border-color:rgba(82, 168, 236, 0.75);-webkit-box-shadow:0 0 8px rgba(82, 168, 236, 0.5);-moz-box-shadow:0 0 8px rgba(82, 168, 236, 0.5);box-shadow:0 0 8px rgba(82, 168, 236, 0.5);} +form div.error{background:#fae5e3;padding:10px 0;margin:-10px 0 10px;-moz-border-radius:4px;border-radius:4px;}form div.error>label{color:#9d261d;} +form div.error input[type=text],form div.error input[type=password],form div.error textarea{border-color:#c87872;-webkit-box-shadow:0 0 3px rgba(171, 41, 32, 0.25);-moz-box-shadow:0 0 3px rgba(171, 41, 32, 0.25);box-shadow:0 0 3px rgba(171, 41, 32, 0.25);}form div.error input[type=text]:focus,form div.error input[type=password]:focus,form div.error textarea:focus{border-color:#b9554d;-webkit-box-shadow:0 0 6px rgba(171, 41, 32, 0.5);-moz-box-shadow:0 0 6px rgba(171, 41, 32, 0.5);box-shadow:0 0 6px rgba(171, 41, 32, 0.5);} +form div.error div.input-prepend span.add-on,form div.error div.input-append span.add-on{background:#f4c8c5;border-color:#c87872;color:#b9554d;} +form .input-mini,form input.mini,form textarea.mini,form select.mini{width:60px;} +form .input-small,form input.small,form textarea.small,form select.small{width:90px;} +form .input-medium,form input.medium,form textarea.medium,form select.medium{width:150px;} +form .input-large,form input.large,form textarea.large,form select.large{width:210px;} +form .input-xlarge,form input.xlarge,form textarea.xlarge,form select.xlarge{width:270px;} +form .input-xxlarge,form input.xxlarge,form textarea.xxlarge,form select.xxlarge{width:530px;} +form textarea.xxlarge{overflow-y:scroll;} +form input[readonly]:focus,form textarea[readonly]:focus,form input.disabled{background:#f5f5f5;border-color:#ddd;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;} +div.actions{background:#f5f5f5;margin-top:20px;margin-bottom:20px;padding:19px 20px 20px 150px;border-top:1px solid #ddd;-moz-border-radius:0 0 3px 3px;border-radius:0 0 3px 3px;}div.actions div.secondary-action{float:right;}div.actions div.secondary-action a{line-height:30px;}div.actions div.secondary-action a:hover{text-decoration:underline;} +.help-inline,.help-block{font-size:12px;line-height:20px;color:#777777;} +.help-inline{padding-left:5px;} +.help-block{display:block;max-width:600px;}.help-block h5,.help-block p,.help-block ol li{color:#555555;} +.help-block p,.help-block ol li{font-size:12px;} +.help-block p{margin-bottom:0;font-size:12px;line-height:20px;color:#777777;} +.help-block ol{margin-bottom:10px;margin-left:25px;} +div.inline-inputs{color:#555555;}div.inline-inputs span,div.inline-inputs input[type=text]{display:inline-block;} +div.inline-inputs input.mini{width:60px;} +div.inline-inputs input.small{width:90px;} +div.inline-inputs span{padding:0 2px 0 1px;} +div.input-prepend input[type=text],div.input-append input[type=text]{-moz-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0;} +div.input-prepend .add-on,div.input-append .add-on{background:#f5f5f5;float:left;display:block;width:auto;min-width:16px;padding:5px 4px 5px 5px;color:#777777;font-weight:normal;line-height:18px;height:18px;text-align:center;text-shadow:0 1px 0 #fff;border:1px solid #bbb;border-right-width:0;-moz-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px;} +div.input-prepend .active,div.input-append .active{background:#a9dba9;border-color:#46a546;} +div.input-append input[type=text]{float:left;-moz-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px;} +div.input-append .add-on{-moz-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0;border-right-width:1px;border-left-width:0;} +ul.inputs-list{margin:0 0 5px;width:100%;}ul.inputs-list li{display:block;padding:0;width:100%;}ul.inputs-list li label{display:block;float:none;width:auto;padding:0;line-height:20px;text-align:left;white-space:normal;}ul.inputs-list li label strong{color:#555555;} +ul.inputs-list li label small{font-size:12px;font-weight:normal !important;} +ul.inputs-list li ul.inputs-list{margin-left:25px;margin-bottom:10px;padding-top:0;} +ul.inputs-list li:first-child{padding-top:5px;} +ul.inputs-list input[type=radio],ul.inputs-list input[type=checkbox]{margin-bottom:0;} +form.form-stacked fieldset{padding-top:10px;} +form.form-stacked legend{margin-left:0;} +form.form-stacked label{display:block;float:none;width:auto;font-weight:bold;text-align:left;line-height:20px;padding-top:0;} +form.form-stacked div.clearfix{margin-bottom:10px;}form.form-stacked div.clearfix div.input{margin-left:0;} +form.form-stacked ul.inputs-list{margin-bottom:0;}form.form-stacked ul.inputs-list li{padding-top:0;}form.form-stacked ul.inputs-list li label{font-weight:normal;padding-top:0;} +table{width:100%;margin-bottom:20px;padding:0;text-align:left;border-collapse:separate;}table th,table td{padding:10px 10px 9px;line-height:20px;vertical-align:middle;border-bottom:1px solid #ddd;} +table th{padding-top:9px;font-weight:bold;border-bottom-width:2px;} +table.zebra-striped tbody tr:nth-child(odd) td{background-color:#f5f5f5;} +table.zebra-striped tbody tr:hover td{background-color:#f1f1f1;} +table.zebra-striped th.header{cursor:pointer;padding-right:20px;} +table.zebra-striped th.headerSortUp,table.zebra-striped th.headerSortDown{background-image:url(assets/img/tablesorter-indicators.png);background-position:right -23px;background-repeat:no-repeat;background-color:rgba(141, 192, 219, 0.25);-moz-border-radius:3px 3px 0 0;border-radius:3px 3px 0 0;text-shadow:0 1px 1px rgba(255, 255, 255, 0.75);} +table.zebra-striped th.header:hover{background-image:url(assets/img/tablesorter-indicators.png);background-position:right 15px;background-repeat:no-repeat;} +table.zebra-striped th.actions:hover{background-image:none !important;} +table.zebra-striped th.headerSortDown,table.zebra-striped th.headerSortDown:hover{background-position:right -25px;} +table.zebra-striped th.headerSortUp,table.zebra-striped th.headerSortUp:hover{background-position:right -65px;} +table.zebra-striped th.blue{color:#08b5fb;border-bottom-color:#08b5fb;} +table.zebra-striped th.headerSortUp.blue,table.zebra-striped th.headerSortDown.blue{background-color:#d1f1fe;} +table.zebra-striped th.green{color:#46a546;border-bottom-color:#46a546;} +table.zebra-striped th.headerSortUp.green,table.zebra-striped th.headerSortDown.green{background-color:#cdeacd;} +table.zebra-striped th.red{color:#9d261d;border-bottom-color:#9d261d;} +table.zebra-striped th.headerSortUp.red,table.zebra-striped th.headerSortDown.red{background-color:#f4c8c5;} +table.zebra-striped th.yellow{color:#ffc40d;border-bottom-color:#ffc40d;} +table.zebra-striped th.headerSortUp.yellow,table.zebra-striped th.headerSortDown.yellow{background-color:#fff6d9;} +table.zebra-striped th.orange{color:#f89406;border-bottom-color:#f89406;} +table.zebra-striped th.headerSortUp.orange,table.zebra-striped th.headerSortDown.orange{background-color:#fee9cc;} +table.zebra-striped th.purple{color:#7a43b6;border-bottom-color:#7a43b6;} +table.zebra-striped th.headerSortUp.purple,table.zebra-striped th.headerSortDown.purple{background-color:#e2d5f0;} +div.topbar{background-color:#222222;background-repeat:no-repeat;background-image:-webkit-gradient(linear, left top, left bottom, from(#333333), to(#222222));background-image:-webkit-linear-gradient(#333333, #222222);background-image:-moz-linear-gradient(#333333, #222222);background-image:-o-linear-gradient(top, #333333, #222222);background-image:-khtml-gradient(linear, left top, left bottom, from(#333333), to(#222222));filter:progid:DXImageTransform.Microsoft.Gradient(StartColorStr='#333333', EndColorStr='#222222', GradientType=0);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorStr='#333333', EndColorStr='#222222', GradientType=0))";height:40px;position:fixed;top:0;left:0;right:0;z-index:100;overflow:visible;-webkit-box-shadow:0 1px 3px rgba(0, 0, 0, 0.25),inset 0 -1px 0 rgba(0, 0, 0, 0.1);-moz-box-shadow:0 1px 3px rgba(0, 0, 0, 0.25),inset 0 -1px 0 rgba(0, 0, 0, 0.1);box-shadow:0 1px 3px rgba(0, 0, 0, 0.25),inset 0 -1px 0 rgba(0, 0, 0, 0.1);}div.topbar a{color:#777777;text-shadow:0 -1px 0 rgba(0, 0, 0, 0.25);-webkit-transition:all linear 0.1s;-moz-transition:all linear 0.1s;transition:all linear 0.1s;} +div.topbar ul li a:hover,div.topbar ul li.active a,div.topbar a.logo:hover{background-color:#333;background-color:rgba(255, 255, 255, 0.15);color:#ffffff;text-decoration:none;} +div.topbar a.logo{float:left;display:block;padding:8px 20px 12px;margin-left:-20px;color:#ffffff;font-size:20px;font-weight:200;line-height:1;}div.topbar a.logo img{display:inline;float:left;margin-right:6px;} +div.topbar form{float:left;margin:4px 0 0 0;opacity:1;position:relative;}div.topbar form input{background-color:#777777;background-color:rgba(255, 255, 255, 0.3);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:normal;font-weight:13px;line-height:1;width:220px;padding:4px 9px;color:#fff;color:rgba(255, 255, 255, 0.75);border:1px solid #111;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.1),0 1px 0px rgba(255, 255, 255, 0.25);-moz-box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.1),0 1px 0px rgba(255, 255, 255, 0.25);box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.1),0 1px 0px rgba(255, 255, 255, 0.25);-webkit-transition:none;-moz-transition:none;transition:none;}div.topbar form input:-moz-placeholder{color:#cccccc;} +div.topbar form input::-webkit-input-placeholder{color:#cccccc;} +div.topbar form input:hover{background-color:#444;background-color:rgba(255, 255, 255, 0.5);color:#fff;} +div.topbar form input:focus,div.topbar form input.focused{outline:none;background-color:#fff;color:#333333;text-shadow:0 1px 0 #fff;border:0;padding:5px 10px;-webkit-box-shadow:0 0 3px rgba(0, 0, 0, 0.15);-moz-box-shadow:0 0 3px rgba(0, 0, 0, 0.15);box-shadow:0 0 3px rgba(0, 0, 0, 0.15);} +div.topbar ul{display:block;float:left;margin:0 10px 0 0;}div.topbar ul.secondary-nav{float:right;margin-left:10px;margin-right:0;} +div.topbar ul li{display:block;float:left;font-size:13px;}div.topbar ul li a{display:block;float:none;padding:10px 10px 11px;line-height:19px;text-decoration:none;}div.topbar ul li a:hover{color:#fff;text-decoration:none;} +div.topbar ul li.active a{background-color:#222;background-color:rgba(0, 0, 0, 0.5);font-weight:bold;} +div.topbar ul li.vr{border-left:1px solid #008db8;border-right:1px solid #00a0d1;height:26px;margin:6px 3px 1px 3px;} +div.topbar ul.primary-nav li ul{left:0;} +div.topbar ul.secondary-nav li ul{right:0;} +div.topbar ul li.menu{position:relative;}div.topbar ul li.menu a.menu:after{width:7px;height:7px;display:inline-block;background:transparent url(assets/img/dropdown-arrow.gif) no-repeat top center;content:"↓";text-indent:-99999px;vertical-align:top;margin-top:8px;margin-left:4px;opacity:.5;} +div.topbar ul li.menu.open a.menu,div.topbar ul li.menu.open a:hover{background-color:#00b4eb;background-color:rgba(255, 255, 255, 0.1);color:#fff;} +div.topbar ul li.menu.open ul{display:block;}div.topbar ul li.menu.open ul li a{background-color:transparent;font-weight:normal;}div.topbar ul li.menu.open ul li a:hover{background-color:rgba(255, 255, 255, 0.1);color:#fff;} +div.topbar ul li.menu.open ul li.active a{background-color:rgba(255, 255, 255, 0.1);font-weight:bold;} +div.topbar ul li ul{background-color:#333;float:left;display:none;position:absolute;top:40px;min-width:160px;max-width:220px;_width:160px;margin-left:0;margin-right:0;padding:0;text-align:left;border:0;zoom:1;-moz-border-radius:0 0 5px 5px;border-radius:0 0 5px 5px;-webkit-box-shadow:0 1px 2px rgba(0, 0, 0, 0.6);-moz-box-shadow:0 1px 2px rgba(0, 0, 0, 0.6);box-shadow:0 1px 2px rgba(0, 0, 0, 0.6);}div.topbar ul li ul li{float:none;clear:both;display:block;background:none;font-size:12px;}div.topbar ul li ul li a{display:block;padding:6px 15px;clear:both;font-weight:normal;line-height:19px;color:#bbb;}div.topbar ul li ul li a:hover{background-color:#333;background-color:rgba(255, 255, 255, 0.25);color:#fff;} +div.topbar ul li ul li.divider{height:1px;overflow:hidden;background:rgba(0, 0, 0, 0.2);border-bottom:1px solid rgba(255, 255, 255, 0.1);margin:5px 0;} +div.topbar ul li ul li span{clear:both;display:block;background:rgba(0, 0, 0, 0.2);padding:6px 15px;cursor:default;color:#666;border-top:1px solid rgba(0, 0, 0, 0.2);} +div.page-header{margin-bottom:19px;border-bottom:1px solid #ddd;-moz-border-radius:6px 6px 0 0;border-radius:6px 6px 0 0;-webkit-box-shadow:0 1px 0 rgba(255, 255, 255, 0.5);-moz-box-shadow:0 1px 0 rgba(255, 255, 255, 0.5);box-shadow:0 1px 0 rgba(255, 255, 255, 0.5);}div.page-header h1{margin-bottom:0;} +div.alert-message{background-color:rgba(0, 0, 0, 0.15);background-repeat:no-repeat;background-image:-webkit-gradient(linear, left top, left bottom, from(transparent), to(rgba(0, 0, 0, 0.15)));background-image:-webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.15));background-image:-moz-linear-gradient(transparent, rgba(0, 0, 0, 0.15));background-image:-o-linear-gradient(top, transparent, rgba(0, 0, 0, 0.15));background-image:-khtml-gradient(linear, left top, left bottom, from(transparent), to(rgba(0, 0, 0, 0.15)));filter:progid:DXImageTransform.Microsoft.Gradient(StartColorStr='transparent', EndColorStr='rgba(0, 0, 0, 0.15)', GradientType=0);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorStr='transparent', EndColorStr='rgba(0, 0, 0, 0.15)', GradientType=0))";background-color:#cccccc;margin-bottom:20px;padding:10px 15px 9px;-moz-border-radius:6px;border-radius:6px;color:#fff;border-bottom:1px solid rgba(0, 0, 0, 0.25);text-shadow:0 -1px 0 rgba(0, 0, 0, 0.25);}div.alert-message p{color:#fff;margin-bottom:0;}div.alert-message p+p{margin-top:5px;} +div.alert-message.error{background-color:#e06359;} +div.alert-message.warning{background-color:#ffd75a;} +div.alert-message.success{background-color:#74c474;} +div.alert-message.info{background-color:#53ccfc;} +div.alert-message a.close{float:right;margin-top:-2px;opacity:.5;color:#fff;font-size:20px;font-weight:bold;text-shadow:0 1px 0 rgba(0, 0, 0, 0.5);-moz-border-radius:3px;border-radius:3px;}div.alert-message a.close:hover{opacity:1;text-decoration:none;} +div.block-message{margin-bottom:20px;padding:14px 19px;color:#333;color:rgba(0, 0, 0, 0.8);text-shadow:0 1px 0 rgba(255, 255, 255, 0.25);-moz-border-radius:6px;border-radius:6px;}div.block-message p{font-size:13px;line-height:18px;color:#333;color:rgba(0, 0, 0, 0.8);margin-right:30px;margin-bottom:0;} +div.block-message ul{margin-bottom:0;} +div.block-message strong{display:block;} +div.block-message a.close{display:block;color:#333;color:rgba(0, 0, 0, 0.5);text-shadow:0 1px 1px rgba(255, 255, 255, 0.75);} +div.block-message.error{background:#f8dcda;border:1px solid #f4c8c5;} +div.block-message.warning{background:#fff0c0;border:1px solid #ffe38d;} +div.block-message.success{background:#dff1df;border:1px solid #bbe2bb;} +div.block-message.info{background:#eaf9ff;border:1px solid #d1f1fe;} +ul.tabs,ul.pills{margin:0 0 20px;padding:0;zoom:1;}ul.tabs:after,ul.pills:after{display:block;visibility:hidden;height:0;clear:both;content:".";} +ul.tabs li,ul.pills li{display:inline;}ul.tabs li a,ul.pills li a{display:inline;float:left;width:auto;} +ul.tabs{width:100%;border-bottom:1px solid #ccc;}ul.tabs li a{margin-bottom:-1px;margin-right:2px;padding:0 15px;line-height:39px;-moz-border-radius:3px 3px 0 0;border-radius:3px 3px 0 0;}ul.tabs li a:hover{background:#f5f5f5;border-bottom:1px solid #ccc;} +ul.tabs li.active a{background:#fff;padding:0 14px;border:1px solid #ccc;border-bottom:0;color:#555555;} +ul.pills li a{margin:5px 3px 5px 0;padding:0 15px;text-shadow:0 1px 1px #fff;line-height:30px;-moz-border-radius:15px;border-radius:15px;}ul.pills li a:hover{background:#0050a3;color:#fff;text-decoration:none;text-shadow:0 1px 1px rgba(0, 0, 0, 0.25);} +ul.pills li.active a{background:#0069d6;color:#fff;text-shadow:0 1px 1px rgba(0, 0, 0, 0.25);} +div.pagination{height:40px;margin:20px 0;}div.pagination ul{float:left;margin:0;border:1px solid rgba(0, 0, 0, 0.15);-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:0 1px 2px rgba(0, 0, 0, 0.075);-moz-box-shadow:0 1px 2px rgba(0, 0, 0, 0.075);box-shadow:0 1px 2px rgba(0, 0, 0, 0.075);}div.pagination ul li{display:inline;}div.pagination ul li a{display:inline;float:left;padding:0 14px;line-height:38px;border-right:1px solid rgba(0, 0, 0, 0.15);text-decoration:none;} +div.pagination ul li a:hover,div.pagination ul li.active a{background-color:#eaf9ff;} +div.pagination ul li.disabled a,div.pagination ul li.disabled a:hover{background-color:none;color:#777777;} +div.pagination ul li.next a,div.pagination ul li:last-child a{border:0;} +div.well{background:#f5f5f5;margin-bottom:20px;padding:19px;min-height:20px;border:1px solid #ddd;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075);-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075);box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075);} +body{background-color:#ffffff;background-repeat:no-repeat;background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#eeeeee), color-stop(0.15, #ffffff), to(#ffffff));background-image:-webkit-linear-gradient(#eeeeee, color-stop(0.15, #ffffff), #ffffff);background-image:-moz-linear-gradient(#eeeeee, color-stop(#ffffff, 0.15), #ffffff);background-attachment:fixed;background-position:0 40px;position:relative;} +header,section,footer,article,aside{display:block;} +section{padding-top:80px;margin-bottom:-40px;} +#masthead,#footer{background-color:#049cd9;background-repeat:no-repeat;background-image:-webkit-gradient(linear, left top, left bottom, from(#0056b0), to(#049cd9));background-image:-webkit-linear-gradient(#0056b0, #049cd9);background-image:-moz-linear-gradient(#0056b0, #049cd9);background-image:-o-linear-gradient(top, #0056b0, #049cd9);background-image:-khtml-gradient(linear, left top, left bottom, from(#0056b0), to(#049cd9));filter:progid:DXImageTransform.Microsoft.Gradient(StartColorStr='#0056b0', EndColorStr='#049cd9', GradientType=0);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorStr='#0056b0', EndColorStr='#049cd9', GradientType=0))";}#masthead div.inner,#footer div.inner{background:transparent url(assets/img/grid-20px.png) 0 -1px;padding:40px 0;-webkit-box-shadow:inset 0 10px 30px rgba(0, 0, 0, 0.25);-moz-box-shadow:inset 0 10px 30px rgba(0, 0, 0, 0.25);box-shadow:inset 0 10px 30px rgba(0, 0, 0, 0.25);} +#masthead h1,#footer h1,#masthead p,#footer p,#masthead small,#footer small{color:#fff;text-shadow:0 2px 0 rgba(0, 0, 0, 0.25);} +#masthead{margin-top:40px;margin-bottom:-40px;}#masthead h1{margin-bottom:0;} +#masthead p.lead{font-size:20px;font-weight:300;line-height:30px;margin:5px 0;} +#masthead a.btn{background-color:#552e7e;background-repeat:no-repeat;background-image:-webkit-gradient(linear, left top, left bottom, from(#7a43b6), to(#552e7e));background-image:-webkit-linear-gradient(#7a43b6, #552e7e);background-image:-moz-linear-gradient(#7a43b6, #552e7e);background-image:-o-linear-gradient(top, #7a43b6, #552e7e);background-image:-khtml-gradient(linear, left top, left bottom, from(#7a43b6), to(#552e7e));filter:progid:DXImageTransform.Microsoft.Gradient(StartColorStr='#7a43b6', EndColorStr='#552e7e', GradientType=0);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorStr='#7a43b6', EndColorStr='#552e7e', GradientType=0))";display:block;margin-bottom:20px;padding-top:5px;padding-bottom:5px;text-align:center;border:0;-webkit-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.25),inset 0 -1px 0 rgba(0, 0, 0, 0.25),0 1px 2px rgba(0, 0, 0, 0.4);-moz-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.25),inset 0 -1px 0 rgba(0, 0, 0, 0.25),0 1px 2px rgba(0, 0, 0, 0.4);box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.25),inset 0 -1px 0 rgba(0, 0, 0, 0.25),0 1px 2px rgba(0, 0, 0, 0.4);-webkit-transition:all 0.2s linear;-moz-transition:all 0.2s linear;transition:all 0.2s linear;} +#masthead small{display:block;text-align:center;font-size:13px;line-height:20px;color:rgba(255, 255, 255, 0.5);}#masthead small a{color:#fff;} +#footer{margin-top:80px;}#footer p{margin-bottom:0;} +.show-grid{margin-top:20px;margin-bottom:20px;}.show-grid .column,.show-grid .columns{background:rgba(0, 0, 0, 0.1);text-align:center;-moz-border-radius:3px;border-radius:3px;height:30px;line-height:30px;} +.show-grid:hover .column,.show-grid:hover .columns{background:rgba(0, 0, 0, 0.25);} +#grid{width:980px;position:absolute;top:0;left:50%;margin-left:-490px;} +#grid div.vert{background-color:rgba(0, 206, 209, 0.075);width:39px;border:solid darkturquoise;border-width:0 1px;margin-right:19px;} +#grid div.vert.first-line{margin-left:19px;} +#grid div.horiz{height:19px;border-bottom:1px solid rgba(255, 0, 0, 0.1);margin:0;padding:0;}#grid div.horiz:nth-child(5n){border-color:rgba(255, 0, 0, 0.25);} +div.mini-layout{height:340px;margin-bottom:20px;padding:9px;border:1px solid rgba(0, 0, 0, 0.25);-moz-border-radius:6px;border-radius:6px;-webkit-box-shadow:0 1px 3px rgba(0, 0, 0, 0.125);-moz-box-shadow:0 1px 3px rgba(0, 0, 0, 0.125);box-shadow:0 1px 3px rgba(0, 0, 0, 0.125);}div.mini-layout div{-moz-border-radius:3px;border-radius:3px;}div.mini-layout div.mini-layout-body{background-color:rgba(141, 192, 219, 0.25);margin:0 auto;width:450px;height:340px;} +div.mini-layout.fluid div.mini-layout-sidebar,div.mini-layout.fluid div.mini-layout-header,div.mini-layout.fluid div.mini-layout-body{float:left;} +div.mini-layout.fluid div.mini-layout-sidebar{background-color:rgba(141, 192, 219, 0.5);width:90px;height:340px;} +div.mini-layout.fluid div.mini-layout-body{width:400px;margin-left:10px;} +div.topbar-wrapper{position:relative;height:40px;margin:5px 0 15px;}div.topbar-wrapper div.topbar{position:absolute;margin:0 -20px;padding-left:20px;padding-right:20px;-moz-border-radius:4px;border-radius:4px;} diff --git a/docs/assets/img/baseline-10px.png b/docs/assets/img/baseline-10px.png new file mode 100644 index 000000000..16095dcbf Binary files /dev/null and b/docs/assets/img/baseline-10px.png differ diff --git a/docs/assets/img/blueprint-icon.png b/docs/assets/img/blueprint-icon.png new file mode 100644 index 000000000..babb40979 Binary files /dev/null and b/docs/assets/img/blueprint-icon.png differ diff --git a/docs/assets/img/grid-20px.png b/docs/assets/img/grid-20px.png new file mode 100644 index 000000000..91b8bf38d Binary files /dev/null and b/docs/assets/img/grid-20px.png differ diff --git a/docs/assets/img/grid-940px.png b/docs/assets/img/grid-940px.png new file mode 100644 index 000000000..99b1dd137 Binary files /dev/null and b/docs/assets/img/grid-940px.png differ diff --git a/docs/assets/img/twitter-logo-no-bird.png b/docs/assets/img/twitter-logo-no-bird.png new file mode 100644 index 000000000..70b6573d7 Binary files /dev/null and b/docs/assets/img/twitter-logo-no-bird.png differ diff --git a/docs/assets/js/application.js b/docs/assets/js/application.js new file mode 100644 index 000000000..a79f942e3 --- /dev/null +++ b/docs/assets/js/application.js @@ -0,0 +1,24 @@ +// Javascript to toggle the dropdowns +$(document).ready(function(){ + // Dropdowns + $("body").bind("click", function(e) { + $("ul.menu-dropdown").hide(); + $('a.menu').parent("li").removeClass("open").children("ul.menu-dropdown").hide(); + }); + $("a.menu").click(function(e) { + var $target = $(this); + var $parent = $target.parent("li"); + var $siblings = $target.siblings("ul.menu-dropdown"); + var $parentSiblings = $parent.siblings("li"); + if ($parent.hasClass("open")) { + $parent.removeClass("open"); + $siblings.hide(); + } else { + $parent.addClass("open"); + $siblings.show(); + } + $parentSiblings.children("ul.menu-dropdown").hide(); + $parentSiblings.removeClass("open"); + return false; + }); +}); \ No newline at end of file diff --git a/docs/assets/js/jquery/chili/css.js b/docs/assets/js/jquery/chili/css.js new file mode 100755 index 000000000..e86e88224 --- /dev/null +++ b/docs/assets/js/jquery/chili/css.js @@ -0,0 +1,85 @@ +/* +=============================================================================== +Chili is the jQuery code highlighter plugin +............................................................................... +LICENSE: http://www.opensource.org/licenses/mit-license.php +WEBSITE: http://noteslog.com/chili/ + + Copyright 2008 / Andrea Ercolino +=============================================================================== +*/ + +{ + _name: 'css' + , _case: true + , _main: { + comment: { + _match: /\/\*[^*]*\*+(?:[^\/][^*]*\*+)*\// + , _style: "color: olive;" + } + , directive: { + _match: /@\w+/ + , _style: "color: fuchsia;" + } + , url: { + _match: /\b(url\s*\()([^)]+)(\))/ + , _replace: "$1$2$3" + , _style: "color: fuchsia;" + } + , block: { + _match: /\{([\w\W]*?)\}/ + , _replace: function( all, pairs ) { + return '{' + this.x( pairs, '/definition' ) + '}'; + } + } + , 'class': { + _match: /\.\w+/ + , _style: "color: #CC0066;" + } + , id: { + _match: /#\w+/ + , _style: "color: IndianRed;" + } + , pseudo: { + _match: /:\w+/ + , _style: "color: #CC9900;" + } + , element: { + _match: /\w+/ + , _style: "color: Purple;" + } + } + , definition: { + comment: { + _match: /\/\*[^*]*\*+(?:[^\/][^*]*\*+)*\// + } + , property: { + _match: /\b(?:zoom|z-index|writing-mode|word-wrap|word-spacing|word-break|width|widows|white-space|volume|voice-family|visibility|vertical-align|unicode-bidi|top|text-underline-position|text-transform|text-shadow|text-overflow|text-kashida-space|text-justify|text-indent|text-decoration|text-autospace|text-align-last|text-align|table-layout|stress|speech-rate|speak-punctuation|speak-numeral|speak-header|speak|size|scrollbar-track-color|scrollbar-shadow-color|scrollbar-highlight-color|scrollbar-face-color|scrollbar-dark-shadow-color|scrollbar-base-color|scrollbar-arrow-color|scrollbar-3d-light-color|ruby-position|ruby-overhang|ruby-align|right|richness|quotes|position|play-during|pitch-range|pitch|pause-before|pause-after|pause|page-break-inside|page-break-before|page-break-after|page|padding-top|padding-right|padding-left|padding-bottom|padding|overflow-Y|overflow-X|overflow|outline-width|outline-style|outline-color|outline|orphans|min-width|min-height|max-width|max-height|marks|marker-offset|margin-top|margin-right|margin-left|margin-bottom|margin|list-style-type|list-style-position|list-style-image|list-style|line-height|line-break|letter-spacing|left|layout-grid-type|layout-grid-mode|layout-grid-line|layout-grid-char-spacing|layout-grid-char|layout-grid|layout-flow|layer-background-image|layer-background-color|include-source|ime-mode|height|font-weight|font-variant|font-style|font-stretch|font-size-adjust|font-size|font-family|font|float|filter|empty-cells|elevation|display|direction|cursor|cue-before|cue-after|cue|counter-reset|counter-increment|content|color|clip|clear|caption-side|bottom|border-width|border-top-width|border-top-style|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-left-width|border-left-style|border-left-color|border-left|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-color|border-bottom|border|behavior|background-repeat|background-position-y|background-position-x|background-position|background-image|background-color|background-attachment|background|azimuth|accelerator)\s*:/ + , _style: "color: #330066;" + } + , special: { + _match: /\b(?:-use-link-source|-set-link-source|-replace|-moz-user-select|-moz-user-modify|-moz-user-input|-moz-user-focus|-moz-outline-width|-moz-outline-style|-moz-outline-color|-moz-outline|-moz-opacity|-moz-border-top-colors|-moz-border-right-colors|-moz-border-radius-topright|-moz-border-radius-topleft|-moz-border-radius-bottomright|-moz-border-radius-bottomleft|-moz-border-radius|-moz-border-left-colors|-moz-border-bottom-colors|-moz-binding)\s*:/ + , _style: "color: #330066; text-decoration: underline;" + } + , url: { + _match: /\b(url\s*\()([^)]+)(\))/ + , _replace: "$1$2$3" + } + , value: { + _match: /\b(?:xx-small|xx-large|x-soft|x-small|x-slow|x-low|x-loud|x-large|x-high|x-fast|wider|wait|w-resize|visible|url|uppercase|upper-roman|upper-latin|upper-alpha|underline|ultra-expanded|ultra-condensed|tv|tty|transparent|top|thin|thick|text-top|text-bottom|table-row-group|table-row|table-header-group|table-footer-group|table-column-group|table-column|table-cell|table-caption|sw-resize|super|sub|status-bar|static|square|spell-out|speech|solid|soft|smaller|small-caption|small-caps|small|slower|slow|silent|show|separate|semi-expanded|semi-condensed|se-resize|scroll|screen|s-resize|run-in|rtl|rightwards|right-side|right|ridge|rgb|repeat-y|repeat-x|repeat|relative|projection|print|pre|portrait|pointer|overline|outside|outset|open-quote|once|oblique|nw-resize|nowrap|normal|none|no-repeat|no-open-quote|no-close-quote|ne-resize|narrower|n-resize|move|mix|middle|message-box|medium|marker|ltr|lowercase|lower-roman|lower-latin|lower-greek|lower-alpha|lower|low|loud|local|list-item|line-through|lighter|level|leftwards|left-side|left|larger|large|landscape|justify|italic|invert|inside|inset|inline-table|inline|icon|higher|high|hide|hidden|help|hebrew|handheld|groove|format|fixed|faster|fast|far-right|far-left|fantasy|extra-expanded|extra-condensed|expanded|embossed|embed|e-resize|double|dotted|disc|digits|default|decimal-leading-zero|decimal|dashed|cursive|crosshair|cross|crop|counters|counter|continuous|condensed|compact|collapse|code|close-quote|circle|center-right|center-left|center|caption|capitalize|braille|bottom|both|bolder|bold|block|blink|bidi-override|below|behind|baseline|avoid|auto|aural|attr|armenian|always|all|absolute|above)\b/ + , _style: "color: #3366FF;" + } + , string: { + _match: /(?:\'[^\'\\\n]*(?:\\.[^\'\\\n]*)*\')|(?:\"[^\"\\\n]*(?:\\.[^\"\\\n]*)*\")/ + , _style: "color: teal;" + } + , number: { + _match: /(?:\b[+-]?(?:\d*\.?\d+|\d+\.?\d*))(?:%|(?:(?:px|pt|em|)\b))/ + , _style: "color: red;" + } + , color : { + _match: /(?:\#[a-fA-F0-9]{3,6})|\b(?:yellow|white|teal|silver|red|purple|olive|navy|maroon|lime|green|gray|fuchsia|blue|black|aqua|YellowGreen|Yellow|WhiteSmoke|White|Wheat|Violet|Turquoise|Tomato|Thistle|Teal|Tan|SteelBlue|SpringGreen|Snow|SlateGrey|SlateGray|SlateBlue|SkyBlue|Silver|Sienna|SeaShell|SeaGreen|SandyBrown|Salmon|SaddleBrown|RoyalBlue|RosyBrown|Red|Purple|PowderBlue|Plum|Pink|Peru|PeachPuff|PapayaWhip|PaleVioletRed|PaleTurquoise|PaleGreen|PaleGoldenRod|Orchid|OrangeRed|Orange|OliveDrab|Olive|OldLace|Navy|NavajoWhite|Moccasin|MistyRose|MintCream|MidnightBlue|MediumVioletRed|MediumTurquoise|MediumSpringGreen|MediumSlateBlue|MediumSeaGreen|MediumPurple|MediumOrchid|MediumBlue|MediumAquaMarine|Maroon|Magenta|Linen|LimeGreen|Lime|LightYellow|LightSteelBlue|LightSlateGrey|LightSlateGray|LightSkyBlue|LightSeaGreen|LightSalmon|LightPink|LightGrey|LightGreen|LightGray|LightGoldenRodYellow|LightCyan|LightCoral|LightBlue|LemonChiffon|LawnGreen|LavenderBlush|Lavender|Khaki|Ivory|Indigo|IndianRed|HotPink|HoneyDew|Grey|GreenYellow|Green|Gray|GoldenRod|Gold|GhostWhite|Gainsboro|Fuchsia|ForestGreen|FloralWhite|FireBrick|DodgerBlue|DimGrey|DimGray|DeepSkyBlue|DeepPink|Darkorange|DarkViolet|DarkTurquoise|DarkSlateGrey|DarkSlateGray|DarkSlateBlue|DarkSeaGreen|DarkSalmon|DarkRed|DarkOrchid|DarkOliveGreen|DarkMagenta|DarkKhaki|DarkGrey|DarkGreen|DarkGray|DarkGoldenRod|DarkCyan|DarkBlue|Cyan|Crimson|Cornsilk|CornflowerBlue|Coral|Chocolate|Chartreuse|CadetBlue|BurlyWood|Brown|BlueViolet|Blue|BlanchedAlmond|Black|Bisque|Beige|Azure|Aquamarine|Aqua|AntiqueWhite|AliceBlue)\b/ + , _style: "color: green;" + } + } +} diff --git a/docs/assets/js/jquery/chili/html.js b/docs/assets/js/jquery/chili/html.js new file mode 100755 index 000000000..69f43a86d --- /dev/null +++ b/docs/assets/js/jquery/chili/html.js @@ -0,0 +1,80 @@ +/* +=============================================================================== +Chili is the jQuery code highlighter plugin +............................................................................... +LICENSE: http://www.opensource.org/licenses/mit-license.php +WEBSITE: http://noteslog.com/chili/ + + Copyright 2008 / Andrea Ercolino +=============================================================================== +*/ + +{ + _name: 'html' + , _case: false + , _main: { + doctype: { + _match: // + , _style: "color: #CC6600;" + } + , ie_style: { + _match: /()/ + , _replace: function( all, open, content, close ) { + return "" + this.x( open ) + "" + + this.x( content, '//style' ) + + "" + this.x( close ) + ""; + } + , _style: "color: DarkSlateGray; font-weight: bold;" + } + , comment: { + _match: // + , _style: "color: #4040c2;" + } + , script: { + _match: /(]*>)([\w\W]*?)(<\/script\s*>)/ + , _replace: function( all, open, content, close ) { + return this.x( open, '//tag_start' ) + + this.x( content, 'js' ) + + this.x( close, '//tag_end' ); + } + } + , style: { + _match: /(]*>)([\w\W]*?)(<\/style\s*>)/ + , _replace: function( all, open, content, close ) { + return this.x( open, '//tag_start' ) + + this.x( content, 'css' ) + + this.x( close, '//tag_end' ); + } + } + // matches a starting tag of an element (with attrs) + // like "
" or "" + , tag_start: { + _match: /(<\w+)((?:[?%]>|[\w\W])*?)(\/>|>)/ + , _replace: function( all, open, content, close ) { + return "" + this.x( open ) + "" + + this.x( content, '/tag_attrs' ) + + "" + this.x( close ) + ""; + } + , _style: "color: navy; font-weight: bold;" + } + // matches an ending tag + // like "
" + , tag_end: { + _match: /<\/\w+\s*>|\/>/ + , _style: "color: navy;" + } + , entity: { + _match: /&\w+?;/ + , _style: "color: blue;" + } + } + , tag_attrs: { + // matches a name/value pair + attr: { + // before in $1, name in $2, between in $3, value in $4 + _match: /(\W*?)([\w-]+)(\s*=\s*)((?:\'[^\']*(?:\\.[^\']*)*\')|(?:\"[^\"]*(?:\\.[^\"]*)*\"))/ + , _replace: "$1$2$3$4" + , _style: { attr_name: "color: green;", attr_value: "color: maroon;" } + } + } +} diff --git a/docs/assets/js/jquery/chili/jquery.chili-2.2.js b/docs/assets/js/jquery/chili/jquery.chili-2.2.js new file mode 100755 index 000000000..bb0e4abae --- /dev/null +++ b/docs/assets/js/jquery/chili/jquery.chili-2.2.js @@ -0,0 +1,704 @@ +/* +=============================================================================== +Chili is the jQuery code highlighter plugin +............................................................................... +LICENSE: http://www.opensource.org/licenses/mit-license.php +WEBSITE: http://noteslog.com/chili/ + + Copyright 2008 / Andrea Ercolino +=============================================================================== +*/ + + +( function($) { + +ChiliBook = { //implied global + + version: "2.2" // 2008-07-06 + +// options -------------------------------------------------------------------- + + , automatic: true + , automaticSelector: "pre" + + , lineNumbers: !true + + , codeLanguage: function( el ) { + var recipeName = $( el ).attr( "class" ); + return recipeName ? recipeName : ''; + } + + , recipeLoading: true + , recipeFolder: "" // used like: recipeFolder + recipeName + '.js' + + // IE and FF convert   to " ", Safari and Opera do not + , replaceSpace: " " + , replaceTab: "    " + , replaceNewLine: " 
" + + , selectionStyle: [ "position:absolute; z-index:3000; overflow:scroll;" + , "width:16em;" + , "height:9em;" + , "border:1px solid gray;" + , "padding:15px;" + , "background-color:yellow;" + ].join( ' ' ) + +// ------------------------------------------------------------- end of options + + , defaultReplacement: '$$' // TODO: make this an option again + , recipes: {} //repository + , queue: {} //registry + + , unique: function() { + return (new Date()).valueOf(); + } +}; + + + +$.fn.chili = function( options ) { + var book = $.extend( {}, ChiliBook, options || {} ); + + function cook( ingredients, recipe, blockName ) { + + function prepareBlock( recipe, blockName ) { + var steps = []; + for( var stepName in recipe[ blockName ] ) { + steps.push( prepareStep( recipe, blockName, stepName ) ); + } + return steps; + } // prepareBlock + + function prepareStep( recipe, blockName, stepName ) { + var step = recipe[ blockName ][ stepName ]; + var exp = ( typeof step._match == "string" ) ? step._match : step._match.source; + return { + recipe: recipe + , blockName: blockName + , stepName: stepName + , exp: "(" + exp + ")" + , length: 1 // add 1 to account for the newly added parentheses + + (exp // count number of submatches in here + .replace( /\\./g, "%" ) // disable any escaped character + .replace( /\[.*?\]/g, "%" ) // disable any character class + .match( /\((?!\?)/g ) // match any open parenthesis, not followed by a ? + || [] // make sure it is an empty array if there are no matches + ).length // get the number of matches + , replacement: step._replace ? step._replace : book.defaultReplacement + }; + } // prepareStep + + function knowHow( steps ) { + var prevLength = 1; + var exps = []; + for (var i = 0; i < steps.length; i++) { + var exp = steps[ i ].exp; + // adjust backreferences + exp = exp.replace( /\\\\|\\(\d+)/g, function( m, aNum ) { + return !aNum ? m : "\\" + ( prevLength + 1 + parseInt( aNum, 10 ) ); + } ); + exps.push( exp ); + prevLength += steps[ i ].length; + } + var prolog = '((?:\\s|\\S)*?)'; + var epilog = '((?:\\s|\\S)+)'; + var source = '(?:' + exps.join( "|" ) + ')'; + source = prolog + source + '|' + epilog; + return new RegExp( source, recipe._case ? "g" : "gi" ); + } // knowHow + + function escapeHTML( str ) { + return str.replace( /&/g, "&" ).replace( /' + filter( subject ) + ''; + } + return filter( subject ); + } + else { + return filter( subject ); + } + } + } // applyModule + + function addPrefix( prefix, replacement ) { + var aux = replacement.replace( /()/ig, "$1" + prefix + "__$3" ); + return aux; + } // addPrefix + + function chef() { + if (! arguments[ 0 ]) { + return ''; + } + var steps = this.steps; + var i = 0; // iterate steps + var j = 2; // iterate chef's arguments + var prolog = arguments[ 1 ]; + var epilog = arguments[ arguments.length - 3 ]; + if (! epilog) { + var step; + while( step = steps[ i++ ] ) { + var aux = arguments; // this unmasks chef's arguments inside the next function + if( aux[ j ] ) { + var replacement = ''; + if( $.isFunction( step.replacement ) ) { + var matches = []; //Array.slice.call( aux, j, step.length ); + for (var k = 0, kTop = step.length; k < kTop; k++) { + matches.push( aux[ j + k ] ); + } + matches.push( aux[ aux.length - 2 ] ); + matches.push( aux[ aux.length - 1 ] ); + replacement = step.replacement + .apply( { + x: function() { + var subject = arguments[0]; + var module = arguments[1]; + var context = { + recipe: step.recipe + , blockName: step.blockName + }; + return applyModule( subject, module, context ); + } + }, matches ); + } + else { //we expect step.replacement to be a string + replacement = step.replacement + .replace( /(\\\$)|(?:\$\$)|(?:\$(\d+))/g, function( m, escaped, K ) { + if( escaped ) { /* \$ */ + return "$"; + } + else if( !K ) { /* $$ */ + return filter( aux[ j ] ); + } + else if( K == "0" ) { /* $0 */ + return step.stepName; + } + else { /* $K */ + return filter( aux[ j + parseInt( K, 10 ) ] ); + } + } ); + } + replacement = addPrefix( step.recipe._name, replacement ); + return filter( prolog ) + replacement; + } + else { + j+= step.length; + } + } + } + else { + return filter( epilog ); + } + } // chef + + if( ! blockName ) { + blockName = '_main'; + checkSpices( recipe ); + } + if( ! (blockName in recipe) ) { + return filter( ingredients ); + } + var replaceSpace = book.replaceSpace; + var steps = prepareBlock( recipe, blockName ); + var kh = knowHow( steps ); + var perfect = ingredients.replace( kh, function() { + return chef.apply( { steps: steps }, arguments ); + } ); + return perfect; + + } // cook + + function loadStylesheetInline( sourceCode ) { + if( document.createElement ) { + var e = document.createElement( "style" ); + e.type = "text/css"; + if( e.styleSheet ) { // IE + e.styleSheet.cssText = sourceCode; + } + else { + var t = document.createTextNode( sourceCode ); + e.appendChild( t ); + } + document.getElementsByTagName( "head" )[0].appendChild( e ); + } + } // loadStylesheetInline + + function checkSpices( recipe ) { + var name = recipe._name; + if( ! book.queue[ name ] ) { + + var content = ['/* Chili -- ' + name + ' */']; + for (var blockName in recipe) { + if( blockName.search( /^_(?!main\b)/ ) < 0 ) { + for (var stepName in recipe[ blockName ]) { + var step = recipe[ blockName ][ stepName ]; + if( '_style' in step ) { + if( step[ '_style' ].constructor == String ) { + content.push( '.' + name + '__' + stepName + ' { ' + step[ '_style' ] + ' }' ); + } + else { + for (var className in step[ '_style' ]) { + content.push( '.' + name + '__' + className + ' { ' + step[ '_style' ][ className ] + ' }' ); + } + } + } + } + } + } + content = content.join('\n'); + + loadStylesheetInline( content ); + + book.queue[ name ] = true; + } + } // checkSpices + + function askDish( el ) { + var recipeName = book.codeLanguage( el ); + if( '' != recipeName ) { + var path = getPath( recipeName ); + if( book.recipeLoading ) { + /* dynamic setups come here */ + if( ! book.queue[ path ] ) { + /* this is a new recipe to download */ + try { + book.queue[ path ] = [ el ]; + $.getJSON( path, function( recipeLoaded ) { + book.recipes[ path ] = recipeLoaded; + var q = book.queue[ path ]; + for( var i = 0, iTop = q.length; i < iTop; i++ ) { + makeDish( q[ i ], path ); + } + } ); + } + catch( recipeNotAvailable ) { + alert( "the recipe for '" + recipeName + "' was not found in '" + path + "'" ); + } + } + else { + /* not a new recipe, so just enqueue this element */ + book.queue[ path ].push( el ); + } + /* a recipe could have been already downloaded */ + makeDish( el, path ); + } + else { + /* static setups come here */ + makeDish( el, path ); + } + } + } // askDish + + function makeDish( el, recipePath ) { + var recipe = book.recipes[ recipePath ]; + if( ! recipe ) { + return; + } + var $el = $( el ); + var ingredients = $el.text(); + if( ! ingredients ) { + return; + } + + //fix for msie: \r (13) is used instead of \n (10) + //fix for opera: \r\n is used instead of \n + ingredients = ingredients.replace(/\r\n?/g, "\n"); + + //reverse fix for safari: msie, mozilla and opera render the initial \n + if( $el.parent().is('pre') ) { + if( ! $.browser.safari ) { + ingredients = ingredients.replace(/^\n/g, ""); + } + } + + var dish = cook( ingredients, recipe ); // all happens here + + if( book.replaceTab ) { + dish = dish.replace( /\t/g, book.replaceTab ); + } + if( book.replaceNewLine ) { + dish = dish.replace( /\n/g, book.replaceNewLine ); + } + + el.innerHTML = dish; //much faster than $el.html( dish ); + //tried also the function replaceHtml from http://blog.stevenlevithan.com/archives/faster-than-innerhtml + //but it was not faster nor without sideffects (it was not possible to count spans into el) + + //opera and safari select PRE text correctly + if( $.browser.msie || $.browser.mozilla ) { + enableSelectionHelper( el ); + } + + var $that = $el.parent(); + var classes = $that.attr( 'class' ); + var ln = /ln-(\d+)-([\w][\w\-]*)|ln-(\d+)|ln-/.exec( classes ); + if( ln ) { + addLineNumbers( el ); + var start = 0; + if( ln[1] ) { + start = parseInt( ln[1], 10 ); + var $pieces = $( '.ln-' + ln[1] + '-' + ln[2] ); + var pos = $pieces.index( $that[0] ); + $pieces.slice( 0, pos ).each( function() { + start += $( this ).find( 'li' ).length; + } ); + } + else if( ln[3] ) { + start = parseInt( ln[3], 10 ); + } + else { + start = 1; + } + $el.find( 'ol' )[0].start = start; + $('body').width( $('body').width() - 1 ).width( $('body').width() + 1 ); + } + else if( book.lineNumbers ) { + addLineNumbers( el ); + } + + } // makeDish + + function enableSelectionHelper( el ) { + var element = null; + $( el ) + .parents() + .filter( "pre" ) + .bind( "mousedown", function() { + element = this; + if( $.browser.msie ) { + document.selection.empty(); + } + else { + window.getSelection().removeAllRanges(); + } + } ) + .bind( "mouseup", function( event ) { + if( element && (element == this) ) { + element = null; + var selected = ''; + if( $.browser.msie ) { + selected = document.selection.createRange().htmlText; + if( '' == selected ) { + return; + } + selected = preserveNewLines( selected ); + var container_tag = ' + + Block of help text to describe the field above if need be. + + + +
+ +
+
    +
  • + +
  • +
  • + +
  • +
+
+
+
+ + +
+ + + + + +
+ +
+
+

Stacked forms

+

Add .form-stacked to your form's HTML and you'll have labels on top of their fields instead of to their left. This works great if your forms are short or you have two columns of inputs for heavier forms.

+
+
+
+
+ Example form legend +
+ +
+ +
+
+
+ +
+ +
+
+
+
+ Example form legend +
+ +
+
    +
  • + +
  • +
  • + +
  • +
+ + Note: Labels surround all the options for much larger click areas and a more usable form. + +
+
+
+
+ + +
+
+
+
+ +
+
+

Buttons

+

As a convention, buttons are used for actions while links are used for objects. For instance, "Download" could be a button and "recent activity" could be a link.

+

All buttons default to a light gray style, but a blue .primary class is available. Plus, rolling your own styles is easy peasy.

+
+
+

Example buttons

+

Button styles can be applied to anything with the .btn applied. Typically you'll want to apply these to only a, button, and select input elements. Here's how it looks:

+
+ + +
+

Alternate sizes

+

Fancy larger or smaller buttons? Have at it!

+ + +
+
+ + + + + + + + +
+ +
+
+

Basic alerts

+

One-line messages for highlighting the failure, possible failure, or success of an action. Particularly useful for forms.

+
+
+
+ × +

Oh snap! Change this and that and try again.

+
+
+ × +

Holy gaucamole! Best check yo self, you're not looking too good.

+
+
+ × +

Well done! You successfully read this alert message.

+
+
+ × +

Heads up! This is an alert that needs your attention, but it's not a huge priority just yet.

+
+
+
+
+
+

Block messages

+

For messages that require a bit of explanation, we have paragraph style alerts. These are perfect for bubbling up longer error messages, warning a user of a pending action, or just presenting information for more emphasis on the page.

+
+
+
+ × +

Oh snap! You got an error! Change this and that and try again. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.

+

Take This Action Or Do This

+
+
+ × +

Holy gaucamole! This is a warning! Best check yo self, you're not looking too good. Nulla vitae elit libero, a pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

+

Take This Action Or Do This

+
+
+ × +

Well done! You successfully read this alert message. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Maecenas faucibus mollis interdum.

+

Take This Action Or Do This

+
+
+ × +

Heads up! This is an alert that needs your attention, but it's not a huge priority just yet.

+

Take This Action Or Do This

+
+
+
+
+ + + + + + + + + + \ No newline at end of file diff --git a/grid.html b/grid.html deleted file mode 100644 index 3ce74984c..000000000 --- a/grid.html +++ /dev/null @@ -1,168 +0,0 @@ - - - - - Twitter Baseline - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
-

Body Text

-

Headings and paragraphs for writing to your heart's content.

-

Heading 2

-

Donec ullamcorper nulla non metus auctor fringilla. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.

-

Heading 3

-

Donec ullamcorper nulla non metus auctor fringilla. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.

-

Heading 4

-

Donec ullamcorper nulla non metus auctor fringilla. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.

-
Heading 5
-

Donec ullamcorper nulla non metus auctor fringilla. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.

-
Heading 6
-

Donec ullamcorper nulla non metus auctor fringilla. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.

-
-
-

Lists

-

Includes unordered (bullets), ordered (numbers), and even definition (term and description).

-

Unordered List

-

For a list of items in which the order has no explicit meaning.

-
    -
  • Mattis
  • -
  • Tortor
  • -
  • Sollicitudin
  • -
  • Sit
  • -
  • Porta
  • -
-
-

Ordered List

-

For a list of items in which order does matter.

-
    -
  1. Cras
  2. -
  3. Euismod
  4. -
  5. Quam
  6. -
  7. Egestas
  8. -
  9. Nibh
  10. -
-
-

Definition List

-

For list terms and their definitions or descriptions.

-
-
Ullamcorper
-
Donec sed odio dui. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
-
Porta
-
Nulla vitae elit libero, a pharetra augue.
-
Pharetra
-
Morbi leo risus, porta ac consectetur ac, vestibulum at eros.
-
-
-
-

Misc. Elements

-

More elements that have special typographic styles, such as emphasis, address, abbr, and acronym.

-

Emphasis in a Paragraph

-

Cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus.

-

Addresses

-

The address element is used for—you guessed it!—addresses. Here's how it looks:

-
- Twitter, Inc.
- 795 Folsom Ave, Suite 600
- San Francisco, CA 12345
- P: (408) 123-4567 -
-

Note: Each line in an address must have a line-break (<br />) after it to properly structure the content as it is read in real life.

-

Abbreviations & Acronyms

-

Acronyms are actually a subset of abbreviations, a shortern form of another word. The difference is that regular abbreviations are just shorthand notations for a word, while acronyms are strings of the first letter in a multi-word phrase.

-

Example acronyms include HTML and CSS, while a great abbreviation is Prof. (short for Professor).

-
-
- -
- - - - - \ No newline at end of file diff --git a/img/baseline-10px.png b/img/baseline-10px.png deleted file mode 100644 index 16095dcbf..000000000 Binary files a/img/baseline-10px.png and /dev/null differ diff --git a/img/blueprint-icon.png b/img/blueprint-icon.png deleted file mode 100644 index babb40979..000000000 Binary files a/img/blueprint-icon.png and /dev/null differ diff --git a/img/dropdown-arrow.gif b/img/dropdown-arrow.gif deleted file mode 100644 index 2da9c1d54..000000000 Binary files a/img/dropdown-arrow.gif and /dev/null differ diff --git a/img/grid-20px.png b/img/grid-20px.png deleted file mode 100644 index 91b8bf38d..000000000 Binary files a/img/grid-20px.png and /dev/null differ diff --git a/img/grid-940px.png b/img/grid-940px.png deleted file mode 100644 index 99b1dd137..000000000 Binary files a/img/grid-940px.png and /dev/null differ diff --git a/img/tablesorter-indicators.png b/img/tablesorter-indicators.png deleted file mode 100644 index af3c40522..000000000 Binary files a/img/tablesorter-indicators.png and /dev/null differ diff --git a/img/twitter-logo-no-bird.png b/img/twitter-logo-no-bird.png deleted file mode 100644 index 70b6573d7..000000000 Binary files a/img/twitter-logo-no-bird.png and /dev/null differ diff --git a/index.html b/index.html deleted file mode 100644 index 5876ac5e8..000000000 --- a/index.html +++ /dev/null @@ -1,1224 +0,0 @@ - - - - - Twitter Baseline - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
-
-
-

Twitter Baseline

-

Baseline is Twitter's toolkit for kickstarting CSS for websites, apps, and more. It includes base CSS styles for typography, forms, buttons, tables, grids, navigation, alerts, and more.

-
-
- Download Zip » - - Visit project page on Github »
- (Current version: 1.0.0) -
-
-
-
-
-
- -
- - - -
- -
-
-

You can use Twitter Baseline in one of two ways: just drop the compiled CSS into any new project and start cranking, or run LESS on your site and compile on the fly like a boss.

-
-
-

1. Compiled CSS

-

Use this option if you want all the styles of Baseline in a compiled and minified stylesheet, but none of the extra power of LESS.

-
<link type="text/css" href="baseline-1.0.0.css" media="all" />
-

2. Run with LESS.js

-

Use this option to make full use of Baseline's LESS variables, mixins, and nesting in CSS.

-
-<link rel="stylesheet/less" type="text/css" href="less/baseline.less" media="all" />
-<script type="text/javascript" src="js/less-1.0.41.min.js"></script>
-
-
-
- - -
- -
-
-

Bootstrap is a super awesome pack of mixins and variables to be used in conjunction with LESS, a CSS preprocessor for faster and easier web development, that we used to build Baseline.

-
-
-

What's included

-

Here are some of the highlights of what's included in Twitter Baseline as part of Bootstrap. Head over to the Bootstrap website or Github project page to download and learn more.

-

Color variables

-

Variables in LESS are perfect for maintaining and updating your CSS headache free. When you want to change a color value or a frequently used value, update it in one spot and you're set.

-
-// Links
-@link-color:        #0069d6;
-@link-hover-color:  darken(@link-color, 10);
-
-// Grays
-@white:             #fff;
-@gray-lighter:      #ccc;
-@gray-light:        #777;
-@gray:              #555;
-@gray-dark:         #333;
-@black:             #000;
-
-// Accent Colors
-@blue:              #08b5fb;
-@blue-dark:         #0069d6;
-@green:             #46a546;
-@red:               #9d261d;
-@yellow:            #ffc40d;
-@orange:            #f89406;
-@pink:              #c3325f;
-@purple:            #7a43b6;
-
-// Baseline
-@baseline:          20px;
-
- -

Commenting

-

LESS also provides another style of commenting in addition to CSS's normal /* ... */ syntax.

-
-// This is a comment
-/* This is also a comment */
-
- -

Mixins up the wazoo

-

Mixins are basically includes or partials for CSS, allowing you to combine a block of code into one. They're great for vendor prefixed properties like box-shadow, cross-browser gradients, font stacks, and more. Below is a sample of the mixins that are included with Bootstrap in Baseline.

-
-// Font Stacks
-.font(@weight: normal, @size: 14px, @lineheight: 20px) {
-  font-size: @size;
-  font-weight: @weight;
-  line-height: @lineheight;
-}
-.sans-serif(@weight: normal, @size: 14px, @lineheight: 20px) {
-  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
-  font-size: @size;
-  font-weight: @weight;
-  line-height: @lineheight;
-}
-
-// Drop shadows
-.box-shadow(@shadow: 0 1px 3px rgba(0,0,0,.25)) {
-  -webkit-box-shadow: @shadow;
-  -moz-box-shadow: @shadow;
-  box-shadow: @shadow;
-}
-
-// Gradients
-#gradient {
-  .horizontal(@startColor: #555, @endColor: #333) {
-    background-color: @endColor;
-    background-repeat: no-repeat;
-    background-image: -webkit-gradient(linear, left top, right top, from(@startColor), to(@endColor));
-    background-image: -webkit-linear-gradient(right center, @startColor, @endColor);
-    background-image: -moz-linear-gradient(right center, @startColor, @endColor);
-    background-image: -o-linear-gradient(left,  @startColor,  @endColor);
-    background-image: -khtml-gradient(linear, left top, right top, from(@startColor), to(@endColor));
-    filter: e(%("progid:DXImageTransform.Microsoft.Gradient(StartColorStr='%d', EndColorStr='%d', GradientType=1)",@startColor,@endColor));
-    -ms-filter: %("progid:DXImageTransform.Microsoft.gradient(startColorStr='%d', EndColorStr='%d', GradientType=1))",@startColor,@endColor);
-  }
-  .vertical(@startColor: #555, @endColor: #333) {
-    background-color: @endColor;
-    background-repeat: no-repeat;
-    background-image: -webkit-gradient(linear, left top, left bottom, from(@startColor), to(@endColor));
-    background-image: -webkit-linear-gradient(@startColor, @endColor);
-    background-image: -moz-linear-gradient(@startColor, @endColor);
-    background-image: -o-linear-gradient(top,  @startColor,  @endColor);
-    background-image: -khtml-gradient(linear, left top, left bottom, from(@startColor), to(@endColor));
-    filter: e(%("progid:DXImageTransform.Microsoft.Gradient(StartColorStr='%d', EndColorStr='%d', GradientType=0)",@startColor,@endColor));
-    -ms-filter: %("progid:DXImageTransform.Microsoft.gradient(startColorStr='%d', EndColorStr='%d', GradientType=0))",@startColor,@endColor);
-  }
-}
-
- -

Operations and grid system

-

Get fancy and perform some match to generate flexible and powerful mixins like the one below.

-
-// Roll your own grid system
-@grid_columns: 16;
-@grid_column_width: 40px;
-@grid_gutter_width: 20px;
-.columns(@column_span: 1) {
-  display: inline;
-  float: left;
-  width: (@grid_column_width * @column_span) + (@grid_gutter_width * (@column_span - 1));
-  margin-left: @grid_gutter_width;
-  &:first-child {
-    margin-left: 0;
-  }
-}
-
-
-
- -
- - - -
- -
-
-

Default grid

-

The default grid system provided as part of Baseline is a 940px wide 16-column grid. It's a flavor of the popular 960 grid system, but without the additional margin/padding on the left and right sides.

-
-
-

Example grid markup

-

As shown here, a basic layout can be created with two "columns," each spanning a number of the 16 foundational columns we defined as part of our grid system. See the examples below for more variations.

-
-<div class="row">
-  <div class="span6 columns">
-    ...
-  </div>
-  <div class="span10 columns">
-    ...
-  </div>
-</div>
-
-
-
- -
-
1
-
1
-
1
-
1
- -
1
-
1
-
1
-
1
- -
1
-
1
-
1
-
1
- -
1
-
1
-
1
-
1
-
- -
-
2
-
2
-
2
-
2
-
2
-
2
-
2
-
2
-
- -
-
3
-
3
-
3
-
3
-
3
-
1
-
- -
-
4
-
4
-
4
-
4
-
- -
-
4
-
6
-
6
-
- -
-
8
-
8
-
- -
-
5
-
11
-
- -
-
16
-
-
- - - - -
- -
-
-

Fixed layout

-

A basic 940px wide, centered container layout for just about any site or page.

-
-
-
-
-
-
-<body>
-  <div class="container">
-    ...
-  </div>
-</body>
-
-
-
-
-
-

Fluid layout

-

A flexible fluid or liquid page structure with min- and max-widths and a left-hand sidebar. Great for apps.

-
-
-
-
-
-
-
-<body>
-  <div class="container-fluid">
-    <div class="sidebar">
-      ...
-    </div>
-    <div class="content">
-      ...
-    </div>
-  </div>
-</body>
-
-
-
-
- - - -
- - -
-
-

Headings and copy

-

A standard typographic hierarchy for structuring your webpages.

-
-
-

h1. Heading 1

-

h2. Heading 2

-

h3. Heading 3

-

h4. Heading 4

-
h5. Heading 5
-
h6. Heading 6
-
-
-

Example paragraph (body text)

-

Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula ut id elit.

-
-
- -
-
-

Misc. elements

-

Using emphasis, addresses, & abbreviations

-

- <strong> - <em> - <address> - <abbr> -

-
-
-

When to use

-

Emphasis tags (<strong> and <em>) should be used to add visual distinction between a word or phrase and its surrounding copy. Use <strong> for plain old attention and <em> for slick attention and titles.

-

Emphasis in a paragraph

-

Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Maecenas faucibus mollis interdum. Nulla vitae elit libero, a pharetra augue.

-

Addresses

-

The address element is used for—you guessed it!—addresses. Here's how it looks:

-
- Twitter, Inc.
- 795 Folsom Ave, Suite 600
- San Francisco, CA 94107
- P: (123) 456-7890 -
-

Note: Each line in an address must end with a line-break (<br />) to properly structure the content as it is read in real life without any styles applied.

-

Abbreviations

-

For abbreviations and acronyms, use the abbr tag (acronym is deprecated in HTML5). Put the shorthand form within the tag and set a title for the complete name.

-
-
- -
-
-

Blockquotes

-

- <blockquote> - <p> - <cite> -

-
-
-

Be sure to wrap your blockquote around paragraph and cite tags. When citing a source, use the cite element. The CSS will automatically preface a name with an em dash (&mdash;).

-
-

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua...

- Dr. Julius Hibbert -
-
-
- - -

Lists

-
-
-

Unordered <ul>

-
    -
  • Jeremy Bixby
  • -
  • Robert Dezure
  • -
  • Josh Washington
  • -
  • Anton Capresi
  • -
  • My Team Mates -
      -
    • George Castanza
    • -
    • Jerry Seinfeld
    • -
    • Cosmo Kramer
    • -
    • Elaine Bennis
    • -
    • Newman
    • -
    -
  • -
  • John Jacob
  • -
  • Paul Pierce
  • -
  • Kevin Garnett
  • -
-
-
-

Unstyled <ul.unstyled>

-
    -
  • Jeremy Bixby
  • -
  • Robert Dezure
  • -
  • Josh Washington
  • -
  • Anton Capresi
  • -
  • My Team Mates -
      -
    • George Castanza
    • -
    • Jerry Seinfeld
    • -
    • Cosmo Kramer
    • -
    • Elaine Bennis
    • -
    • Newman
    • -
    -
  • -
  • John Jacob
  • -
  • Paul Pierce
  • -
  • Kevin Garnett
  • -
-
-
-

Ordered <ol>

-
    -
  1. Jeremy Bixby
  2. -
  3. Robert Dezure
  4. -
  5. Josh Washington
  6. -
  7. Anton Capresi
  8. -
  9. My Team Mates -
      -
    1. George Castanza
    2. -
    3. Jerry Seinfeld
    4. -
    5. Cosmo Kramer
    6. -
    7. Elaine Bennis
    8. -
    9. Newman
    10. -
    -
  10. -
  11. John Jacob
  12. -
  13. Paul Pierce
  14. -
  15. Kevin Garnett
  16. -
-
-
-

Description dl

-
-
Description lists
-
A description list is perfect for defining terms.
-
Your mom
-
Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.
-
Donec id elit non mi porta gravida at eget metus.
-
And your dad
-
Etiam porta sem malesuada magna mollis euismod.
-
-
-
-
- - - -
- - -
-
-

Building tables

-

- <table> - <thead> - <tbody> - <tr> - <th> - <td> - <colspan> - <caption> -

-

Tables are great—for a lot of things. Great tables, however, need a bit of markup love to be useful, scalable, and readable (at the code level). Here are a few tips to help.

-

Always wrap your column headers in a thead such that hierarchy is thead > tr > th.

-

Similar to the column headers, all your table's body content should be wrapped in a tbody so your hierarchy is tbody > tr > td.

- -
-
-

Example: Default table styles

-

All tables will be automatically styled with only the essential borders to ensure readability and maintain structure. No need to add extra classes or attributes.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#First NameLast NameLanguage
1YourMomEnglish
2JoeSixpackEnglish
3StuDentCode
-
-<table class="common-table">
-  ...
-</table>
- -

Example: Zebra-striped

-

Get a little fancy with your tables by adding zebra-striping—just add the .zebra-striped class.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#First NameLast NameLanguage
1YourMomEnglish
2JoeSixpackEnglish
3StuDentCode
-
-<table class="common-table zebra-striped">
-...
-</table>
- -

Example: Zebra-striped w/ TableSorter.js

-

Taking the previous example, we improve the usefulness of our tables by providing sorting functionality via jQuery and the Tablesorter plugin. Click any column's header to change the sort.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#First NameLast NameLanguage
1YourMomEnglish
2JoeSixpackEnglish
3StuDentCode
-
-<script type="text/javascript" src="js/jquery/jquery.tablesorter.min.js"></script>
-<script type="text/javascript">
-  $(document).ready(function() {
-    $("table#sortTableExample").tablesorter( {sortList: [[1,0]]} );
-  });
-</script>
-<table class="common-table zebra-striped">
-  ...
-</table>
-
-
-
- - - -
- - - - -
-
-

Default styles

-

All forms are given default styles to present them in a readable and scalable way. Styles are provided for text inputs, select lists, textareas, radio buttons and checkboxes, and buttons.

-
-
-
-
- Example form legend -
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- Some Value Here -
-
-
- -
- -
-
-
- -
- -
-
-
-
- Example form legend -
- -
-
- @ - -
-
-
-
- -
-
- - -
-
-
-
- -
-
- - -
-
-
-
- -
- -
-
-
-
- Example form legend -
- -
-
    -
  • - -
  • -
  • - -
  • -
  • - -
  • -
  • - -
  • -
- - Note: Labels surround all the options for much larger click areas and a more usable form. - -
-
-
- -
-
- - - to - - - All times are shown as Pacific Standard Time (GMT -08:00). -
-
-
-
- -
- - - Block of help text to describe the field above if need be. - -
-
-
- -
-
    -
  • - -
  • -
  • - -
  • -
-
-
-
- - -
-
-
-
-
- -
- -
-
-

Stacked forms

-

Add .form-stacked to your form's HTML and you'll have labels on top of their fields instead of to their left. This works great if your forms are short or you have two columns of inputs for heavier forms.

-
-
-
-
- Example form legend -
- -
- -
-
-
- -
- -
-
-
-
- Example form legend -
- -
-
    -
  • - -
  • -
  • - -
  • -
- - Note: Labels surround all the options for much larger click areas and a more usable form. - -
-
-
-
- - -
-
-
-
- -
-
-

Buttons

-

As a convention, buttons are used for actions while links are used for objects. For instance, "Download" could be a button and "recent activity" could be a link.

-

All buttons default to a light gray style, but a blue .primary class is available. Plus, rolling your own styles is easy peasy.

-
-
-

Example buttons

-

Button styles can be applied to anything with the .btn applied. Typically you'll want to apply these to only a, button, and select input elements. Here's how it looks:

-
- - -
-

Alternate sizes

-

Fancy larger or smaller buttons? Have at it!

- - -
-
-
- - - - - - - -
- -
-
-

Basic alerts

-

One-line messages for highlighting the failure, possible failure, or success of an action. Particularly useful for forms.

-
-
-
- × -

Oh snap! Change this and that and try again.

-
-
- × -

Holy gaucamole! Best check yo self, you're not looking too good.

-
-
- × -

Well done! You successfully read this alert message.

-
-
- × -

Heads up! This is an alert that needs your attention, but it's not a huge priority just yet.

-
-
-
-
-
-

Block messages

-

For messages that require a bit of explanation, we have paragraph style alerts. These are perfect for bubbling up longer error messages, warning a user of a pending action, or just presenting information for more emphasis on the page.

-
-
-
- × -

Oh snap! You got an error! Change this and that and try again. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.

-

Take This Action Or Do This

-
-
- × -

Holy gaucamole! This is a warning! Best check yo self, you're not looking too good. Nulla vitae elit libero, a pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

-

Take This Action Or Do This

-
-
- × -

Well done! You successfully read this alert message. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Maecenas faucibus mollis interdum.

-

Take This Action Or Do This

-
-
- × -

Heads up! This is an alert that needs your attention, but it's not a huge priority just yet.

-

Take This Action Or Do This

-
-
-
-
- - - - -
- - - - - \ No newline at end of file diff --git a/js/jquery/chili/css.js b/js/jquery/chili/css.js deleted file mode 100755 index e86e88224..000000000 --- a/js/jquery/chili/css.js +++ /dev/null @@ -1,85 +0,0 @@ -/* -=============================================================================== -Chili is the jQuery code highlighter plugin -............................................................................... -LICENSE: http://www.opensource.org/licenses/mit-license.php -WEBSITE: http://noteslog.com/chili/ - - Copyright 2008 / Andrea Ercolino -=============================================================================== -*/ - -{ - _name: 'css' - , _case: true - , _main: { - comment: { - _match: /\/\*[^*]*\*+(?:[^\/][^*]*\*+)*\// - , _style: "color: olive;" - } - , directive: { - _match: /@\w+/ - , _style: "color: fuchsia;" - } - , url: { - _match: /\b(url\s*\()([^)]+)(\))/ - , _replace: "$1$2$3" - , _style: "color: fuchsia;" - } - , block: { - _match: /\{([\w\W]*?)\}/ - , _replace: function( all, pairs ) { - return '{' + this.x( pairs, '/definition' ) + '}'; - } - } - , 'class': { - _match: /\.\w+/ - , _style: "color: #CC0066;" - } - , id: { - _match: /#\w+/ - , _style: "color: IndianRed;" - } - , pseudo: { - _match: /:\w+/ - , _style: "color: #CC9900;" - } - , element: { - _match: /\w+/ - , _style: "color: Purple;" - } - } - , definition: { - comment: { - _match: /\/\*[^*]*\*+(?:[^\/][^*]*\*+)*\// - } - , property: { - _match: /\b(?:zoom|z-index|writing-mode|word-wrap|word-spacing|word-break|width|widows|white-space|volume|voice-family|visibility|vertical-align|unicode-bidi|top|text-underline-position|text-transform|text-shadow|text-overflow|text-kashida-space|text-justify|text-indent|text-decoration|text-autospace|text-align-last|text-align|table-layout|stress|speech-rate|speak-punctuation|speak-numeral|speak-header|speak|size|scrollbar-track-color|scrollbar-shadow-color|scrollbar-highlight-color|scrollbar-face-color|scrollbar-dark-shadow-color|scrollbar-base-color|scrollbar-arrow-color|scrollbar-3d-light-color|ruby-position|ruby-overhang|ruby-align|right|richness|quotes|position|play-during|pitch-range|pitch|pause-before|pause-after|pause|page-break-inside|page-break-before|page-break-after|page|padding-top|padding-right|padding-left|padding-bottom|padding|overflow-Y|overflow-X|overflow|outline-width|outline-style|outline-color|outline|orphans|min-width|min-height|max-width|max-height|marks|marker-offset|margin-top|margin-right|margin-left|margin-bottom|margin|list-style-type|list-style-position|list-style-image|list-style|line-height|line-break|letter-spacing|left|layout-grid-type|layout-grid-mode|layout-grid-line|layout-grid-char-spacing|layout-grid-char|layout-grid|layout-flow|layer-background-image|layer-background-color|include-source|ime-mode|height|font-weight|font-variant|font-style|font-stretch|font-size-adjust|font-size|font-family|font|float|filter|empty-cells|elevation|display|direction|cursor|cue-before|cue-after|cue|counter-reset|counter-increment|content|color|clip|clear|caption-side|bottom|border-width|border-top-width|border-top-style|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-left-width|border-left-style|border-left-color|border-left|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-color|border-bottom|border|behavior|background-repeat|background-position-y|background-position-x|background-position|background-image|background-color|background-attachment|background|azimuth|accelerator)\s*:/ - , _style: "color: #330066;" - } - , special: { - _match: /\b(?:-use-link-source|-set-link-source|-replace|-moz-user-select|-moz-user-modify|-moz-user-input|-moz-user-focus|-moz-outline-width|-moz-outline-style|-moz-outline-color|-moz-outline|-moz-opacity|-moz-border-top-colors|-moz-border-right-colors|-moz-border-radius-topright|-moz-border-radius-topleft|-moz-border-radius-bottomright|-moz-border-radius-bottomleft|-moz-border-radius|-moz-border-left-colors|-moz-border-bottom-colors|-moz-binding)\s*:/ - , _style: "color: #330066; text-decoration: underline;" - } - , url: { - _match: /\b(url\s*\()([^)]+)(\))/ - , _replace: "$1$2$3" - } - , value: { - _match: /\b(?:xx-small|xx-large|x-soft|x-small|x-slow|x-low|x-loud|x-large|x-high|x-fast|wider|wait|w-resize|visible|url|uppercase|upper-roman|upper-latin|upper-alpha|underline|ultra-expanded|ultra-condensed|tv|tty|transparent|top|thin|thick|text-top|text-bottom|table-row-group|table-row|table-header-group|table-footer-group|table-column-group|table-column|table-cell|table-caption|sw-resize|super|sub|status-bar|static|square|spell-out|speech|solid|soft|smaller|small-caption|small-caps|small|slower|slow|silent|show|separate|semi-expanded|semi-condensed|se-resize|scroll|screen|s-resize|run-in|rtl|rightwards|right-side|right|ridge|rgb|repeat-y|repeat-x|repeat|relative|projection|print|pre|portrait|pointer|overline|outside|outset|open-quote|once|oblique|nw-resize|nowrap|normal|none|no-repeat|no-open-quote|no-close-quote|ne-resize|narrower|n-resize|move|mix|middle|message-box|medium|marker|ltr|lowercase|lower-roman|lower-latin|lower-greek|lower-alpha|lower|low|loud|local|list-item|line-through|lighter|level|leftwards|left-side|left|larger|large|landscape|justify|italic|invert|inside|inset|inline-table|inline|icon|higher|high|hide|hidden|help|hebrew|handheld|groove|format|fixed|faster|fast|far-right|far-left|fantasy|extra-expanded|extra-condensed|expanded|embossed|embed|e-resize|double|dotted|disc|digits|default|decimal-leading-zero|decimal|dashed|cursive|crosshair|cross|crop|counters|counter|continuous|condensed|compact|collapse|code|close-quote|circle|center-right|center-left|center|caption|capitalize|braille|bottom|both|bolder|bold|block|blink|bidi-override|below|behind|baseline|avoid|auto|aural|attr|armenian|always|all|absolute|above)\b/ - , _style: "color: #3366FF;" - } - , string: { - _match: /(?:\'[^\'\\\n]*(?:\\.[^\'\\\n]*)*\')|(?:\"[^\"\\\n]*(?:\\.[^\"\\\n]*)*\")/ - , _style: "color: teal;" - } - , number: { - _match: /(?:\b[+-]?(?:\d*\.?\d+|\d+\.?\d*))(?:%|(?:(?:px|pt|em|)\b))/ - , _style: "color: red;" - } - , color : { - _match: /(?:\#[a-fA-F0-9]{3,6})|\b(?:yellow|white|teal|silver|red|purple|olive|navy|maroon|lime|green|gray|fuchsia|blue|black|aqua|YellowGreen|Yellow|WhiteSmoke|White|Wheat|Violet|Turquoise|Tomato|Thistle|Teal|Tan|SteelBlue|SpringGreen|Snow|SlateGrey|SlateGray|SlateBlue|SkyBlue|Silver|Sienna|SeaShell|SeaGreen|SandyBrown|Salmon|SaddleBrown|RoyalBlue|RosyBrown|Red|Purple|PowderBlue|Plum|Pink|Peru|PeachPuff|PapayaWhip|PaleVioletRed|PaleTurquoise|PaleGreen|PaleGoldenRod|Orchid|OrangeRed|Orange|OliveDrab|Olive|OldLace|Navy|NavajoWhite|Moccasin|MistyRose|MintCream|MidnightBlue|MediumVioletRed|MediumTurquoise|MediumSpringGreen|MediumSlateBlue|MediumSeaGreen|MediumPurple|MediumOrchid|MediumBlue|MediumAquaMarine|Maroon|Magenta|Linen|LimeGreen|Lime|LightYellow|LightSteelBlue|LightSlateGrey|LightSlateGray|LightSkyBlue|LightSeaGreen|LightSalmon|LightPink|LightGrey|LightGreen|LightGray|LightGoldenRodYellow|LightCyan|LightCoral|LightBlue|LemonChiffon|LawnGreen|LavenderBlush|Lavender|Khaki|Ivory|Indigo|IndianRed|HotPink|HoneyDew|Grey|GreenYellow|Green|Gray|GoldenRod|Gold|GhostWhite|Gainsboro|Fuchsia|ForestGreen|FloralWhite|FireBrick|DodgerBlue|DimGrey|DimGray|DeepSkyBlue|DeepPink|Darkorange|DarkViolet|DarkTurquoise|DarkSlateGrey|DarkSlateGray|DarkSlateBlue|DarkSeaGreen|DarkSalmon|DarkRed|DarkOrchid|DarkOliveGreen|DarkMagenta|DarkKhaki|DarkGrey|DarkGreen|DarkGray|DarkGoldenRod|DarkCyan|DarkBlue|Cyan|Crimson|Cornsilk|CornflowerBlue|Coral|Chocolate|Chartreuse|CadetBlue|BurlyWood|Brown|BlueViolet|Blue|BlanchedAlmond|Black|Bisque|Beige|Azure|Aquamarine|Aqua|AntiqueWhite|AliceBlue)\b/ - , _style: "color: green;" - } - } -} diff --git a/js/jquery/chili/html.js b/js/jquery/chili/html.js deleted file mode 100755 index 69f43a86d..000000000 --- a/js/jquery/chili/html.js +++ /dev/null @@ -1,80 +0,0 @@ -/* -=============================================================================== -Chili is the jQuery code highlighter plugin -............................................................................... -LICENSE: http://www.opensource.org/licenses/mit-license.php -WEBSITE: http://noteslog.com/chili/ - - Copyright 2008 / Andrea Ercolino -=============================================================================== -*/ - -{ - _name: 'html' - , _case: false - , _main: { - doctype: { - _match: // - , _style: "color: #CC6600;" - } - , ie_style: { - _match: /()/ - , _replace: function( all, open, content, close ) { - return "" + this.x( open ) + "" - + this.x( content, '//style' ) - + "" + this.x( close ) + ""; - } - , _style: "color: DarkSlateGray; font-weight: bold;" - } - , comment: { - _match: // - , _style: "color: #4040c2;" - } - , script: { - _match: /(]*>)([\w\W]*?)(<\/script\s*>)/ - , _replace: function( all, open, content, close ) { - return this.x( open, '//tag_start' ) - + this.x( content, 'js' ) - + this.x( close, '//tag_end' ); - } - } - , style: { - _match: /(]*>)([\w\W]*?)(<\/style\s*>)/ - , _replace: function( all, open, content, close ) { - return this.x( open, '//tag_start' ) - + this.x( content, 'css' ) - + this.x( close, '//tag_end' ); - } - } - // matches a starting tag of an element (with attrs) - // like "
" or "" - , tag_start: { - _match: /(<\w+)((?:[?%]>|[\w\W])*?)(\/>|>)/ - , _replace: function( all, open, content, close ) { - return "" + this.x( open ) + "" - + this.x( content, '/tag_attrs' ) - + "" + this.x( close ) + ""; - } - , _style: "color: navy; font-weight: bold;" - } - // matches an ending tag - // like "
" - , tag_end: { - _match: /<\/\w+\s*>|\/>/ - , _style: "color: navy;" - } - , entity: { - _match: /&\w+?;/ - , _style: "color: blue;" - } - } - , tag_attrs: { - // matches a name/value pair - attr: { - // before in $1, name in $2, between in $3, value in $4 - _match: /(\W*?)([\w-]+)(\s*=\s*)((?:\'[^\']*(?:\\.[^\']*)*\')|(?:\"[^\"]*(?:\\.[^\"]*)*\"))/ - , _replace: "$1$2$3$4" - , _style: { attr_name: "color: green;", attr_value: "color: maroon;" } - } - } -} diff --git a/js/jquery/chili/jquery.chili-2.2.js b/js/jquery/chili/jquery.chili-2.2.js deleted file mode 100755 index bb0e4abae..000000000 --- a/js/jquery/chili/jquery.chili-2.2.js +++ /dev/null @@ -1,704 +0,0 @@ -/* -=============================================================================== -Chili is the jQuery code highlighter plugin -............................................................................... -LICENSE: http://www.opensource.org/licenses/mit-license.php -WEBSITE: http://noteslog.com/chili/ - - Copyright 2008 / Andrea Ercolino -=============================================================================== -*/ - - -( function($) { - -ChiliBook = { //implied global - - version: "2.2" // 2008-07-06 - -// options -------------------------------------------------------------------- - - , automatic: true - , automaticSelector: "pre" - - , lineNumbers: !true - - , codeLanguage: function( el ) { - var recipeName = $( el ).attr( "class" ); - return recipeName ? recipeName : ''; - } - - , recipeLoading: true - , recipeFolder: "" // used like: recipeFolder + recipeName + '.js' - - // IE and FF convert   to " ", Safari and Opera do not - , replaceSpace: " " - , replaceTab: "    " - , replaceNewLine: " 
" - - , selectionStyle: [ "position:absolute; z-index:3000; overflow:scroll;" - , "width:16em;" - , "height:9em;" - , "border:1px solid gray;" - , "padding:15px;" - , "background-color:yellow;" - ].join( ' ' ) - -// ------------------------------------------------------------- end of options - - , defaultReplacement: '$$' // TODO: make this an option again - , recipes: {} //repository - , queue: {} //registry - - , unique: function() { - return (new Date()).valueOf(); - } -}; - - - -$.fn.chili = function( options ) { - var book = $.extend( {}, ChiliBook, options || {} ); - - function cook( ingredients, recipe, blockName ) { - - function prepareBlock( recipe, blockName ) { - var steps = []; - for( var stepName in recipe[ blockName ] ) { - steps.push( prepareStep( recipe, blockName, stepName ) ); - } - return steps; - } // prepareBlock - - function prepareStep( recipe, blockName, stepName ) { - var step = recipe[ blockName ][ stepName ]; - var exp = ( typeof step._match == "string" ) ? step._match : step._match.source; - return { - recipe: recipe - , blockName: blockName - , stepName: stepName - , exp: "(" + exp + ")" - , length: 1 // add 1 to account for the newly added parentheses - + (exp // count number of submatches in here - .replace( /\\./g, "%" ) // disable any escaped character - .replace( /\[.*?\]/g, "%" ) // disable any character class - .match( /\((?!\?)/g ) // match any open parenthesis, not followed by a ? - || [] // make sure it is an empty array if there are no matches - ).length // get the number of matches - , replacement: step._replace ? step._replace : book.defaultReplacement - }; - } // prepareStep - - function knowHow( steps ) { - var prevLength = 1; - var exps = []; - for (var i = 0; i < steps.length; i++) { - var exp = steps[ i ].exp; - // adjust backreferences - exp = exp.replace( /\\\\|\\(\d+)/g, function( m, aNum ) { - return !aNum ? m : "\\" + ( prevLength + 1 + parseInt( aNum, 10 ) ); - } ); - exps.push( exp ); - prevLength += steps[ i ].length; - } - var prolog = '((?:\\s|\\S)*?)'; - var epilog = '((?:\\s|\\S)+)'; - var source = '(?:' + exps.join( "|" ) + ')'; - source = prolog + source + '|' + epilog; - return new RegExp( source, recipe._case ? "g" : "gi" ); - } // knowHow - - function escapeHTML( str ) { - return str.replace( /&/g, "&" ).replace( /' + filter( subject ) + ''; - } - return filter( subject ); - } - else { - return filter( subject ); - } - } - } // applyModule - - function addPrefix( prefix, replacement ) { - var aux = replacement.replace( /()/ig, "$1" + prefix + "__$3" ); - return aux; - } // addPrefix - - function chef() { - if (! arguments[ 0 ]) { - return ''; - } - var steps = this.steps; - var i = 0; // iterate steps - var j = 2; // iterate chef's arguments - var prolog = arguments[ 1 ]; - var epilog = arguments[ arguments.length - 3 ]; - if (! epilog) { - var step; - while( step = steps[ i++ ] ) { - var aux = arguments; // this unmasks chef's arguments inside the next function - if( aux[ j ] ) { - var replacement = ''; - if( $.isFunction( step.replacement ) ) { - var matches = []; //Array.slice.call( aux, j, step.length ); - for (var k = 0, kTop = step.length; k < kTop; k++) { - matches.push( aux[ j + k ] ); - } - matches.push( aux[ aux.length - 2 ] ); - matches.push( aux[ aux.length - 1 ] ); - replacement = step.replacement - .apply( { - x: function() { - var subject = arguments[0]; - var module = arguments[1]; - var context = { - recipe: step.recipe - , blockName: step.blockName - }; - return applyModule( subject, module, context ); - } - }, matches ); - } - else { //we expect step.replacement to be a string - replacement = step.replacement - .replace( /(\\\$)|(?:\$\$)|(?:\$(\d+))/g, function( m, escaped, K ) { - if( escaped ) { /* \$ */ - return "$"; - } - else if( !K ) { /* $$ */ - return filter( aux[ j ] ); - } - else if( K == "0" ) { /* $0 */ - return step.stepName; - } - else { /* $K */ - return filter( aux[ j + parseInt( K, 10 ) ] ); - } - } ); - } - replacement = addPrefix( step.recipe._name, replacement ); - return filter( prolog ) + replacement; - } - else { - j+= step.length; - } - } - } - else { - return filter( epilog ); - } - } // chef - - if( ! blockName ) { - blockName = '_main'; - checkSpices( recipe ); - } - if( ! (blockName in recipe) ) { - return filter( ingredients ); - } - var replaceSpace = book.replaceSpace; - var steps = prepareBlock( recipe, blockName ); - var kh = knowHow( steps ); - var perfect = ingredients.replace( kh, function() { - return chef.apply( { steps: steps }, arguments ); - } ); - return perfect; - - } // cook - - function loadStylesheetInline( sourceCode ) { - if( document.createElement ) { - var e = document.createElement( "style" ); - e.type = "text/css"; - if( e.styleSheet ) { // IE - e.styleSheet.cssText = sourceCode; - } - else { - var t = document.createTextNode( sourceCode ); - e.appendChild( t ); - } - document.getElementsByTagName( "head" )[0].appendChild( e ); - } - } // loadStylesheetInline - - function checkSpices( recipe ) { - var name = recipe._name; - if( ! book.queue[ name ] ) { - - var content = ['/* Chili -- ' + name + ' */']; - for (var blockName in recipe) { - if( blockName.search( /^_(?!main\b)/ ) < 0 ) { - for (var stepName in recipe[ blockName ]) { - var step = recipe[ blockName ][ stepName ]; - if( '_style' in step ) { - if( step[ '_style' ].constructor == String ) { - content.push( '.' + name + '__' + stepName + ' { ' + step[ '_style' ] + ' }' ); - } - else { - for (var className in step[ '_style' ]) { - content.push( '.' + name + '__' + className + ' { ' + step[ '_style' ][ className ] + ' }' ); - } - } - } - } - } - } - content = content.join('\n'); - - loadStylesheetInline( content ); - - book.queue[ name ] = true; - } - } // checkSpices - - function askDish( el ) { - var recipeName = book.codeLanguage( el ); - if( '' != recipeName ) { - var path = getPath( recipeName ); - if( book.recipeLoading ) { - /* dynamic setups come here */ - if( ! book.queue[ path ] ) { - /* this is a new recipe to download */ - try { - book.queue[ path ] = [ el ]; - $.getJSON( path, function( recipeLoaded ) { - book.recipes[ path ] = recipeLoaded; - var q = book.queue[ path ]; - for( var i = 0, iTop = q.length; i < iTop; i++ ) { - makeDish( q[ i ], path ); - } - } ); - } - catch( recipeNotAvailable ) { - alert( "the recipe for '" + recipeName + "' was not found in '" + path + "'" ); - } - } - else { - /* not a new recipe, so just enqueue this element */ - book.queue[ path ].push( el ); - } - /* a recipe could have been already downloaded */ - makeDish( el, path ); - } - else { - /* static setups come here */ - makeDish( el, path ); - } - } - } // askDish - - function makeDish( el, recipePath ) { - var recipe = book.recipes[ recipePath ]; - if( ! recipe ) { - return; - } - var $el = $( el ); - var ingredients = $el.text(); - if( ! ingredients ) { - return; - } - - //fix for msie: \r (13) is used instead of \n (10) - //fix for opera: \r\n is used instead of \n - ingredients = ingredients.replace(/\r\n?/g, "\n"); - - //reverse fix for safari: msie, mozilla and opera render the initial \n - if( $el.parent().is('pre') ) { - if( ! $.browser.safari ) { - ingredients = ingredients.replace(/^\n/g, ""); - } - } - - var dish = cook( ingredients, recipe ); // all happens here - - if( book.replaceTab ) { - dish = dish.replace( /\t/g, book.replaceTab ); - } - if( book.replaceNewLine ) { - dish = dish.replace( /\n/g, book.replaceNewLine ); - } - - el.innerHTML = dish; //much faster than $el.html( dish ); - //tried also the function replaceHtml from http://blog.stevenlevithan.com/archives/faster-than-innerhtml - //but it was not faster nor without sideffects (it was not possible to count spans into el) - - //opera and safari select PRE text correctly - if( $.browser.msie || $.browser.mozilla ) { - enableSelectionHelper( el ); - } - - var $that = $el.parent(); - var classes = $that.attr( 'class' ); - var ln = /ln-(\d+)-([\w][\w\-]*)|ln-(\d+)|ln-/.exec( classes ); - if( ln ) { - addLineNumbers( el ); - var start = 0; - if( ln[1] ) { - start = parseInt( ln[1], 10 ); - var $pieces = $( '.ln-' + ln[1] + '-' + ln[2] ); - var pos = $pieces.index( $that[0] ); - $pieces.slice( 0, pos ).each( function() { - start += $( this ).find( 'li' ).length; - } ); - } - else if( ln[3] ) { - start = parseInt( ln[3], 10 ); - } - else { - start = 1; - } - $el.find( 'ol' )[0].start = start; - $('body').width( $('body').width() - 1 ).width( $('body').width() + 1 ); - } - else if( book.lineNumbers ) { - addLineNumbers( el ); - } - - } // makeDish - - function enableSelectionHelper( el ) { - var element = null; - $( el ) - .parents() - .filter( "pre" ) - .bind( "mousedown", function() { - element = this; - if( $.browser.msie ) { - document.selection.empty(); - } - else { - window.getSelection().removeAllRanges(); - } - } ) - .bind( "mouseup", function( event ) { - if( element && (element == this) ) { - element = null; - var selected = ''; - if( $.browser.msie ) { - selected = document.selection.createRange().htmlText; - if( '' == selected ) { - return; - } - selected = preserveNewLines( selected ); - var container_tag = '