aboutsummaryrefslogtreecommitdiff
path: root/tools/template.html
blob: ca631467b60af80ba25a14494e35a1a6e76f9364 (plain)
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>$title$</title>
  6. <style type="text/css">
  7. body { font-family: Helvetica, arial, freesans, clean, sans-serif;
  8. line-height: 1.4;
  9. max-width: 48em;
  10. margin: auto;
  11. color: #333333;
  12. background-color: #fff;
  13. font-size: 13pt;
  14. }
  15. div#TOC ul { list-style: none; }
  16. h1 { font-size: 140%; font-weight: bold; border-top: 1px solid gray; padding-top: 0.5em; }
  17. h2 { font-size: 120%; font-weight: bold; }
  18. h3 { font-size: 110%; font-weight: bold; }
  19. h4 { font-size: 100%; font-weight: bold; }
  20. a.definition { font-weight: bold; }
  21. span.space { position: relative; }
  22. span.number:after { content: "  " }
  23. span.space:after {
  24. content: "·";
  25. position: absolute;
  26. /* create a mark that indicates a space (trick from D. Greenspan) */
  27. top: 0px; bottom: 7px; left: 1px; right: 1px;
  28. color: #AAA;
  29. }
  30. div.example { overflow: hidden; }
  31. p { text-align: justify; }
  32. pre { padding: 0.5em; margin-left: 0; margin-right: 0; margin-top: 0.2em;
  33. margin-bottom: 0.5em; font-size: 88%; }
  34. pre {
  35. white-space: pre-wrap; /* css-3 */
  36. white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
  37. white-space: -pre-wrap; /* Opera 4-6 */
  38. white-space: -o-pre-wrap; /* Opera 7 */
  39. word-wrap: break-word; /* Internet Explorer 5.5+ */
  40. }
  41. code { font-family: monospace; background-color: #D3E1E4; }
  42. pre > code { background-color: transparent; }
  43. .example { font-size: 0; /* hack to get width:50% to work on inline-block */
  44. padding-bottom: 6pt; }
  45. .column pre { font-size: 11pt; padding-left: 6pt; padding-right: 6pt;
  46. padding-top: 2pt; padding-bottom: 2pt; }
  47. div.examplenum { font-size: 11pt; text-align: left; }
  48. div.column { display: inline-block; width: 50%; vertical-align: top; }
  49. div.example > div:nth-child(2) { clear:left; background-color: #D3E1E4; }
  50. div.example > div:nth-child(3) { clear:right; background-color: #C9CaCE; }
  51. #watermark {
  52. position:fixed;
  53. bottom:0px;
  54. left:0px;
  55. padding: 1em;
  56. width: 100%;
  57. font-size: 120%;
  58. opacity:0.7;
  59. z-index:99;
  60. color: white;
  61. }
  62. #watermark a { color: white; }
  63. a.dingus { margin-left: 1em; color: red; cursor: pointer; }
  64. a.footnoteRef > sup:before {
  65. content: "[";
  66. }
  67. a.footnoteRef > sup:after {
  68. content: "]";
  69. }
  70. a.footnoteRef > sup {
  71. vertical-align: baseline;
  72. font-size: 100%;
  73. }
  74. @media print {
  75. @page {
  76. size: auto;
  77. margin: 1.2in 1.2in 1.2in 1.2in;
  78. }
  79. body {
  80. margin: 0px;
  81. line-height: 1.2;
  82. font-size: 10pt;
  83. }
  84. .column pre { font-size: 9pt; }
  85. div.examplenum { font-size: 9pt; }
  86. a.dingus { display: none; }
  87. }
  88. </style>
  89. <script src="https://code.jquery.com/jquery-2.2.0.min.js"></script>
  90. <script type="text/javascript">
  91. $$(document).ready(function() {
  92. $$("div.example").each(function(e) {
  93. var t = $$(this).find('code.language-markdown').text();
  94. $$(this).find('a.dingus').click(function(f) {
  95. window.open('/dingus/?text=' +
  96. encodeURIComponent(t.replace(/→/g,"\t")));
  97. });
  98. });
  99. $$("code.language-markdown").dblclick(function(e) { window.open('/dingus/?text=' +
  100. encodeURIComponent($$(this).find('code').text()));
  101. });
  102. });
  103. </script>
  104. </head>
  105. <body>
  106. <h1 class="title">$title$</h1>
  107. <div class="version">Version $version$ ($date$)</div>
  108. <div class="authors">
  109. <span class="author">$author$</span>
  110. </div>
  111. <div class="license">
  112. <a rel="license"
  113. href="http://creativecommons.org/licenses/by-sa/4.0/"><img alt="Creative
  114. Commons BY-SA" style="border-width:0"
  115. src="https://i.creativecommons.org/l/by-sa/4.0/80x15.png"
  116. /></a><br/><span style="display:none"><span xmlns:dct="http://purl.org/dc/terms/"
  117. href="http://purl.org/dc/dcmitype/Text" property="dct:title"
  118. rel="dct:type">CommonMark Spec</span> by
  119. <a xmlns:cc="http://creativecommons.org/ns#"
  120. href="http://spec.commonmark.org" property="cc:attributionName"
  121. rel="cc:attributionURL">John MacFarlane</a> is licensed under a
  122. <a rel="license"
  123. href="http://creativecommons.org/licenses/by-sa/4.0/">Creative
  124. Commons Attribution-ShareAlike 4.0 International License</a>.</span>
  125. </div>
  126. <div id="watermark"></div>
  127. <div id="TOC">
  128. $toc$
  129. </div>
  130. $body$
  131. </body>
  132. </html>