tocmd 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. checksums.yaml +7 -0
  2. data/bin/tocmd +70 -0
  3. data/lib/mdpreview/markdown_render.rb +45 -0
  4. data/lib/mdpreview/translator.rb +237 -0
  5. data/lib/mdpreview/version.rb +3 -0
  6. data/lib/mdpreview.rb +18 -0
  7. data/test/mdptest.rb +100 -0
  8. data/vendor/cur.file +6 -0
  9. data/vendor/meta.js +1 -0
  10. data/vendor/template.html +0 -0
  11. data/vendor/toc/css/demo.css +33 -0
  12. data/vendor/toc/css/zTreeStyle/img/diy/1_close.png +0 -0
  13. data/vendor/toc/css/zTreeStyle/img/diy/1_open.png +0 -0
  14. data/vendor/toc/css/zTreeStyle/img/diy/2.png +0 -0
  15. data/vendor/toc/css/zTreeStyle/img/diy/3.png +0 -0
  16. data/vendor/toc/css/zTreeStyle/img/diy/4.png +0 -0
  17. data/vendor/toc/css/zTreeStyle/img/diy/5.png +0 -0
  18. data/vendor/toc/css/zTreeStyle/img/diy/6.png +0 -0
  19. data/vendor/toc/css/zTreeStyle/img/diy/7.png +0 -0
  20. data/vendor/toc/css/zTreeStyle/img/diy/8.png +0 -0
  21. data/vendor/toc/css/zTreeStyle/img/diy/9.png +0 -0
  22. data/vendor/toc/css/zTreeStyle/img/line_conn.gif +0 -0
  23. data/vendor/toc/css/zTreeStyle/img/loading.gif +0 -0
  24. data/vendor/toc/css/zTreeStyle/img/zTreeStandard.gif +0 -0
  25. data/vendor/toc/css/zTreeStyle/img/zTreeStandard.png +0 -0
  26. data/vendor/toc/css/zTreeStyle/zTreeStyle.css +97 -0
  27. data/vendor/toc/js/jquery-1.4.4.min.js +167 -0
  28. data/vendor/toc/js/jquery.ztree.all-3.5.js +3447 -0
  29. data/vendor/toc/js/jquery.ztree.all-3.5.min.js +157 -0
  30. data/vendor/toc/js/jquery.ztree.core-3.5.js +1644 -0
  31. data/vendor/toc/js/jquery.ztree.core-3.5.min.js +68 -0
  32. data/vendor/toc/js/jquery.ztree.excheck-3.5.js +624 -0
  33. data/vendor/toc/js/jquery.ztree.excheck-3.5.min.js +33 -0
  34. data/vendor/toc/js/jquery.ztree.exedit-3.5.js +1178 -0
  35. data/vendor/toc/js/jquery.ztree.exedit-3.5.min.js +52 -0
  36. data/vendor/toc/js/jquery.ztree.exhide-3.5.js +362 -0
  37. data/vendor/toc/js/jquery.ztree.exhide-3.5.min.js +22 -0
  38. data/vendor/toc/js/jquery.ztree_toc.js +224 -0
  39. data/vendor/toc/js/jquery.ztree_toc.min.js +4 -0
  40. data/vendor/toc/style/Clearness Dark.css +146 -0
  41. data/vendor/toc/style/Clearness.css +147 -0
  42. data/vendor/toc/style/GitHub.css +90 -0
  43. data/vendor/toc/style/GitHub2.css +297 -0
  44. data/vendor/toc/style/github-bf51422f4bb36427d391e4b75a1daa083c2d840e.css +1 -0
  45. data/vendor/toc/style/github2-d731afd4f624c99a4b19ad69f3083cd6d02b81d5.css +1 -0
  46. data/vendor/toc/style/makedownpad.css +285 -0
  47. metadata +90 -0
