demo.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <meta name="robots" content="noindex, noarchive">
  8. <title>Transfonter demo</title>
  9. <link href="stylesheet.css" rel="stylesheet">
  10. <style>
  11. /*
  12. http://meyerweb.com/eric/tools/css/reset/
  13. v2.0 | 20110126
  14. License: none (public domain)
  15. */
  16. html, body, div, span, applet, object, iframe,
  17. h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  18. a, abbr, acronym, address, big, cite, code,
  19. del, dfn, em, img, ins, kbd, q, s, samp,
  20. small, strike, strong, sub, sup, tt, var,
  21. b, u, i, center,
  22. dl, dt, dd, ol, ul, li,
  23. fieldset, form, label, legend,
  24. table, caption, tbody, tfoot, thead, tr, th, td,
  25. article, aside, canvas, details, embed,
  26. figure, figcaption, footer, header, hgroup,
  27. menu, nav, output, ruby, section, summary,
  28. time, mark, audio, video {
  29. margin: 0;
  30. padding: 0;
  31. border: 0;
  32. font-size: 100%;
  33. font: inherit;
  34. vertical-align: baseline;
  35. }
  36. /* HTML5 display-role reset for older browsers */
  37. article, aside, details, figcaption, figure,
  38. footer, header, hgroup, menu, nav, section {
  39. display: block;
  40. }
  41. body {
  42. line-height: 1;
  43. }
  44. ol, ul {
  45. list-style: none;
  46. }
  47. blockquote, q {
  48. quotes: none;
  49. }
  50. blockquote:before, blockquote:after,
  51. q:before, q:after {
  52. content: '';
  53. content: none;
  54. }
  55. table {
  56. border-collapse: collapse;
  57. border-spacing: 0;
  58. }
  59. /* common styles */
  60. body {
  61. background: #f1f1f1;
  62. color: #000;
  63. }
  64. .page {
  65. background: #fff;
  66. width: 920px;
  67. margin: 0 auto;
  68. padding: 20px 20px 0 20px;
  69. overflow: hidden;
  70. }
  71. .font-container {
  72. overflow-x: auto;
  73. overflow-y: hidden;
  74. margin-bottom: 40px;
  75. line-height: 1.3;
  76. white-space: nowrap;
  77. padding-bottom: 5px;
  78. }
  79. h1 {
  80. position: relative;
  81. background: #444;
  82. font-size: 32px;
  83. color: #fff;
  84. padding: 10px 20px;
  85. margin: 0 -20px 12px -20px;
  86. }
  87. .letters {
  88. font-size: 25px;
  89. margin-bottom: 20px;
  90. }
  91. .s10:before {
  92. content: '10px';
  93. }
  94. .s11:before {
  95. content: '11px';
  96. }
  97. .s12:before {
  98. content: '12px';
  99. }
  100. .s14:before {
  101. content: '14px';
  102. }
  103. .s18:before {
  104. content: '18px';
  105. }
  106. .s24:before {
  107. content: '24px';
  108. }
  109. .s30:before {
  110. content: '30px';
  111. }
  112. .s36:before {
  113. content: '36px';
  114. }
  115. .s48:before {
  116. content: '48px';
  117. }
  118. .s60:before {
  119. content: '60px';
  120. }
  121. .s72:before {
  122. content: '72px';
  123. }
  124. .s10:before, .s11:before, .s12:before, .s14:before,
  125. .s18:before, .s24:before, .s30:before, .s36:before,
  126. .s48:before, .s60:before, .s72:before {
  127. font-family: Arial, sans-serif;
  128. font-size: 10px;
  129. font-weight: normal;
  130. font-style: normal;
  131. color: #999;
  132. padding-right: 6px;
  133. }
  134. pre {
  135. display: block;
  136. position: relative;
  137. padding: 9px;
  138. margin: 0 0 10px;
  139. font-family: Monaco, Menlo, Consolas, "Courier New", monospace !important;
  140. font-size: 13px;
  141. line-height: 1.428571429;
  142. color: #333;
  143. font-weight: normal !important;
  144. font-style: normal !important;
  145. background-color: #f5f5f5;
  146. border: 1px solid #ccc;
  147. overflow-x: auto;
  148. border-radius: 4px;
  149. }
  150. pre:after {
  151. display: block;
  152. position: absolute;
  153. right: 0;
  154. top: 0;
  155. content: 'Usage';
  156. line-height: 1;
  157. padding: 5px 8px;
  158. font-size: 12px;
  159. color: #767676;
  160. background-color: #fff;
  161. border: 1px solid #ccc;
  162. border-right: none;
  163. border-top: none;
  164. border-radius: 0 4px 0 4px;
  165. z-index: 10;
  166. }
  167. /* responsive */
  168. @media (max-width: 959px) {
  169. .page {
  170. width: auto;
  171. margin: 0;
  172. }
  173. }
  174. </style>
  175. </head>
  176. <body>
  177. <div class="page">
  178. <div class="demo" style="font-family: 'Baskerville'; font-weight: normal; font-style: italic;">
  179. <h1>Baskerville Italic</h1>
  180. <pre>.your-style {
  181. font-family: 'Baskerville';
  182. font-weight: normal;
  183. font-style: italic;
  184. }</pre>
  185. <div class="font-container">
  186. <p class="letters">
  187. abcdefghijklmnopqrstuvwxyz <br />
  188. ABCDEFGHIJKLMNOPQRSTUVWXYZ <br /> 0123456789.:,;()*!?'@#<>$%&^+-=~
  189. </p>
  190. <p class="s10" style="font-size: 10px;">The quick brown fox jumps over the lazy dog.</p>
  191. <p class="s11" style="font-size: 11px;">The quick brown fox jumps over the lazy dog.</p>
  192. <p class="s12" style="font-size: 12px;">The quick brown fox jumps over the lazy dog.</p>
  193. <p class="s14" style="font-size: 14px;">The quick brown fox jumps over the lazy dog.</p>
  194. <p class="s18" style="font-size: 18px;">The quick brown fox jumps over the lazy dog.</p>
  195. <p class="s24" style="font-size: 24px;">The quick brown fox jumps over the lazy dog.</p>
  196. <p class="s30" style="font-size: 30px;">The quick brown fox jumps over the lazy dog.</p>
  197. <p class="s36" style="font-size: 36px;">The quick brown fox jumps over the lazy dog.</p>
  198. <p class="s48" style="font-size: 48px;">The quick brown fox jumps over the lazy dog.</p>
  199. <p class="s60" style="font-size: 60px;">The quick brown fox jumps over the lazy dog.</p>
  200. <p class="s72" style="font-size: 72px;">The quick brown fox jumps over the lazy dog.</p>
  201. </div>
  202. </div>
  203. </div>
  204. </body>
  205. </html>