jabe 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. data/README.textile +0 -2
  2. data/Rakefile +3 -12
  3. data/app/assets/images/jabe/glyphicons-halflings-white.png +0 -0
  4. data/app/assets/images/jabe/glyphicons-halflings.png +0 -0
  5. data/app/assets/javascripts/jabe/application.js +5 -14
  6. data/app/assets/javascripts/jabe/bootstrap.js +2038 -0
  7. data/app/assets/javascripts/jabe/prettify.js +1477 -0
  8. data/app/assets/stylesheets/jabe/application.css +3 -1
  9. data/app/assets/stylesheets/jabe/bootstrap.css.erb +5837 -0
  10. data/app/assets/stylesheets/jabe/jabe.css +104 -0
  11. data/app/assets/stylesheets/jabe/prettify.css +30 -0
  12. data/app/controllers/jabe/admin/base_controller.rb +2 -1
  13. data/app/controllers/jabe/application_controller.rb +1 -0
  14. data/app/controllers/jabe/sessions_controller.rb +13 -0
  15. data/app/models/jabe/admin.rb +1 -1
  16. data/app/views/jabe/admin/entries/_form.html.erb +17 -0
  17. data/app/views/jabe/admin/entries/edit.html.erb +1 -0
  18. data/app/views/jabe/admin/entries/index.html.erb +64 -0
  19. data/app/views/jabe/admin/entries/new.html.erb +1 -0
  20. data/app/views/jabe/admin/settings/edit.html.erb +50 -0
  21. data/app/views/jabe/entries/index.html.erb +21 -0
  22. data/app/views/jabe/entries/show.html.erb +84 -0
  23. data/app/views/jabe/sessions/new.html.erb +10 -7
  24. data/app/views/kaminari/_first_page.html.erb +13 -0
  25. data/app/views/kaminari/_gap.html.erb +8 -0
  26. data/app/views/kaminari/_last_page.html.erb +13 -0
  27. data/app/views/kaminari/_next_page.html.erb +13 -0
  28. data/app/views/kaminari/_page.html.erb +12 -0
  29. data/app/views/kaminari/_paginator.html.erb +25 -0
  30. data/app/views/kaminari/_prev_page.html.erb +13 -0
  31. data/app/views/layouts/jabe/_admin.html.erb +14 -0
  32. data/app/views/layouts/jabe/_flash_messages.html.erb +10 -0
  33. data/app/views/layouts/jabe/application.html.erb +93 -0
  34. data/config/cucumber.yml +8 -0
  35. data/config/routes.rb +2 -2
  36. data/lib/jabe.rb +14 -0
  37. data/lib/jabe/version.rb +1 -1
  38. data/lib/tasks/cucumber.rake +65 -0
  39. metadata +67 -78
  40. data/app/assets/javascripts/jabe/libs/dd_belatedpng.js +0 -13
  41. data/app/assets/javascripts/jabe/libs/modernizr-1.6.min.js +0 -30
  42. data/app/assets/javascripts/jabe/plugins.js +0 -40
  43. data/app/assets/stylesheets/jabe/boilerplate.scss +0 -273
  44. data/app/assets/stylesheets/jabe/jabe.scss +0 -334
  45. data/app/views/jabe/admin/entries/_form.html.haml +0 -6
  46. data/app/views/jabe/admin/entries/edit.html.haml +0 -1
  47. data/app/views/jabe/admin/entries/index.html.haml +0 -45
  48. data/app/views/jabe/admin/entries/new.html.haml +0 -1
  49. data/app/views/jabe/admin/settings/edit.html.haml +0 -15
  50. data/app/views/jabe/confirmations/new.html.erb +0 -15
  51. data/app/views/jabe/entries/index.html.haml +0 -14
  52. data/app/views/jabe/entries/show.html.haml +0 -49
  53. data/app/views/jabe/mailer/confirmation_instructions.html.erb +0 -5
  54. data/app/views/jabe/mailer/reset_password_instructions.html.erb +0 -8
  55. data/app/views/jabe/mailer/unlock_instructions.html.erb +0 -7
  56. data/app/views/jabe/passwords/edit.html.erb +0 -19
  57. data/app/views/jabe/passwords/new.html.erb +0 -15
  58. data/app/views/jabe/registrations/edit.html.erb +0 -22
  59. data/app/views/jabe/registrations/new.html.erb +0 -17
  60. data/app/views/jabe/shared/_links.erb +0 -25
  61. data/app/views/jabe/unlocks/new.html.erb +0 -15
  62. data/app/views/layouts/jabe/_flashes.html.haml +0 -3
  63. data/app/views/layouts/jabe/_footer.html.haml +0 -2
  64. data/app/views/layouts/jabe/_header.html.haml +0 -4
  65. data/app/views/layouts/jabe/_sidebar.html.haml +0 -21
  66. data/app/views/layouts/jabe/application.html.haml +0 -63
  67. data/config/initializers/simple_form.rb +0 -93
