-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
typography.html
97 lines (94 loc) · 4.24 KB
/
typography.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE html>
<html lang="en">
<head>
{{> head }}
</head>
<body>
{{> navbar }}
<main>
{{> intro}}
<div class="container">
<div class="row">
<div class="col s12 m8 offset-m1 xl7 offset-xl1">
<div class="section">
<div id="headers" class="section scrollspy">
<h3 class="header">Headers</h3>
<p>We provide some basic styling on header tags. In the example, you can see the the 6 header tags' different sizes.</p>
<div class="card-panel">
<h1>Heading h1</h1>
<h2>Heading h2</h2>
<h3>Heading h3</h3>
<h4>Heading h4</h4>
<h5>Heading h5</h5>
<h6>Heading h6</h6>
</div>
</div>
<div id="blockquote" class="section scrollspy">
<h3 class="header">Blockquotes</h3>
<p>Blockquotes are mainly used to give emphasis to a quote or citation. You can also use these for some extra text hierarchy and emphasis.</p>
<blockquote>This is an example quotation that uses the blockquote tag. Here is another line to make it look bigger.</blockquote>
<pre>
<code class="language-html">
<xmp>
<blockquote>
This is an example quotation that uses the blockquote tag.
</blockquote>
</xmp>
</code>
</pre>
</div>
<div id="flow" class="section scrollspy">
<h3 class="header">Flow Text</h3>
<a id="flow-toggle" class="btn waves-effect waves-light">Toggle flow-text</a>
<div id="flow-text-demo" class="card-panel">
<p class="flow-text">
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>
<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>
</div>
<p>
To use flow-text on a body of text, simply just add the class
<code class="language-html">flow-text</code> to a tag, see the code below.
</p>
<pre><code class="language-html"><xmp><p class="flow-text">I am Flow Text</p></xmp></code></pre>
</div>
<div id="fontstack" class="section scrollspy">
<h2 class="header">Changing the font stack</h2>
<p class="caption">
The Material Design standard uses Roboto font. We have included the font in our framework. In case you don't want to use Roboto on your webpage, fear not. You can
change the font stack by modifying the code below to your liking and add it to your custom CSS.
</p>
<pre>
<code class="language-css">html,
button, input, optgroup, select, textarea {
font-family: GillSans, Calibri, Trebuchet, sans-serif;
}
</code></pre>
</div>
</div>
</div>
<div class="col hide-on-small-only m3 xl3">
<div class="toc-wrapper">
<div style="height: 1px">
<ul class="section table-of-contents">
<li><a href="#headers">Headers</a></li>
<li><a href="#blockquote">Blockquotes</a></li>
<li><a href="#flow">Flow Text</a></li>
<li><a href="#fontstack">Changing the font stack</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<!-- End Container -->
</main>
{{> footer }}
<script type="module" src="/src/main.ts"></script>
</body>
</html>