@@ -0,0 +1,224 @@
1
+ /*! ztree_toc - v0.1.0 - 2014-01-27
2
+ * https://github.com/i5ting/jQuery.zTree_Toc.js
3
+ * Copyright (c) 2014 alfred.sang; Licensed MIT */
4
+ /**
5
+ * 1.1.1 = 1*100*100 + 1*100 + 1
6
+ * 1.2.2 = 1*100*100 + 2*100 + 3
7
+ *
8
+ * 1 = 0*100 +1
9
+ */
10
+ function encode_id_with_array(opts,arr){
11
+ console.log('---------------- get_id_with_str start---------------\n');
12
+
13
+ var result = 0;
14
+ for(var z = 0; z < arr.length; z++ ){
15
+ // str += opts.step+'*' + opts.step + '*';
16
+
17
+ result += factor(opts, arr.length - z ,arr[z]);
18
+ console.log('z = ' + z + ',result=' ,result);
19
+ }
20
+
21
+ console.log('result all = '+result);
22
+ console.log('--------------end-----------------\n');
23
+
24
+ return result;
25
+ }
26
+
27
+
28
+ /**
29
+ * 1.1.1 = 1*100*100 + 1*100 + 1
30
+ * 1.2.2 = 1*100*100 + 2*100 + 3
31
+ *
32
+ * 1 = 0*100 +1
33
+
34
+ 1,1 = 100
35
+
36
+ */
37
+ function get_parent_id_with_array(opts,arr){
38
+ console.log('---------------- get_id_with_str start---------------\n');
39
+ var result_arr = [];
40
+
41
+ for(var z = 0; z < arr.length; z++ ){
42
+ result_arr.push(arr[z]);
43
+ }
44
+
45
+ result_arr.pop();
46
+
47
+ var result = 0;
48
+ for(var z = 0; z < result_arr.length; z++ ){
49
+ // str += opts.step+'*' + opts.step + '*';
50
+
51
+ result += factor(opts,result_arr.length - z,result_arr[z]);
52
+ console.log('z = ' + z + ',result=',result);
53
+ }
54
+
55
+ console.log('result all = '+result);
56
+ console.log('--------------end-----------------\n');
57
+
58
+ return result;
59
+ }
60
+
61
+ function factor(opts ,count,current){
62
+ if(1 == count){
63
+ return current;
64
+ }
65
+
66
+ var str = '';
67
+ for(var i = count - 1;i > 0; i-- ){
68
+ str += current * opts.step+'*';
69
+ }
70
+
71
+ console.log('str = '+str);
72
+
73
+ return eval( str + '1' );
74
+ }
75
+
76
+ ;(function($){
77
+ /*
78
+ * 根据header创建目录内容
79
+ */
80
+ function create_toc(opts){
81
+ $(opts.documment_selector).find(':header').each(function() {
82
+ var level = parseInt(this.nodeName.substring(1), 10);
83
+
84
+ _rename_header_content(opts,this,level);
85
+
86
+ _add_header_node(opts,$(this));
87
+ });//end each
88
+ }
89
+
90
+ /*
91
+ * 渲染ztree
92
+ */
93
+ function render_with_ztree(opts){
94
+ var t = $(opts._zTree);
95
+ t = $.fn.zTree.init(t,opts.ztreeSetting,opts._header_nodes).expandAll(opts.is_expand_all);
96
+ // alert(opts._headers * 88);
97
+ // $(opts._zTree).height(opts._headers * 33 + 33);
98
+
99
+ $(opts._zTree).css(opts.ztreeStyle);
100
+ }
101
+
102
+ /*
103
+ * 将已有header编号,并重命名
104
+ */
105
+ function _rename_header_content(opts ,header_obj ,level){
106
+ if(opts._headers.length == level) {
107
+ opts._headers[level - 1]++;
108
+ } else if(opts._headers.length > level) {
109
+ opts._headers = opts._headers.slice(0, level);
110
+ opts._headers[level - 1] ++;
111
+ } else if(opts._headers.length < level) {
112
+ for(var i = 0; i < (level - opts._headers.length); i++) {
113
+ // console.log('push 1');
114
+ opts._headers.push(1);
115
+ }
116
+ }
117
+
118
+ if(opts.is_auto_number == true){
119
+ $(header_obj).text(opts._headers.join('.') + '. ' + $(header_obj).text());
120
+ }
121
+ }
122
+
123
+ /*
124
+ * 给ztree用的header_nodes增加数据
125
+ */
126
+ function _add_header_node(opts ,header_obj){
127
+ var id = encode_id_with_array(opts,opts._headers);
128
+ var pid = get_parent_id_with_array(opts,opts._headers);
129
+
130
+ // 设置锚点id
131
+ $(header_obj).attr('id',id);
132
+
133
+ log($(header_obj).text());
134
+
135
+ opts._header_nodes.push({
136
+ id:id,
137
+ pId:pid ,
138
+ name:$(header_obj).text()||'null',
139
+ open:true,
140
+ url:'#'+ id,
141
+ target:'_self'
142
+ });
143
+ }
144
+
145
+ function log(str){
146
+ if($.fn.ztree_toc.defaults.debug == true){
147
+ console.log(str);
148
+ }
149
+ }
150
+
151
+ $.fn.ztree_toc = function(options){
152
+ // 将defaults 和 options 参数合并到{}
153
+ var opts = $.extend({},$.fn.ztree_toc.defaults,options);
154
+
155
+ return this.each(function(){
156
+ opts._zTree = $(this);
157
+
158
+ create_toc(opts);
159
+
160
+ render_with_ztree(opts);
161
+ })
162
+ // each end
163
+ }
164
+
165
+ //定义默认
166
+ $.fn.ztree_toc.defaults = {
167
+ _zTree: null,
168
+ _headers: [],
169
+ _header_nodes: [{ id:1, pId:0, name:"Table of Content",open:true}],
170
+ debug: true,
171
+ documment_selector: 'body',
172
+ is_posion_top: false,
173
+ /*
174
+ * 默认是否显示header编号
175
+ */
176
+ is_auto_number: false,
177
+ /*
178
+ * 默认是否展开全部
179
+ */
180
+ is_expand_all: true,
181
+ /*
182
+ * 是否对选中行,显示高亮效果
183
+ */
184
+ is_highlight_selected_line: true,
185
+ step: 100,
186
+ ztreeStyle: {
187
+ width:'260px',
188
+ overflow: 'auto',
189
+ position: 'fixed',
190
+ 'z-index': 2147483647,
191
+ border: '0px none',
192
+ left: '0px',
193
+ bottom: '0px',
194
+ // height:'100px'
195
+ },
196
+ ztreeSetting: {
197
+ view: {
198
+ dblClickExpand: false,
199
+ showLine: true,
200
+ showIcon: false,
201
+ selectedMulti: false
202
+ },
203
+ data: {
204
+ simpleData: {
205
+ enable: true,
206
+ idKey : "id",
207
+ pIdKey: "pId",
208
+ // rootPId: "0"
209
+ }
210
+ },
211
+ callback: {
212
+ beforeClick: function(treeId, treeNode) {
213
+ if($.fn.ztree_toc.defaults.is_highlight_selected_line == true){
214
+ $('#' + treeNode.id).css('color' ,'red').fadeOut("slow" ,function() {
215
+ // Animation complete.
216
+ $(this).show().css('color','black');
217
+ });
218
+ }
219
+ }
220
+ }
221
+ }
222
+ };
223
+
224
+ })(jQuery);
@@ -0,0 +1,4 @@
1
+ /*! ztree_toc - v0.1.0 - 2014-01-27
2
+ * https://github.com/i5ting/jQuery.zTree_Toc.js
3
+ * Copyright (c) 2014 alfred.sang; Licensed MIT */
4
+ function encode_id_with_array(a,b){console.log("---------------- get_id_with_str start---------------\n");for(var c=0,d=0;d<b.length;d++)c+=factor(a,b.length-d,b[d]),console.log("z = "+d+",result=",c);return console.log("result all = "+c),console.log("--------------end-----------------\n"),c}function get_parent_id_with_array(a,b){console.log("---------------- get_id_with_str start---------------\n");for(var c=[],d=0;d<b.length;d++)c.push(b[d]);c.pop();for(var e=0,d=0;d<c.length;d++)e+=factor(a,c.length-d,c[d]),console.log("z = "+d+",result=",e);return console.log("result all = "+e),console.log("--------------end-----------------\n"),e}function factor(opts,count,current){if(1==count)return current;for(var str="",i=count-1;i>0;i--)str+=current*opts.step+"*";return console.log("str = "+str),eval(str+"1")}!function(a){function b(b){a(b.documment_selector).find(":header").each(function(){var c=parseInt(this.nodeName.substring(1),10);d(b,this,c),e(b,a(this))})}function c(b){var c=a(b._zTree);c=a.fn.zTree.init(c,b.ztreeSetting,b._header_nodes).expandAll(b.is_expand_all),a(b._zTree).css(b.ztreeStyle)}function d(b,c,d){if(b._headers.length==d)b._headers[d-1]++;else if(b._headers.length>d)b._headers=b._headers.slice(0,d),b._headers[d-1]++;else if(b._headers.length<d)for(var e=0;e<d-b._headers.length;e++)b._headers.push(1);1==b.is_auto_number&&a(c).text(b._headers.join(".")+". "+a(c).text())}function e(b,c){var d=encode_id_with_array(b,b._headers),e=get_parent_id_with_array(b,b._headers);a(c).attr("id",d),f(a(c).text()),b._header_nodes.push({id:d,pId:e,name:a(c).text()||"null",open:!0,url:"#"+d,target:"_self"})}function f(b){1==a.fn.ztree_toc.defaults.debug&&console.log(b)}a.fn.ztree_toc=function(d){var e=a.extend({},a.fn.ztree_toc.defaults,d);return this.each(function(){e._zTree=a(this),b(e),c(e)})},a.fn.ztree_toc.defaults={_zTree:null,_headers:[],_header_nodes:[{id:1,pId:0,name:"Table of Content",open:!0}],debug:!0,documment_selector:"body",is_posion_top:!1,is_auto_number:!1,is_expand_all:!0,is_highlight_selected_line:!0,step:100,ztreeStyle:{width:"260px",overflow:"auto",position:"fixed","z-index":2147483647,border:"0px none",left:"0px",bottom:"0px"},ztreeSetting:{view:{dblClickExpand:!1,showLine:!0,showIcon:!1,selectedMulti:!1},data:{simpleData:{enable:!0,idKey:"id",pIdKey:"pId"}},callback:{beforeClick:function(b,c){1==a.fn.ztree_toc.defaults.is_highlight_selected_line&&a("#"+c.id).css("color","red").fadeOut("slow",function(){a(this).show().css("color","black")})}}}}}(jQuery);
@@ -0,0 +1,146 @@
1
+ h1,
2
+ h2,
3
+ h3,
4
+ h4,
5
+ h5,
6
+ h6,
7
+ p,
8
+ blockquote {
9
+ margin: 0;
10
+ padding: 0;
11
+ }
12
+ body {
13
+ font-family: "Helvetica Neue", Helvetica, "Hiragino Sans GB", Arial, sans-serif;
14
+ font-size: 13px;
15
+ line-height: 18px;
16
+ color: #fff;
17
+ background-color: #282a36;
18
+ margin: 10px 13px 10px 13px;
19
+ }
20
+ table {
21
+ margin: 10px 0 15px 0;
22
+ border-collapse: collapse;
23
+ }
24
+ td,th {
25
+ border: 1px solid #ddd;
26
+ padding: 3px 10px;
27
+ }
28
+ th {
29
+ padding: 5px 10px;
30
+ }
31
+ a {
32
+ color: #59acf3;
33
+ }
34
+ a:hover {
35
+ color: #a7d8ff;
36
+ text-decoration: none;
37
+ }
38
+ a img {
39
+ border: none;
40
+ }
41
+ p {
42
+ margin-bottom: 9px;
43
+ }
44
+ h1,
45
+ h2,
46
+ h3,
47
+ h4,
48
+ h5,
49
+ h6 {
50
+ color: #fff;
51
+ line-height: 36px;
52
+ }
53
+ h1 {
54
+ margin-bottom: 18px;
55
+ font-size: 30px;
56
+ }
57
+ h2 {
58
+ font-size: 24px;
59
+ }
60
+ h3 {
61
+ font-size: 18px;
62
+ }
63
+ h4 {
64
+ font-size: 16px;
65
+ }
66
+ h5 {
67
+ font-size: 14px;
68
+ }
69
+ h6 {
70
+ font-size: 13px;
71
+ }
72
+ hr {
73
+ margin: 0 0 19px;
74
+ border: 0;
75
+ border-bottom: 1px solid #ccc;
76
+ }
77
+ blockquote {
78
+ padding: 13px 13px 21px 15px;
79
+ margin-bottom: 18px;
80
+ font-family:georgia,serif;
81
+ font-style: italic;
82
+ }
83
+ blockquote:before {
84
+ content:"\201C";
85
+ font-size:40px;
86
+ margin-left:-10px;
87
+ font-family:georgia,serif;
88
+ color:#eee;
89
+ }
90
+ blockquote p {
91
+ font-size: 14px;
92
+ font-weight: 300;
93
+ line-height: 18px;
94
+ margin-bottom: 0;
95
+ font-style: italic;
96
+ }
97
+ code, pre {
98
+ font-family: Monaco, Andale Mono, Courier New, monospace;
99
+ }
100
+ code {
101
+ color: #ff4a14;
102
+ padding: 1px 3px;
103
+ font-size: 12px;
104
+ -webkit-border-radius: 3px;
105
+ -moz-border-radius: 3px;
106
+ border-radius: 3px;
107
+ }
108
+ pre {
109
+ display: block;
110
+ padding: 14px;
111
+ margin: 0 0 18px;
112
+ line-height: 16px;
113
+ font-size: 11px;
114
+ border: 1px solid #bf370f;
115
+ white-space: pre;
116
+ white-space: pre-wrap;
117
+ word-wrap: break-word;
118
+ }
119
+ pre code {
120
+ background-color: #282a36;
121
+ color: #ff4a14;
122
+ font-size: 11px;
123
+ padding: 0;
124
+ }
125
+ sup {
126
+ font-size: 0.83em;
127
+ vertical-align: super;
128
+ line-height: 0;
129
+ }
130
+ * {
131
+ -webkit-print-color-adjust: exact;
132
+ }
133
+ @media screen and (min-width: 914px) {
134
+ body {
135
+ width: 854px;
136
+ margin:10px auto;
137
+ }
138
+ }
139
+ @media print {
140
+ body,code,pre code,h1,h2,h3,h4,h5,h6 {
141
+ color: black;
142
+ }
143
+ table, pre {
144
+ page-break-inside: avoid;
145
+ }
146
+ }
@@ -0,0 +1,147 @@
1
+ h1,
2
+ h2,
3
+ h3,
4
+ h4,
5
+ h5,
6
+ h6,
7
+ p,
8
+ blockquote {
9
+ margin: 0;
10
+ padding: 0;
11
+ }
12
+ body {
13
+ font-family: "Helvetica Neue", Helvetica, "Hiragino Sans GB", Arial, sans-serif;
14
+ font-size: 13px;
15
+ line-height: 18px;
16
+ color: #737373;
17
+ background-color: white;
18
+ margin: 10px 13px 10px 13px;
19
+ }
20
+ table {
21
+ margin: 10px 0 15px 0;
22
+ border-collapse: collapse;
23
+ }
24
+ td,th {
25
+ border: 1px solid #ddd;
26
+ padding: 3px 10px;
27
+ }
28
+ th {
29
+ padding: 5px 10px;
30
+ }
31
+
32
+ a {
33
+ color: #0069d6;
34
+ }
35
+ a:hover {
36
+ color: #0050a3;
37
+ text-decoration: none;
38
+ }
39
+ a img {
40
+ border: none;
41
+ }
42
+ p {
43
+ margin-bottom: 9px;
44
+ }
45
+ h1,
46
+ h2,
47
+ h3,
48
+ h4,
49
+ h5,
50
+ h6 {
51
+ color: #404040;
52
+ line-height: 36px;
53
+ }
54
+ h1 {
55
+ margin-bottom: 18px;
56
+ font-size: 30px;
57
+ }
58
+ h2 {
59
+ font-size: 24px;
60
+ }
61
+ h3 {
62
+ font-size: 18px;
63
+ }
64
+ h4 {
65
+ font-size: 16px;
66
+ }
67
+ h5 {
68
+ font-size: 14px;
69
+ }
70
+ h6 {
71
+ font-size: 13px;
72
+ }
73
+ hr {
74
+ margin: 0 0 19px;
75
+ border: 0;
76
+ border-bottom: 1px solid #ccc;
77
+ }
78
+ blockquote {
79
+ padding: 13px 13px 21px 15px;
80
+ margin-bottom: 18px;
81
+ font-family:georgia,serif;
82
+ font-style: italic;
83
+ }
84
+ blockquote:before {
85
+ content:"\201C";
86
+ font-size:40px;
87
+ margin-left:-10px;
88
+ font-family:georgia,serif;
89
+ color:#eee;
90
+ }
91
+ blockquote p {
92
+ font-size: 14px;
93
+ font-weight: 300;
94
+ line-height: 18px;
95
+ margin-bottom: 0;
96
+ font-style: italic;
97
+ }
98
+ code, pre {
99
+ font-family: Monaco, Andale Mono, Courier New, monospace;
100
+ }
101
+ code {
102
+ background-color: #fee9cc;
103
+ color: rgba(0, 0, 0, 0.75);
104
+ padding: 1px 3px;
105
+ font-size: 12px;
106
+ -webkit-border-radius: 3px;
107
+ -moz-border-radius: 3px;
108
+ border-radius: 3px;
109
+ }
110
+ pre {
111
+ display: block;
112
+ padding: 14px;
113
+ margin: 0 0 18px;
114
+ line-height: 16px;
115
+ font-size: 11px;
116
+ border: 1px solid #d9d9d9;
117
+ white-space: pre-wrap;
118
+ word-wrap: break-word;
119
+ }
120
+ pre code {
121
+ background-color: #fff;
122
+ color:#737373;
123
+ font-size: 11px;
124
+ padding: 0;
125
+ }
126
+ sup {
127
+ font-size: 0.83em;
128
+ vertical-align: super;
129
+ line-height: 0;
130
+ }
131
+ * {
132
+ -webkit-print-color-adjust: exact;
133
+ }
134
+ @media screen and (min-width: 914px) {
135
+ body {
136
+ width: 854px;
137
+ margin:10px auto;
138
+ }
139
+ }
140
+ @media print {
141
+ body,code,pre code,h1,h2,h3,h4,h5,h6 {
142
+ color: black;
143
+ }
144
+ table, pre {
145
+ page-break-inside: avoid;
146
+ }
147
+ }
@@ -0,0 +1,90 @@
1
+ *{margin:0;padding:0;}
2
+ body {
3
+ font:13.34px helvetica,arial,freesans,clean,sans-serif;
4
+ color:black;
5
+ line-height:1.4em;
6
+ background-color: #F8F8F8;
7
+ padding: 0.7em;
8
+ }
9
+ p {
10
+ margin:1em 0;
11
+ line-height:1.5em;
12
+ }
13
+ table {
14
+ font-size:inherit;
15
+ font:100%;
16
+ margin:1em;
17
+ }
18
+ table th{border-bottom:1px solid #bbb;padding:.2em 1em;}
19
+ table td{border-bottom:1px solid #ddd;padding:.2em 1em;}
20
+ input[type=text],input[type=password],input[type=image],textarea{font:99% helvetica,arial,freesans,sans-serif;}
21
+ select,option{padding:0 .25em;}
22
+ optgroup{margin-top:.5em;}
23
+ pre,code{font:12px Monaco,"Courier New","DejaVu Sans Mono","Bitstream Vera Sans Mono",monospace;}
24
+ pre {
25
+ margin:1em 0;
26
+ font-size:12px;
27
+ background-color:#eee;
28
+ border:1px solid #ddd;
29
+ padding:5px;
30
+ line-height:1.5em;
31
+ color:#444;
32
+ overflow:auto;
33
+ -webkit-box-shadow:rgba(0,0,0,0.07) 0 1px 2px inset;
34
+ -webkit-border-radius:3px;
35
+ -moz-border-radius:3px;border-radius:3px;
36
+ }
37
+ pre code {
38
+ padding:0;
39
+ font-size:12px;
40
+ background-color:#eee;
41
+ border:none;
42
+ }
43
+ code {
44
+ font-size:12px;
45
+ background-color:#f8f8ff;
46
+ color:#444;
47
+ padding:0 .2em;
48
+ border:1px solid #dedede;
49
+ }
50
+ img{border:0;max-width:100%;}
51
+ abbr{border-bottom:none;}
52
+ a{color:#4183c4;text-decoration:none;}
53
+ a:hover{text-decoration:underline;}
54
+ a code,a:link code,a:visited code{color:#4183c4;}
55
+ h2,h3{margin:1em 0;}
56
+ h1,h2,h3,h4,h5,h6{border:0;}
57
+ h1{font-size:170%;border-top:4px solid #aaa;padding-top:.5em;margin-top:1.5em;}
58
+ h1:first-child{margin-top:0;padding-top:.25em;border-top:none;}
59
+ h2{font-size:150%;margin-top:1.5em;border-top:4px solid #e0e0e0;padding-top:.5em;}
60
+ h3{margin-top:1em;}
61
+ hr{border:1px solid #ddd;}
62
+ ul{margin:1em 0 1em 2em;}
63
+ ol{margin:1em 0 1em 2em;}
64
+ ul li,ol li{margin-top:.5em;margin-bottom:.5em;}
65
+ ul ul,ul ol,ol ol,ol ul{margin-top:0;margin-bottom:0;}
66
+ blockquote{margin:1em 0;border-left:5px solid #ddd;padding-left:.6em;color:#555;}
67
+ dt{font-weight:bold;margin-left:1em;}
68
+ dd{margin-left:2em;margin-bottom:1em;}
69
+ sup {
70
+ font-size: 0.83em;
71
+ vertical-align: super;
72
+ line-height: 0;
73
+ }
74
+ * {
75
+ -webkit-print-color-adjust: exact;
76
+ }
77
+ @media screen and (min-width: 914px) {
78
+ body {
79
+ width: 854px;
80
+ margin:0 auto;
81
+ }
82
+ }
83
+ @media print {
84
+ table, pre {
85
+ page-break-inside: avoid;
86
+ }
87
+ pre {
88
+ word-wrap: break-word;
89
+ }
90
+ }