codnar 0.1.64

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. data/ChangeLog +165 -0
  2. data/LICENSE +19 -0
  3. data/README.rdoc +32 -0
  4. data/Rakefile +66 -0
  5. data/bin/codnar-split +5 -0
  6. data/bin/codnar-weave +5 -0
  7. data/codnar.html +10945 -0
  8. data/doc/logo.png +0 -0
  9. data/doc/root.html +22 -0
  10. data/doc/story.markdown +180 -0
  11. data/doc/system.markdown +671 -0
  12. data/lib/codnar.rb +41 -0
  13. data/lib/codnar/application.rb +92 -0
  14. data/lib/codnar/cache.rb +61 -0
  15. data/lib/codnar/data/contents.js +113 -0
  16. data/lib/codnar/data/control_chunks.js +44 -0
  17. data/lib/codnar/data/style.css +95 -0
  18. data/lib/codnar/data/sunlight/README.txt +4 -0
  19. data/lib/codnar/data/sunlight/css-min.js +1 -0
  20. data/lib/codnar/data/sunlight/default.css +236 -0
  21. data/lib/codnar/data/sunlight/javascript-min.js +1 -0
  22. data/lib/codnar/data/sunlight/min.js +1 -0
  23. data/lib/codnar/data/sunlight/ruby-min.js +1 -0
  24. data/lib/codnar/data/yui/README.txt +3 -0
  25. data/lib/codnar/data/yui/base.css +132 -0
  26. data/lib/codnar/data/yui/reset.css +142 -0
  27. data/lib/codnar/formatter.rb +180 -0
  28. data/lib/codnar/grouper.rb +28 -0
  29. data/lib/codnar/gvim.rb +132 -0
  30. data/lib/codnar/hash_extensions.rb +41 -0
  31. data/lib/codnar/markdown.rb +47 -0
  32. data/lib/codnar/merger.rb +138 -0
  33. data/lib/codnar/rake.rb +41 -0
  34. data/lib/codnar/rake/split_task.rb +71 -0
  35. data/lib/codnar/rake/weave_task.rb +59 -0
  36. data/lib/codnar/rdoc.rb +9 -0
  37. data/lib/codnar/reader.rb +121 -0
  38. data/lib/codnar/scanner.rb +216 -0
  39. data/lib/codnar/split.rb +58 -0
  40. data/lib/codnar/split_configurations.rb +367 -0
  41. data/lib/codnar/splitter.rb +32 -0
  42. data/lib/codnar/string_extensions.rb +25 -0
  43. data/lib/codnar/sunlight.rb +17 -0
  44. data/lib/codnar/version.rb +8 -0
  45. data/lib/codnar/weave.rb +58 -0
  46. data/lib/codnar/weave_configurations.rb +48 -0
  47. data/lib/codnar/weaver.rb +105 -0
  48. data/lib/codnar/writer.rb +38 -0
  49. data/test/cache_computations.rb +41 -0
  50. data/test/deep_merge.rb +29 -0
  51. data/test/embed_images.rb +12 -0
  52. data/test/expand_markdown.rb +27 -0
  53. data/test/expand_rdoc.rb +20 -0
  54. data/test/format_code_gvim_configurations.rb +55 -0
  55. data/test/format_code_sunlight_configurations.rb +37 -0
  56. data/test/format_comment_configurations.rb +86 -0
  57. data/test/format_lines.rb +72 -0
  58. data/test/group_lines.rb +31 -0
  59. data/test/gvim_highlight_syntax.rb +49 -0
  60. data/test/identify_chunks.rb +32 -0
  61. data/test/lib/test_with_configurations.rb +15 -0
  62. data/test/merge_lines.rb +133 -0
  63. data/test/rake_tasks.rb +38 -0
  64. data/test/read_chunks.rb +110 -0
  65. data/test/run_application.rb +56 -0
  66. data/test/run_split.rb +38 -0
  67. data/test/run_weave.rb +75 -0
  68. data/test/scan_lines.rb +78 -0
  69. data/test/split_chunk_configurations.rb +55 -0
  70. data/test/split_code.rb +109 -0
  71. data/test/split_code_configurations.rb +73 -0
  72. data/test/split_combined_configurations.rb +114 -0
  73. data/test/split_complex_comment_configurations.rb +73 -0
  74. data/test/split_documentation.rb +92 -0
  75. data/test/split_documentation_configurations.rb +97 -0
  76. data/test/split_simple_comment_configurations.rb +50 -0
  77. data/test/sunlight_highlight_syntax.rb +25 -0
  78. data/test/weave_configurations.rb +144 -0
  79. data/test/write_chunks.rb +28 -0
  80. metadata +363 -0
