wd_sinatra 1.0.6 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +7 -0
  2. data/.travis.yml +1 -4
  3. data/CHANGELOG.md +20 -0
  4. data/Gemfile +0 -2
  5. data/LICENSE +4 -2
  6. data/README.md +28 -19
  7. data/bin/wd_sinatra +7 -25
  8. data/lib/wd_sinatra/app_loader.rb +12 -20
  9. data/lib/wd_sinatra/sinatra_ext.rb +8 -7
  10. data/lib/wd_sinatra/test_helpers.rb +1 -1
  11. data/lib/wd_sinatra/version.rb +2 -4
  12. data/templates/Gemfile +16 -11
  13. data/templates/{Rakefile → Rakefile.tt} +4 -4
  14. data/templates/Thorfile +14 -8
  15. data/templates/api/hello_world.rb +17 -10
  16. data/templates/bin/console +1 -1
  17. data/templates/config.ru.tt +6 -0
  18. data/templates/config/sinatra_config.rb.tt +50 -0
  19. data/templates/lib/{app.rb → app.rb.tt} +4 -1
  20. data/templates/lib/hooks.rb +25 -15
  21. data/templates/test/{test_helpers.rb → test_helpers.rb.tt} +8 -6
  22. data/test/test_helper.rb +0 -4
  23. data/test/ws_list_ext_test.rb +6 -6
  24. data/wd-sinatra.gemspec +11 -7
  25. metadata +72 -104
  26. data/templates/config.ru +0 -5
  27. data/templates/config/middleware.rb +0 -16
  28. data/templates/config/sinatra_config.rb +0 -18
  29. data/templates/lib/body_parser.rb +0 -24
  30. data/templates/lib/tasks/doc.rake +0 -39
  31. data/templates/lib/tasks/doc_generator/bootstrap/.gitignore +0 -4
  32. data/templates/lib/tasks/doc_generator/bootstrap/LICENSE +0 -176
  33. data/templates/lib/tasks/doc_generator/bootstrap/Makefile +0 -47
  34. data/templates/lib/tasks/doc_generator/bootstrap/README.md +0 -105
  35. data/templates/lib/tasks/doc_generator/bootstrap/bootstrap.css +0 -2467
  36. data/templates/lib/tasks/doc_generator/bootstrap/bootstrap.min.css +0 -356
  37. data/templates/lib/tasks/doc_generator/bootstrap/docs/assets/css/docs.css +0 -317
  38. data/templates/lib/tasks/doc_generator/bootstrap/docs/assets/ico/bootstrap-apple-114x114.png +0 -0
  39. data/templates/lib/tasks/doc_generator/bootstrap/docs/assets/ico/bootstrap-apple-57x57.png +0 -0
  40. data/templates/lib/tasks/doc_generator/bootstrap/docs/assets/ico/bootstrap-apple-72x72.png +0 -0
  41. data/templates/lib/tasks/doc_generator/bootstrap/docs/assets/ico/favicon.ico +0 -0
  42. data/templates/lib/tasks/doc_generator/bootstrap/docs/assets/img/bird.png +0 -0
  43. data/templates/lib/tasks/doc_generator/bootstrap/docs/assets/img/browsers.png +0 -0
  44. data/templates/lib/tasks/doc_generator/bootstrap/docs/assets/img/example-diagram-01.png +0 -0
  45. data/templates/lib/tasks/doc_generator/bootstrap/docs/assets/img/example-diagram-02.png +0 -0
  46. data/templates/lib/tasks/doc_generator/bootstrap/docs/assets/img/example-diagram-03.png +0 -0
  47. data/templates/lib/tasks/doc_generator/bootstrap/docs/assets/img/grid-18px.png +0 -0
  48. data/templates/lib/tasks/doc_generator/bootstrap/docs/assets/img/twitter-logo-no-bird.png +0 -0
  49. data/templates/lib/tasks/doc_generator/bootstrap/docs/assets/js/application.js +0 -52
  50. data/templates/lib/tasks/doc_generator/bootstrap/docs/assets/js/google-code-prettify/prettify.css +0 -94
  51. data/templates/lib/tasks/doc_generator/bootstrap/docs/assets/js/google-code-prettify/prettify.js +0 -28
  52. data/templates/lib/tasks/doc_generator/bootstrap/docs/index.html +0 -2037
  53. data/templates/lib/tasks/doc_generator/bootstrap/docs/javascript.html +0 -798
  54. data/templates/lib/tasks/doc_generator/bootstrap/examples/container-app.html +0 -119
  55. data/templates/lib/tasks/doc_generator/bootstrap/examples/fluid.html +0 -122
  56. data/templates/lib/tasks/doc_generator/bootstrap/examples/hero.html +0 -79
  57. data/templates/lib/tasks/doc_generator/bootstrap/js/bootstrap-alerts.js +0 -124
  58. data/templates/lib/tasks/doc_generator/bootstrap/js/bootstrap-buttons.js +0 -64
  59. data/templates/lib/tasks/doc_generator/bootstrap/js/bootstrap-dropdown.js +0 -55
  60. data/templates/lib/tasks/doc_generator/bootstrap/js/bootstrap-modal.js +0 -260
  61. data/templates/lib/tasks/doc_generator/bootstrap/js/bootstrap-popover.js +0 -90
  62. data/templates/lib/tasks/doc_generator/bootstrap/js/bootstrap-scrollspy.js +0 -107
  63. data/templates/lib/tasks/doc_generator/bootstrap/js/bootstrap-tabs.js +0 -80
  64. data/templates/lib/tasks/doc_generator/bootstrap/js/bootstrap-twipsy.js +0 -321
  65. data/templates/lib/tasks/doc_generator/bootstrap/js/tests/index.html +0 -40
  66. data/templates/lib/tasks/doc_generator/bootstrap/js/tests/unit/bootstrap-alerts.js +0 -41
  67. data/templates/lib/tasks/doc_generator/bootstrap/js/tests/unit/bootstrap-buttons.js +0 -42
  68. data/templates/lib/tasks/doc_generator/bootstrap/js/tests/unit/bootstrap-dropdown.js +0 -52
  69. data/templates/lib/tasks/doc_generator/bootstrap/js/tests/unit/bootstrap-modal.js +0 -151
  70. data/templates/lib/tasks/doc_generator/bootstrap/js/tests/unit/bootstrap-popover.js +0 -76
  71. data/templates/lib/tasks/doc_generator/bootstrap/js/tests/unit/bootstrap-scrollspy.js +0 -31
  72. data/templates/lib/tasks/doc_generator/bootstrap/js/tests/unit/bootstrap-tabs.js +0 -77
  73. data/templates/lib/tasks/doc_generator/bootstrap/js/tests/unit/bootstrap-twipsy.js +0 -81
  74. data/templates/lib/tasks/doc_generator/bootstrap/js/tests/vendor/qunit.css +0 -232
  75. data/templates/lib/tasks/doc_generator/bootstrap/js/tests/vendor/qunit.js +0 -1510
  76. data/templates/lib/tasks/doc_generator/bootstrap/lib/bootstrap.less +0 -26
  77. data/templates/lib/tasks/doc_generator/bootstrap/lib/forms.less +0 -479
  78. data/templates/lib/tasks/doc_generator/bootstrap/lib/mixins.less +0 -222
  79. data/templates/lib/tasks/doc_generator/bootstrap/lib/patterns.less +0 -1060
  80. data/templates/lib/tasks/doc_generator/bootstrap/lib/reset.less +0 -141
  81. data/templates/lib/tasks/doc_generator/bootstrap/lib/scaffolding.less +0 -139
  82. data/templates/lib/tasks/doc_generator/bootstrap/lib/tables.less +0 -224
  83. data/templates/lib/tasks/doc_generator/bootstrap/lib/type.less +0 -187
  84. data/templates/lib/tasks/doc_generator/bootstrap/lib/variables.less +0 -60
  85. data/templates/lib/tasks/doc_generator/template.erb +0 -156
