web.tmpl 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>{{if .Name}}{{.Name}} | {{end}}{{.Title}}</title>
  6. <style>
  7. html, body, div, span, object, h1, h2, h3, h4, h5,
  8. h6, p, blockquote, pre, a, code, em, img, strong,
  9. dl, ol, ul, li, embed, footer, header, menu,
  10. time, audio, video, progress {
  11. margin: 0;
  12. padding: 0;
  13. border: 0;
  14. font: inherit;
  15. vertical-align: baseline;
  16. }
  17. footer, header, menu { display: block; }
  18. audio, canvas, progress, video {
  19. display: inline-block;
  20. vertical-align: baseline;
  21. }
  22. html { font-family: helvetica; font-size: 22px; }
  23. body {
  24. line-height: 1.4;
  25. color: #333;
  26. background-color: #fff;
  27. }
  28. h1 { font-size: 1.75em; }
  29. h2 { font-size: 1.5em; }
  30. h3 { font-size: 1.25em; }
  31. h1, h2, h3, h4, h5, h6 {
  32. font-family: sans-serif, georgia;
  33. margin-top: 20px;
  34. margin-bottom: 12px;
  35. letter-spacing: 2px;
  36. }
  37. h3, h4 { margin-top: 15px; margin-bottom: 10px; }
  38. h5, h6 { margin-top: 10px; }
  39. h1, h2 { font-weight: bolder; }
  40. h3, h4, strong, b { font-weight: bold; }
  41. em { font-style: italic; font-weight: 200; }
  42. blockquote {
  43. font-family: sans-serif, helvetica;
  44. quotes: none;
  45. padding: 10px 20px;
  46. margin: 0 0 20px;
  47. border-left: 5px solid #eee;
  48. font-style: italic;
  49. }
  50. hr {
  51. height: 0;
  52. margin: 20px 0;
  53. border: 0;
  54. border-top: 1px solid #eee;
  55. }
  56. pre { font-family: monospace; }
  57. code {
  58. padding: 2px 4px;
  59. font-size: 0.9em;
  60. padding: 0.05em 4px;
  61. border-radius: 4px;
  62. background: #000;
  63. overflow-x: auto;
  64. color: #f8f8f8;
  65. }
  66. pre code {
  67. display: block;
  68. margin: 10px 0;
  69. padding: 0.5em;
  70. }
  71. ul { list-style: disc; }
  72. ol { list-style: decimal; }
  73. li {
  74. margin-left: 45px;
  75. margin-bottom: 5px;
  76. line-height: 1.25;
  77. }
  78. ul, ol, dl, p { margin-bottom: 10px; }
  79. a, a:visited { color: #337ab7; }
  80. a:hover, a:active {
  81. background-color: transparent;
  82. text-decoration: underline;
  83. outline: 0;
  84. color: inherit;
  85. }
  86. a:hover, a:focus {
  87. text-decoration: underline;
  88. color: #23527c;
  89. }
  90. a:focus {
  91. outline: thin dotted;
  92. text-decoration: underline;
  93. outline-offset: -2px;
  94. }
  95. h1 a, h1 a:visited, h2 a, h2 a:visited, h3 a, h3 a:visited,
  96. h4 a, h4 a:visited, strong a, strong a:visited {
  97. color: #444;
  98. text-decoration: underline;
  99. }
  100. img {
  101. display: block;
  102. border: none;
  103. max-width: 100%;
  104. height: auto;
  105. vertical-align: middle;
  106. }
  107. header, .content, footer {
  108. max-width: 980px;
  109. margin: 20px auto;
  110. padding: 0 2%;
  111. }
  112. header>a { color: #000; text-decoration: none; }
  113. header h1 { margin-bottom: 15px; }
  114. footer { text-align: center; }
  115. .group:after {
  116. content: "";
  117. display: table;
  118. clear: both;
  119. }
  120. @media only screen and (min-width: 981px) {
  121. html { font-size: 19px; }
  122. }
  123. @media only screen and (min-width: 1200px) {
  124. html { font-size: 16px; }
  125. a, a:hover, a:active, a:visited, h1 a, h2 a, h3 a, h4 a, strong a {
  126. text-decoration: none;
  127. }
  128. header h1 { font-size: 3em; }
  129. }
  130. @media print {
  131. p, ul, ol, li { orphans: 5; widows: 3; }
  132. ul, ol, blockquote, pre, code {
  133. page-break-inside: avoid;
  134. }
  135. h2, h3, h4 { page-break-after: avoid; }
  136. html { font-size: 1em; }
  137. body { background: white; }
  138. .content { background: transparent; }
  139. p a[href^="http"]:after, li a[href^="http"]:after {
  140. content: " (" attr(href) ")";
  141. }
  142. }
  143. </style>
  144. </head>
  145. <body>
  146. <header>
  147. <h2><a href='/'>{{.Title}}</a></h2>
  148. </header>
  149. <div class="content">{{.Content}}</div>
  150. </body>
  151. </html>