@@ -0,0 +1,4 @@
1
+ The files in this folder were copied from the Sunlight-1.3.199 distribution.
2
+ They are included here to ensure it is possible to build codnar.html without
3
+ "installing" Sunlight. See http://http://sunlightjs.com/ for the official
4
+ complete Sunlight distribution.
@@ -0,0 +1 @@
1
+ (function(b,c){if(b===c||b.registerLanguage===c){throw"Include sunlight.js before including language files";}var a=function(d){var g,i=d.count(),j=d.getAllTokens();while((g=d.token(--i))!==c){if(g.name==="punctuation"&&g.value==="}"){break;}else{if(g.name==="punctuation"&&g.value==="{"){return null;}}}var k="",e=true,h=1;var l=d.reader.peek();var m=d.reader.getLine(),f=d.reader.getColumn();while(l.length===h){letter=l.charAt(l.length-1);if(/[^\w-]$/.test(l)){e=false;if(letter==="{"){break;}if(letter===";"){return null;}}if(e){k+=letter;}l=d.reader.peek(++h);}return k;};b.registerLanguage("css",{caseInsensitive:true,keywords:["background-color","background-image","background-repeat","background-attachment","background-position","background-clip","background-origin","background-size","background","border-collapse","border-top-style","border-right-style","border-left-style","border-bottom-style","border-style","border-top-width","border-right-width","border-left-width","border-bottom-width","border-width","border-top-color","border-right-color","border-left-color","border-bottom-color","border-color","border-radius","border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius","border-image-repeat","border-image-source","border-image-slice","border-image-width","border-image-outset","border-image","border-top","border-bottom","border-right","border-left","border-spacing","border","box-decoration-break","box-shadow","voice-volume","voice-balance","pause-before","pause-after","pause","rest-before","rest-after","rest","cue-before","cue-after","cue","mark-before","mark-after","mark","voice-family","voice-rate","voice-pitch","voice-pitch-range","voice-stress","voice-duration","phonemes","speak-header","speak-numeral","speak-punctuation","pitch-range","play-during","richness","speak","speech-rate","appearance","icon","box-sizing","outline-width","outline-style","outline-color","outline-offset","outline","resize","cursor","nav-index","nav-up","nav-right","nav-down","nav-left","display","position","float","clear","visibility","bottom","top","left","right","overflow","overflow-x","overflow-y","overflow-style","marquee-style","marquee-direction","marquee-play-count","marquee-speed","padding-top","padding-right","padding-bottom","padding-left","padding","margin-top","margin-right","margin-bottom","margin-left","margin","width","height","min-width","max-width","min-height","max-height","rotation-point","rotation","white-space-collapsing","white-space","line-break","word-break","hyphens","hyphenate-character","hyphenate-limit-before","hyphenate-limit-after","hyphenate-limit-lines","hyphenate-limit-last","hyphenate-resource","text-wrap","word-wrap","text-align-first","text-align-last","text-align","text-justify","word-spacing","letter-spacing","text-trim","text-autospace","text-indent","hanging-punctuation","text-decoration-line","text-decoration-color","text-decoration-style","text-decoration-skip","text-decoration","text-underline-position","text-emphasis-position","text-emphasis-style","text-emphasis-color","text-emphasis","text-shadow","text-outline","text-transform","vertical-align","direction","unicode-bidi","writing-mode","text-orientation","text-combine","color","opacity","font-family","font-weight","font-stretch","font-style","font-size-adjust","font-size","font-synthesis","src","unicode-range","font-feature-settings","font-kerning","vertical-position","font-variant-ligatures","font-variant-caps","font-variant-numeric","font-variant-alternates","font-variant-east-asian","font-variant","font-feature-settings","font-language-override","font","line-height","text-height","transform-origin","transform-style","perspective-origin","perspective","backface-visibility","transform","transition-property","transition-duration","transition-timing-function","transition-delay","list-style-type","list-style-image","list-style-position","list-style","column-width","column-count","colunns","column-gap","column-rule-color","column-rule-style","column-rule-width","column-rule","break-before","break-after","break-inside","column-span","column-fill","caption-side","table-layout","empty-cells","fit-position","fit","image-orientation","orphans","page-break-after","page-break-before","page-break-inside","page","size","widows","content","z-index","counter-increment","counter-reset","azimuth","elevation","quotes","filter","zoom","-moz-appearance","-moz-background-clip","-moz-background-inline-policy","-moz-background-origin","-moz-background-size","-moz-binding","-moz-border-bottom-colors","-moz-border-left-colors","-moz-border-right-colors","-moz-border-top-colors","-moz-border-end","-moz-border-end-color","-moz-border-end-style","-moz-border-end-width","-moz-border-image","-moz-border-start","-moz-border-start-color","-moz-border-start-style","-moz-border-start-width","-moz-box-align","-moz-box-direction","-moz-box-flex","-moz-box-flexgroup","-moz-box-ordinal-group","-moz-box-orient","-moz-box-pack","-moz-box-sizing","-moz-column-count","-moz-column-gap","-moz-column-width","-moz-column-rule","-moz-column-rule-width","-moz-column-rule-style","-moz-column-rule-color","-moz-float-edge","-moz-font-feature-settings","-moz-font-language-override","-moz-force-broken-image-icon","-moz-image-region","-moz-margin-end","-moz-margin","-moz-opacity","-moz-outline","-moz-outline-color","-moz-outline-offset","-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-moz-outline-style","-moz-outline-width","-moz-padding-end","-moz-padding-start","-moz-stack-sizing","-moz-tab-size","-moz-transform","-moz-transform-origin","-moz-transition","-moz-transition-delay","-moz-transition-duration","-moz-transition-property","-moz-transition-timing-function","-moz-user-focus","-moz-user-input","-moz-user-modify","-moz-user-select","-moz-window-shadow","-webkit-appearance","-webkit-background-clip","-webkit-background-composite","-webkit-background-origin","-webkit-background-size","-webkit-binding","-webkit-border-bottom-left-radius","-webkit-border-bottom-right-radius","-webkit-border-fit","-webkit-border-horizontal-spacing","-webkit-border-image","-webkit-border-radius","-webkit-border-top-left-radius","-webkit-border-top-right-radius","-webkit-border-vertical-spacing","-webkit-box-align","-webkit-box-direction","-webkit-box-flex","-webkit-box-flex-group","-webkit-box-lines","-webkit-box-ordinal-group","-webkit-box-orient","-webkit-box-pack","-webkit-box-shadow","-webkit-box-sizing","-webkit-column-break-after","-webkit-column-break-before","-webkit-column-break-inside","-webkit-column-count","-webkit-column-gap","-webkit-column-rule","-webkit-column-rule-color","-webkit-column-rule-style","-webkit-column-rule-width","-webkit-column-width","-webkit-columns","-webkit-dashboard-region","-webkit-font-size-delta","-webkit-highlight","-webkit-line-break","-webkit-line-clamp","-webkit-margin-bottom-collapse","-webkit-margin-collapse #","-webkit-margin-start","-webkit-margin-top-collapse","-webkit-marquee","-webkit-marquee-direction","-webkit-marquee-increment","-webkit-marquee-repetition","-webkit-marquee-speed","-webkit-marquee-style","-webkit-match-nearest-mail-blockquote-color","-webkit-nbsp-mode","-webkit-padding-start","-webkit-rtl-ordering","-webkit-text-decorations-in-effect","-webkit-text-fill-color","-webkit-text-security","-webkit-text-size-adjust","-webkit-text-stroke","-webkit-text-stroke-color","-webkit-text-stroke-width","-webkit-user-drag","-webkit-user-modify","-webkit-user-select","-o-border-image","-o-device-pixel-ratio","-o-linear-gradient","-o-repeating-linear-gradient","-o-object-fit","-o-object-position","-o-tab-size","-o-table-baseline","-o-transform","-o-transform-origin","-o-transition","-o-transition-delay","-o-transition-duration","-o-transition-property","-o-transition-timing-function","-o-zoom-in","-o-zoom-out","-ms-accelerator","-ms-background-position-x","-ms-background-position-y","-ms-behavior","-ms-block-progression","-ms-filter","-ms-ime-mode","-ms-layout-grid","-ms-layout-grid-char","-ms-layout-grid-line","-ms-layout-grid-mode","-ms-layout-grid-type","-ms-line-break","-ms-line-grid-mode","-ms-interpolation-mode","-ms-overflow-x","-ms-overflow-y","-ms-scrollbar-3dlight-color","-ms-scrollbar-arrow-color","-ms-scrollbar-base-color","-ms-scrollbar-darkshadow-color","-ms-scrollbar-face-color","-ms-scrollbar-highlight-color","-ms-scrollbar-shadow-color","-ms-scrollbar-track-color","-ms-text-align-last","-ms-text-autospace","-ms-text-justify","-ms-text-kashida-space","-ms-text-overflow","-ms-text-underline-position","-ms-word-break","-ms-word-wrap","-ms-writing-mode","-ms-zoom"],customParseRules:[function(){var d=b.util.createHashMap(["matrix","translate","translateX","translateY","scaleX","scaleY","rotate","skewX","skewY","skew","translate3d","scaleZ","translateZ","rotate3d","perspective","url","alpha","basicimage","blur","dropshadow","engrave","glow","light","maskfilter","motionblur","shadow","wave"],"\\b",true);return function(g){var f=b.util.matchWord(g,d,"function",true);if(f===null){return null;}var h=f.value.length,e=g.reader.peek(h);while(e.length===h&&e!==g.reader.EOF){if(!/\s$/.test(e)){if(e.charAt(e.length-1)==="("){g.reader.read(f.value.length-1);return f;}break;}e=g.reader.peek(++h);}return null;};}(),function(){var d=b.util.createHashMap(["root","nth-child","nth-last-child","nth-of-type","nth-last-of-type","first-child","last-child","first-of-type","last-of-type","only-child","only-of-type","empty","link","visited","active","hover","focus","target","lang","enabled","disabled","checked","first-line","first-letter","before","after","not","read-only","read-write","default","valid","invalid","in-range","out-of-range","required","optional"],"\\b",true);return function(e){var f=b.util.getPreviousNonWsToken(e.getAllTokens(),e.count());if(!f||f.name!=="operator"||f.value!==":"){return null;}return b.util.matchWord(e,d,"pseudoClass");};}(),function(){var d=b.util.createHashMap(["before","after","value","choices","repeat-item","repeat-index","marker"],"\\b",true);return function(e){var f=b.util.getPreviousNonWsToken(e.getAllTokens(),e.count());if(!f||f.name!=="operator"||f.value!=="::"){return null;}return b.util.matchWord(e,d,"pseudoElement");};}(),function(e){if(e.reader.current()!=="."){return null;}var g=a(e);if(g===null){return null;}var d=e.reader.getLine(),f=e.reader.getColumn();e.reader.read(g.length);return[e.createToken("operator",".",d,f),e.createToken("class",g,d,f+1)];},function(f){var i=f.reader.current();if(!/[A-Za-z_]/.test(i)){return null;}var h=b.util.getPreviousNonWsToken(f.getAllTokens(),f.count());if(h&&h.name==="operator"&&(h.value===":"||h.value==="::")){return null;}var e=a(f);if(e===null){return null;}var d=f.reader.getLine(),g=f.reader.getColumn();f.reader.read(e.length);return f.createToken("element",i+e,d,g);},function(f){if(f.reader.current()!=="#"){return null;}var e=f.reader.peek(),j=1,k="#",i,h=true;var d=f.reader.getLine(),g=f.reader.getColumn();while(e.length===j){i=e.charAt(e.length-1);if(i==="}"||i===";"){break;}if(i==="{"){return null;}if(h&&/[A-Fa-f0-9]/.test(i)){k+=i;}else{h=false;}e=f.reader.peek(++j);}f.reader.read(k.length-1);return f.createToken("hexColor",k,d,g);}],customTokens:{rule:{values:["@import","@media","@font-face","@phonetic-alphabet","@hyphenate-resource","@font-feature-values","@charset","@namespace","@page","@bottom-left-corner","@bottom-left","@bottom-center","@bottom-right","@bottom-right-corner","@top-left-corner","@top-left","@top-center","@top-right","@top-right-corner"],boundary:"\\b"},microsoftFilterPrefix:{values:["progid:DXImageTransform.Microsoft"],boundary:"\\b"}},scopes:{string:[['"','"',['\\"',"\\\\"]],["'","'",["\\'","\\\\"]]],comment:[["/*","*/"]],id:[["#",{length:1,regex:/[^-\w]/},null,true]]},identFirstLetter:/[A-Za-z-]/,identAfterFirstLetter:/[\w-]/,operators:["::",":",">","+","~=","^=","$=","|=","=",".","*"]});}(window.Sunlight));
@@ -0,0 +1,236 @@
1
+ /* global styles */
2
+ .sunlight-container {
3
+ clear: both;
4
+ border: 1px solid #969696 !important;
5
+ position: relative;
6
+ background-color: #FFFFFF !important;
7
+ }
8
+ .sunlight-highlighted, .sunlight-container {
9
+ color: #000000 !important;
10
+ /*! Commented out for for Codnar - these are handled by the Codnar CSS.
11
+ font-family: Consolas, Inconsolata, Monaco, "Courier New", Monospace !important;
12
+ font-size: 12px !important;
13
+ line-height: 15px !important;
14
+ !*/
15
+ margin: 0 !important;
16
+ }
17
+ .sunlight-container > .sunlight-highlighted {
18
+ white-space: pre;
19
+ overflow-x: auto;
20
+ }
21
+ span.sunlight-highlighted {
22
+ z-index: 1;
23
+ position: relative;
24
+ }
25
+ span.sunlight-highlighted * {
26
+ background: transparent;
27
+ }
28
+ .sunlight-line-number-margin {
29
+ float: left !important;
30
+ margin-right: 5px !important;
31
+ margin-top: 0 !important;
32
+ padding: 0 !important;
33
+ padding-right: 4px !important;
34
+ padding-left: 4px !important;
35
+ border-right: 1px solid #CCCCCC !important;
36
+ background-color: #EEEEEE !important;
37
+ color: #848484 !important;
38
+ text-align: right !important;
39
+ position: relative;
40
+ z-index: 3;
41
+ }
42
+ .sunlight-highlighted a, .sunlight-line-number-margin a {
43
+ border: none !important;
44
+ text-decoration: none !important;
45
+ font-weight: normal !important;
46
+ font-style: normal !important;
47
+ padding: 0 !important;
48
+ }
49
+ .sunlight-line-number-margin a {
50
+ color: inherit !important;
51
+ }
52
+ .sunlight-line-highlight-overlay {
53
+ position: absolute;
54
+ top: 0;
55
+ left: 0;
56
+ width: 100%;
57
+ z-index: 0;
58
+ }
59
+ .sunlight-line-highlight-overlay div {
60
+ height: 15px;
61
+ width: 100%;
62
+ }
63
+ .sunlight-line-highlight-overlay .sunlight-line-highlight-active {
64
+ background-color: #E7FCFA;
65
+ }
66
+
67
+
68
+
69
+
70
+ .sunlight-string,
71
+ .sunlight-heredoc,
72
+ .sunlight-heredocDeclaration,
73
+ .sunlight-nowdoc,
74
+ .sunlight-longString,
75
+ .sunlight-rawString,
76
+ .sunlight-binaryString,
77
+ .sunlight-rawLongString,
78
+ .sunlight-binaryLongString {
79
+ color: #990000 !important;
80
+ }
81
+
82
+ .sunlight-ident,
83
+ .sunlight-operator,
84
+ .sunlight-punctuation,
85
+ .sunlight-delimiter {
86
+ color: #000000 !important;
87
+ }
88
+
89
+ .sunlight-comment,
90
+ .sunlight-xmlDocCommentContent {
91
+ color: #009900 !important;
92
+ }
93
+ .sunlight-number {
94
+ color: #CC6600 !important;
95
+ }
96
+
97
+ .sunlight-named-ident,
98
+ .sunlight-constant,
99
+ .sunlight-javascript .sunlight-globalVariable,
100
+ .sunlight-globalObject,
101
+ .sunlight-python .sunlight-attribute {
102
+ color: #2B91AF !important;
103
+ }
104
+ .sunlight-keyword,
105
+ .sunlight-languageConstruct,
106
+ .sunlight-css
107
+ .sunlight-element,
108
+ .sunlight-bash .sunlight-command,
109
+ .sunlight-ruby .sunlight-specialOperator {
110
+ color: #0000FF !important;
111
+ }
112
+ .sunlight-shortOpenTag,
113
+ .sunlight-openTag,
114
+ .sunlight-closeTag,
115
+ .sunlight-xmlOpenTag,
116
+ .sunlight-xmlCloseTag {
117
+ background-color: #FFFF99 !important;
118
+ color: #000000 !important;
119
+ }
120
+ .sunlight-content {
121
+ color: #000000 !important;
122
+ }
123
+ .sunlight-function,
124
+ .sunlight-globalFunction,
125
+ .sunlight-ruby .sunlight-specialFunction {
126
+ color: #B069AF !important;
127
+ }
128
+
129
+ .sunlight-php .sunlight-variable,
130
+ .sunlight-ruby .sunlight-globalVariable,
131
+ .sunlight-ruby .sunlight-instanceVariable {
132
+ color: #8F41AA !important;
133
+ }
134
+ .sunlight-regexLiteral {
135
+ color: #FF00B2 !important;
136
+ }
137
+
138
+
139
+
140
+ /* html/xml */
141
+ .sunlight-html .sunlight-string,
142
+ .sunlight-xml .sunlight-string {
143
+ color: #990099 !important;
144
+ }
145
+ .sunlight-cdata {
146
+ color: #CC6600 !important;
147
+ }
148
+ .sunlight-html .sunlight-ident,
149
+ .sunlight-html .sunlight-operator,
150
+ .sunlight-xml .sunlight-ident,
151
+ .sunlight-xml .sunlight-operator {
152
+ color: #0000FF !important;
153
+ }
154
+ .sunlight-html .sunlight-named-ident, .sunlight-xml .sunlight-named-ident {
155
+ color: #FF0000 !important;
156
+ }
157
+ .sunlight-html .sunlight-entity,
158
+ .sunlight-xml .sunlight-entity {
159
+ background-color: #EEEEEE !important;
160
+ color: #000000 !important;
161
+ border: 1px solid #000000 !important;
162
+ }
163
+
164
+ /* html */
165
+ .sunlight-html .sunlight-doctype {
166
+ color: #2B91AF !important;
167
+ }
168
+
169
+ /* c# */
170
+ .sunlight-csharp .sunlight-pragma {
171
+ color: #999999 !important;
172
+ font-style: italic !important;
173
+ }
174
+ .sunlight-csharp .sunlight-xmlDocCommentMeta,
175
+ .sunlight-java .sunlight-annotation,
176
+ .sunlight-ruby .sunlight-docComment {
177
+ color: #808080 !important;
178
+ }
179
+
180
+ /* javascript */
181
+ .sunlight-javascript .sunlight-reservedWord {
182
+ font-style: italic !important;
183
+ }
184
+
185
+ /* sql */
186
+ .sunlight-quotedIdent {
187
+ color: #999900 !important;
188
+ }
189
+
190
+ /* css */
191
+ .sunlight-css .sunlight-microsoftFilterPrefix {
192
+ color: #FF00FF !important;
193
+ }
194
+ .sunlight-css .sunlight-rule {
195
+ color: #0099FF !important;
196
+ }
197
+ .sunlight-css .sunlight-keyword {
198
+ color: #4E65B8 !important;
199
+ }
200
+ .sunlight-css .sunlight-class {
201
+ color: #FF0000 !important;
202
+ }
203
+ .sunlight-css .sunlight-id {
204
+ color: #8A8E13 !important;
205
+ }
206
+ .sunlight-css .sunlight-pseudoClass,
207
+ .sunlight-css .sunlight-pseudoElement {
208
+ color: #368B87 !important;
209
+ }
210
+
211
+ /* bash */
212
+ .sunlight-bash .sunlight-hashBang {
213
+ color: #3D97F5 !important;
214
+ }
215
+ .sunlight-bash .sunlight-specialVariable {
216
+ font-style: italic !important;
217
+ font-weight: bold !important;
218
+ }
219
+ .sunlight-bash .sunlight-verbatimCommand {
220
+ color: #999900 !important;
221
+ }
222
+ .sunlight-bash .sunlight-variable,
223
+ .sunlight-bash .sunlight-specialVariable {
224
+ color: #FF0000 !important;
225
+ }
226
+
227
+ /* python */
228
+ .sunlight-python .sunlight-specialMethod {
229
+ font-weight: bold !important;
230
+ color: #A07DD3;
231
+ }
232
+
233
+ /* ruby */
234
+ .sunlight-ruby .sunlight-subshellCommand {
235
+ color: #999900 !important;
236
+ }
@@ -0,0 +1 @@
1
+ (function(a,b){if(a===b||a.registerLanguage===b){throw"Include sunlight.js before including language files";}a.registerLanguage("javascript",{keywords:["break","case","catch","continue","default","delete","do","else","finally","for","function","if","in","instanceof","new","return","switch","this","throw","try","typeof","var","void","while","with","true","false","null"],customTokens:{reservedWord:{values:["abstract","boolean","byte","char","class","const","debugger","double","enum","export","extends","final","float","goto","implements","import","int","interface","long","native","package","private","protected","public","short","static","super","synchronized","throws","transient","volatile"],boundary:"\\b"},globalVariable:{values:["NaN","Infinity"],boundary:"\\b"},globalFunction:{values:["encodeURI","encodeURIComponent","decodeURI","decodeURIComponent","parseInt","parseFloat","isNaN","isFinite","eval"],boundary:"\\b"},globalObject:{values:["Math","JSON","XMLHttpRequest","XDomainRequest","ActiveXObject","Boolean","Date","Array","Image","Function","Object","Number","RegExp","String"],boundary:"\\b"}},scopes:{string:[['"','"',a.util.escapeSequences.concat(['\\"'])],["'","'",a.util.escapeSequences.concat(["\\'","\\\\"])]],comment:[["//","\n",null,true],["/*","*/"]]},customParseRules:[function(e){var d=e.reader.peek();if(e.reader.current()!=="/"||d==="/"||d==="*"){return null;}var j=function(){var l=e.token(e.count()-1);var k=null;if(e.defaultData.text!==""){k=e.createToken("default",e.defaultData.text);}if(!k){k=l;}if(k===b){return true;}if(k.name==="default"&&k.value.indexOf("\n")>-1){return true;}if(l.name==="keyword"||l.name==="ident"||l.name==="number"){return false;}return true;}();if(!j){return null;}var i="/";var c=e.reader.getLine();var g=e.reader.getColumn();var h,f;while(e.reader.peek()!==e.reader.EOF){h=e.reader.peek(2);if(h==="\\/"||h==="\\\\"){i+=e.reader.read(2);continue;}i+=(f=e.reader.read());if(f==="/"){break;}}while(e.reader.peek()!==e.reader.EOF){if(!/[A-Za-z]/.test(e.reader.peek())){break;}i+=e.reader.read();}return e.createToken("regexLiteral",i,c,g);}],identFirstLetter:/[$A-Za-z_]/,identAfterFirstLetter:/[\w\$]/,namedIdentRules:{follows:[[{token:"keyword",values:["function"]},a.util.whitespace]]},operators:["++","+=","+","--","-=","-","*=","*","/=","/","%=","%","&&","||","|=","|","&=","&","^=","^",">>>=",">>>",">>=",">>","<<=","<<","<=","<",">=",">","===","==","!==","!=","!","~","?",":",".","="]});}(window.Sunlight));
@@ -0,0 +1 @@
1
+ (function(h,o,f){var u=!+"\v1";var y=function(){return null;};var m=0;var q="plaintext";var l=function(A){function z(){}z.prototype=A;return new z();};var p=false;var i=function(A,C,z){for(var B=0;B<A.length;B++){if(A[B]===C){return true;}if(z&&typeof(A[B])==="string"&&typeof(C)==="string"&&A[B].toUpperCase()===C.toUpperCase()){return true;}}return false;};var e=function(z,A){if(!A){return z;}for(var B in A){z[B]=A[B];}return z;};var x=function(z){return z.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");};var j=function(C,B,A,z){return function(G){var F=C;if(B===1){A.reverse();}for(var D=0,E,H;D<A.length;D++){H=G[F+(D*B)];E=A[A.length-1-D];if(H===f){if(E.optional!==f&&E.optional){F-=B;}else{return false;}}else{if(H.name===E.token&&(E.values===f||i(E.values,H.value,z))){continue;}else{if(E.optional!==f&&E.optional){F-=B;}else{return false;}}}}return true;};};var c=function(B,A,C,z){return function(F){var D=B,E;var G=false;while((E=F[--D])!==f){if(E.name===C.token&&i(C.values,E.value)){if(E.name===A.token&&i(A.values,E.value,z)){G=true;break;}return false;}if(E.name===A.token&&i(A.values,E.value,z)){G=true;break;}}if(!G){return false;}D=B;while((E=F[++D])!==f){if(E.name===A.token&&i(A.values,E.value,z)){if(E.name===C.token&&i(C.values,E.value,z)){G=true;break;}return false;}if(E.name===C.token&&i(C.values,E.value,z)){G=true;break;}}return G;};};var w=function(){var z=function(A){return function(C){var B=o.createElement("span");B.className="sunlight-"+A;B.appendChild(C.createTextNode(C.tokens[C.index].value));return C.addNode(B)||true;};};return{handleToken:function(A){return z(A.tokens[A.index].name)(A);},handle_default:function(A){return A.addNode(A.createTextNode(A.tokens[A.index].value));},handle_ident:function(A){var B=function(D,E){D=D||[];for(var C=0;C<D.length;C++){if(typeof(D[C])==="function"){if(D[C](A)){return z("named-ident")(A);}}else{if(E&&E(D[C])(A.tokens)){return z("named-ident")(A);}}}return false;};return B(A.language.namedIdentRules.custom)||B(A.language.namedIdentRules.follows,function(C){return j(A.index-1,-1,C.slice(0),A.language.caseInsensitive);})||B(A.language.namedIdentRules.precedes,function(C){return j(A.index+1,1,C.slice(0),A.language.caseInsensitive);})||B(A.language.namedIdentRules.between,function(C){return c(A.index,C.opener,C.closer,A.language.caseInsensitive);})||z("ident")(A);}};}();var r=function(E){E=E.replace(/\r\n/g,"\n").replace(/\r/g,"\n");var C=0;var H=1;var A=1;var z=E.length;var B=f;var G=z>0?E.charAt(0):B;var F=false;var D=function(J){if(J===0){return"";}J=J||1;var K="",I=1;while(I<=J&&E.charAt(C+I)!==""){K+=E.charAt(C+I++);}return K===""?B:K;};return{toString:function(){return"length: "+z+", index: "+C+", line: "+H+", column: "+A+", current: ["+G+"]";},peek:function(I){return D(I);},read:function(I){var K=D(I);if(K!==B){C+=K.length;A+=K.length;if(F){H++;A=1;F=false;}var J=K.substring(0,K.length-1).replace(/[^\n]/g,"").length;if(J>0){H+=J;A=1;}if(K.charAt(K.length-1)==="\n"){F=true;}G=K.charAt(K.length-1);}else{C=z;G=B;}return K;},getLine:function(){return H;},getColumn:function(){return A;},isEof:function(){return C>=z;},EOF:B,current:function(){return G;}};};var b=function(B,G,C,z){G=G||[];var F=B.reader.current();if(B.language.caseInsensitive){F=F.toUpperCase();}if(!G[F]){return null;}G=G[F];for(var E=0,A,H;E<G.length;E++){A=G[E].value;H=F+B.reader.peek(A.length);if(A===H||G[E].regex.test(H)){var I=B.reader.getLine(),D=B.reader.getColumn();return B.createToken(C,B.reader.current()+B.reader[z?"peek":"read"](A.length-1),I,D);}}return null;};var v=function(){var z=function(I,J){var G=I[2]||[];var F=I[1].length;var K=typeof(I[1])==="string"?new RegExp(x(I[1])):I[1].regex;var H=I[3]||false;return function(P,L,N,M,R,O){var Q=false,N=N||"";O=O?1:0;var S=function(V){var T;var W=P.reader.current();for(var U=0;U<G.length;U++){T=(V?W:"")+P.reader.peek(G[U].length-V);if(T===G[U]){N+=P.reader.read(T.length-V);return true;}}T=(V?W:"")+P.reader.peek(F-V);if(K.test(T)){Q=true;return false;}N+=V?W:P.reader.read();return true;};if(!O||S(true)){while(P.reader.peek()!==P.reader.EOF&&S(false)){}}if(O){N+=P.reader.current();P.reader.read();}else{N+=H||P.reader.peek()===P.reader.EOF?"":P.reader.read(F);}if(!Q){P.continuation=L;}return P.createToken(J,N,M,R);};};var D=function(H){var N=function(){return H.language.identFirstLetter&&H.language.identFirstLetter.test(H.reader.current());};var J=function(){return b(H,H.language.keywords,"keyword");};var O=function(){if(H.language.customTokens===f){return null;}for(var R in H.language.customTokens){var Q=b(H,H.language.customTokens[R],R);if(Q!==null){return Q;}}return null;};var M=function(){return b(H,H.language.operators,"operator");};var I=function(){var Q=H.reader.current();if(H.language.punctuation.test(x(Q))){return H.createToken("punctuation",Q,H.reader.getLine(),H.reader.getColumn());}return null;};var G=function(S){if(!N()){return null;}var U=H.reader.current();var R=H.reader.peek();var Q=H.reader.getLine(),T=H.reader.getColumn();while(R!==H.reader.EOF){if(!H.language.identAfterFirstLetter.test(R)){break;}U+=H.reader.read();R=H.reader.peek();}return H.createToken(S?"namedIdent":"ident",U,Q,T);};var P=function(){if(H.defaultData.text===""){H.defaultData.line=H.reader.getLine();H.defaultData.column=H.reader.getColumn();}H.defaultData.text+=H.reader.current();return null;};var F=function(){var X=H.reader.current();for(var W in H.language.scopes){var R=H.language.scopes[W];for(var T=0,V,S,U,Q;T<R.length;T++){V=R[T][0];if(V!==X+H.reader.peek(V.length-1)){continue;}S=H.reader.getLine(),U=H.reader.getColumn();H.reader.read(V.length-1);Q=z(R[T],W);return Q(H,Q,V,S,U);}}return null;};var K=function(){return H.language.numberParser(H);};var L=function(){var S=H.language.customParseRules;if(S===f){return null;}for(var R=0,Q;R<S.length;R++){Q=S[R](H);if(Q!==null){return Q;}}return null;};return L()||O()||J()||F()||G()||K()||M()||I()||P();};var E=function(I,K,F){var J=[];var H={reader:r(I),language:K,token:function(L){return J[L];},getAllTokens:function(){return J.slice(0);},count:function(){return J.length;},defaultData:{text:"",line:1,column:1},createToken:function(M,O,L,N){return{name:M,line:L,value:u?O.replace(/\n/g,"\r"):O,column:N};}};if(F){J.push(F(H,F,"",H.reader.getLine(),H.reader.getColumn(),true));}while(!H.reader.isEof()){var G=D(H);if(G!==null){if(H.defaultData.text!==""){J.push(H.createToken("default",H.defaultData.text,H.defaultData.line,H.defaultData.column));H.defaultData.text="";}if(G[0]!==f){J=J.concat(G);}else{J.push(G);}}H.reader.read();}if(H.defaultData.text!==""){J.push(H.createToken("default",H.defaultData.text,H.defaultData.line,H.defaultData.column));}return{tokens:J,continuation:H.continuation};};var B=function(I,L,J,H){var F=[];var G=E(I,L,J.continuation);var K=function(){var M=String.fromCharCode(160);var N=new Array(H.tabWidth+1).join(M);return function(O){return O.split(" ").join(M).split("\t").join(N);};}();return{tokens:(J.tokens||[]).concat(G.tokens),index:J.index?J.index+1:0,language:L,continuation:G.continuation,addNode:function(M){F.push(M);},createTextNode:function(M){return o.createTextNode(K(M));},getNodes:function(){return F;}};};var C=function(N,G,M){if(!p){p=function(){var P=null;if(o.defaultView&&o.defaultView.getComputedStyle){P=o.defaultView.getComputedStyle;}else{if(typeof(o.body.currentStyle)!=="undefined"){P=function(R,Q){return R.currentStyle;};}else{P=y;}}return function(Q,R){return P(Q,null)[R];};}();}M=M||{};var J=k[G];if(J===f){J=k[q];}var O=B(N,J,M,this.options);var L=J.analyzer;for(var K=M.index?M.index+1:0,I,H,F;K<O.tokens.length;K++){O.index=K;I=O.tokens[K].name;H="handle_"+I;L[H]?L[H](O):L.handleToken(O);}return O;};return{highlight:function(G,F){return C.call(this,G,F);},highlightNode:function A(Q){var J;if((J=Q.className.match(/(?:\s|^)sunlight-highlight-(\S+)(?:\s|$)/))===null||/(?:\s|^)sunlight-highlighted(?:\s|$)/.test(Q.className)){return;}var V=J[1];var K=0;for(var S=0,T,O,R,L;S<Q.childNodes.length;S++){if(Q.childNodes[S].nodeType===3){T=o.createElement("span");T.className="sunlight-highlighted sunlight-"+V;L=C.call(this,Q.childNodes[S].nodeValue,V,L);m++;K=K||m;O=L.getNodes();for(R=0;R<O.length;R++){T.appendChild(O[R]);}Q.replaceChild(T,Q.childNodes[S]);}else{A.call(this,Q.childNodes[S]);}}Q.className+=" sunlight-highlighted";if(this.options.lineNumbers===true||(p&&this.options.lineNumbers==="automatic"&&p(Q,"display")==="block")){var M=o.createElement("div"),F=o.createElement("pre");var P=Q.innerHTML.replace(/[^\n]/g,"").length-/\n$/.test(Q.lastChild.innerHTML);var G,W,N=this.options.lineHighlight.length>0;if(N){G=o.createElement("div");G.className="sunlight-line-highlight-overlay";}M.className="sunlight-container";F.className="sunlight-line-number-margin";for(var U=this.options.lineNumberStart,I=o.createTextNode(u?"\r":"\n"),H,X;U<=this.options.lineNumberStart+P;U++){H=o.createElement("a");X=(Q.id?Q.id:"sunlight-"+K)+"-line-"+U;H.setAttribute("name",X);H.setAttribute("href","#"+X);H.appendChild(o.createTextNode(U));F.appendChild(H);F.appendChild(I.cloneNode(false));if(N){W=o.createElement("div");if(i(this.options.lineHighlight,U)){W.className="sunlight-line-highlight-active";}G.appendChild(W);}}M.appendChild(F);Q.parentNode.insertBefore(M,Q);Q.parentNode.removeChild(Q);M.appendChild(Q);if(N){M.appendChild(G);}}}};}();var g=function(z){this.options=e(e({},a),z);};g.prototype=v;var d=function(C,z,B){B=B||1;var A=C[z+B];if(A!==f&&A.name==="default"){A=C[z+(B*2)];}return A;};var s=function(F,E,z){var A={};for(var B=0,D,C;B<F.length;B++){D=z?F[B].toUpperCase():F[B];C=D.charAt(0);if(!A[C]){A[C]=[];}A[C].push({value:D,regex:new RegExp(x(D)+E,z?"i":"")});}return A;};var t=function(C){var F=C.reader.current(),E,A=C.reader.getLine(),D=C.reader.getColumn();if(!/\d/.test(F)){if(F!=="."||!/\d/.test(C.reader.peek())){return null;}E=F+C.reader.read();}else{E=F;}var B,z=false;while((B=C.reader.peek())!==C.reader.EOF){if(!/[A-Za-z0-9]/.test(B)){if(B==="."&&!z){E+=C.reader.read();z=true;continue;}break;}E+=C.reader.read();}return C.createToken("number",E,A,D);};var a={tabWidth:4,lineNumbers:"automatic",lineNumberStart:1,lineHighlight:[]};var k={};var n={analyzer:l(w),customTokens:[],namedIdentRules:{},punctuation:/[^\w\s]/,numberParser:t,caseInsensitive:false};h.Sunlight={version:"1.3",Highlighter:g,createAnalyzer:function(){return l(w);},globalOptions:a,highlightAll:function(B){var A=new g(B);var z=o.getElementsByTagName("*");for(var C=0;C<z.length;C++){A.highlightNode(z[C]);}},registerLanguage:function(z,B){if(!z){throw'Languages must be registered with an identifier, e.g. "php" for PHP';}B=e(e({},n),B);B.name=z;B.keywords=s(B.keywords||[],"\\b",B.caseInsensitive);B.operators=s(B.operators||[],"",B.caseInsensitive);for(var A in B.customTokens){B.customTokens[A]=s(B.customTokens[A].values,B.customTokens[A].boundary,B.caseInsensitive);}k[B.name]=B;},util:{escapeSequences:["\\n","\\t","\\r","\\\\","\\v","\\f"],contains:i,matchWord:b,createHashMap:s,createBetweenRule:c,createProceduralRule:j,getNextNonWsToken:function(A,z){return d(A,z,1);},getPreviousNonWsToken:function(A,z){return d(A,z,-1);},whitespace:{token:"default",optional:true}}};h.Sunlight.registerLanguage(q,{punctuation:/(?!x)x/,numberParser:y});}(window,document));
@@ -0,0 +1 @@
1
+ (function(c,a,d){if(c===d||c.registerLanguage===d){throw"Include sunlight.js before including language files";}var b=[];c.registerLanguage("ruby",{keywords:["BEGIN","END","__ENCODING__","__END__","__FILE__","__LINE__","alias","and","begin","break","case","class","def","defined?","do","else","elsif","end","ensure","false","for","if","in","module","next","nil","not","or","redo","rescue","retry","return","self","super","then","true","undef","unless","until","when","while","yield"],customTokens:{"function":{values:["Array","Float","Integer","String","at_exit","autoload","binding","caller","catch","chop!","chop","chomp!","chomp","eval","exec","exit!","exit","fail","fork","format","gets","global_variables","gsub!","gsub","iterator?","lambda","load","local_variables","loop","open","p","print","printf","proc","putc","puts","raise","rand","readline","readlines","require","select","sleep","split","sprintf","srand","sub!","sub","syscall","system","test","trace_var","trap","untrace_var"],boundary:"\\W"},specialOperator:{values:["defined?","eql?","equal?"],boundary:"\\W"}},customParseRules:[function(g){var f=g.reader.peek();if(g.reader.current()!=="/"||f==="/"||f==="*"){return null;}var l=function(){var n=g.token(g.count()-1);var m=null;if(g.defaultData.text!==""){m=g.createToken("default",g.defaultData.text);}if(!m){m=n;}if(m===d){return true;}if(m.name==="default"&&m.value.indexOf("\n")>-1){return true;}if(n.name==="keyword"||n.name==="ident"||n.name==="number"){return false;}return true;}();if(!l){return null;}var k="/";var e=g.reader.getLine();var i=g.reader.getColumn();var j,h;while(g.reader.peek()!==g.reader.EOF){j=g.reader.peek(2);if(j==="\\/"||j==="\\\\"){k+=g.reader.read(2);continue;}k+=(h=g.reader.read());if(h==="/"){break;}}while(g.reader.peek()!==g.reader.EOF){if(!/[A-Za-z]/.test(g.reader.peek())){break;}k+=g.reader.read();}return g.createToken("regexLiteral",k,e,i);},function(g){if(g.reader.current()!=="<"||g.reader.peek()!=="<"){return null;}var e=c.util.getPreviousNonWsToken(g.getAllTokens(),g.count()-1);if(e&&(e.name==="ident"||e.name==="number"||e.name==="string")){return null;}var o=g.reader.getLine(),i=g.reader.getColumn();var m="<<",j="";g.reader.read(2);var l=g.reader.current();var f="";if(l==="-"){g.reader.read();m+=l;l=g.reader.current();}if(c.util.contains(['"',"'","`"],l)){f=l;}else{j=l;}m+=l;var n;while((n=g.reader.peek())!==g.reader.EOF){if(n==="\n"||(f===""&&/\W/.test(n))){break;}if(n==="\\"){var k=g.reader.peek(2);if(f!==""&&c.util.contains(["\\"+f,"\\\\"],k)){m+=k;j+=g.reader.read(2);continue;}}m+=g.reader.read();if(f!==""&&n===f){break;}j+=n;}b.push(j);var h=g.createToken("heredocDeclaration",m,o,i);return h;},function(g){if(b.length===0){return null;}if(g.defaultData.text.replace(/[^\n]/g,"").length===0){return null;}var j=[],k,f,h,i=g.reader.current();while(b.length>0&&g.reader.peek()!==g.reader.EOF){k=b.shift();f=g.reader.getLine(),h=g.reader.getColumn();while(g.reader.peek()!==g.reader.EOF){var e=g.reader.peek(k.length+2);if(e==="\n"+k||e==="\n"+k+"\n"){i+=g.reader.read(k.length+2);break;}i+=g.reader.read();}j.push(g.createToken("heredoc",i,f,h));i="";}return j.length>0?j:null;},function(h){if(h.reader.current()!=="%"){return null;}var k="%",j=1,l=false;var g=h.reader.peek();if(g==="q"||g==="Q"||g==="r"){j++;if(g==="r"){l=true;}}if(/[A-Za-z0-9=]$/.test(h.reader.peek(j))){return null;}var e=h.reader.getLine(),i=h.reader.getColumn();k+=h.reader.read(j);var f=k.charAt(k.length-1);switch(f){case"(":f=")";break;case"[":f="]";break;case"{":f="}";break;}while((g=h.reader.peek())!==h.reader.EOF){if(g==="\\"&&c.util.contains(["\\"+f,"\\\\"],h.reader.peek(2))){k+=h.reader.read(2);continue;}k+=h.reader.read();if(g===f){break;}}if(l){while(h.reader.peek()!==h.reader.EOF){if(!/[A-Za-z]/.test(h.reader.peek())){break;}k+=h.reader.read();}}return h.createToken(l?"regexLiteral":"rawString",k,e,i);},function(h){if(h.reader.current()!=="="||h.reader.peek(5)!=="begin"){return null;}if((h.count()===0&&h.defaultData.text==="")||h.defaultData.text.charAt(h.defaultData.text.length-1)!=="\n"){return null;}var j="=begin";var f=h.reader.getLine();var i=h.reader.getColumn();h.reader.read(5);var e=false,g;while((g=h.reader.peek())!==h.reader.EOF){if(!e&&h.reader.peek(5)==="\n=end"){e=true;j+=h.reader.read(5);continue;}if(e&&g==="\n"){break;}j+=h.reader.read();}return h.createToken("docComment",j,f,i);}],scopes:{string:[['"','"',c.util.escapeSequences.concat(['\\"'])],["'","'",["\\'","\\\\"]]],comment:[["#","\n",null,true]],subshellCommand:[["`","`",["\\`"]]],globalVariable:[["$",{length:1,regex:/[\W]/},null,true]],instanceVariable:[["@",{length:1,regex:/[\W]/},null,true]]},identFirstLetter:/[A-Za-z_]/,identAfterFirstLetter:/\w/,namedIdentRules:{follows:[[{token:"keyword",values:["class","def"]},c.util.whitespace],[{token:"keyword",values:["class"]},c.util.whitespace,{token:"ident"},c.util.whitespace,{token:"operator",values:["<","<<"]},c.util.whitespace]],precedes:[[c.util.whitespace,{token:"operator",values:["::"]}],[c.util.whitespace,{token:"operator",values:["."]},c.util.whitespace,{token:"ident",values:["new"]},c.util.whitespace,{token:"punctuation",values:["("]}]]},operators:["?","...","..",".","::",":","[]","+=","+","-=","-","**=","*=","**","*","/=","/","%=","%","&&=","&=","&&","&","||=","|=","||","|","^=","^","~","<=>","<<=","<<","<=","<",">>=",">>",">=",">","!~","!=","!","=>","===","==","=~","="]});}(window.Sunlight,document));
@@ -0,0 +1,3 @@
1
+ The files in this folder were copied from YUI. They are included here to ensure
2
+ it is possible to build codnar.html without "installing" the YUI files. See
3
+ http://http://developer.yahoo.com/yui/ for the official complete distribution.
@@ -0,0 +1,132 @@
1
+ /*
2
+ * Copyright (c) 2010, Yahoo! Inc. All rights reserved.
3
+ * Code licensed under the BSD License:
4
+ * http://developer.yahoo.com/yui/license.html
5
+ * version: 2.8.2r1
6
+ */
7
+
8
+ /*
9
+ * YUI Base
10
+ * @module base
11
+ * @namespace yui-
12
+ * @requires reset, fonts
13
+ */
14
+
15
+ body {
16
+ /* For breathing room between content and viewport. */
17
+ margin:10px;
18
+ }
19
+
20
+ h1 {
21
+ /* 18px via YUI Fonts CSS foundation. */
22
+ font-size: 138.5%;
23
+ }
24
+
25
+ h2 {
26
+ /* 16px via YUI Fonts CSS foundation. */
27
+ font-size: 123.1%;
28
+ }
29
+
30
+ h3 {
31
+ /* 14px via YUI Fonts CSS foundation. */
32
+ font-size: 108%;
33
+ }
34
+
35
+ h1,h2,h3 {
36
+ /* Top & bottom margin based on font size. */
37
+ margin: 1em 0;
38
+ }
39
+
40
+ h1,h2,h3,h4,h5,h6,strong,dt {
41
+ /* Bringing boldness back to headers and the strong element. */
42
+ font-weight: bold;
43
+ }
44
+ optgroup {
45
+ font-weight:normal;
46
+ }
47
+
48
+ abbr,acronym {
49
+ /* Indicating to users that more info is available. */
50
+ border-bottom: 1px dotted #000;
51
+ cursor: help;
52
+ }
53
+
54
+ em {
55
+ /* Bringing italics back to the em element. */
56
+ font-style: italic;
57
+ }
58
+
59
+ del {
60
+ /* Striking deleted phrases. */
61
+ text-decoration: line-through;
62
+ }
63
+
64
+ blockquote,ul,ol,dl {
65
+ /* Giving blockquotes and lists room to breath. */
66
+ margin: 1em;
67
+ }
68
+
69
+ ol,ul,dl {
70
+ /* Bringing lists on to the page with breathing room. */
71
+ margin-left: 2em;
72
+ }
73
+
74
+ ol li {
75
+ /* Giving OL's LIs generated numbers. */
76
+ list-style: decimal outside;
77
+ }
78
+
79
+ ul li {
80
+ /* Giving UL's LIs generated disc markers. */
81
+ list-style: disc outside;
82
+ }
83
+
84
+ dl dd {
85
+ /* Giving UL's LIs generated numbers. */
86
+ margin-left: 1em;
87
+ }
88
+
89
+ th,td {
90
+ /* Borders and padding to make the table readable. */
91
+ border: 1px solid #000;
92
+ padding: .5em;
93
+ }
94
+
95
+ th {
96
+ /* Distinguishing table headers from data cells. */
97
+ font-weight: bold;
98
+ text-align: center;
99
+ }
100
+
101
+ caption {
102
+ /* Coordinated margin to match cell's padding. */
103
+ margin-bottom: .5em;
104
+ /* Centered so it doesn't blend in to other content. */
105
+ text-align: center;
106
+ }
107
+
108
+ sup {
109
+ /* to preserve line-height and selector appearance */
110
+ vertical-align: super;
111
+ }
112
+
113
+ sub {
114
+ /* to preserve line-height and selector appearance */
115
+ vertical-align: sub;
116
+ }
117
+
118
+ p,
119
+ fieldset,
120
+ table,
121
+ pre {
122
+ /* So things don't run into each other. */
123
+ margin-bottom: 1em;
124
+ }
125
+ /* Opera requires 1px of passing to render with contemporary native chrome */
126
+ button,
127
+ input[type="checkbox"],
128
+ input[type="radio"],
129
+ input[type="reset"],
130
+ input[type="submit"] {
131
+ padding:1px;
132
+ }
@@ -0,0 +1,142 @@
1
+ /*
2
+ * Copyright (c) 2010, Yahoo! Inc. All rights reserved.
3
+ * Code licensed under the BSD License:
4
+ * http://developer.yahoo.com/yui/license.html
5
+ * version: 2.8.2r1
6
+ */
7
+ /*
8
+ * YUI Reset
9
+ * @module reset
10
+ * @namespace
11
+ * @requires
12
+ */
13
+ html {
14
+ color: #000;
15
+ background: #FFF;
16
+ }
17
+
18
+ body,
19
+ div,
20
+ dl,
21
+ dt,
22
+ dd,
23
+ ul,
24
+ ol,
25
+ li,
26
+ h1,
27
+ h2,
28
+ h3,
29
+ h4,
30
+ h5,
31
+ h6,
32
+ pre,
33
+ code,
34
+ form,
35
+ fieldset,
36
+ legend,
37
+ input,
38
+ button,
39
+ textarea,
40
+ p,
41
+ blockquote,
42
+ th,
43
+ td {
44
+ margin: 0;
45
+ padding: 0;
46
+ }
47
+
48
+ table {
49
+ border-collapse: collapse;
50
+ border-spacing: 0;
51
+ }
52
+
53
+ fieldset,
54
+ img {
55
+ border: 0;
56
+ }
57
+
58
+ address,
59
+ caption,
60
+ cite,
61
+ code,
62
+ dfn,
63
+ em,
64
+ strong,
65
+ th,
66
+ var,
67
+ optgroup {
68
+ font-style: inherit;
69
+ font-weight: inherit;
70
+ }
71
+
72
+ del,
73
+ ins {
74
+ text-decoration: none;
75
+ }
76
+
77
+ li {
78
+ list-style: none;
79
+ }
80
+
81
+ caption,
82
+ th {
83
+ text-align: left;
84
+ }
85
+
86
+ h1,
87
+ h2,
88
+ h3,
89
+ h4,
90
+ h5,
91
+ h6 {
92
+ font-size: 100%;
93
+ font-weight: normal;
94
+ }
95
+
96
+ q:before,
97
+ q:after {
98
+ content: '';
99
+ }
100
+
101
+ abbr,
102
+ acronym {
103
+ border: 0;
104
+ font-variant: normal;
105
+ }
106
+
107
+ sup {
108
+ vertical-align: baseline;
109
+ }
110
+
111
+ sub {
112
+ vertical-align: baseline;
113
+ }
114
+
115
+ /*because legend doesn't inherit in IE */
116
+ legend {
117
+ color: #000;
118
+ }
119
+
120
+ input,
121
+ button,
122
+ textarea,
123
+ select,
124
+ optgroup,
125
+ option {
126
+ font-family: inherit;
127
+ font-size: inherit;
128
+ font-style: inherit;
129
+ font-weight: inherit;
130
+ }
131
+
132
+ /*@purpose To enable resizing for IE */
133
+ /*@branch For IE6-Win, IE7-Win */
134
+ input,
135
+ button,
136
+ textarea,
137
+ select {
138
+ *font-size: 100%;
139
+ }
140
+
141
+
142
+