@@ -1,52 +0,0 @@
1
- $(document).ready(function(){
2
-
3
- // table sort example
4
- // ==================
5
-
6
- $("#sortTableExample").tablesorter( { sortList: [[ 1, 0 ]] } )
7
-
8
-
9
- // add on logic
10
- // ============
11
-
12
- $('.add-on :checkbox').click(function () {
13
- if ($(this).attr('checked')) {
14
- $(this).parents('.add-on').addClass('active')
15
- } else {
16
- $(this).parents('.add-on').removeClass('active')
17
- }
18
- })
19
-
20
-
21
- // Disable certain links in docs
22
- // =============================
23
- // Please do not carry these styles over to your projects, it's merely here to prevent button clicks form taking you away from your spot on page
24
-
25
- $('ul.tabs a, ul.pills a, .pagination a, .well .btn, .actions .btn, .alert-message .btn, a.close').click(function (e) {
26
- e.preventDefault()
27
- })
28
-
29
- // Copy code blocks in docs
30
- $(".copy-code").focus(function () {
31
- var el = this;
32
- // push select to event loop for chrome :{o
33
- setTimeout(function () { $(el).select(); }, 0);
34
- });
35
-
36
-
37
- // POSITION STATIC TWIPSIES
38
- // ========================
39
-
40
- $(window).bind( 'load resize', function () {
41
- $(".twipsies a").each(function () {
42
- $(this)
43
- .twipsy({
44
- live: false
45
- , placement: $(this).attr('title')
46
- , trigger: 'manual'
47
- , offset: 2
48
- })
49
- .twipsy('show')
50
- })
51
- })
52
- });
@@ -1,94 +0,0 @@
1
- .com { color: #93a1a1; }
2
- .lit { color: #195f91; }
3
- .pun, .opn, .clo { color: #93a1a1; }
4
- .fun { color: #dc322f; }
5
- .str, .atv { color: #268bd2; }
6
- .kwd, .tag { color: #195f91; }
7
- .typ, .atn, .dec, .var { color: #CB4B16; }
8
- .pln { color: #93a1a1; }
9
- .prettyprint {
10
- background-color: #fefbf3;
11
- padding: 9px;
12
- border: 1px solid rgba(0,0,0,.2);
13
- -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.1);
14
- -moz-box-shadow: 0 1px 2px rgba(0,0,0,.1);
15
- box-shadow: 0 1px 2px rgba(0,0,0,.1);
16
- }
17
-
18
- /* Specify class=linenums on a pre to get line numbering */
19
- ol.linenums {
20
- margin: 0 0 0 40px;
21
- }
22
- /* IE indents via margin-left */
23
- ol.linenums li {
24
- padding: 0 5px;
25
- color: rgba(0,0,0,.15);
26
- line-height: 20px;
27
- -webkit-border-radius: 2px;
28
- -moz-border-radius: 2px;
29
- border-radius: 2px;
30
- }
31
- /* Alternate shading for lines */
32
- li.L1, li.L3, li.L5, li.L7, li.L9 { }
33
-
34
- /*
35
- $base03: #002b36;
36
- $base02: #073642;
37
- $base01: #586e75;
38
- $base00: #657b83;
39
- $base0: #839496;
40
- $base1: #93a1a1;
41
- $base2: #eee8d5;
42
- $base3: #fdf6e3;
43
- $yellow: #b58900;
44
- $orange: #cb4b16;
45
- $red: #dc322f;
46
- $magenta: #d33682;
47
- $violet: #6c71c4;
48
- $blue: #268bd2;
49
- $cyan: #2aa198;
50
- $green: #859900;
51
- */
52
-
53
-
54
- /*
55
- #1d1f21 Background
56
- #282a2e Current Line
57
- #373b41 Selection
58
- #c5c8c6 Foreground
59
- #969896 Comment
60
- #cc6666 Red
61
- #de935f Orange
62
- #f0c674 Yellow
63
- #b5bd68 Green
64
- #8abeb7 Aqua
65
- #81a2be Blue
66
- #b294bb Purple
67
- */
68
-
69
-
70
- /* DARK THEME */
71
- /* ---------- */
72
-
73
- .prettyprint-dark {
74
- background-color: #1d1f21;
75
- border: 0;
76
- padding: 10px;
77
- }
78
- .prettyprint-dark .linenums li {
79
- color: #444;
80
- }
81
- .prettyprint-dark .linenums li:hover {
82
- background-color: #282a2e;
83
- }
84
- /* tags in html */
85
- .prettyprint-dark .kwd,
86
- .prettyprint-dark .tag { color: #cc6666; }
87
- /* html attr */
88
- .prettyprint-dark .typ,
89
- .prettyprint-dark .atn,
90
- .prettyprint-dark .dec,
91
- .prettyprint-dark .var { color: #de935f; }
92
- /* html attr values */
93
- .prettyprint-dark .str,
94
- .prettyprint-dark .atv { color: #b5bd68; }
@@ -1,28 +0,0 @@
1
- var q=null;window.PR_SHOULD_USE_CONTINUATION=!0;
2
- (function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a=
3
- [],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c<i;++c){var j=f[c];if(/\\[bdsw]/i.test(j))a.push(j);else{var j=m(j),d;c+2<i&&"-"===f[c+1]?(d=m(f[c+2]),c+=2):d=j;b.push([j,d]);d<65||j>122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;c<b.length;++c)i=b[c],i[0]<=j[1]+1?j[1]=Math.max(j[1],i[1]):f.push(j=i);b=["["];o&&b.push("^");b.push.apply(b,a);for(c=0;c<
4
- f.length;++c)i=f[c],b.push(e(i[0])),i[1]>i[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c<b;++c){var j=f[c];j==="("?++i:"\\"===j.charAt(0)&&(j=+j.substring(1))&&j<=i&&(d[j]=-1)}for(c=1;c<d.length;++c)-1===d[c]&&(d[c]=++t);for(i=c=0;c<b;++c)j=f[c],j==="("?(++i,d[i]===void 0&&(f[c]="(?:")):"\\"===j.charAt(0)&&
5
- (j=+j.substring(1))&&j<=i&&(f[c]="\\"+d[i]);for(i=c=0;c<b;++c)"^"===f[c]&&"^"!==f[c+1]&&(f[c]="");if(a.ignoreCase&&s)for(c=0;c<b;++c)j=f[c],a=j.charAt(0),j.length>=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p<d;++p){var g=a[p];if(g.ignoreCase)l=!0;else if(/[a-z]/i.test(g.source.replace(/\\u[\da-f]{4}|\\x[\da-f]{2}|\\[^UXux]/gi,""))){s=!0;l=!1;break}}for(var r=
6
- {b:8,t:9,n:10,v:11,f:12,r:13},n=[],p=0,d=a.length;p<d;++p){g=a[p];if(g.global||g.multiline)throw Error(""+g);n.push("(?:"+y(g)+")")}return RegExp(n.join("|"),l?"gi":"g")}function M(a){function m(a){switch(a.nodeType){case 1:if(e.test(a.className))break;for(var g=a.firstChild;g;g=g.nextSibling)m(g);g=a.nodeName;if("BR"===g||"LI"===g)h[s]="\n",t[s<<1]=y++,t[s++<<1|1]=a;break;case 3:case 4:g=a.nodeValue,g.length&&(g=p?g.replace(/\r\n?/g,"\n"):g.replace(/[\t\n\r ]+/g," "),h[s]=g,t[s<<1]=y,y+=g.length,
7
- t[s++<<1|1]=a)}}var e=/(?:^|\s)nocode(?:\s|$)/,h=[],y=0,t=[],s=0,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=document.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);m(a);return{a:h.join("").replace(/\n$/,""),c:t}}function B(a,m,e,h){m&&(a={a:m,d:a},e(a),h.push.apply(h,a.e))}function x(a,m){function e(a){for(var l=a.d,p=[l,"pln"],d=0,g=a.a.match(y)||[],r={},n=0,z=g.length;n<z;++n){var f=g[n],b=r[f],o=void 0,c;if(typeof b===
8
- "string")c=!1;else{var i=h[f.charAt(0)];if(i)o=f.match(i[1]),b=i[0];else{for(c=0;c<t;++c)if(i=m[c],o=f.match(i[1])){b=i[0];break}o||(b="pln")}if((c=b.length>=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m),
9
- l=[],p={},d=0,g=e.length;d<g;++d){var r=e[d],n=r[3];if(n)for(var k=n.length;--k>=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/,
10
- q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/,
11
- q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g,
12
- "");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a),
13
- a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e}
14
- for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g<d.length;++g)e(d[g]);m===(m|0)&&d[0].setAttribute("value",
15
- m);var r=s.createElement("OL");r.className="linenums";for(var n=Math.max(0,m-1|0)||0,g=0,z=d.length;g<z;++g)l=d[g],l.className="L"+(g+n)%10,l.firstChild||l.appendChild(s.createTextNode("\xa0")),r.appendChild(l);a.appendChild(r)}function k(a,m){for(var e=m.length;--e>=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*</.test(m)?"default-markup":"default-code";return A[a]}function E(a){var m=
16
- a.g;try{var e=M(a.h),h=e.a;a.a=h;a.c=e.c;a.d=0;C(m,h)(a);var k=/\bMSIE\b/.test(navigator.userAgent),m=/\n/g,t=a.a,s=t.length,e=0,l=a.c,p=l.length,h=0,d=a.e,g=d.length,a=0;d[g]=s;var r,n;for(n=r=0;n<g;)d[n]!==d[n+2]?(d[r++]=d[n++],d[r++]=d[n++]):n+=2;g=r;for(n=r=0;n<g;){for(var z=d[n],f=d[n+1],b=n+2;b+2<=g&&d[b+1]===f;)b+=2;d[r++]=z;d[r++]=f;n=b}for(d.length=r;h<p;){var o=l[h+2]||s,c=d[a+2]||s,b=Math.min(o,c),i=l[h+1],j;if(i.nodeType!==1&&(j=t.substring(e,b))){k&&(j=j.replace(m,"\r"));i.nodeValue=
17
- j;var u=i.ownerDocument,v=u.createElement("SPAN");v.className=d[a+1];var x=i.parentNode;x.replaceChild(v,i);v.appendChild(i);e<o&&(l[h+1]=i=u.createTextNode(t.substring(b,o)),x.insertBefore(i,v.nextSibling))}e=b;e>=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],
18
- "catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"],
19
- H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],
20
- J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+
21
- I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^<?]+/],["dec",/^<!\w[^>]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),
22
- ["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css",
23
- /^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),
24
- ["cv","py"]);k(u({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes",
25
- hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p<h.length&&l.now()<e;p++){var n=h[p],k=n.className;if(k.indexOf("prettyprint")>=0){var k=k.match(g),f,b;if(b=
26
- !k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p<h.length?setTimeout(m,
27
- 250):a&&a()}for(var e=[document.getElementsByTagName("pre"),document.getElementsByTagName("code"),document.getElementsByTagName("xmp")],h=[],k=0;k<e.length;++k)for(var t=0,s=e[k].length;t<s;++t)h.push(e[k][t]);var e=q,l=Date;l.now||(l={now:function(){return+new Date}});var p=0,d,g=/\blang(?:uage)?-([\w.]+)(?!\S)/;m()};window.PR={createSimpleLexer:x,registerLangHandler:k,sourceDecorator:u,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",
28
- PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ"}})();
@@ -1,2037 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <title>Bootstrap, from Twitter</title>
6
- <meta name="description" content="">
7
- <meta name="author" content="">
8
-
9
- <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
10
- <!--[if lt IE 9]>
11
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
12
- <![endif]-->
13
-
14
- <!-- Le styles -->
15
- <link href="../bootstrap.css" rel="stylesheet">
16
- <link href="assets/css/docs.css" rel="stylesheet">
17
- <link href="assets/js/google-code-prettify/prettify.css" rel="stylesheet">
18
-
19
- <!-- Le fav and touch icons -->
20
- <link rel="shortcut icon" type="image/x-icon" href="assets/ico/favicon.ico">
21
- <link rel="apple-touch-icon" href="assets/ico/bootstrap-apple-57x57.png">
22
- <link rel="apple-touch-icon" sizes="72x72" href="assets/ico/bootstrap-apple-72x72.png">
23
- <link rel="apple-touch-icon" sizes="114x114" href="assets/ico/bootstrap-apple-114x114.png">
24
- </head>
25
-
26
- <body>
27
-
28
- <!-- Topbar
29
- ================================================== -->
30
- <div class="topbar" data-scrollspy="scrollspy" >
31
- <div class="topbar-inner">
32
- <div class="container">
33
- <a class="brand" href="#">Bootstrap</a>
34
- <ul class="nav">
35
- <li class="active"><a href="#overview">Overview</a></li>
36
- <li><a href="#about">About</a></li>
37
- <li><a href="#grid-system">Grid</a></li>
38
- <li><a href="#layouts">Layouts</a></li>
39
- <li><a href="#typography">Type</a></li>
40
- <li><a href="#media">Media</a></li>
41
- <li><a href="#tables">Tables</a></li>
42
- <li><a href="#forms">Forms</a></li>
43
- <li><a href="#navigation">Navigation</a></li>
44
- <li><a href="#alerts">Alerts</a></li>
45
- <li><a href="#popovers">Popovers</a></li>
46
- <li><a href="#javascript">Javascript</a></li>
47
- <li><a href="#less">Less</a></li>
48
- </ul>
49
- </div>
50
- </div>
51
- </div>
52
-
53
- <!-- Masthead (blueprinty thing)
54
- ================================================== -->
55
- <header class="jumbotron masthead" id="overview">
56
- <div class="inner">
57
- <div class="container">
58
- <h1>Bootstrap, from Twitter</h1>
59
- <p class="lead">
60
- Bootstrap is a toolkit from Twitter designed to kickstart development of webapps and sites.<br />
61
- It includes base CSS and HTML for typography, forms, buttons, tables, grids, navigation, and more.<br />
62
- </p>
63
- <p><strong>Nerd alert:</strong> Bootstrap is <a href="#less" title="Read about using Bootstrap with Less">built with Less</a> and was designed to work out of the gate with modern browsers in mind.</p>
64
- </div><!-- /container -->
65
- </div>
66
- </header>
67
-
68
- <!-- Quickstart options
69
- ================================================== -->
70
- <div class="quickstart">
71
- <div class="container">
72
- <div class="row">
73
- <div class="span5">
74
- <h6>Hotlink the CSS</h6>
75
- <p>For the quickest and easiest start, just copy this snippet into your webpage.</p>
76
- <form>
77
- <textarea class="copy-code" rows="1">&lt;link rel="stylesheet" href="http://twitter.github.com/bootstrap/assets/css/bootstrap.min.css"></textarea>
78
- </form>
79
- </div>
80
- <div class="span5">
81
- <h6>Use it with Less</h6>
82
- <p>A fan of using Less? No problem, just clone the repo and add these lines:</p>
83
- <form>
84
- <textarea class="copy-code" rows="2">&lt;link rel="stylesheet/less" href="/path/to/bootstrap.less"&gt;
85
- &lt;script src="/path/to/less.js"&gt;&lt;/script&gt;</textarea>
86
- </form>
87
- </div>
88
- <div class="span5">
89
- <h6>Fork on GitHub</h6>
90
- <p>Download, fork, pull, file issues, and more with the official Bootstrap repo on Github.</p>
91
- <p><a target="_blank" href="https://github.com/twitter/bootstrap" class="btn primary">Bootstrap on GitHub &raquo;</a></p>
92
- <p class="current-version">Currently <a href="https://github.com/twitter/bootstrap/wiki/Changelog">v1.4.0</a></p>
93
- </div>
94
- </div><!-- /row -->
95
- </div>
96
- </div>
97
-
98
- <div class="container">
99
-
100
-
101
-
102
- <!-- About Bootstrap
103
- ================================================== -->
104
- <section id="about">
105
- <div class="page-header">
106
- <h1>About Bootstrap <small>Brief history, browser support, and more</small></h1>
107
- </div>
108
- <div class="row">
109
- <div class="span-one-third">
110
- <h3>History</h3>
111
- <p>Engineers at Twitter have historically used almost any library they were familiar with to meet front-end requirements. Bootstrap began as an answer to the challenges that presented. With the help of many awesome folks, Bootstrap has grown significantly.</p>
112
- <p>Read more on <a href="https://dev.twitter.com/blog/bootstrap-twitter">dev.twitter.com &rsaquo;</a></p>
113
- <p>
114
- <a href="http://twitter.com/twbootstrap" class="twitter-follow-button">Follow @twbootstrap</a>
115
- <script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>
116
- </p>
117
- </div>
118
- <div class="span-one-third">
119
- <h3>Browser support</h3>
120
- <p>Bootstrap is tested and supported in major modern browsers like Chrome, Safari, Internet Explorer, and Firefox.</p>
121
- <img src="assets/img/browsers.png" alt="Tested and supported in Chrome, Safari, Internet Explorer, and Firefox">
122
- <ul>
123
- <li>Latest Safari</li>
124
- <li>Latest Google Chrome</li>
125
- <li>Firefox 4+</li>
126
- <li>Internet Explorer 7+</li>
127
- <li>Opera 11</li>
128
- </ul>
129
- </div>
130
- <div class="span-one-third">
131
- <h3>What's included</h3>
132
- <p>Bootstrap comes complete with compiled CSS, uncompiled, and example templates.</p>
133
- <ul>
134
- <li><a href="./javascript.html">Javascript plugins</a></li>
135
- <li>All original .less files</li>
136
- <li>Fully <a href="../bootstrap.css">compiled</a> and <a href="../bootstrap.min.css">minified</a> CSS</li>
137
- <li>Complete styleguide documentation</li>
138
- <li>Three example pages with different layouts</li>
139
- </ul>
140
- </div>
141
- </div><!-- /row -->
142
-
143
- <div class="row">
144
- <div class="span12">
145
- <h3>Quick-start examples</h3>
146
- <p>Need some quick templates? Check out these basic examples we've put together:</p>
147
- <ul class="media-grid">
148
- <li>
149
- <a href="../examples/hero.html"><img src="assets/img/example-diagram-01.png" alt="Simple three-column layout with hero unit"></a>
150
- </li>
151
- <li>
152
- <a href="../examples/fluid.html"><img src="assets/img/example-diagram-02.png" alt="Fluid layout with static sidebar"></a>
153
- </li>
154
- <li>
155
- <a href="../examples/container-app.html"><img src="assets/img/example-diagram-03.png" alt="Simple hanging container for apps"></a>
156
- </li>
157
- </ul>
158
- </div>
159
- </div><!-- /row -->
160
- </section>
161
-
162
-
163
-
164
- <!-- Grid system
165
- ================================================== -->
166
- <section id="grid-system">
167
- <div class="page-header">
168
- <h1>Grid system <small>Rock the standard 940px or roll your own</small></h1>
169
- </div>
170
- <div class="row">
171
- <div class="span4">
172
- <h2>Default grid</h2>
173
- <p>The default grid system provided as part of Bootstrap 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.</p>
174
- </div>
175
- <div class="span12">
176
- <h3>Example grid markup</h3>
177
- <p>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.</p>
178
- <pre class="prettyprint linenums">
179
- &lt;div class="row"&gt;
180
- &lt;div class="span6"&gt;
181
- ...
182
- &lt;/div&gt;
183
- &lt;div class="span10"&gt;
184
- ...
185
- &lt;/div&gt;
186
- &lt;/div&gt;
187
- </pre>
188
- </div>
189
- </div><!-- /row -->
190
- <div class="row show-grid" title="16 column layout">
191
- <div class="span1">1</div>
192
- <div class="span1">1</div>
193
- <div class="span1">1</div>
194
- <div class="span1">1</div>
195
- <div class="span1">1</div>
196
- <div class="span1">1</div>
197
- <div class="span1">1</div>
198
- <div class="span1">1</div>
199
- <div class="span1">1</div>
200
- <div class="span1">1</div>
201
- <div class="span1">1</div>
202
- <div class="span1">1</div>
203
- <div class="span1">1</div>
204
- <div class="span1">1</div>
205
- <div class="span1">1</div>
206
- <div class="span1">1</div>
207
- </div><!-- /row -->
208
- <div class="row show-grid" title="8 column layout">
209
- <div class="span2">2</div>
210
- <div class="span2">2</div>
211
- <div class="span2">2</div>
212
- <div class="span2">2</div>
213
- <div class="span2">2</div>
214
- <div class="span2">2</div>
215
- <div class="span2">2</div>
216
- <div class="span2">2</div>
217
- </div><!-- /row -->
218
- <div class="row show-grid" title="Example uncommon layout">
219
- <div class="span3">3</div>
220
- <div class="span3">3</div>
221
- <div class="span3">3</div>
222
- <div class="span3">3</div>
223
- <div class="span3">3</div>
224
- <div class="span1 column">1</div>
225
- </div><!-- /row -->
226
- <div class="row show-grid" title="Four column layout">
227
- <div class="span4">4</div>
228
- <div class="span4">4</div>
229
- <div class="span4">4</div>
230
- <div class="span4">4</div>
231
- </div><!-- /row -->
232
- <div class="row show-grid" title="Default three column layout">
233
- <div class="span-one-third">1/3</div>
234
- <div class="span-one-third">1/3</div>
235
- <div class="span-one-third">1/3</div>
236
- </div><!-- /row -->
237
- <div class="row show-grid" title="One-third and two-thirds layout">
238
- <div class="span-one-third">1/3</div>
239
- <div class="span-two-thirds">2/3</div>
240
- </div><!-- /row -->
241
- <div class="row show-grid" title="Irregular three column layout">
242
- <div class="span4">4</div>
243
- <div class="span6">6</div>
244
- <div class="span6">6</div>
245
- </div><!-- /row -->
246
- <div class="row show-grid" title="Half and half">
247
- <div class="span8">8</div>
248
- <div class="span8">8</div>
249
- </div><!-- /row -->
250
- <div class="row show-grid" title="Example uncommon two-column layout">
251
- <div class="span5">5</div>
252
- <div class="span11">11</div>
253
- </div><!-- /row -->
254
- <div class="row show-grid" title="Unnecessary single column layout">
255
- <div class="span16">16</div>
256
- </div><!-- /row -->
257
-
258
- <br>
259
-
260
- <h2>Offsetting columns</h2>
261
- <div class="row show-grid">
262
- <div class="span4">4</div>
263
- <div class="span8 offset4">8 offset 4</div>
264
- </div><!-- /row -->
265
- <div class="row show-grid">
266
- <div class="span-one-third offset-two-thirds">1/3 offset 2/3s</div>
267
- </div><!-- /row -->
268
- <div class="row show-grid">
269
- <div class="span4 offset4">4 offset 4</div>
270
- <div class="span4 offset4">4 offset 4</div>
271
- </div><!-- /row -->
272
- <div class="row show-grid">
273
- <div class="span5 offset3">5 offset 3</div>
274
- <div class="span5 offset3">5 offset 3</div>
275
- </div><!-- /row -->
276
- <div class="row show-grid">
277
- <div class="span10 offset6">10 offset 6</div>
278
- </div><!-- /row -->
279
-
280
- <br>
281
-
282
- <div class="row">
283
- <div class="span4">
284
- <h2>Nesting columns</h2>
285
- <p>Nest your content if you must by creating a <code>.row</code> within an existing column.</p>
286
- </div>
287
- <div class="span12">
288
- <h4>Example of nested columns</h4>
289
- <div class="row show-grid">
290
- <div class="span12">
291
- Level 1 of column
292
- <div class="row show-grid">
293
- <div class="span6">
294
- Level 2
295
- </div>
296
- <div class="span6">
297
- Level 2
298
- </div>
299
- </div>
300
- </div>
301
- </div>
302
- <pre class="prettyprint linenums">
303
- &lt;div class="row"&gt;
304
- &lt;div class="span12"&gt;
305
- Level 1 of column
306
- &lt;div class="row"&gt;
307
- &lt;div class="span6"&gt;
308
- Level 2
309
- &lt;/div&gt;
310
- &lt;div class="span6"&gt;
311
- Level 2
312
- &lt;/div&gt;
313
- &lt;/div&gt;
314
- &lt;/div&gt;
315
- &lt;/div&gt;
316
- </pre>
317
- </div>
318
- </div>
319
-
320
- <br>
321
-
322
- <div class="row">
323
- <div class="span4">
324
- <h2>Roll your own grid</h2>
325
- <p>Built into Bootstrap are a handful of variables for customizing the default 940px grid system. With a bit of customization, you can modify the size of columns, their gutters, and the container they reside in.</p>
326
- </div>
327
- <div class="span12">
328
- <h3>Inside the grid</h3>
329
- <p>The variables needed to modify the grid system currently all reside in <code>variables.less</code>.</p>
330
- <table class="bordered-table zebra-striped">
331
- <thead>
332
- <tr>
333
- <th>Variable</th>
334
- <th>Default value</th>
335
- <th>Description</th>
336
- </tr>
337
- </thead>
338
- <tbody>
339
- <tr>
340
- <td><code>@gridColumns</code></td>
341
- <td>16</td>
342
- <td>The number of columns within the grid</td>
343
- </tr>
344
- <tr>
345
- <td><code>@gridColumnWidth</code></td>
346
- <td>40px</td>
347
- <td>The width of each column within the grid</td>
348
- </tr>
349
- <tr>
350
- <td><code>@gridGutterWidth</code></td>
351
- <td>20px</td>
352
- <td>The negative space between each column</td>
353
- </tr>
354
- <tr>
355
- <td><code>@siteWidth</code></td>
356
- <td><em>Computed sum of all columns and gutters</em></td>
357
- <td>We use some basic match to count the number of columns and gutters and set the width of the <code>.fixed-container()</code> mixin.</td>
358
- </tr>
359
- </tbody>
360
- </table>
361
- <h3>Now to customize</h3>
362
- <p>Modifying the grid means changing the three <code>@grid-*</code> variables and recompiling the Less files.</p>
363
- <p>Bootstrap comes equipped to handle a grid system with up to 24 columns; the default is just 16. Here's how your grid variables would look customized to a 24-column grid.</p>
364
- <pre class="prettyprint linenums">@gridColumns: 24;
365
- @gridColumnWidth: 20px;
366
- @gridGutterWidth: 20px;</pre>
367
- <p>Once recompiled, you'll be set!</p>
368
- </div>
369
- </div>
370
- </section>
371
-
372
-
373
-
374
- <!-- Layouts (Default and fluid)
375
- ================================================== -->
376
- <section id="layouts">
377
- <div class="page-header">
378
- <h1>Layouts <small>Basic templates to create webpages</small></h1>
379
- </div>
380
-
381
- <div class="row">
382
- <div class="span8">
383
- <h2>Fixed layout</h2>
384
- <p>The default and simple 940px-wide, centered layout for just about any website or page provided by a single <code>&lt;div.container&gt;</code>.</p>
385
- <div class="mini-layout">
386
- <div class="mini-layout-body"></div>
387
- </div>
388
- <pre class="prettyprint linenums">
389
- &lt;body&gt;
390
- &lt;div class="container"&gt;
391
- ...
392
- &lt;/div&gt;
393
- &lt;/body&gt;
394
- </pre>
395
- </div><!-- /col -->
396
- <div class="span8">
397
- <h2>Fluid layout</h2>
398
- <p>An alternative, flexible fluid page structure with min- and max-widths and a left-hand sidebar. Great for apps and docs.</p>
399
- <div class="mini-layout fluid">
400
- <div class="mini-layout-sidebar"></div>
401
- <div class="mini-layout-body"></div>
402
- </div>
403
- <pre class="prettyprint linenums">
404
- &lt;body&gt;
405
- &lt;div class="container-fluid"&gt;
406
- &lt;div class="sidebar"&gt;
407
- ...
408
- &lt;/div&gt;
409
- &lt;div class="content"&gt;
410
- ...
411
- &lt;/div&gt;
412
- &lt;/div&gt;
413
- &lt;/body&gt;
414
- </pre>
415
- </div><!-- /col -->
416
- </div><!-- /row -->
417
- </section>
418
-
419
-
420
-
421
- <!-- Typography
422
- ================================================== -->
423
- <section id="typography">
424
- <div class="page-header">
425
- <h1>Typography <small>Headings, paragraphs, lists, and other inline type elements</small></h1>
426
- </div>
427
-
428
- <!-- Headings & Paragraph Copy -->
429
- <div class="row">
430
- <div class="span4">
431
- <h2>Headings &amp; copy</h2>
432
- <p>A standard typographic hierarchy for structuring your webpages.</p>
433
- <p>The entire typographic grid is based on two Less variables in our variables.less file: <code>@basefont</code> and <code>@baseline</code>. The first is the base font-size used throughout and the second is the base line-height.</p>
434
- <p>We use those variables, and some math, to create the margins, paddings, and line-heights of all our type and more.</p>
435
- </div>
436
- <div class="span4">
437
- <h1>h1. Heading 1</h1>
438
- <h2>h2. Heading 2</h2>
439
- <h3>h3. Heading 3</h3>
440
- <h4>h4. Heading 4</h4>
441
- <h5>h5. Heading 5</h5>
442
- <h6>h6. Heading 6</h6>
443
- </div>
444
- <div class="span8">
445
- <h3>Example paragraph</h3>
446
- <p>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.</p>
447
- <h1>Example heading <small>Has sub-heading&hellip;</small></h1>
448
- </div>
449
- </div>
450
-
451
- <!-- Misc Elements -->
452
- <div class="row">
453
- <div class="span4">
454
- <h2>Misc. elements</h2>
455
- <p>Using emphasis, addresses, &amp; abbreviations</p>
456
- <p>
457
- <code>&lt;strong&gt;</code>
458
- <code>&lt;em&gt;</code>
459
- <code>&lt;address&gt;</code>
460
- <code>&lt;abbr&gt;</code>
461
- </p>
462
- </div>
463
- <div class="span12">
464
- <h3>When to use</h3>
465
- <p>Emphasis tags (<code>&lt;strong&gt;</code> and <code>&lt;em&gt;</code>) should be used to indicate additional importance or emphasis of a word or phrase relative to its surrounding copy. Use <code>&lt;strong&gt;</code> for importance and <code>&lt;em&gt;</code> for <em>stress</em> emphasis.</p>
466
- <h3>Emphasis in a paragraph</h3>
467
- <p><a href="#">Fusce dapibus</a>, <strong>tellus ac cursus commodo</strong>, <em>tortor mauris condimentum nibh</em>, ut fermentum massa justo sit amet risus. Maecenas faucibus mollis interdum. Nulla vitae elit libero, a pharetra augue.</p>
468
- <p><strong>Note:</strong> It's still okay to use <code>&lt;b&gt;</code> and <code>&lt;i&gt;</code> tags in HTML5 and they don't have to be styled bold and italic, respectively (although if there is a more semantic element, use it). <code>&lt;b&gt;</code> is meant to highlight words or phrases without conveying additional importance, while <code>&lt;i&gt;</code> is mostly for voice, technical terms, etc.</p>
469
- <h3>Addresses</h3>
470
- <p>The <code>&lt;address&gt;</code> element is used for contact information for its nearest ancestor, or the entire body of work. Here are two examples of how it could be used:</p>
471
-
472
- <div class="row">
473
- <div class="span4">
474
- <address>
475
- <strong>Twitter, Inc.</strong><br />
476
- 795 Folsom Ave, Suite 600<br />
477
- San Francisco, CA 94107<br />
478
- <abbr title="Phone">P:</abbr> (123) 456-7890
479
- </address>
480
- </div>
481
- <div class="span4">
482
- <address>
483
- <strong>Full Name</strong><br />
484
- <a mailto="">first.last@gmail.com</a>
485
- </address>
486
- </div>
487
- </div>
488
-
489
- <p><strong>Note:</strong> Each line in an <code>&lt;address&gt;</code> must end with a line-break (<code>&lt;br /&gt;</code>) or be wrapped in a block-level tag (e.g., <code>&lt;p&gt;</code>) to properly structure the content.</p>
490
- <h3>Abbreviations</h3>
491
- <p>For abbreviations and acronyms, use the <code>&lt;abbr&gt;</code> tag (<code>&lt;acronym&gt;</code> is deprecated in <abbr title="HyperText Markup Langugage 5">HTML5</abbr>). Put the shorthand form within the tag and set a title for the complete name.</p>
492
- </div>
493
- </div><!-- /row -->
494
-
495
- <!-- Blockquotes -->
496
- <div class="row">
497
- <div class="span4">
498
- <h2>Blockquotes</h2>
499
- <p>
500
- <code>&lt;blockquote&gt;</code>
501
- <code>&lt;p&gt;</code>
502
- <code>&lt;small&gt;</code>
503
- </p>
504
- </div>
505
- <div class="span12">
506
- <h3>How to quote</h3>
507
- <p>To include a blockquote, wrap <code>&lt;blockquote&gt;</code> around <code>&lt;p&gt;</code> and <code>&lt;small&gt;</code> tags. Use the <code>&lt;small&gt;</code> element to cite your source and you'll get an em dash <code>&amp;mdash;</code> before it.</p>
508
- <blockquote>
509
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante venenatis dapibus posuere velit aliquet.</p>
510
- <small>Dr. Julius Hibbert</small>
511
- </blockquote>
512
- <pre class="prettyprint linenums">
513
- &lt;blockquote&gt;
514
- &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante venenatis dapibus posuere velit aliquet.&lt;/p&gt;
515
- &lt;small&gt;Dr. Julius Hibbert&lt;/small&gt;
516
- &lt;/blockquote&gt;
517
- </pre>
518
- </div>
519
- </div><!-- /row -->
520
-
521
- <h2>Lists</h2>
522
- <div class="row">
523
- <div class="span4">
524
- <h4>Unordered <code>&lt;ul&gt;</code></h4>
525
- <ul>
526
- <li>Lorem ipsum dolor sit amet</li>
527
- <li>Consectetur adipiscing elit</li>
528
- <li>Integer molestie lorem at massa</li>
529
- <li>Facilisis in pretium nisl aliquet</li>
530
- <li>Nulla volutpat aliquam velit
531
- <ul>
532
- <li>Phasellus iaculis neque</li>
533
- <li>Purus sodales ultricies</li>
534
- <li>Vestibulum laoreet porttitor sem</li>
535
- <li>Ac tristique libero volutpat at</li>
536
- </ul>
537
- </li>
538
- <li>Faucibus porta lacus fringilla vel</li>
539
- <li>Aenean sit amet erat nunc</li>
540
- <li>Eget porttitor lorem</li>
541
- </ul>
542
- </div>
543
- <div class="span4">
544
- <h4>Unstyled <code>&lt;ul.unstyled&gt;</code></h4>
545
- <ul class="unstyled">
546
- <li>Lorem ipsum dolor sit amet</li>
547
- <li>Consectetur adipiscing elit</li>
548
- <li>Integer molestie lorem at massa</li>
549
- <li>Facilisis in pretium nisl aliquet</li>
550
- <li>Nulla volutpat aliquam velit
551
- <ul>
552
- <li>Phasellus iaculis neque</li>
553
- <li>Purus sodales ultricies</li>
554
- <li>Vestibulum laoreet porttitor sem</li>
555
- <li>Ac tristique libero volutpat at</li>
556
- </ul>
557
- </li>
558
- <li>Faucibus porta lacus fringilla vel</li>
559
- <li>Aenean sit amet erat nunc</li>
560
- <li>Eget porttitor lorem</li>
561
- </ul>
562
- </div>
563
- <div class="span4">
564
- <h4>Ordered <code>&lt;ol&gt;</code></h4>
565
- <ol>
566
- <li>Lorem ipsum dolor sit amet</li>
567
- <li>Consectetur adipiscing elit</li>
568
- <li>Integer molestie lorem at massa</li>
569
- <li>Facilisis in pretium nisl aliquet</li>
570
- <li>Nulla volutpat aliquam velit</li>
571
- <li>Faucibus porta lacus fringilla vel</li>
572
- <li>Aenean sit amet erat nunc</li>
573
- <li>Eget porttitor lorem</li>
574
- </ol>
575
- </div>
576
- <div class="span4">
577
- <h4>Description <code>dl</code></h4>
578
- <dl>
579
- <dt>Description lists</dt>
580
- <dd>A description list is perfect for defining terms.</dd>
581
- <dt>Euismod</dt>
582
- <dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd>
583
- <dd>Donec id elit non mi porta gravida at eget metus.</dd>
584
- <dt>Malesuada porta</dt>
585
- <dd>Etiam porta sem malesuada magna mollis euismod.</dd>
586
- </dl>
587
- </div>
588
- </div><!-- /row -->
589
-
590
-
591
- <!-- Code -->
592
- <div class="row">
593
- <div class="span4">
594
- <h2>Code</h2>
595
- <p>
596
- <code>&lt;code&gt;</code>
597
- <code>&lt;pre&gt;</code>
598
- </p>
599
- <p>Pimp your code in style with two simple tags. For even more awesomeness through javascript, drop in Google's code prettify library and you're set.</p>
600
- </div>
601
- <div class="span12">
602
- <h3>Presenting code</h3>
603
- <p>Code, blocks of or just snippets inline, can be displayed with style just by wrapping in the right tag. For blocks of code spanning multiple lines, use the <code>&lt;pre&gt;</code> element. For inline code, use the <code>&lt;code&gt;</code> element.</p>
604
- <table class="bordered-table zebra-striped">
605
- <thead>
606
- <tr>
607
- <th style="width: 190px;">Element</th>
608
- <th>Result</th>
609
- </tr>
610
- </thead>
611
- <tbody>
612
- <tr>
613
- <td><code>&lt;code&gt;</code></td>
614
- <td>In a line of text like this, your wrapped code will look like this <code>&lt;html&gt;</code> element.</td>
615
- </tr>
616
- <tr>
617
- <td><code>&lt;pre&gt;</code></td>
618
- <td>
619
- <pre>&lt;div&gt;
620
- &lt;h1&gt;Heading&lt;/h1&gt;
621
- &lt;p&gt;Something right here...&lt;/p&gt;
622
- &lt;/div&gt;</pre>
623
- <p><strong>Note:</strong> Be sure to keep code within <code>&lt;pre&gt;</code> tags as close to the left as possible; it will render all tabs.</p>
624
- </td>
625
- </tr>
626
- <tr>
627
- <td><code>&lt;pre class="prettyprint"&gt;</code></td>
628
- <td>
629
- <p>Using the google-code-prettify library, your blocks of code get a slightly different visual style and automatic syntax highlighting.</p>
630
- <pre class="prettyprint">&lt;div&gt;
631
- &lt;h1&gt;Heading&lt;/h1&gt;
632
- &lt;p&gt;Something right here...&lt;/p&gt;
633
- &lt;/div&gt;</pre>
634
- <p><a href="http://code.google.com/p/google-code-prettify/">Download google-code-prettify</a> and view the readme for <a href="http://google-code-prettify.googlecode.com/svn/trunk/README.html">how to use</a>.</p>
635
- </td>
636
- </tr>
637
- </tbody>
638
- </table>
639
- </div>
640
- </div><!-- /row -->
641
-
642
- <!-- Labels -->
643
- <div class="row">
644
- <div class="span4">
645
- <h2>Inline labels</h2>
646
- <p>
647
- <code>&lt;span class="label"&gt;</code>
648
- </p>
649
- <p>Call attention to or flag any phrase in your body text.</p>
650
- </div>
651
- <div class="span12">
652
- <h3>Label anything</h3>
653
- <p>Ever needed one of those fancy <span class="label success">New!</span> or <span class="label important">Important</span> flags when writing code? Well, now you have them. Here's what's included by default:</p>
654
- <table class="bordered-table zebra-striped">
655
- <thead>
656
- <tr>
657
- <th style="width: 50%;">Label</th>
658
- <th>Result</th>
659
- </tr>
660
- </thead>
661
- <tbody>
662
- <tr>
663
- <td>
664
- <code>&lt;span class="label"&gt;Default&lt;/span&gt;</code>
665
- </td>
666
- <td>
667
- <span class="label">Default</span>
668
- </td>
669
- </tr>
670
- <tr>
671
- <td>
672
- <code>&lt;span class="label success"&gt;New&lt;/span&gt;</code>
673
- </td>
674
- <td>
675
- <span class="label success">New</span>
676
- </td>
677
- </tr>
678
- <tr>
679
- <td>
680
- <code>&lt;span class="label warning"&gt;Warning&lt;/span&gt;</code>
681
- </td>
682
- <td>
683
- <span class="label warning">Warning</span>
684
- </td>
685
- </tr>
686
- <tr>
687
- <td>
688
- <code>&lt;span class="label important"&gt;Important&lt;/span&gt;</code>
689
- </td>
690
- <td>
691
- <span class="label important">Important</span>
692
- </td>
693
- </tr>
694
- <tr>
695
- <td>
696
- <code>&lt;span class="label notice"&gt;Notice&lt;/span&gt;</code>
697
- </td>
698
- <td>
699
- <span class="label notice">Notice</span>
700
- </td>
701
- </tr>
702
- </tbody>
703
- </table>
704
- </div>
705
- </div><!-- /row -->
706
-
707
- </section>
708
-
709
-
710
-
711
- <!-- Media
712
- ================================================== -->
713
- <section id="media">
714
- <div class="page-header">
715
- <h1>Media <small>Displaying images and videos</small></h1>
716
- </div>
717
- <!-- Table structure -->
718
- <div class="row">
719
- <div class="span4">
720
- <h2>Media grid</h2>
721
- <p>Display thumbnails of varying sizes on pages with a low HTML footprint and minimal styles.</p>
722
- </div>
723
- <div class="span12">
724
- <h3>Example thumbnails</h3>
725
- <p>Thumbnails in the <code>.media-grid</code> can be any size, but they work best when mapped directly to the built-in Bootstrap grid system. Image widths like 90, 210, and 330 combine with a few pixels of padding to equal the <code>.span2</code>, <code>.span4</code>, and <code>.span6</code> column sizes.</p>
726
- <h4>Large</h4>
727
- <ul class="media-grid">
728
- <li>
729
- <a href="#">
730
- <img class="thumbnail" src="http://placehold.it/330x230" alt="">
731
- </a>
732
- </li>
733
- <li>
734
- <a href="#">
735
- <img class="thumbnail" src="http://placehold.it/330x230" alt="">
736
- </a>
737
- </li>
738
- </ul>
739
- <h4>Medium</h4>
740
- <ul class="media-grid">
741
- <li>
742
- <a href="#">
743
- <img class="thumbnail" src="http://placehold.it/210x150" alt="">
744
- </a>
745
- </li>
746
- <li>
747
- <a href="#">
748
- <img class="thumbnail" src="http://placehold.it/210x150" alt="">
749
- </a>
750
- </li>
751
- <li>
752
- <a href="#">
753
- <img class="thumbnail" src="http://placehold.it/210x150" alt="">
754
- </a>
755
- </li>
756
- <li>
757
- <a href="#">
758
- <img class="thumbnail" src="http://placehold.it/210x150" alt="">
759
- </a>
760
- </li>
761
- <li>
762
- <a href="#">
763
- <img class="thumbnail" src="http://placehold.it/210x150" alt="">
764
- </a>
765
- </li>
766
- </ul>
767
- <h4>Small</h4>
768
- <ul class="media-grid">
769
- <li>
770
- <a href="#">
771
- <img class="thumbnail" src="http://placehold.it/90x90" alt="">
772
- </a>
773
- </li>
774
- <li>
775
- <a href="#">
776
- <img class="thumbnail" src="http://placehold.it/90x90" alt="">
777
- </a>
778
- </li>
779
- <li>
780
- <a href="#">
781
- <img class="thumbnail" src="http://placehold.it/90x90" alt="">
782
- </a>
783
- </li>
784
- </ul>
785
- <h4>Coding them</h4>
786
- <p>Media grids are easy to use and rather simple on the markup side. Their dimensions are purely based on the size of the images included.</p>
787
- <pre class="prettyprint linenums">
788
- &lt;ul class="media-grid"&gt;
789
- &lt;li&gt;
790
- &lt;a href="#"&gt;
791
- &lt;img class="thumbnail" src="http://placehold.it/330x230" alt=""&gt;
792
- &lt;/a&gt;
793
- &lt;/li&gt;
794
- &lt;li&gt;
795
- &lt;a href="#"&gt;
796
- &lt;img class="thumbnail" src="http://placehold.it/330x230" alt=""&gt;
797
- &lt;/a&gt;
798
- &lt;/li&gt;
799
- &lt;/ul&gt;
800
- </pre>
801
- </div>
802
- </div><!-- /row -->
803
- </section>
804
-
805
-
806
-
807
- <!-- Tables
808
- ================================================== -->
809
- <section id="tables">
810
- <div class="page-header">
811
- <h1>Tables <small>For, you guessed it, tabular data</small></h1>
812
- </div>
813
- <!-- Table structure -->
814
- <div class="row">
815
- <div class="span4">
816
- <h2>Building tables</h2>
817
- <p>
818
- <code>&lt;table&gt;</code>
819
- <code>&lt;thead&gt;</code>
820
- <code>&lt;tbody&gt;</code>
821
- <code>&lt;tr&gt;</code>
822
- <code>&lt;th&gt;</code>
823
- <code>&lt;td&gt;</code>
824
- <code>&lt;colspan&gt;</code>
825
- <code>&lt;caption&gt;</code>
826
- </p>
827
- <p>Tables are great&mdash;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.</p>
828
- <p>Always wrap your column headers in a <code>&lt;thead&gt;</code> such that hierarchy is <code>&lt;thead&gt;</code> > <code>&lt;tr&gt;</code> > <code>&lt;th&gt;</code>.</p>
829
- <p>Similar to the column headers, all your table’s body content should be wrapped in a <code>&lt;tbody&gt;</code> so your hierarchy is <code>&lt;tbody&gt;</code> > <code>&lt;tr&gt;</code> > <code>&lt;td&gt;</code>.</p>
830
- </div>
831
- <div class="span12">
832
- <h3>Example: Default table styles</h3>
833
- <p>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.</p>
834
- <table>
835
- <thead>
836
- <tr>
837
- <th>#</th>
838
- <th>First Name</th>
839
- <th>Last Name</th>
840
- <th>Language</th>
841
- </tr>
842
- </thead>
843
- <tbody>
844
- <tr>
845
- <td>1</td>
846
- <td>Some</td>
847
- <td>One</td>
848
- <td>English</td>
849
- </tr>
850
- <tr>
851
- <td>2</td>
852
- <td>Joe</td>
853
- <td>Sixpack</td>
854
- <td>English</td>
855
- </tr>
856
- <tr>
857
- <td>3</td>
858
- <td>Stu</td>
859
- <td>Dent</td>
860
- <td>Code</td>
861
- </tr>
862
- </tbody>
863
- </table>
864
- <pre class="prettyprint linenums">
865
- &lt;table&gt;
866
- ...
867
- &lt;/table&gt;</pre>
868
- <h3>Example: Condensed table</h3>
869
- <p>For tables that require more data in tighter spaces, use the condensed flavor that cuts padding in half. It can also be used in conjunction with borders and zebra-stripes, just like the default table styles.</p>
870
- <table class="condensed-table">
871
- <thead>
872
- <tr>
873
- <th>#</th>
874
- <th>First Name</th>
875
- <th>Last Name</th>
876
- <th>Language</th>
877
- </tr>
878
- </thead>
879
- <tbody>
880
- <tr>
881
- <th>1</th>
882
- <td>Some</td>
883
- <td>One</td>
884
- <td>English</td>
885
- </tr>
886
- <tr>
887
- <th>2</th>
888
- <td>Joe</td>
889
- <td>Sixpack</td>
890
- <td>English</td>
891
- </tr>
892
- <tr>
893
- <th>3</th>
894
- <td>Stu</td>
895
- <td>Dent</td>
896
- <td>Code</td>
897
- </tr>
898
- </tbody>
899
- </table>
900
-
901
- <h3>Example: Bordered table</h3>
902
- <p>Make your tables look just a wee bit sleeker by rounding their corners and adding borders on all sides.</p>
903
- <table class="bordered-table">
904
- <thead>
905
- <tr>
906
- <th>#</th>
907
- <th>First Name</th>
908
- <th>Last Name</th>
909
- <th>Language</th>
910
- </tr>
911
- </thead>
912
- <tbody>
913
- <tr>
914
- <th>1</th>
915
- <td>Some</td>
916
- <td>One</td>
917
- <td>English</td>
918
- </tr>
919
- <tr>
920
- <th>2</th>
921
- <td>Joe</td>
922
- <td>Sixpack</td>
923
- <td>English</td>
924
- </tr>
925
- <tr>
926
- <th>3</th>
927
- <td>Stu</td>
928
- <td>Dent</td>
929
- <td>Code</td>
930
- </tr>
931
- </tbody>
932
- </table>
933
- <pre class="prettyprint linenums">
934
- &lt;table class="bordered-table"&gt;
935
- ...
936
- &lt;/table&gt;</pre>
937
- <h3>Example: Zebra-striped</h3>
938
- <p>Get a little fancy with your tables by adding zebra-striping&mdash;just add the <code>.zebra-striped</code> class.</p>
939
- <table class="bordered-table zebra-striped">
940
- <thead>
941
- <tr>
942
- <th>#</th>
943
- <th>First Name</th>
944
- <th>Last Name</th>
945
- <th>Language</th>
946
- </tr>
947
- </thead>
948
- <tbody>
949
- <tr>
950
- <td>1</td>
951
- <td>Some</td>
952
- <td>One</td>
953
- <td>English</td>
954
- </tr>
955
- <tr>
956
- <td>2</td>
957
- <td>Joe</td>
958
- <td>Sixpack</td>
959
- <td>English</td>
960
- </tr>
961
- <tr>
962
- <td>3</td>
963
- <td>Stu</td>
964
- <td>Dent</td>
965
- <td>Code</td>
966
- </tr>
967
- <tr>
968
- <td colspan="4">
969
- span 4 columns
970
- </td>
971
- </tr>
972
- <tr>
973
- <td colspan="2">
974
- span 2 columns
975
- </td>
976
- <td colspan="2">
977
- span 2 columns
978
- </td>
979
- </tr>
980
- </tbody>
981
- </table>
982
- <p><strong>Note:</strong> Zebra-striping is a progressive enhancement not available for older browsers like IE8 and below.</p>
983
- <pre class="prettyprint linenums">
984
- &lt;table class="zebra-striped"&gt;
985
- ...
986
- &lt;/table&gt;</pre>
987
- <h3>Example: Zebra-striped w/ TableSorter.js</h3>
988
- <p>Taking the previous example, we improve the usefulness of our tables by providing sorting functionality via <a href="http://jquery.com">jQuery</a> and the <a href="http://tablesorter.com/docs/">Tablesorter</a> plugin. <strong>Click any column’s header to change the sort.</strong></p>
989
- <table class="zebra-striped" id="sortTableExample">
990
- <thead>
991
- <tr>
992
- <th>#</th>
993
- <th class="yellow">First Name</th>
994
- <th class="blue">Last Name</th>
995
- <th class="green">Language</th>
996
- </tr>
997
- </thead>
998
- <tbody>
999
- <tr>
1000
- <td>1</td>
1001
- <td>Your</td>
1002
- <td>One</td>
1003
- <td>English</td>
1004
- </tr>
1005
- <tr>
1006
- <td>2</td>
1007
- <td>Joe</td>
1008
- <td>Sixpack</td>
1009
- <td>English</td>
1010
- </tr>
1011
- <tr>
1012
- <td>3</td>
1013
- <td>Stu</td>
1014
- <td>Dent</td>
1015
- <td>Code</td>
1016
- </tr>
1017
- </tbody>
1018
- </table>
1019
- <pre class="prettyprint linenums">
1020
- &lt;script src="js/jquery/jquery.tablesorter.min.js"&gt;&lt;/script&gt;
1021
- &lt;script &gt;
1022
- $(function() {
1023
- $("table#sortTableExample").tablesorter({ sortList: [[1,0]] });
1024
- });
1025
- &lt;/script&gt;
1026
- &lt;table class="zebra-striped"&gt;
1027
- ...
1028
- &lt;/table&gt;</pre>
1029
- </div>
1030
- </div><!-- /row -->
1031
- </section>
1032
-
1033
-
1034
-
1035
- <!-- Forms
1036
- ================================================== -->
1037
- <section id="forms">
1038
- <div class="page-header">
1039
- <h1>Forms</h1>
1040
- </div>
1041
- <div class="row">
1042
- <div class="span4">
1043
- <h2>Default styles</h2>
1044
- <p>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.</p>
1045
- </div>
1046
- <div class="span12">
1047
- <form>
1048
- <fieldset>
1049
- <legend>Example form legend</legend>
1050
- <div class="clearfix">
1051
- <label for="xlInput">X-Large input</label>
1052
- <div class="input">
1053
- <input class="xlarge" id="xlInput" name="xlInput" size="30" type="text" />
1054
- </div>
1055
- </div><!-- /clearfix -->
1056
- <div class="clearfix">
1057
- <label for="normalSelect">Select</label>
1058
- <div class="input">
1059
- <select name="normalSelect" id="normalSelect">
1060
- <option>1</option>
1061
- <option>2</option>
1062
- <option>3</option>
1063
- <option>4</option>
1064
- <option>5</option>
1065
- </select>
1066
- </div>
1067
- </div><!-- /clearfix -->
1068
- <div class="clearfix">
1069
- <label for="mediumSelect">Select</label>
1070
- <div class="input">
1071
- <select class="medium" name="mediumSelect" id="mediumSelect">
1072
- <option>1</option>
1073
- <option>2</option>
1074
- <option>3</option>
1075
- <option>4</option>
1076
- <option>5</option>
1077
- </select>
1078
- </div>
1079
- </div><!-- /clearfix -->
1080
- <div class="clearfix">
1081
- <label for="multiSelect">Multiple select</label>
1082
- <div class="input">
1083
- <select class="medium" size="5" multiple="multiple" name="multiSelect" id="multiSelect">
1084
- <option>1</option>
1085
- <option>2</option>
1086
- <option>3</option>
1087
- <option>4</option>
1088
- <option>5</option>
1089
- </select>
1090
- </div>
1091
- </div><!-- /clearfix -->
1092
- <div class="clearfix">
1093
- <label>Uneditable input</label>
1094
- <div class="input">
1095
- <span class="uneditable-input">Some value here</span>
1096
- </div>
1097
- </div><!-- /clearfix -->
1098
- <div class="clearfix">
1099
- <label for="disabledInput">Disabled input</label>
1100
- <div class="input">
1101
- <input class="xlarge disabled" id="disabledInput" name="disabledInput" size="30" type="text" placeholder="Disabled input here… carry on." disabled />
1102
- </div>
1103
- </div><!-- /clearfix -->
1104
- <div class="clearfix">
1105
- <label for="disabledInput">Disabled textarea</label>
1106
- <div class="input">
1107
- <textarea class="xxlarge" name="textarea" id="textarea" rows="3" disabled></textarea>
1108
- </div>
1109
- </div><!-- /clearfix -->
1110
- <div class="clearfix error">
1111
- <label for="errorInput">Input with error</label>
1112
- <div class="input">
1113
- <input class="xlarge error" id="errorInput" name="errorInput" size="30" type="text" />
1114
- <span class="help-inline">Small snippet of help text</span>
1115
- </div>
1116
- </div><!-- /clearfix -->
1117
- <div class="clearfix success">
1118
- <label for="successInput">Input with success</label>
1119
- <div class="input">
1120
- <input class="xlarge error" id="successInput" name="successInput" size="30" type="text" />
1121
- <span class="help-inline">Success!</span>
1122
- </div>
1123
- </div><!-- /clearfix -->
1124
- <div class="clearfix warning">
1125
- <label for="warningInput">Input with warning</label>
1126
- <div class="input">
1127
- <input class="xlarge error" id="warningInput" name="warningInput" size="30" type="text" />
1128
- <span class="help-inline">Ruh roh!</span>
1129
- </div>
1130
- </div><!-- /clearfix -->
1131
- </fieldset>
1132
- <fieldset>
1133
- <legend>Example form legend</legend>
1134
- <div class="clearfix">
1135
- <label for="prependedInput">Prepended text</label>
1136
- <div class="input">
1137
- <div class="input-prepend">
1138
- <span class="add-on">@</span>
1139
- <input class="medium" id="prependedInput" name="prependedInput" size="16" type="text" />
1140
- </div>
1141
- <span class="help-block">Here's some help text</span>
1142
- </div>
1143
- </div><!-- /clearfix -->
1144
- <div class="clearfix">
1145
- <label for="prependedInput2">Prepended checkbox</label>
1146
- <div class="input">
1147
- <div class="input-prepend">
1148
- <label class="add-on"><input type="checkbox" name="" id="" value="" /></label>
1149
- <input class="mini" id="prependedInput2" name="prependedInput2" size="16" type="text" />
1150
- </div>
1151
- </div>
1152
- </div><!-- /clearfix -->
1153
- <div class="clearfix">
1154
- <label for="appendedInput">Appended checkbox</label>
1155
- <div class="input">
1156
- <div class="input-append">
1157
- <input class="mini" id="appendedInput" name="appendedInput" size="16" type="text" />
1158
- <label class="add-on active"><input type="checkbox" name="" id="" value="" checked="checked" /></label>
1159
- </div>
1160
- </div>
1161
- </div><!-- /clearfix -->
1162
- <div class="clearfix">
1163
- <label for="fileInput">File input</label>
1164
- <div class="input">
1165
- <input class="input-file" id="fileInput" name="fileInput" type="file" />
1166
- </div>
1167
- </div><!-- /clearfix -->
1168
- </fieldset>
1169
- <fieldset>
1170
- <legend>Example form legend</legend>
1171
- <div class="clearfix">
1172
- <label id="optionsCheckboxes">List of options</label>
1173
- <div class="input">
1174
- <ul class="inputs-list">
1175
- <li>
1176
- <label>
1177
- <input type="checkbox" name="optionsCheckboxes" value="option1" />
1178
- <span>Option one is this and that&mdash;be sure to include why it’s great</span>
1179
- </label>
1180
- </li>
1181
- <li>
1182
- <label>
1183
- <input type="checkbox" name="optionsCheckboxes" value="option2" />
1184
- <span>Option two can also be checked and included in form results</span>
1185
- </label>
1186
- </li>
1187
- <li>
1188
- <label>
1189
- <input type="checkbox" name="optionsCheckboxes" value="option2" />
1190
- <span>Option three can&mdash;yes, you guessed it&mdash;also be checked and included in form results. Let's make it super long so that everyone can see how it wraps, too.</span>
1191
- </label>
1192
- </li>
1193
- <li>
1194
- <label class="disabled">
1195
- <input type="checkbox" name="optionsCheckboxes" value="option2" disabled />
1196
- <span>Option four cannot be checked as it is disabled.</span>
1197
- </label>
1198
- </li>
1199
- </ul>
1200
- <span class="help-block">
1201
- <strong>Note:</strong> Labels surround all the options for much larger click areas and a more usable form.
1202
- </span>
1203
- </div>
1204
- </div><!-- /clearfix -->
1205
- <div class="clearfix">
1206
- <label>Date range</label>
1207
- <div class="input">
1208
- <div class="inline-inputs">
1209
- <input class="small" type="text" value="May 1, 2011" />
1210
- <input class="mini" type="text" value="12:00am" />
1211
- to
1212
- <input class="small" type="text" value="May 8, 2011" />
1213
- <input class="mini" type="text" value="11:59pm" />
1214
- <span class="help-block">All times are shown as Pacific Standard Time (GMT -08:00).</span>
1215
- </div>
1216
- </div>
1217
- </div><!-- /clearfix -->
1218
- <div class="clearfix">
1219
- <label for="textarea">Textarea</label>
1220
- <div class="input">
1221
- <textarea class="xxlarge" id="textarea2" name="textarea2" rows="3"></textarea>
1222
- <span class="help-block">
1223
- Block of help text to describe the field above if need be.
1224
- </span>
1225
- </div>
1226
- </div><!-- /clearfix -->
1227
- <div class="clearfix">
1228
- <label id="optionsRadio">List of options</label>
1229
- <div class="input">
1230
- <ul class="inputs-list">
1231
- <li>
1232
- <label>
1233
- <input type="radio" checked name="optionsRadios" value="option1" />
1234
- <span>Option one is this and that&mdash;be sure to include why it’s great</span>
1235
- </label>
1236
- </li>
1237
- <li>
1238
- <label>
1239
- <input type="radio" name="optionsRadios" value="option2" />
1240
- <span>Option two is something else and selecting it will deselect option 1</span>
1241
- </label>
1242
- </li>
1243
- </ul>
1244
- </div>
1245
- </div><!-- /clearfix -->
1246
- <div class="actions">
1247
- <input type="submit" class="btn primary" value="Save changes">&nbsp;<button type="reset" class="btn">Cancel</button>
1248
- </div>
1249
- </fieldset>
1250
- </form>
1251
- </div>
1252
- </div><!-- /row -->
1253
-
1254
- <br />
1255
-
1256
- <div class="row">
1257
- <div class="span4">
1258
- <h2>Stacked forms</h2>
1259
- <p>Add <code>.form-stacked</code> 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.</p>
1260
- </div>
1261
- <div class="span12">
1262
- <form action="" class="form-stacked">
1263
- <fieldset>
1264
- <legend>Example form legend</legend>
1265
- <div class="clearfix">
1266
- <label for="xlInput3">X-Large input</label>
1267
- <div class="input">
1268
- <input class="xlarge" id="xlInput3" name="xlInput3" size="30" type="text" />
1269
- </div>
1270
- </div><!-- /clearfix -->
1271
- <div class="clearfix">
1272
- <label for="stackedSelect">Select</label>
1273
- <div class="input">
1274
- <select name="stackedSelect" id="stackedSelect">
1275
- <option>1</option>
1276
- <option>2</option>
1277
- <option>3</option>
1278
- <option>4</option>
1279
- <option>5</option>
1280
- </select>
1281
- </div>
1282
- </div><!-- /clearfix -->
1283
- </fieldset>
1284
- <fieldset>
1285
- <legend>Example form legend</legend>
1286
- <div class="clearfix error">
1287
- <label for="xlInput4">X-Large input</label>
1288
- <div class="input">
1289
- <input class="xlarge error" id="xlInput4" name="xlInput4" size="30" type="text" />
1290
- <span class="help-inline">Small snippet of help text</span>
1291
- </div>
1292
- </div><!-- /clearfix -->
1293
- <div class="clearfix">
1294
- <label id="optionsCheckboxes">List of options</label>
1295
- <div class="input">
1296
- <ul class="inputs-list">
1297
- <li>
1298
- <label>
1299
- <input type="checkbox" name="optionsCheckboxes" value="option1" />
1300
- <span>Option one is this and that&mdash;be sure to include why it’s great</span>
1301
- </label>
1302
- </li>
1303
- <li>
1304
- <label>
1305
- <input type="checkbox" name="optionsCheckboxes" value="option2" />
1306
- <span>Option two can also be checked and included in form results</span>
1307
- </label>
1308
- </li>
1309
- </ul>
1310
- <span class="help-block">
1311
- <strong>Note:</strong> Labels surround all the options for much larger click areas and a more usable form.
1312
- </span>
1313
- </div>
1314
- </div><!-- /clearfix -->
1315
- </fieldset>
1316
- <div class="actions">
1317
- <button type="submit" class="btn primary">Save changes</button>&nbsp;<button type="reset" class="btn">Cancel</button>
1318
- </div>
1319
- </form>
1320
- </div>
1321
- </div><!-- /row -->
1322
-
1323
- <div class="row">
1324
- <div class="span4">
1325
- <h2>Form field sizes</h2>
1326
- <p>Customize any form <code>input</code>, <code>select</code>, or <code>textarea</code> width by adding just a few classes to your markup.</p>
1327
- <p>As of v1.3.0, we have added the grid-based sizing classes for form elements. <strong>Please use the these over the existing <code>.mini</code>, <code>.small</code>, etc classes.</strong></p>
1328
- </div>
1329
- <div class="span12">
1330
- <form action="">
1331
- <div class="clearfix"><input class="span2" id="" name="" type="text" placeholder=".span2" /></div>
1332
- <div class="clearfix"><input class="span3" id="" name="" type="text" placeholder=".span3" /></div>
1333
- <div class="clearfix"><input class="span4" id="" name="" type="text" placeholder=".span4" /></div>
1334
- <div class="clearfix"><input class="span5" id="" name="" type="text" placeholder=".span5" /></div>
1335
- <div class="clearfix"><input class="span6" id="" name="" type="text" placeholder=".span6" /></div>
1336
- <div class="clearfix"><input class="span7" id="" name="" type="text" placeholder=".span7" /></div>
1337
- <div class="clearfix"><input class="span8" id="" name="" type="text" placeholder=".span8" /></div>
1338
- <div class="clearfix"><input class="span9" id="" name="" type="text" placeholder=".span9" /></div>
1339
- <div class="clearfix"><input class="span10" id="" name="" type="text" placeholder=".span10" /></div>
1340
- <div class="clearfix"><input class="span11" id="" name="" type="text" placeholder=".span11" /></div>
1341
- <div class="clearfix"><input class="span12" id="" name="" type="text" placeholder=".span12" /></div>
1342
- </form>
1343
- </div>
1344
- </div>
1345
-
1346
- <div class="row">
1347
- <div class="span4">
1348
- <h2>Buttons</h2>
1349
- <p>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.</p>
1350
- <p>All buttons default to a light gray style, but a number of functional classes can be applied for different color styles. These classes include a blue <code>.primary</code> class, a light-blue <code>.info</code> class, a green <code>.success</code> class, and a red <code>.danger</code> class.</p>
1351
- </div>
1352
- <div class="span12">
1353
- <h3>Example buttons</h3>
1354
- <p>Button styles can be applied to anything with the <code>.btn</code> applied. Typically you’ll want to apply these to only <code>&lt;a&gt;</code>, <code>&lt;button&gt;</code>, and select <code>&lt;input&gt;</code> elements. Here’s how it looks:</p>
1355
- <div class="well" style="padding: 14px 19px;">
1356
- <button class="btn primary">Primary</button>&nbsp;<button class="btn">Default</button>&nbsp;<button class="btn info">Info</button>&nbsp;<button class="btn success">Success</button>&nbsp;<button class="btn danger">Danger</button>
1357
- </div>
1358
- <h3>Alternate sizes</h3>
1359
- <p>Fancy larger or smaller buttons? Have at it!</p>
1360
- <div class="well">
1361
- <a href="#" class="btn large primary">Primary action</a>
1362
- <a href="#" class="btn large">Action</a>
1363
- </div>
1364
- <div class="well" style="padding: 16px 19px;">
1365
- <a href="#" class="btn small primary">Primary action</a>
1366
- <a href="#" class="btn small">Action</a>
1367
- </div>
1368
- <h3>Disabled state</h3>
1369
- <p>For buttons that are not active or are disabled by the app for one reason or another, use the disabled state. That’s <code>.disabled</code> for links and <code>:disabled</code> for <code>&lt;button&gt;</code> elements.</p>
1370
- <h4>Links</h4>
1371
- <div class="well">
1372
- <a href="#" class="btn large primary disabled">Primary action</a>
1373
- <a href="#" class="btn large disabled">Action</a>
1374
- </div>
1375
- <h4>Buttons</h4>
1376
- <div class="well">
1377
- <button class="btn large primary disabled" disabled="disabled">Primary action</button>&nbsp;<button class="btn large" disabled>Action</button>
1378
- </div>
1379
- </div>
1380
- </div><!-- /row -->
1381
- </section>
1382
-
1383
-
1384
-
1385
- <!-- Navigation
1386
- ================================================== -->
1387
- <section id="navigation">
1388
- <div class="page-header">
1389
- <h1>Navigation</h1>
1390
- </div>
1391
- <h2>Fixed topbar</h2>
1392
- <div class="topbar-wrapper" style="z-index: 5;">
1393
- <div class="topbar" data-dropdown="dropdown" >
1394
- <div class="topbar-inner">
1395
- <div class="container">
1396
- <h3><a href="#">Project Name</a></h3>
1397
- <ul class="nav">
1398
- <li class="active"><a href="#">Home</a></li>
1399
- <li><a href="#">Link</a></li>
1400
- <li><a href="#">Link</a></li>
1401
- <li><a href="#">Link</a></li>
1402
- <li class="dropdown">
1403
- <a href="#" class="dropdown-toggle">Dropdown</a>
1404
- <ul class="dropdown-menu">
1405
- <li><a href="#">Secondary link</a></li>
1406
- <li><a href="#">Something else here</a></li>
1407
- <li class="divider"></li>
1408
- <li><a href="#">Another link</a></li>
1409
- </ul>
1410
- </li>
1411
- </ul>
1412
- <form class="pull-left" action="">
1413
- <input type="text" placeholder="Search" />
1414
- </form>
1415
- <ul class="nav secondary-nav">
1416
- <li class="dropdown">
1417
- <a href="#" class="dropdown-toggle">Dropdown</a>
1418
- <ul class="dropdown-menu">
1419
- <li><a href="#">Secondary link</a></li>
1420
- <li><a href="#">Something else here</a></li>
1421
- <li class="divider"></li>
1422
- <li><a href="#">Another link</a></li>
1423
- </ul>
1424
- </li>
1425
- </ul>
1426
- </div>
1427
- </div><!-- /topbar-inner -->
1428
- </div><!-- /topbar -->
1429
- </div><!-- /topbar-wrapper -->
1430
-
1431
- <div class="row">
1432
- <div class="span5">
1433
- <h4>What is it</h4>
1434
- <p>Our topbar is a fixed bar that houses a website’s logo or name, primary navigation, and search form.</p>
1435
- </div>
1436
- <div class="span5">
1437
- <h4>Customizable</h4>
1438
- <p>All elements within, and the entire topbar as well, are optional. You can choose to include a logo/name, nav, search, and a secondary nav&mdash;or any combination of that.</p>
1439
- </div>
1440
- <div class="span6">
1441
- <h4>Dropdowns included</h4>
1442
- <p>As part of the main navigation, we’ve included the ability for you to add dropdowns to your nav. Check out the secondary nav above (right aligned) to see how it’s done. Dropdowns <code>li</code> tags also support <code>.active</code> for showing current page selection.</p>
1443
- </div>
1444
- </div>
1445
- <p><strong>Note:</strong> When using the topbar on any page, be sure to account for the overlap it causes by adding <code>padding-top: 40px;</code> to your <code>body</code>.</p>
1446
-
1447
- <br />
1448
-
1449
- <div class="row">
1450
- <div class="span4">
1451
- <h2>Tabs and pills</h2>
1452
- <p>Create simple secondary navigation with a <code>&lt;ul&gt;</code>. Swap between tabs or pills by adding the appropriate class.</p>
1453
- <p>Great for sub-sections of content like our account settings pages and user timelines for toggling between pages of like content. Available in tabbed or pill styles.</p>
1454
- </div>
1455
- <div class="span12">
1456
- <h3>Basic tabs example</h3>
1457
- <p>Tabs can be used as regular navigation (loading external pages in the same tab) or as tabbable content areas for swapping out panes of content. We have a <a href="./javascript.html#tabs">tabs plugin</a> that can be used to integrate the latter.</p>
1458
- <ul class="tabs">
1459
- <li class="active"><a href="#">Home</a></li>
1460
- <li><a href="#">Profile</a></li>
1461
- <li><a href="#">Messages</a></li>
1462
- <li><a href="#">Settings</a></li>
1463
- <li><a href="#">Contact</a></li>
1464
- <li class="dropdown" data-dropdown="dropdown">
1465
- <a href="#" class="dropdown-toggle">Dropdown</a>
1466
- <ul class="dropdown-menu">
1467
- <li><a href="#">Secondary link</a></li>
1468
- <li><a href="#">Something else here</a></li>
1469
- <li class="divider"></li>
1470
- <li><a href="#">Another link</a></li>
1471
- </ul>
1472
- </li>
1473
- </ul>
1474
- <pre class="prettyprint linenums">
1475
- &lt;ul class="tabs"&gt;
1476
- &lt;li class="active"&gt;&lt;a href="#"&gt;Home&lt;/a&gt;&lt;/li&gt;
1477
- &lt;li&gt;&lt;a href="#"&gt;Profile&lt;/a&gt;&lt;/li&gt;
1478
- &lt;li&gt;&lt;a href="#"&gt;Messages&lt;/a&gt;&lt;/li&gt;
1479
- &lt;li&gt;&lt;a href="#"&gt;Settings&lt;/a&gt;&lt;/li&gt;
1480
- &lt;li&gt;&lt;a href="#"&gt;Contact&lt;/a&gt;&lt;/li&gt;
1481
- &lt;/ul&gt;
1482
- </pre>
1483
- <h3>Basic pills example</h3>
1484
- <ul class="pills">
1485
- <li class="active"><a href="#">Home</a></li>
1486
- <li><a href="#">Profile</a></li>
1487
- <li><a href="#">Messages</a></li>
1488
- <li><a href="#">Settings</a></li>
1489
- <li><a href="#">Contact</a></li>
1490
- </ul>
1491
- <pre class="prettyprint linenums">
1492
- &lt;ul class="pills"&gt;
1493
- &lt;li class="active"&gt;&lt;a href="#"&gt;Home&lt;/a&gt;&lt;/li&gt;
1494
- &lt;li&gt;&lt;a href="#"&gt;Profile&lt;/a&gt;&lt;/li&gt;
1495
- &lt;li&gt;&lt;a href="#"&gt;Messages&lt;/a&gt;&lt;/li&gt;
1496
- &lt;li&gt;&lt;a href="#"&gt;Settings&lt;/a&gt;&lt;/li&gt;
1497
- &lt;li&gt;&lt;a href="#"&gt;Contact&lt;/a&gt;&lt;/li&gt;
1498
- &lt;/ul&gt;
1499
- </pre>
1500
- </div>
1501
- </div><!-- /row -->
1502
-
1503
- <!-- Breadcrumbs -->
1504
- <div class="row">
1505
- <div class="span4">
1506
- <h2>Breadcrumbs</h2>
1507
- <p>Breadcrumb navigation is used as a way to show users where they are within an app or a site, but not for primary navigation.</p>
1508
- </div>
1509
- <div class="span12">
1510
- <ul class="breadcrumb">
1511
- <li class="active">Home</li>
1512
- </ul>
1513
- <ul class="breadcrumb">
1514
- <li><a href="#">Home</a> <span class="divider">/</span></li>
1515
- <li class="active">Middle page</li>
1516
- </ul>
1517
- <ul class="breadcrumb">
1518
- <li><a href="#">Home</a> <span class="divider">/</span></li>
1519
- <li><a href="#">Middle page</a> <span class="divider">/</span></li>
1520
- <li class="active">Another one</li>
1521
- </ul>
1522
- <ul class="breadcrumb">
1523
- <li><a href="#">Home</a> <span class="divider">/</span></li>
1524
- <li><a href="#">Middle page</a> <span class="divider">/</span></li>
1525
- <li><a href="#">Another one</a> <span class="divider">/</span></li>
1526
- <li class="active">You are here</li>
1527
- </ul>
1528
- <pre class="prettyprint linenums">
1529
- &lt;ul class="breadcrumb"&gt;
1530
- &lt;li&gt;&lt;a href="#"&gt;Home&lt;/a&gt; &lt;span class="divider"&gt;/&lt;/span&gt;&lt;/li&gt;
1531
- &lt;li&gt;&lt;a href="#"&gt;Middle page&lt;/a&gt; &lt;span class="divider"&gt;/&lt;/span&gt;&lt;/li&gt;
1532
- &lt;li&gt;&lt;a href="#"&gt;Another one&lt;/a&gt; &lt;span class="divider"&gt;/&lt;/span&gt;&lt;/li&gt;
1533
- &lt;li class="active"&gt;You are here&lt;/li&gt;
1534
- &lt;/ul&gt;
1535
- </pre>
1536
- </div>
1537
- </div>
1538
-
1539
- <!-- Pagination -->
1540
- <div class="row">
1541
- <div class="span4">
1542
- <h2>Pagination</h2>
1543
- <p>Ultra simplistic and minimally styled pagination inspired by Rdio. The large block is hard to miss, easily scalable, and provides large click areas.</p>
1544
- </div>
1545
- <div class="span12">
1546
- <div class="pagination">
1547
- <ul>
1548
- <li class="prev disabled"><a href="#">&larr; Previous</a></li>
1549
- <li class="active"><a href="#">1</a></li>
1550
- <li><a href="#">2</a></li>
1551
- <li><a href="#">3</a></li>
1552
- <li><a href="#">4</a></li>
1553
- <li><a href="#">5</a></li>
1554
- <li class="next"><a href="#">Next &rarr;</a></li>
1555
- </ul>
1556
- </div>
1557
- <div class="pagination">
1558
- <ul>
1559
- <li class="prev"><a href="#">&larr; Previous</a></li>
1560
- <li class="active"><a href="#">10</a></li>
1561
- <li><a href="#">11</a></li>
1562
- <li><a href="#">12</a></li>
1563
- <li class="disabled"><a href="#">…</a></li>
1564
- <li><a href="#">19</a></li>
1565
- <li><a href="#">20</a></li>
1566
- <li><a href="#">21</a></li>
1567
- <li class="next"><a href="#">Next &rarr;</a></li>
1568
- </ul>
1569
- </div>
1570
- <div class="pagination">
1571
- <ul>
1572
- <li class="prev"><a href="#">&larr; Previous</a></li>
1573
- <li><a href="#">10</a></li>
1574
- <li><a href="#">11</a></li>
1575
- <li><a href="#">12</a></li>
1576
- <li><a href="#">13</a></li>
1577
- <li><a href="#">14</a></li>
1578
- <li class="active"><a href="#">15</a></li>
1579
- <li><a href="#">16</a></li>
1580
- <li><a href="#">17</a></li>
1581
- <li><a href="#">18</a></li>
1582
- <li><a href="#">19</a></li>
1583
- <li><a href="#">20</a></li>
1584
- <li class="next"><a href="#">Next &rarr;</a></li>
1585
- </ul>
1586
- </div>
1587
- <pre class="prettyprint linenums">
1588
- &lt;div class="pagination"&gt;
1589
- &lt;ul&gt;
1590
- &lt;li class="prev disabled"&gt;&lt;a href="#"&gt;&amp;larr; Previous&lt;/a&gt;&lt;/li>
1591
- &lt;li class="active"&gt;&lt;a href="#"&gt;1&lt;/a&gt;&lt;/li&gt;
1592
- &lt;li&gt;&lt;a href="#"&gt;2&lt;/a&gt;&lt;/li&gt;
1593
- &lt;li&gt;&lt;a href="#"&gt;3&lt;/a&gt;&lt;/li&gt;
1594
- &lt;li&gt;&lt;a href="#"&gt;4&lt;/a&gt;&lt;/li&gt;
1595
- &lt;li&gt;&lt;a href="#"&gt;5&lt;/a&gt;&lt;/li&gt;
1596
- &lt;li class="next"&gt;&lt;a href="#"&gt;Next &amp;rarr;&lt;/a&gt;&lt;/li>
1597
- &lt;/ul&gt;
1598
- &lt;/div&gt;
1599
- </pre>
1600
- </div>
1601
- </div><!-- /row -->
1602
-
1603
- </section>
1604
-
1605
-
1606
-
1607
- <!-- Alerts & Messages
1608
- ================================================== -->
1609
- <section id="alerts">
1610
- <div class="page-header">
1611
- <h1>Alerts &amp; Errors <small>Styles for success, warning, error, and info messages</small></h1>
1612
- </div>
1613
- <!-- Basic alert messages -->
1614
- <div class="row">
1615
- <div class="span4">
1616
- <h2>Basic alerts</h2>
1617
- <p><code>.alert-message</code></p>
1618
- <p>One-line messages for highlighting the failure, possible failure, or success of an action. Particularly useful for forms.</p>
1619
- <p><a class="btn js-btn" href="./javascript.html#alerts">Get the javascript &raquo;</a></p>
1620
- </div>
1621
- <div class="span12">
1622
- <div class="alert-message warning">
1623
- <a class="close" href="#">&times;</a>
1624
- <p><strong>Holy guacamole!</strong> Best check yo self, you’re not <a href="#">looking too good</a>.</p>
1625
- </div>
1626
- <div class="alert-message error">
1627
- <a class="close" href="#">&times;</a>
1628
- <p><strong>Oh snap!</strong> Change this and that and <a href="#">try again</a>.</p>
1629
- </div>
1630
- <div class="alert-message success">
1631
- <a class="close" href="#">&times;</a>
1632
- <p><strong>Well done!</strong> You successfully <a href="#">read this</a> alert message.</p>
1633
- </div>
1634
- <div class="alert-message info">
1635
- <a class="close" href="#">&times;</a>
1636
- <p><strong>Heads up!</strong> This is an alert that needs your attention, but it’s not <a href="#">a huge priority</a> just yet.</p>
1637
- </div>
1638
-
1639
- <h4>Example code</h4>
1640
- <pre class="prettyprint linenums">
1641
- &lt;div class="alert-message warning"&gt;
1642
- &lt;a class="close" href="#"&gt;&times;&lt;/a&gt;
1643
- &lt;p&gt;&lt;strong&gt;Holy guacamole!&lt;/strong&gt; Best check yo self, you’re not looking too good.&lt;/p&gt;
1644
- &lt;/div&gt;
1645
- </pre>
1646
- </div>
1647
- </div><!-- /row -->
1648
- <!-- Block messages -->
1649
- <div class="row">
1650
- <div class="span4">
1651
- <h2>Block messages</h2>
1652
- <p><code>.alert-message.block-message</code></p>
1653
- <p>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.</p>
1654
- <p><a class="btn js-btn" href="./javascript.html#alerts">Get the javascript &raquo;</a></p>
1655
- </div>
1656
- <div class="span12">
1657
- <div class="alert-message block-message warning">
1658
- <a class="close" href="#">&times;</a>
1659
- <p><strong>Holy guacamole! This is a warning!</strong> 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.</p>
1660
- <div class="alert-actions">
1661
- <a class="btn small" href="#">Take this action</a> <a class="btn small" href="#">Or do this</a>
1662
- </div>
1663
- </div>
1664
- <div class="alert-message block-message error">
1665
- <a class="close" href="#">&times;</a>
1666
- <p><strong>Oh snap! You got an error!</strong> Change this and that and <a href="#">try again</a>.</p>
1667
- <ul>
1668
- <li>Duis mollis est non commodo luctus</li>
1669
- <li>Nisi erat porttitor ligula</li>
1670
- <li>Eget lacinia odio sem nec elit</li>
1671
- </ul>
1672
- <div class="alert-actions">
1673
- <a class="btn small" href="#">Take this action</a> <a class="btn small" href="#">Or do this</a>
1674
- </div>
1675
- </div>
1676
- <div class="alert-message block-message success">
1677
- <a class="close" href="#">&times;</a>
1678
- <p><strong>Well done!</strong> You successfully read this alert message. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Maecenas faucibus mollis interdum.</p>
1679
- <div class="alert-actions">
1680
- <a class="btn small" href="#">Take this action</a> <a class="btn small" href="#">Or do this</a>
1681
- </div>
1682
- </div>
1683
- <div class="alert-message block-message info">
1684
- <a class="close" href="#">&times;</a>
1685
- <p><strong>Heads up!</strong> This is an alert that needs your attention, but it’s not a huge priority just yet.</p>
1686
- <div class="alert-actions">
1687
- <a class="btn small" href="#">Take this action</a> <a class="btn small" href="#">Or do this</a>
1688
- </div>
1689
- </div>
1690
-
1691
- <h4>Example code</h4>
1692
- <pre class="prettyprint linenums">
1693
- &lt;div class="alert-message block-message warning"&gt;
1694
- &lt;a class="close" href="#"&gt;&times;&lt;/a&gt;
1695
- &lt;p&gt;&lt;strong&gt;Holy guacamole! This is a warning!&lt;/strong&gt; 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.&lt;/p&gt;
1696
- &lt;div class="alert-actions"&gt;
1697
- &lt;a class="btn small" href="#"&gt;Take this action&lt;/a&gt; &lt;a class="btn small" href="#"&gt;Or do this&lt;/a>
1698
- &lt;/div&gt;
1699
- &lt;/div&gt;
1700
- </pre>
1701
- </div>
1702
- </div><!-- /row -->
1703
- </section>
1704
-
1705
-
1706
- <!-- Popovers
1707
- ================================================== -->
1708
- <section id="popovers">
1709
- <div class="page-header">
1710
- <h1>Popovers <small>Components for displaying content in modals, tooltips, and popovers</small></h1>
1711
- </div>
1712
- <div class="row">
1713
- <div class="span4">
1714
- <h2>Modals</h2>
1715
- <p>Modals&mdash;dialogs or lightboxes&mdash;are great for contextual actions in situations where it’s important that the background context be maintained.</p>
1716
- <p><a class="btn js-btn" href="./javascript.html#modal">Get the javascript &raquo;</a></p>
1717
- </div>
1718
- <div class="span12">
1719
- <div class="well" style="background-color: #888; border: none; padding: 40px;">
1720
- <!-- Modal -->
1721
- <div class="modal" style="position: relative; top: auto; left: auto; margin: 0 auto; z-index: 1">
1722
- <div class="modal-header">
1723
- <a href="#" class="close">&times;</a>
1724
- <h3>Modal Heading</h3>
1725
- </div>
1726
- <div class="modal-body">
1727
- <p>One fine body…</p>
1728
- </div>
1729
- <div class="modal-footer">
1730
- <a href="#" class="btn primary">Primary</a>
1731
- <a href="#" class="btn secondary">Secondary</a>
1732
- </div>
1733
- </div>
1734
- </div>
1735
- </div>
1736
- </div><!-- /row -->
1737
-
1738
- <!-- Tooltips -->
1739
- <div class="row">
1740
- <div class="span4">
1741
- <h2>Tooltips</h2>
1742
- <p>Twipsies are super useful for aiding a confused user and pointing them in the right direction.</p>
1743
- <p><a class="btn js-btn" href="./javascript.html#twipsy">Get the javascript &raquo;</a></p>
1744
- </div>
1745
- <div class="span12">
1746
- <div class="twipsies well">
1747
- <div style="position: relative">
1748
- <p class="muted" style="margin-bottom: 0">
1749
- Lorem ipsum dolar sit amet illo error <a href="#" title="below">ipsum</a> veritatis aut iste perspiciatis iste voluptas natus illo quasi odit aut natus consequuntur consequuntur, aut natus illo voluptatem odit perspiciatis laudantium rem doloremque totam voluptas. <a href="#" title="right">Voluptasdicta</a> eaque beatae aperiam ut enim voluptatem explicabo explicabo, voluptas quia odit fugit accusantium totam totam architecto explicabo sit quasi fugit fugit, totam doloremque unde sunt <a href="#" title="left">sed</a> dicta quae accusantium fugit voluptas nemo voluptas voluptatem <a href="#" title="above">rem</a> quae aut veritatis quasi quae.
1750
- </p>
1751
- </div>
1752
- </div>
1753
- </div>
1754
- </div><!-- /row -->
1755
-
1756
- <!-- Popovers -->
1757
- <div class="row">
1758
- <div class="span4">
1759
- <h2>Popovers</h2>
1760
- <p>Use popovers to provide subtextual information to a page without affecting layout.</p>
1761
- <p><a class="btn js-btn" href="./javascript.html#popover">Get the javascript &raquo;</a></p>
1762
- </div>
1763
- <div class="span12">
1764
- <div class="well popover-well">
1765
- <div class="popover-wrapper">
1766
- <div class="popover left">
1767
- <div class="arrow"></div>
1768
- <div class="inner">
1769
- <h3 class="title">Popover Title</h3>
1770
- <div class="content">
1771
- <p>Etiam porta sem malesuada magna mollis euismod. Maecenas faucibus mollis interdum. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
1772
- </div>
1773
- </div>
1774
- </div>
1775
- <img class="large-bird" src="assets/img/bird.png" >
1776
- </div>
1777
- </div>
1778
- </div>
1779
- </div><!-- /row -->
1780
- </section>
1781
-
1782
-
1783
- <!-- Using Javascript w/ Bootstrap
1784
- ================================================== -->
1785
-
1786
- <section id="javascript">
1787
- <div class="page-header">
1788
- <h1>Using javascript with Bootstrap <small>An index of plugins to get you started</small></h1>
1789
- </div>
1790
- <div class="row">
1791
- <div class="span4">
1792
- <h2>Getting started</h2>
1793
- <p>Integrating javascript with the Bootstrap library is super easy. Below we go over the basics and provide you with some awesome plugins to get you started!</p>
1794
- <p><a class="btn primary" href="./javascript.html">View javascript docs &raquo;</a></p>
1795
- </div>
1796
- <div class="span12">
1797
- <h3>What's included</h3>
1798
- <p>Bring some of Bootstrap's primary components to life with new custom plugins that work with <a href="http://jquery.com/" target="_blank">jQuery</a> and <a href="http://ender.no.de" target="_blank">Ender</a>. We encourage you to extend and modify them to fit your specific development needs.</p>
1799
- <table class="bordered-table zebra-striped">
1800
- <thead>
1801
- <tr>
1802
- <th style="width: 150px;">File</th>
1803
- <th>Description</th>
1804
- </tr>
1805
- </thead>
1806
- <tbody>
1807
- <tr>
1808
- <td><a href="./javascript.html#modal">bootstrap-modal.js</a></td>
1809
- <td>Our Modal plugin is a <strong>super</strong> slim take on the traditional modal js plugin! We took special care to include only the bare functionality that we require at twitter.</td>
1810
- </tr>
1811
- <tr>
1812
- <td><a href="./javascript.html#alerts">bootstrap-alerts.js</a></td>
1813
- <td>The alert plugin is a super tiny class for adding close functionality to alerts.</td>
1814
- </tr>
1815
- <tr>
1816
- <td><a href="./javascript.html#dropdown">bootstrap-dropdown.js</a></td>
1817
- <td>This plugin is for adding dropdown interaction to the bootstrap topbar or tabbed navigations.</td>
1818
- </tr>
1819
- <tr>
1820
- <td><a href="./javascript.html#scrollspy">bootstrap-scrollspy.js</a></td>
1821
- <td>The ScrollSpy plugin is for adding an auto updating nav based on scroll position to the bootstrap topbar.</td>
1822
- </tr>
1823
- <tr>
1824
- <td><a href="./javascript.html#buttons">bootstrap-buttons.js</a></td>
1825
- <td>This plugin offers additional functionality for managing button state.</td>
1826
- </tr>
1827
- <tr>
1828
- <td><a href="./javascript.html#tabs">bootstrap-tabs.js</a></td>
1829
- <td>This plugin adds quick, dynamic tab and pill functionality for cycling through local content.</td>
1830
- </tr>
1831
- <tr>
1832
- <td><a href="./javascript.html#twipsy">bootstrap-twipsy.js</a></td>
1833
- <td>Based on the excellent jQuery.tipsy plugin written by Jason Frame; twipsy is an updated version, which doesn't rely on images, uses css3 for animations, and data-attributes for local title storage!</td>
1834
- </tr>
1835
- <tr>
1836
- <td><a href="./javascript.html#popover">bootstrap-popover.js</a></td>
1837
- <td>The popover plugin provides a simple interface for adding popovers to your application. It extends the <a href="#twipsy">boostrap-twipsy.js</a> plugin, so be sure to grab that file as well when including popovers in your project!</td>
1838
- </tr>
1839
- </tbody>
1840
- </table>
1841
- <h3>Is javascript necessary?</h3>
1842
- <p><strong>Nope!</strong> Bootstrap is designed first and foremost to be a CSS library. This javascript provides a basic interactive layer on top of the included styles.</p>
1843
- <p>However, for those who do need javascript, we've provided the plugins above to help you understand how to integrate Bootstrap with javascript and to give you a quick, lightweight option for the basic functionality right away.</p>
1844
- <p>For more information and to see some live demos, please refer to our <a href="./javascript.html">plugin documentation page</a>.</p>
1845
- </div>
1846
- </div>
1847
-
1848
-
1849
- <!-- Using Bootstrap w/ Less
1850
- ================================================== -->
1851
- <section id="less">
1852
- <div class="page-header">
1853
- <h1>Using Bootstrap with Less <small>Supercharge your CSS with variables, mixins, and functions</small></h1>
1854
- </div>
1855
- <div class="row">
1856
- <div class="span4">
1857
- <p>Bootstrap was built from <a href="http://markdotto.com/bootstrap/">Preboot</a>, an open-source pack of mixins and variables to be used in conjunction with <a href="http://lesscss.org" target="_blank">Less</a>, a CSS preprocessor for faster and easier web development.</p>
1858
- <p>Check out how we used Preboot in Bootstrap and how you can make use of it should you choose to run Less on your next project.</p>
1859
- </div>
1860
- <div class="span12">
1861
- <h2>How to use it</h2>
1862
- <p>Use this option to make full use of Bootstrap’s Less variables, mixins, and nesting in CSS via javascript in your browser.</p>
1863
- <pre class="prettyprint linenums">
1864
- &lt;link rel="stylesheet/less" href="less/bootstrap.less" media="all" /&gt;
1865
- &lt;script src="js/less-1.1.4.min.js"&gt;&lt;/script&gt;</pre>
1866
- <p>Not feeling the .js solution? <a href="http://incident57.com/less" target="_blank">Try the Less Mac app</a> or <a href="http://lesscss.org/#-client-side-usage" target="_blank">use Node.js</a> to compile when you deploy your code.</p>
1867
-
1868
- <h2>What’s included</h2>
1869
- <p>Here are some of the highlights of what’s included in Twitter Bootstrap as part of Bootstrap. Head over to the Bootstrap website or Github project page to download and learn more.</p>
1870
- <h3>Variables</h3>
1871
- <p>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.</p>
1872
- <pre class="prettyprint linenums">
1873
- // Links
1874
- @linkColor: #8b59c2;
1875
- @linkColorHover: darken(@linkColor, 10);
1876
-
1877
- // Grays
1878
- @black: #000;
1879
- @grayDark: lighten(@black, 25%);
1880
- @gray: lighten(@black, 50%);
1881
- @grayLight: lighten(@black, 70%);
1882
- @grayLighter: lighten(@black, 90%);
1883
- @white: #fff;
1884
-
1885
- // Accent Colors
1886
- @blue: #08b5fb;
1887
- @green: #46a546;
1888
- @red: #9d261d;
1889
- @yellow: #ffc40d;
1890
- @orange: #f89406;
1891
- @pink: #c3325f;
1892
- @purple: #7a43b6;
1893
-
1894
- // Baseline grid
1895
- @basefont: 13px;
1896
- @baseline: 18px;
1897
- </pre>
1898
-
1899
- <h3>Commenting</h3>
1900
- <p>Less also provides another style of commenting in addition to CSS’s normal <code>/* ... */</code> syntax.</p>
1901
- <pre class="prettyprint linenums">
1902
- // This is a comment
1903
- /* This is also a comment */
1904
- </pre>
1905
-
1906
- <h3>Mixins up the wazoo</h3>
1907
- <p>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 <code>box-shadow</code>, cross-browser gradients, font stacks, and more. Below is a sample of the mixins that are included with Bootstrap.</p>
1908
- <h4>Font stacks</h4>
1909
- <pre class="prettyprint linenums">
1910
- #font {
1911
- .shorthand(@weight: normal, @size: 14px, @lineHeight: 20px) {
1912
- font-size: @size;
1913
- font-weight: @weight;
1914
- line-height: @lineHeight;
1915
- }
1916
- .sans-serif(@weight: normal, @size: 14px, @lineHeight: 20px) {
1917
- font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
1918
- font-size: @size;
1919
- font-weight: @weight;
1920
- line-height: @lineHeight;
1921
- }
1922
- ...
1923
- }
1924
- </pre>
1925
- <h4>Gradients</h4>
1926
- <pre class="prettyprint linenums">
1927
- #gradient {
1928
- ...
1929
- .vertical (@startColor: #555, @endColor: #333) {
1930
- background-color: @endColor;
1931
- background-repeat: repeat-x;
1932
- background-image: -khtml-gradient(linear, left top, left bottom, from(@startColor), to(@endColor)); // Konqueror
1933
- background-image: -moz-linear-gradient(@startColor, @endColor); // FF 3.6+
1934
- background-image: -ms-linear-gradient(@startColor, @endColor); // IE10
1935
- background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, @startColor), color-stop(100%, @endColor)); // Safari 4+, Chrome 2+
1936
- background-image: -webkit-linear-gradient(@startColor, @endColor); // Safari 5.1+, Chrome 10+
1937
- background-image: -o-linear-gradient(@startColor, @endColor); // Opera 11.10
1938
- background-image: linear-gradient(@startColor, @endColor); // The standard
1939
- }
1940
- ...
1941
- }
1942
- </pre>
1943
-
1944
- <h3>Operations</h3>
1945
- <p>Get fancy and perform some math to generate flexible and powerful mixins like the one below.</p>
1946
- <pre class="prettyprint linenums">
1947
- // Griditude
1948
- @gridColumns: 16;
1949
- @gridColumnWidth: 40px;
1950
- @gridGutterWidth: 20px;
1951
- @siteWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
1952
-
1953
- // Make some columns
1954
- .columns(@columnSpan: 1) {
1955
- width: (@gridColumnWidth * @columnSpan) + (@gridGutterWidth * (@columnSpan - 1));
1956
- }
1957
- </pre>
1958
-
1959
- <h2>Compiling Less</h2>
1960
- <p>After modifying the <code>.less</code> files in /lib/, you'll need to recompile them in order to regenerate the bootstrap-*.*.*.css and bootstrap-*.*.*.min.css files. If you're submitting a pull request to GitHub, you must always recompile.</p>
1961
- <h3>Ways to compile</h3>
1962
- <table class="bordered-table zebra-striped">
1963
- <thead>
1964
- <tr>
1965
- <th style="width: 120px;">Method</th>
1966
- <th>Steps</th>
1967
- </tr>
1968
- </thead>
1969
- <tbody>
1970
- <tr>
1971
- <td>Node with makefile</td>
1972
- <td>
1973
- <p>Install the less command line compiler with npm by running the following command:</p>
1974
- <pre>$ npm install lessc</pre>
1975
- <p>Once installed just run <code>make</code> from the root of your bootstrap directory and you're all set.</p>
1976
- <p>Additionally, if you have <a href="https://github.com/mynyml/watchr">watchr</a> installed, you may run <code>make watch</code> to have bootstrap automatically rebuilt every time you edit a file in the bootstrap lib (this isn't required, just a convenience method).</p>
1977
- </td>
1978
- </tr>
1979
- <td>Javascript</td>
1980
- <td>
1981
- <p><a href="http://lesscss.org/">Download the latest Less.js</a> and include the path to it (and Bootstrap) in the <code>head</code>.</p>
1982
- <pre class="prettyprint linenums">
1983
- &lt;link rel="stylesheet/less" href="/path/to/bootstrap.less"&gt;
1984
- &lt;script src="/path/to/less.js"&gt;&lt;/script&gt;
1985
- </pre>
1986
- <p>To recompile the .less files, just save them and reload your page. Less.js compiles them and stores them in local storage.</p>
1987
- </td>
1988
- </tr>
1989
- <tr>
1990
- <td>Command line</td>
1991
- <td>
1992
- <p>If you already have the less command line tool installed, simply run the following command:</p>
1993
- <pre>$ lessc ./lib/bootstrap.less > bootstrap.css</pre>
1994
- <p>Be sure to include <code>--compress</code> in that command if you're trying to save some bytes!</p>
1995
- </td>
1996
- </tr>
1997
- <tr>
1998
- <td>Less Mac app</td>
1999
- <td>
2000
- <p><a href="http://incident57.com/less/">The unofficial Mac app</a> watches directories of .less files and compiles the code to local files after every save of a watched .less file.</p>
2001
- <p>If you like, you can toggle preferences in the app for automatic minifying and which directory the compiled files end up in.</p>
2002
- </td>
2003
- </tr>
2004
- </tbody>
2005
- </table>
2006
- </div>
2007
- </div>
2008
-
2009
- </section>
2010
-
2011
-
2012
-
2013
- </div><!-- /container -->
2014
-
2015
- <footer class="footer">
2016
- <div class="container">
2017
- <p class="pull-right"><a href="#">Back to top</a></p>
2018
- <p>
2019
- Designed and built with all the love in the world <a href="http://twitter.com/twitter" target="_blank">@twitter</a> by <a href="http://twitter.com/mdo" target="_blank">@mdo</a> and <a href="http://twitter.com/fat" target="_blank">@fat</a>.<br />
2020
- Code licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache License v2.0</a>. Documentation licensed under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
2021
- </p>
2022
- </div>
2023
- </footer>
2024
-
2025
-
2026
- <!-- Le javascript -->
2027
- <script src="http://code.jquery.com/jquery-1.7.min.js"></script>
2028
- <script src="http://autobahn.tablesorter.com/jquery.tablesorter.min.js"></script>
2029
- <script src="assets/js/google-code-prettify/prettify.js"></script>
2030
- <script>$(function () { prettyPrint() })</script>
2031
- <script src="../js/bootstrap-dropdown.js"></script>
2032
- <script src="../js/bootstrap-twipsy.js"></script>
2033
- <script src="../js/bootstrap-scrollspy.js"></script>
2034
- <script src="assets/js/application.js"></script>
2035
-
2036
- </body>
2037
- </html>