PageRenderTime 47ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/typography.html

https://gitlab.com/x33n/materialize
HTML | 260 lines | 237 code | 15 blank | 8 comment | 0 complexity | 64a155a9f74d96e7f92a75fe1c697a2a MD5 | raw file
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <meta name="msapplication-tap-highlight" content="no">
  8. <meta name="description" content="Materialize is a modern responsive CSS framework based on Material Design by Google. ">
  9. <title>Typography - Materialize</title>
  10. <!-- Favicons-->
  11. <link rel="apple-touch-icon-precomposed" href="images/favicon/apple-touch-icon-152x152.png">
  12. <meta name="msapplication-TileColor" content="#FFFFFF">
  13. <meta name="msapplication-TileImage" content="images/favicon/mstile-144x144.png">
  14. <link rel="icon" href="images/favicon/favicon-32x32.png" sizes="32x32">
  15. <!-- Android 5 Chrome Color-->
  16. <meta name="theme-color" content="#EE6E73">
  17. <!-- CSS-->
  18. <link href="css/prism.css" rel="stylesheet">
  19. <link href="css/ghpages-materialize.css" type="text/css" rel="stylesheet" media="screen,projection">
  20. <link href="http://fonts.googleapis.com/css?family=Inconsolata" rel="stylesheet" type="text/css">
  21. <script>
  22. window.liveSettings = {
  23. api_key: "a0b49b34b93844c38eaee15690d86413",
  24. picker: "bottom-right",
  25. detectlang: true,
  26. dynamic: true,
  27. autocollect: true
  28. };
  29. </script>
  30. <script src="//cdn.transifex.com/live.js"></script>
  31. </head>
  32. <body>
  33. <header>
  34. <nav class="top-nav">
  35. <div class="container">
  36. <div class="nav-wrapper"><a class="page-title">Typography</a></div>
  37. </div>
  38. </nav>
  39. <div class="container"><a href="#" data-activates="nav-mobile" class="button-collapse top-nav full"><i class="mdi-navigation-menu"></i></a></div>
  40. <ul id="nav-mobile" class="side-nav fixed">
  41. <li class="logo"><a id="logo-container" href="http://materializecss.com/" class="brand-logo">
  42. <object id="front-page-logo" type="image/svg+xml" data="res/materialize.svg">Your browser does not support SVG</object></a></li>
  43. <li class="bold"><a href="about.html" class="waves-effect waves-teal">About</a></li>
  44. <li class="bold"><a href="getting-started.html" class="waves-effect waves-teal">Getting Started</a></li>
  45. <li class="no-padding">
  46. <ul class="collapsible collapsible-accordion">
  47. <li class="bold"><a class="collapsible-header active waves-effect waves-teal">CSS</a>
  48. <div class="collapsible-body">
  49. <ul>
  50. <li><a href="color.html">Color</a></li>
  51. <li><a href="grid.html">Grid</a></li>
  52. <li><a href="helpers.html">Helpers</a></li>
  53. <li><a href="media-css.html">Media</a></li>
  54. <li><a href="sass.html">Sass</a></li>
  55. <li><a href="shadow.html">Shadow</a></li>
  56. <li><a href="table.html">Table</a></li>
  57. <li class="active"><a href="typography.html">Typography</a></li>
  58. </ul>
  59. </div>
  60. </li>
  61. <li class="bold"><a class="collapsible-header waves-effect waves-teal">Components</a>
  62. <div class="collapsible-body">
  63. <ul>
  64. <li><a href="badges.html">Badges</a></li>
  65. <li><a href="buttons.html">Buttons</a></li>
  66. <li><a href="cards.html">Cards</a></li>
  67. <li><a href="collections.html">Collections</a></li>
  68. <li><a href="footer.html">Footer</a></li>
  69. <li><a href="forms.html">Forms</a></li>
  70. <li><a href="icons.html">Icons</a></li>
  71. <li><a href="navbar.html">Navbar</a></li>
  72. <li><a href="pagination.html">Pagination</a></li>
  73. <li><a href="preloader.html">Preloader</a></li>
  74. </ul>
  75. </div>
  76. </li>
  77. <li class="bold"><a class="collapsible-header waves-effect waves-teal">JavaScript</a>
  78. <div class="collapsible-body">
  79. <ul>
  80. <li><a href="collapsible.html">Collapsible</a></li>
  81. <li><a href="dialogs.html">Dialogs</a></li>
  82. <li><a href="dropdown.html">Dropdown</a></li>
  83. <li><a href="media.html">Media</a></li>
  84. <li><a href="modals.html">Modals</a></li>
  85. <li><a href="parallax.html">Parallax</a></li>
  86. <li><a href="pushpin.html">Pushpin</a></li>
  87. <li><a href="scrollfire.html">ScrollFire</a></li>
  88. <li><a href="scrollspy.html">Scrollspy</a></li>
  89. <li><a href="side-nav.html">SideNav</a></li>
  90. <li><a href="tabs.html">Tabs</a></li>
  91. <li><a href="transitions.html">Transitions</a></li>
  92. <li><a href="waves.html">Waves</a></li>
  93. </ul>
  94. </div>
  95. </li>
  96. </ul>
  97. </li>
  98. <li class="bold"><a href="http://materializecss.com/mobile.html" class="waves-effect waves-teal">Mobile</a></li>
  99. <li class="bold"><a href="showcase.html" class="waves-effect waves-teal">Showcase</a></li>
  100. </ul>
  101. </header>
  102. <main><div class="container">
  103. <div class="row">
  104. <div class="col s12 m9 l10">
  105. <div class="section">
  106. <div id="roboto" class="scrollspy">
  107. <h2 class="header">Roboto 2.0</h2>
  108. <p class="caption">
  109. The standard font Material Design uses is Roboto. We have included the font files with our framework.
  110. </p>
  111. <div class="row">
  112. <p class="col s12 m4">We bundle our framework with the latest iteration of Roboto Google has released. It comes with 5 different font weights you can use: 200, 300, 400, 500, 600.<br> <br> Here is an image from Google's Roboto Specimen document displaying the different font weights.</p>
  113. <img class="col s12 m8" src="http://material-design.storage.googleapis.com/publish/v_2/material_ext_publish/0Bx4BSt6jniD7SW9CUzR4MnRpOTg/style_typography_roboto1.png">
  114. </div>
  115. <h4>Removing Roboto</h4>
  116. <p>In case you don't want to use Roboto on your webpage, fear not. Simply change the font stack by modifying the code below to your liking and add it to your custom css.</p>
  117. <pre><code class="language-css">
  118. html {
  119. font-family: GillSans, Calibri, Trebuchet, sans-serif;
  120. }
  121. </code></pre>
  122. </div>
  123. <div id="headers" class="section scrollspy">
  124. <h2 class="header">Headers</h2>
  125. <p>We provide some basic styling on header tags. In the example, you can see the the 6 header tags' different sizes.</p>
  126. <div class="card-panel">
  127. <h1>Heading h1</h1>
  128. <h2>Heading h2</h2>
  129. <h3>Heading h3</h3>
  130. <h4>Heading h4</h4>
  131. <h5>Heading h5</h5>
  132. <h6>Heading h6</h6>
  133. </div>
  134. </div>
  135. <div id="blockquote" class="section scrollspy">
  136. <h2 class="header">Blockquotes</h2>
  137. <p>
  138. Blockquotes are mainly used to give emphasis to a quote or citation. You can also use these for some extra text hierarchy and emphasis.
  139. </p>
  140. <blockquote>
  141. This is an example quotation that uses the blockquote tag.
  142. <br>Here is another line to make it look bigger.
  143. </blockquote>
  144. <pre><code class="language-markup">
  145. &lt;blockquote>
  146. This is an example quotation that uses the blockquote tag.
  147. &lt;/blockquote>
  148. </code></pre>
  149. </div>
  150. <div id="flow" class="section scrollspy">
  151. <h2 class="header">Flow Text</h2>
  152. <a id="flow-toggle" class="btn waves-effect waves-light">Toggle flow-text</a>
  153. <div id="flow-text-demo" class="card-panel">
  154. <p class="flow-text">
  155. One common flaw we've seen in many frameworks is a lack of support for truly responsive text. While elements on the page resize fluidly, text still resizes on a fixed basis. To ameliorate this problem, for text heavy pages, we've created a class that fluidly scales text size and line-height to optimize readability for the user. Line length stays between 45-80 characters and line height scales to be larger on smaller screens.</p>
  156. <p class="flow-text">To see Flow Text in action, slowly resize your browser and watch the size of this text body change! Use the button above to toggle off/on flow-text to see the difference!</p>
  157. </div>
  158. <br>
  159. <p>To use flow-text on a body of text, simply just add the class <code class="language-markup">flow-text</code> to a tag, see the code blow.</p>
  160. <div class="row">
  161. <pre><code class="language-markup col s12">
  162. &lt;p class="flow-text">I am Flow Text&lt;/p>
  163. </code></pre>
  164. </div>
  165. </div>
  166. </div>
  167. </div>
  168. <div class="col hide-on-small-only m3 l2">
  169. <div class="toc-wrapper">
  170. <div class="buysellads hide-on-small-only">
  171. <!-- CarbonAds Zone Code -->
  172. <script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=materializecss" id="_carbonads_js"></script>
  173. </div>
  174. <div style="height: 1px;">
  175. <ul class="section table-of-contents">
  176. <li><a href="#roboto">Roboto</a></li>
  177. <li><a href="#headers">Headers</a></li>
  178. <li><a href="#blockquote">Blockquotes</a></li>
  179. <li><a href="#flow">Flow Text</a></li>
  180. </ul>
  181. </div>
  182. </div>
  183. </div>
  184. </div>
  185. </div> <!-- End Container -->
  186. </main> <footer class="page-footer">
  187. <div class="container">
  188. <div class="row">
  189. <div class="col l4 s12">
  190. <h5 class="white-text">Help Materialize Grow</h5>
  191. <p class="grey-text text-lighten-4">We are a team of college students working on this project like it's our full time job. Any amount would help support and continue development on this project and is greatly appreciated.</p>
  192. <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
  193. <input type="hidden" name="cmd" value="_s-xclick">
  194. <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHLwYJKoZIhvcNAQcEoIIHIDCCBxwCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYC2O5rnsmP26R+2wNew3Jc3rCzBzw8LpJh1TTRZyMIFMYv/voKC1TMEvxU0ct4gdsZ29zARE96gRsCPVtVpY1hGr0NivLXeiHyw3xoW9UfzjcI9gZy5PZYoNv2xkTMj+jUkzuBMDiB2JfrIH7ZNxbcK1m/ep7Luoo1CR8JmYNCtlzELMAkGBSsOAwIaBQAwgawGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQI/PHaKaPxsg2AgYh0FZUDlxXaZSGYZJiUkF4L0p9hZn0tYmT6kqOqB50541GOsZtJSVAO/F+Qz5I9EsCuGve7GLKSBufhNjWa24ay5T2hkGJkAzISlqS2qBQSFDDpHDyEnNSZ2vPG2K8Bepc/SQD5nurs+vyC55axU4OnG33RBEtAmdOrAlZGxwzDBSjg4us1epUyoIIDhzCCA4MwggLsoAMCAQICAQAwDQYJKoZIhvcNAQ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v4gUkEDI8r2/rNk1m0GA8HKddvTjyGw/XqXa+LSTlDYkqI8OwR8GEYj4efEtcRpRYBxV8KxAW93YDWzFGvruKnnLbDAF6VR5w/cCMn5hzGCAZowggGWAgEBMIGUMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMTQxMjE1MDcwNTI3WjAjBgkqhkiG9w0BCQQxFgQUTOnEae05+jEbHsz0um3L3/Cl/zgwDQYJKoZIhvcNAQEBBQAEgYAGuieIpSk7XCxyo4RieZQ/SO0EHUYEW9B7KFJB9qZ1+yCKpUm7prwsGGOJAAdqKOw59I7qjLQI5cFJz/O8Ivb14TclAZiKTnOCB/wO1QHp+9s+hF00D6v0TDetLm0GLnk/7ljWvNq1pTyiMTLVg4yw1dAzQE1tC6bYTtLuDhLl0Q==-----END PKCS7-----
  195. ">
  196. <button class="btn waves-effect waves-light red lighten-3" type="submit" name="action" alt="PayPal - The safer, easier way to pay online!">Donate Now
  197. </button>
  198. </form>
  199. </div>
  200. <div class="col l4 s12">
  201. <h5 class="white-text">Join the Discussion</h5>
  202. <p class="grey-text text-lighten-4">We have a gitter chat room set up where you can talk directly with us. Come in and discuss new features, future goals, general problems or questions, or anything else you can think of.</p>
  203. <a class="btn waves-effect waves-light red lighten-3" target="_blank" href="https://gitter.im/Dogfalo/materialize">Chat</a>
  204. </div>
  205. <div class="col l4 s12" style="overflow: hidden;">
  206. <h5 class="white-text">Connect</h5>
  207. <iframe src="http://ghbtns.com/github-btn.html?user=dogfalo&repo=materialize&type=watch&count=true&size=large" allowtransparency="true" frameborder="0" scrolling="0" width="170" height="30"></iframe>
  208. <br>
  209. <a href="https://twitter.com/MaterializeCSS" class="twitter-follow-button" data-show-count="true" data-size="large" data-dnt="true">Follow @MaterializeCSS</a>
  210. <br>
  211. <div class="g-follow" data-annotation="bubble" data-height="24" data-href="https://plus.google.com/108619793845925798422" data-rel="publisher"></div>
  212. </div>
  213. </div>
  214. </div>
  215. <div class="footer-copyright">
  216. <div class="container">
  217. © 2014-2015 Materialize, All rights reserved.
  218. <a class="grey-text text-lighten-4 right" href="https://github.com/Dogfalo/materialize/blob/master/LICENSE">MIT License</a>
  219. </div>
  220. </div>
  221. </footer>
  222. <!-- Scripts-->
  223. <script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
  224. <script>if (!window.jQuery) { document.write('<script src="bin/jquery-2.1.1.min.js"><\/script>'); }
  225. </script>
  226. <script src="js/jquery.timeago.min.js"></script>
  227. <script src="js/prism.js"></script>
  228. <script src="bin/materialize.js"></script>
  229. <script src="js/init.js"></script>
  230. <!-- Twitter Button -->
  231. <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
  232. <!-- Google Plus Button-->
  233. <script src="https://apis.google.com/js/platform.js" async defer></script>
  234. <!-- Google Analytics -->
  235. <script>
  236. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  237. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  238. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  239. })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  240. ga('create', 'UA-56218128-1', 'auto');
  241. ga('require', 'displayfeatures');
  242. ga('send', 'pageview');
  243. </script>
  244. </body>
  245. </html>