@@ -1,13 +0,0 @@
1
- /**
2
- * DD_belatedPNG: Adds IE6 support: PNG images for CSS background-image and HTML <IMG/>.
3
- * Author: Drew Diller
4
- * Email: drew.diller@gmail.com
5
- * URL: http://www.dillerdesign.com/experiment/DD_belatedPNG/
6
- * Version: 0.0.8a
7
- * Licensed under the MIT License: http://dillerdesign.com/experiment/DD_belatedPNG/#license
8
- *
9
- * Example usage:
10
- * DD_belatedPNG.fix('.png_bg'); // argument is a CSS selector
11
- * DD_belatedPNG.fixPng( someNode ); // argument is an HTMLDomElement
12
- **/
13
- var DD_belatedPNG={ns:"DD_belatedPNG",imgSize:{},delay:10,nodesFixed:0,createVmlNameSpace:function(){if(document.namespaces&&!document.namespaces[this.ns]){document.namespaces.add(this.ns,"urn:schemas-microsoft-com:vml")}},createVmlStyleSheet:function(){var b,a;b=document.createElement("style");b.setAttribute("media","screen");document.documentElement.firstChild.insertBefore(b,document.documentElement.firstChild.firstChild);if(b.styleSheet){b=b.styleSheet;b.addRule(this.ns+"\\:*","{behavior:url(#default#VML)}");b.addRule(this.ns+"\\:shape","position:absolute;");b.addRule("img."+this.ns+"_sizeFinder","behavior:none; border:none; position:absolute; z-index:-1; top:-10000px; visibility:hidden;");this.screenStyleSheet=b;a=document.createElement("style");a.setAttribute("media","print");document.documentElement.firstChild.insertBefore(a,document.documentElement.firstChild.firstChild);a=a.styleSheet;a.addRule(this.ns+"\\:*","{display: none !important;}");a.addRule("img."+this.ns+"_sizeFinder","{display: none !important;}")}},readPropertyChange:function(){var b,c,a;b=event.srcElement;if(!b.vmlInitiated){return}if(event.propertyName.search("background")!=-1||event.propertyName.search("border")!=-1){DD_belatedPNG.applyVML(b)}if(event.propertyName=="style.display"){c=(b.currentStyle.display=="none")?"none":"block";for(a in b.vml){if(b.vml.hasOwnProperty(a)){b.vml[a].shape.style.display=c}}}if(event.propertyName.search("filter")!=-1){DD_belatedPNG.vmlOpacity(b)}},vmlOpacity:function(b){if(b.currentStyle.filter.search("lpha")!=-1){var a=b.currentStyle.filter;a=parseInt(a.substring(a.lastIndexOf("=")+1,a.lastIndexOf(")")),10)/100;b.vml.color.shape.style.filter=b.currentStyle.filter;b.vml.image.fill.opacity=a}},handlePseudoHover:function(a){setTimeout(function(){DD_belatedPNG.applyVML(a)},1)},fix:function(a){if(this.screenStyleSheet){var c,b;c=a.split(",");for(b=0;b<c.length;b++){this.screenStyleSheet.addRule(c[b],"behavior:expression(DD_belatedPNG.fixPng(this))")}}},applyVML:function(a){a.runtimeStyle.cssText="";this.vmlFill(a);this.vmlOffsets(a);this.vmlOpacity(a);if(a.isImg){this.copyImageBorders(a)}},attachHandlers:function(i){var d,c,g,e,b,f;d=this;c={resize:"vmlOffsets",move:"vmlOffsets"};if(i.nodeName=="A"){e={mouseleave:"handlePseudoHover",mouseenter:"handlePseudoHover",focus:"handlePseudoHover",blur:"handlePseudoHover"};for(b in e){if(e.hasOwnProperty(b)){c[b]=e[b]}}}for(f in c){if(c.hasOwnProperty(f)){g=function(){d[c[f]](i)};i.attachEvent("on"+f,g)}}i.attachEvent("onpropertychange",this.readPropertyChange)},giveLayout:function(a){a.style.zoom=1;if(a.currentStyle.position=="static"){a.style.position="relative"}},copyImageBorders:function(b){var c,a;c={borderStyle:true,borderWidth:true,borderColor:true};for(a in c){if(c.hasOwnProperty(a)){b.vml.color.shape.style[a]=b.currentStyle[a]}}},vmlFill:function(e){if(!e.currentStyle){return}else{var d,f,g,b,a,c;d=e.currentStyle}for(b in e.vml){if(e.vml.hasOwnProperty(b)){e.vml[b].shape.style.zIndex=d.zIndex}}e.runtimeStyle.backgroundColor="";e.runtimeStyle.backgroundImage="";f=true;if(d.backgroundImage!="none"||e.isImg){if(!e.isImg){e.vmlBg=d.backgroundImage;e.vmlBg=e.vmlBg.substr(5,e.vmlBg.lastIndexOf('")')-5)}else{e.vmlBg=e.src}g=this;if(!g.imgSize[e.vmlBg]){a=document.createElement("img");g.imgSize[e.vmlBg]=a;a.className=g.ns+"_sizeFinder";a.runtimeStyle.cssText="behavior:none; position:absolute; left:-10000px; top:-10000px; border:none; margin:0; padding:0;";c=function(){this.width=this.offsetWidth;this.height=this.offsetHeight;g.vmlOffsets(e)};a.attachEvent("onload",c);a.src=e.vmlBg;a.removeAttribute("width");a.removeAttribute("height");document.body.insertBefore(a,document.body.firstChild)}e.vml.image.fill.src=e.vmlBg;f=false}e.vml.image.fill.on=!f;e.vml.image.fill.color="none";e.vml.color.shape.style.backgroundColor=d.backgroundColor;e.runtimeStyle.backgroundImage="none";e.runtimeStyle.backgroundColor="transparent"},vmlOffsets:function(d){var h,n,a,e,g,m,f,l,j,i,k;h=d.currentStyle;n={W:d.clientWidth+1,H:d.clientHeight+1,w:this.imgSize[d.vmlBg].width,h:this.imgSize[d.vmlBg].height,L:d.offsetLeft,T:d.offsetTop,bLW:d.clientLeft,bTW:d.clientTop};a=(n.L+n.bLW==1)?1:0;e=function(b,p,q,c,s,u){b.coordsize=c+","+s;b.coordorigin=u+","+u;b.path="m0,0l"+c+",0l"+c+","+s+"l0,"+s+" xe";b.style.width=c+"px";b.style.height=s+"px";b.style.left=p+"px";b.style.top=q+"px"};e(d.vml.color.shape,(n.L+(d.isImg?0:n.bLW)),(n.T+(d.isImg?0:n.bTW)),(n.W-1),(n.H-1),0);e(d.vml.image.shape,(n.L+n.bLW),(n.T+n.bTW),(n.W),(n.H),1);g={X:0,Y:0};if(d.isImg){g.X=parseInt(h.paddingLeft,10)+1;g.Y=parseInt(h.paddingTop,10)+1}else{for(j in g){if(g.hasOwnProperty(j)){this.figurePercentage(g,n,j,h["backgroundPosition"+j])}}}d.vml.image.fill.position=(g.X/n.W)+","+(g.Y/n.H);m=h.backgroundRepeat;f={T:1,R:n.W+a,B:n.H,L:1+a};l={X:{b1:"L",b2:"R",d:"W"},Y:{b1:"T",b2:"B",d:"H"}};if(m!="repeat"||d.isImg){i={T:(g.Y),R:(g.X+n.w),B:(g.Y+n.h),L:(g.X)};if(m.search("repeat-")!=-1){k=m.split("repeat-")[1].toUpperCase();i[l[k].b1]=1;i[l[k].b2]=n[l[k].d]}if(i.B>n.H){i.B=n.H}d.vml.image.shape.style.clip="rect("+i.T+"px "+(i.R+a)+"px "+i.B+"px "+(i.L+a)+"px)"}else{d.vml.image.shape.style.clip="rect("+f.T+"px "+f.R+"px "+f.B+"px "+f.L+"px)"}},figurePercentage:function(d,c,f,a){var b,e;e=true;b=(f=="X");switch(a){case"left":case"top":d[f]=0;break;case"center":d[f]=0.5;break;case"right":case"bottom":d[f]=1;break;default:if(a.search("%")!=-1){d[f]=parseInt(a,10)/100}else{e=false}}d[f]=Math.ceil(e?((c[b?"W":"H"]*d[f])-(c[b?"w":"h"]*d[f])):parseInt(a,10));if(d[f]%2===0){d[f]++}return d[f]},fixPng:function(c){c.style.behavior="none";var g,b,f,a,d;if(c.nodeName=="BODY"||c.nodeName=="TD"||c.nodeName=="TR"){return}c.isImg=false;if(c.nodeName=="IMG"){if(c.src.toLowerCase().search(/\.png$/)!=-1){c.isImg=true;c.style.visibility="hidden"}else{return}}else{if(c.currentStyle.backgroundImage.toLowerCase().search(".png")==-1){return}}g=DD_belatedPNG;c.vml={color:{},image:{}};b={shape:{},fill:{}};for(a in c.vml){if(c.vml.hasOwnProperty(a)){for(d in b){if(b.hasOwnProperty(d)){f=g.ns+":"+d;c.vml[a][d]=document.createElement(f)}}c.vml[a].shape.stroked=false;c.vml[a].shape.appendChild(c.vml[a].fill);c.parentNode.insertBefore(c.vml[a].shape,c)}}c.vml.image.shape.fillcolor="none";c.vml.image.fill.type="tile";c.vml.color.fill.on=false;g.attachHandlers(c);g.giveLayout(c);g.giveLayout(c.offsetParent);c.vmlInitiated=true;g.applyVML(c)}};try{document.execCommand("BackgroundImageCache",false,true)}catch(r){}DD_belatedPNG.createVmlNameSpace();DD_belatedPNG.createVmlStyleSheet();
@@ -1,30 +0,0 @@
1
- /*
2
- * Modernizr v1.6
3
- * http://www.modernizr.com
4
- *
5
- * Developed by:
6
- * - Faruk Ates http://farukat.es/
7
- * - Paul Irish http://paulirish.com/
8
- *
9
- * Copyright (c) 2009-2010
10
- * Dual-licensed under the BSD or MIT licenses.
11
- * http://www.modernizr.com/license/
12
- */
13
- window.Modernizr=function(i,e,u){function s(a,b){return(""+a).indexOf(b)!==-1}function D(a,b){for(var c in a)if(j[a[c]]!==u&&(!b||b(a[c],E)))return true}function n(a,b){var c=a.charAt(0).toUpperCase()+a.substr(1);c=(a+" "+F.join(c+" ")+c).split(" ");return!!D(c,b)}function S(){f.input=function(a){for(var b=0,c=a.length;b<c;b++)L[a[b]]=!!(a[b]in h);return L}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));f.inputtypes=function(a){for(var b=0,c,k=a.length;b<
14
- k;b++){h.setAttribute("type",a[b]);if(c=h.type!=="text"){h.value=M;if(/^range$/.test(h.type)&&h.style.WebkitAppearance!==u){l.appendChild(h);c=e.defaultView;c=c.getComputedStyle&&c.getComputedStyle(h,null).WebkitAppearance!=="textfield"&&h.offsetHeight!==0;l.removeChild(h)}else/^(search|tel)$/.test(h.type)||(c=/^(url|email)$/.test(h.type)?h.checkValidity&&h.checkValidity()===false:h.value!=M)}N[a[b]]=!!c}return N}("search tel url email datetime date month week time datetime-local number range color".split(" "))}
15
- var f={},l=e.documentElement,E=e.createElement("modernizr"),j=E.style,h=e.createElement("input"),M=":)",O=Object.prototype.toString,q=" -webkit- -moz- -o- -ms- -khtml- ".split(" "),F="Webkit Moz O ms Khtml".split(" "),v={svg:"http://www.w3.org/2000/svg"},d={},N={},L={},P=[],w,Q=function(a){var b=document.createElement("style"),c=e.createElement("div");b.textContent=a+"{#modernizr{height:3px}}";(e.head||e.getElementsByTagName("head")[0]).appendChild(b);c.id="modernizr";l.appendChild(c);a=c.offsetHeight===
16
- 3;b.parentNode.removeChild(b);c.parentNode.removeChild(c);return!!a},o=function(){var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return function(b,c){c=c||document.createElement(a[b]||"div");b="on"+b;var k=b in c;if(!k){c.setAttribute||(c=document.createElement("div"));if(c.setAttribute&&c.removeAttribute){c.setAttribute(b,"");k=typeof c[b]=="function";if(typeof c[b]!="undefined")c[b]=u;c.removeAttribute(b)}}return k}}(),G={}.hasOwnProperty,R;R=
17
- typeof G!=="undefined"&&typeof G.call!=="undefined"?function(a,b){return G.call(a,b)}:function(a,b){return b in a&&typeof a.constructor.prototype[b]==="undefined"};d.flexbox=function(){var a=e.createElement("div"),b=e.createElement("div");(function(k,g,r,x){g+=":";k.style.cssText=(g+q.join(r+";"+g)).slice(0,-g.length)+(x||"")})(a,"display","box","width:42px;padding:0;");b.style.cssText=q.join("box-flex:1;")+"width:10px;";a.appendChild(b);l.appendChild(a);var c=b.offsetWidth===42;a.removeChild(b);
18
- l.removeChild(a);return c};d.canvas=function(){var a=e.createElement("canvas");return!!(a.getContext&&a.getContext("2d"))};d.canvastext=function(){return!!(f.canvas&&typeof e.createElement("canvas").getContext("2d").fillText=="function")};d.webgl=function(){var a=e.createElement("canvas");try{if(a.getContext("webgl"))return true}catch(b){}try{if(a.getContext("experimental-webgl"))return true}catch(c){}return false};d.touch=function(){return"ontouchstart"in i||Q("@media ("+q.join("touch-enabled),(")+
19
- "modernizr)")};d.geolocation=function(){return!!navigator.geolocation};d.postmessage=function(){return!!i.postMessage};d.websqldatabase=function(){return!!i.openDatabase};d.indexedDB=function(){for(var a=-1,b=F.length;++a<b;){var c=F[a].toLowerCase();if(i[c+"_indexedDB"]||i[c+"IndexedDB"])return true}return false};d.hashchange=function(){return o("hashchange",i)&&(document.documentMode===u||document.documentMode>7)};d.history=function(){return!!(i.history&&history.pushState)};d.draganddrop=function(){return o("drag")&&
20
- o("dragstart")&&o("dragenter")&&o("dragover")&&o("dragleave")&&o("dragend")&&o("drop")};d.websockets=function(){return"WebSocket"in i};d.rgba=function(){j.cssText="background-color:rgba(150,255,150,.5)";return s(j.backgroundColor,"rgba")};d.hsla=function(){j.cssText="background-color:hsla(120,40%,100%,.5)";return s(j.backgroundColor,"rgba")||s(j.backgroundColor,"hsla")};d.multiplebgs=function(){j.cssText="background:url(//:),url(//:),red url(//:)";return/(url\s*\(.*?){3}/.test(j.background)};d.backgroundsize=
21
- function(){return n("backgroundSize")};d.borderimage=function(){return n("borderImage")};d.borderradius=function(){return n("borderRadius","",function(a){return s(a,"orderRadius")})};d.boxshadow=function(){return n("boxShadow")};d.textshadow=function(){return e.createElement("div").style.textShadow===""};d.opacity=function(){var a=q.join("opacity:.5;")+"";j.cssText=a;return s(j.opacity,"0.5")};d.cssanimations=function(){return n("animationName")};d.csscolumns=function(){return n("columnCount")};d.cssgradients=
22
- function(){var a=("background-image:"+q.join("gradient(linear,left top,right bottom,from(#9f9),to(white));background-image:")+q.join("linear-gradient(left top,#9f9, white);background-image:")).slice(0,-17);j.cssText=a;return s(j.backgroundImage,"gradient")};d.cssreflections=function(){return n("boxReflect")};d.csstransforms=function(){return!!D(["transformProperty","WebkitTransform","MozTransform","OTransform","msTransform"])};d.csstransforms3d=function(){var a=!!D(["perspectiveProperty","WebkitPerspective",
23
- "MozPerspective","OPerspective","msPerspective"]);if(a)a=Q("@media ("+q.join("transform-3d),(")+"modernizr)");return a};d.csstransitions=function(){return n("transitionProperty")};d.fontface=function(){var a,b=e.head||e.getElementsByTagName("head")[0]||l,c=e.createElement("style"),k=e.implementation||{hasFeature:function(){return false}};c.type="text/css";b.insertBefore(c,b.firstChild);a=c.sheet||c.styleSheet;b=k.hasFeature("CSS2","")?function(g){if(!(a&&g))return false;var r=false;try{a.insertRule(g,
24
- 0);r=!/unknown/i.test(a.cssRules[0].cssText);a.deleteRule(a.cssRules.length-1)}catch(x){}return r}:function(g){if(!(a&&g))return false;a.cssText=g;return a.cssText.length!==0&&!/unknown/i.test(a.cssText)&&a.cssText.replace(/\r+|\n+/g,"").indexOf(g.split(" ")[0])===0};f._fontfaceready=function(g){g(f.fontface)};return b('@font-face { font-family: "font"; src: "font.ttf"; }')};d.video=function(){var a=e.createElement("video"),b=!!a.canPlayType;if(b){b=new Boolean(b);b.ogg=a.canPlayType('video/ogg; codecs="theora"');
25
- b.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"')||a.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"');b.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"')}return b};d.audio=function(){var a=e.createElement("audio"),b=!!a.canPlayType;if(b){b=new Boolean(b);b.ogg=a.canPlayType('audio/ogg; codecs="vorbis"');b.mp3=a.canPlayType("audio/mpeg;");b.wav=a.canPlayType('audio/wav; codecs="1"');b.m4a=a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")}return b};d.localstorage=function(){try{return"localStorage"in
26
- i&&i.localStorage!==null}catch(a){return false}};d.sessionstorage=function(){try{return"sessionStorage"in i&&i.sessionStorage!==null}catch(a){return false}};d.webWorkers=function(){return!!i.Worker};d.applicationcache=function(){return!!i.applicationCache};d.svg=function(){return!!e.createElementNS&&!!e.createElementNS(v.svg,"svg").createSVGRect};d.inlinesvg=function(){var a=document.createElement("div");a.innerHTML="<svg/>";return(a.firstChild&&a.firstChild.namespaceURI)==v.svg};d.smil=function(){return!!e.createElementNS&&
27
- /SVG/.test(O.call(e.createElementNS(v.svg,"animate")))};d.svgclippaths=function(){return!!e.createElementNS&&/SVG/.test(O.call(e.createElementNS(v.svg,"clipPath")))};for(var H in d)if(R(d,H)){w=H.toLowerCase();f[w]=d[H]();P.push((f[w]?"":"no-")+w)}f.input||S();f.crosswindowmessaging=f.postmessage;f.historymanagement=f.history;f.addTest=function(a,b){a=a.toLowerCase();if(!f[a]){b=!!b();l.className+=" "+(b?"":"no-")+a;f[a]=b;return f}};j.cssText="";E=h=null;i.attachEvent&&function(){var a=e.createElement("div");
28
- a.innerHTML="<elem></elem>";return a.childNodes.length!==1}()&&function(a,b){function c(p){for(var m=-1;++m<r;)p.createElement(g[m])}function k(p,m){for(var I=p.length,t=-1,y,J=[];++t<I;){y=p[t];m=y.media||m;J.push(k(y.imports,m));J.push(y.cssText)}return J.join("")}var g="abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video".split("|"),r=g.length,x=RegExp("<(/*)(abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video)",
29
- "gi"),T=RegExp("\\b(abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video)\\b(?!.*[;}])","gi"),z=b.createDocumentFragment(),A=b.documentElement,K=A.firstChild,B=b.createElement("style"),C=b.createElement("body");B.media="all";c(b);c(z);a.attachEvent("onbeforeprint",function(){for(var p=-1;++p<r;)for(var m=b.getElementsByTagName(g[p]),I=m.length,t=-1;++t<I;)if(m[t].className.indexOf("iepp_")<0)m[t].className+=" iepp_"+
30
- g[p];K.insertBefore(B,K.firstChild);B.styleSheet.cssText=k(b.styleSheets,"all").replace(T,".iepp_$1");z.appendChild(b.body);A.appendChild(C);C.innerHTML=z.firstChild.innerHTML.replace(x,"<$1bdo")});a.attachEvent("onafterprint",function(){C.innerHTML="";A.removeChild(C);K.removeChild(B);A.appendChild(z.firstChild)})}(this,document);f._enableHTML5=true;f._version="1.6";l.className=l.className.replace(/\bno-js\b/,"")+" js";l.className+=" "+P.join(" ");return f}(this,this.document);
@@ -1,40 +0,0 @@
1
-
2
- // remap jQuery to $
3
- (function($){
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
- })(window.jQuery);
16
-
17
-
18
-
19
- // usage: log('inside coolFunc',this,arguments);
20
- // paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
21
- window.log = function(){
22
- log.history = log.history || []; // store logs to an array for reference
23
- log.history.push(arguments);
24
- if(this.console){
25
- console.log( Array.prototype.slice.call(arguments) );
26
- }
27
- };
28
-
29
-
30
-
31
- // catch all document.write() calls
32
- (function(doc){
33
- var write = doc.write;
34
- doc.write = function(q){
35
- log('document.write(): ',arguments);
36
- if (/docwriteregexwhitelist/.test(q)) write.apply(doc,arguments);
37
- };
38
- })(document);
39
-
40
-
@@ -1,273 +0,0 @@
1
- /* HTML5 ✰ Boilerplate */
2
-
3
- html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video {
4
- margin: 0;
5
- padding: 0;
6
- border: 0;
7
- outline: 0;
8
- font-size: 100%;
9
- vertical-align: baseline;
10
- background: transparent; }
11
-
12
- article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
13
- display: block; }
14
-
15
- nav ul {
16
- list-style: none; }
17
-
18
- blockquote, q {
19
- quotes: none; }
20
-
21
- blockquote {
22
- &:before, &:after {
23
- content: '';
24
- content: none; } }
25
-
26
- q {
27
- &:before, &:after {
28
- content: '';
29
- content: none; } }
30
-
31
- a {
32
- margin: 0;
33
- padding: 0;
34
- font-size: 100%;
35
- vertical-align: baseline;
36
- background: transparent; }
37
-
38
- ins {
39
- background-color: #ff9;
40
- color: #000;
41
- text-decoration: none; }
42
-
43
- mark {
44
- background-color: #ff9;
45
- color: #000;
46
- font-style: italic;
47
- font-weight: bold; }
48
-
49
- del {
50
- text-decoration: line-through; }
51
-
52
- abbr[title], dfn[title] {
53
- border-bottom: 1px dotted;
54
- cursor: help; }
55
-
56
- table {
57
- border-collapse: collapse;
58
- border-spacing: 0; }
59
-
60
- hr {
61
- display: block;
62
- height: 1px;
63
- border: 0;
64
- border-top: 1px solid #ccc;
65
- margin: 1em 0;
66
- padding: 0; }
67
-
68
- input, select {
69
- vertical-align: middle; }
70
-
71
- body {
72
- font: 13px / 1.231 sans-serif;
73
- *font-size: small; }
74
-
75
- select, input, textarea, button {
76
- font: 99% sans-serif; }
77
-
78
- pre, code, kbd, samp {
79
- font-family: monospace, sans-serif; }
80
-
81
- body, select, input, textarea {
82
- color: #444; }
83
-
84
- h1, h2, h3, h4, h5, h6 {
85
- font-weight: bold; }
86
-
87
- html {
88
- overflow-y: scroll; }
89
-
90
- a {
91
- &:hover {
92
- outline: none; }
93
- &:active {
94
- outline: none;
95
- color: #607890; }
96
- color: #607890;
97
- &:visited {
98
- color: #607890; }
99
- &:hover {
100
- color: #036; } }
101
-
102
- ul {
103
- margin-left: 1.8em; }
104
-
105
- ol {
106
- margin-left: 1.8em;
107
- list-style-type: decimal; }
108
-
109
- nav {
110
- ul, li {
111
- margin: 0; } }
112
-
113
- small {
114
- font-size: 85%; }
115
-
116
- strong, th {
117
- font-weight: bold; }
118
-
119
- td {
120
- vertical-align: top;
121
- img {
122
- vertical-align: top; } }
123
-
124
- sub {
125
- vertical-align: sub;
126
- font-size: smaller; }
127
-
128
- sup {
129
- vertical-align: super;
130
- font-size: smaller; }
131
-
132
- pre {
133
- padding: 15px;
134
- // white-space: pre;
135
- // white-space: pre-wrap;
136
- // white-space: pre-line;
137
- // word-wrap: break-word;
138
- }
139
-
140
- textarea {
141
- overflow: auto; }
142
-
143
- .ie6 legend, .ie7 legend {
144
- margin-left: -7px; }
145
-
146
- input {
147
- &[type="radio"] {
148
- vertical-align: text-bottom; }
149
- &[type="checkbox"] {
150
- vertical-align: bottom; } }
151
-
152
- .ie7 input[type="checkbox"] {
153
- vertical-align: baseline; }
154
-
155
- .ie6 input {
156
- vertical-align: text-bottom; }
157
-
158
- label {
159
- cursor: pointer; }
160
-
161
- input {
162
- &[type=button], &[type=submit] {
163
- cursor: pointer; } }
164
-
165
- button {
166
- cursor: pointer;
167
- margin: 0; }
168
-
169
- input, select, textarea {
170
- margin: 0; }
171
-
172
- input:valid, textarea:valid {}
173
-
174
- input:invalid, textarea:invalid {
175
- border-radius: 1px;
176
- -moz-box-shadow: 0px 0px 5px red;
177
- -webkit-box-shadow: 0px 0px 5px red;
178
- box-shadow: 0px 0px 5px red; }
179
-
180
- .no-boxshadow {
181
- input:invalid, textarea:invalid {
182
- background-color: #f0dddd; } }
183
-
184
- a:link {
185
- -webkit-tap-highlight-color: #FF5E99; }
186
-
187
- button {
188
- width: auto;
189
- overflow: visible; }
190
-
191
- .ie7 img {
192
- -ms-interpolation-mode: bicubic; }
193
-
194
- .ir {
195
- display: block;
196
- text-indent: -999em;
197
- overflow: hidden;
198
- background-repeat: no-repeat;
199
- text-align: left;
200
- direction: ltr; }
201
-
202
- .hidden {
203
- display: none;
204
- visibility: hidden; }
205
-
206
- .visuallyhidden {
207
- position: absolute !important;
208
- clip: rect(1px 1px 1px 1px);
209
- clip: rect(1px, 1px, 1px, 1px); }
210
-
211
- .invisible {
212
- visibility: hidden; }
213
-
214
- .clearfix {
215
- &:before {
216
- content: "\0020";
217
- display: block;
218
- height: 0;
219
- visibility: hidden; }
220
- &:after {
221
- content: "\0020";
222
- display: block;
223
- height: 0;
224
- visibility: hidden;
225
- clear: both; }
226
- zoom: 1; }
227
-
228
- /* Primary Styles
229
- Author:
230
- */
231
-
232
- @media all and (orientation:portrait) {}
233
-
234
-
235
- @media all and (orientation:landscape) {}
236
-
237
-
238
- @media screen and (max-device-width: 480px) {
239
- /* html { -webkit-text-size-adjust:none; -ms-text-size-adjust:none; } */ }
240
-
241
-
242
- @media print {
243
- * {
244
- background: transparent !important;
245
- color: #444 !important;
246
- text-shadow: none !important; }
247
- a {
248
- color: #444 !important;
249
- text-decoration: underline;
250
- &:visited {
251
- color: #444 !important;
252
- text-decoration: underline; }
253
- &:after {
254
- content: " (" attr(href) ")"; } }
255
- abbr:after {
256
- content: " (" attr(title) ")"; }
257
- .ir a:after {
258
- content: ""; }
259
- pre, blockquote {
260
- border: 1px solid #999;
261
- page-break-inside: avoid; }
262
- thead {
263
- display: table-header-group; }
264
- tr, img {
265
- page-break-inside: avoid; }
266
- @page {
267
- margin: 0.5cm; }
268
-
269
- p, h2, h3 {
270
- orphans: 3;
271
- widows: 3; }
272
- h2, h3 {
273
- page-break-after: avoid; } }
@@ -1,334 +0,0 @@
1
-
2
- @mixin gradients {
3
- background-image: -webkit-gradient(
4
- linear,
5
- left bottom,
6
- left top,
7
- color-stop(0.50, rgb(88,142,222)),
8
- color-stop(1, rgb(150,206,255))
9
- );
10
- background-image: -moz-linear-gradient(
11
- center bottom,
12
- rgb(88,142,222) 50%,
13
- rgb(150,206,255) 100%
14
- );
15
- }
16
-
17
- #container {
18
- width:768px;
19
- margin:auto;
20
- background-color:#eee;
21
- border-left:solid #222 1px;
22
- border-right:solid #222 1px;
23
- }
24
-
25
- body {
26
- background-color:#AAA;
27
- }
28
-
29
- header {
30
- @include gradients;
31
- border-bottom:solid 1px #222;
32
- padding-bottom:10px;
33
- color:#eee;
34
- }
35
-
36
- h1#site-title {
37
- font-size:2.5em;
38
- padding:10px 20px 5px;
39
- }
40
-
41
- h1#site-tagline {
42
- font-size:1.5em;
43
- padding:10px 20px 10px;
44
- }
45
-
46
- #main {
47
- padding:20px;
48
- }
49
-
50
- #content {
51
- padding-right:10px;
52
- float:left;
53
- width:70%;
54
- }
55
-
56
- #sidebar {
57
- padding-left:10px;
58
- float:right;
59
- width:27%;
60
-
61
- .link {
62
- padding:2px 10px;
63
- }
64
-
65
- #github-badge {
66
- margin-top:20px;
67
-
68
- .header {
69
- .title {
70
- display:none;
71
- }
72
- }
73
- }
74
- }
75
-
76
- .entry {
77
- margin: 0 0 30px 0;
78
- padding:0 0 30px 0;
79
- border-bottom:solid 1px #333;
80
-
81
- .title {
82
- font-size:1.5em;
83
- }
84
-
85
- .date {
86
- font-size:.8em;
87
- padding:5px 0;
88
- }
89
-
90
- .meta {
91
- color:#eee;
92
- background-color:#AAA;
93
- font-size:.9em;
94
- margin-top:30px;
95
- padding:10px;
96
- -webkit-border-radius: 5px;
97
- -moz-border-radius: 5px;
98
- border-radius: 5px;
99
- a {
100
- color:#eee;
101
- }
102
- }
103
-
104
- .content {
105
- p {
106
- font-size:1.1em;
107
- line-height:1.4em;
108
- padding:.5em;
109
- }
110
- }
111
- }
112
-
113
- .last {
114
- border-bottom:none;
115
- margin-bottom:0;
116
- }
117
-
118
- #site-title a, #site-title a:visited {
119
- color:#eee;
120
- text-decoration:none;
121
- }
122
-
123
- #comments {
124
- padding-top:20px;
125
-
126
- .comment {
127
- clear:both;
128
-
129
- .delete {
130
- float:right;
131
- padding-top:2px;
132
- }
133
-
134
- .gravatar {
135
- margin:10px 10px 10px 0;
136
- float:left;
137
- width:64px;
138
- height:64px;
139
- border:solid 5px #588EDE;
140
- -webkit-border-radius: 5px;
141
- -moz-border-radius: 5px;
142
- border-radius: 5px;
143
-
144
- img {
145
- width:64px;
146
- height:64px;
147
- }
148
- }
149
-
150
- .author {
151
- font-weight:bold;
152
- padding:10px 0 5px 10px;
153
-
154
- .when {
155
- padding-left:10px;
156
- font-size:.8em;
157
- }
158
- }
159
-
160
- .body {
161
- min-height:55px;
162
- padding:5px 20px;
163
- border-bottom:solid 1px #333;
164
- }
165
- }
166
-
167
- #new_comment {
168
- padding-top:20px;
169
- }
170
- }
171
-
172
- code {
173
- background-color: #222222;
174
- color: #EEEEEE;
175
- padding:2px 5px;
176
- -webkit-border-radius: 5px;
177
- -moz-border-radius: 5px;
178
- border-radius: 5px;
179
- }
180
-
181
- pre {
182
- color:#eee;
183
- background-color:#222;
184
- margin:10px auto;
185
- padding:5px auto;
186
- border-top:solid #777 2px;
187
- border-bottom:solid #777 2px;
188
- overflow-x:auto;
189
-
190
- code {
191
- padding:0 !important;
192
- }
193
- }
194
-
195
- label {
196
- padding: 10px 0 5px;
197
-
198
- abbr {
199
- color:red;
200
- padding:0 3px;
201
- }
202
- }
203
-
204
- .inline-errors {
205
- color:red;
206
- }
207
-
208
- #comment_nickname, label[for=comment_nickname] {
209
- display:none;
210
- }
211
-
212
- .nav {
213
- height:2.5em;
214
- line-height:2.5em;
215
- border-bottom:solid 1px #222;
216
- background-image: -webkit-gradient(
217
- linear,
218
- left bottom,
219
- left top,
220
- color-stop(0.26, rgb(159,161,158)),
221
- color-stop(0.63, rgb(210,214,214))
222
- );
223
- background-image: -moz-linear-gradient(
224
- center bottom,
225
- rgb(159,161,158) 26%,
226
- rgb(210,214,214) 63%
227
- );
228
-
229
- li {
230
- display:inline;
231
- padding:0 0 0 10px;
232
-
233
- a, a:visited, a:active {
234
- color:#222;
235
- }
236
- }
237
- }
238
-
239
- .admin {
240
- text-align:right;
241
-
242
- li {
243
- padding:0 10px 0 0;
244
- }
245
- }
246
-
247
- h2 {
248
- font-size:1.25em;
249
- }
250
-
251
- table.entries {
252
- width:100%;
253
-
254
- td {
255
- font-size:1.1em;
256
- height:32px;
257
- line-height:32px;
258
- padding:0 10px 10px 0;
259
-
260
- .when {
261
- font-size:.8em;
262
- line-height:1em;
263
- }
264
- }
265
-
266
- td.icons {
267
- width:64px;
268
- white-space:nowrap;
269
- }
270
- }
271
-
272
- footer {
273
- height:64px;
274
- line-height:64px;
275
- text-align:center;
276
- clear:both;
277
- }
278
-
279
- .flash-notice, .flash-error {
280
- color:green;
281
- font-size:1.2em;
282
- border:solid 3px green;
283
- padding:15px;
284
- margin-bottom:10px;
285
- }
286
-
287
- .flash-error {
288
- color:red;
289
- border-color:red;
290
- }
291
-
292
- form {
293
- label {
294
- padding-top:10px;
295
- display:block;
296
- }
297
-
298
- select {
299
- padding:5px !important;
300
- font-size:1.5em !important;
301
- }
302
-
303
- input[type=submit] {
304
- margin:10px 10px 10px auto !important;
305
- @include gradients;
306
- color:#eee;
307
- height:30px;
308
- -webkit-border-radius: 5px;
309
- -moz-border-radius: 5px;
310
- border-radius: 5px;
311
- border:solid 1px #333;
312
- padding: 0 10px !important;
313
- overflow: visible;
314
- }
315
-
316
- input[type=text], input[type=url], input[type=email], input[type=password] {
317
- width:80%;
318
- padding:5px !important;
319
- font-size:1.5em !important;
320
- }
321
-
322
- textarea {
323
- width:100%;
324
- height:200px;
325
- padding:5px !important;
326
- font-size:1.5em !important;
327
- }
328
-
329
- li {
330
- list-style-type: none;
331
- list-style-image: none;
332
- list-style-position: outside;
333
- }
334
- }