aboutsummaryrefslogtreecommitdiff
path: root/docs/content/typography.md
diff options
context:
space:
mode:
authorAlexandr Kondrashov <[email protected]>2015-09-11 16:43:00 +0300
committerAlexandr Kondrashov <[email protected]>2015-09-11 16:43:00 +0300
commitc9725926b2f30bed4e37f57c20ef8ffeb2fd233b (patch)
tree2964ad7556549dd3e0712bdfdbc5fc4ae7a9b45f /docs/content/typography.md
parent353e0a49a97c24d89f6cdb95014419d4137dee6e (diff)
parentb811f8cf9628dbcbfe994f71588c5a0c921a092d (diff)
downloadbootstrap-c9725926b2f30bed4e37f57c20ef8ffeb2fd233b.tar.xz
bootstrap-c9725926b2f30bed4e37f57c20ef8ffeb2fd233b.zip
Merge remote-tracking branch 'twbs/v4-dev' into patch-1
Conflicts: scss/_custom-forms.scss scss/_variables.scss
Diffstat (limited to 'docs/content/typography.md')
-rw-r--r--docs/content/typography.md44
1 files changed, 37 insertions, 7 deletions
diff --git a/docs/content/typography.md b/docs/content/typography.md
index 082a87ec9..e97593e2e 100644
--- a/docs/content/typography.md
+++ b/docs/content/typography.md
@@ -85,26 +85,26 @@ Traditional heading elements are designed to work best in the meat of your page
<table class="table">
<tbody>
<tr>
- <td><h1 class="display-4">Display 4</h1></td>
+ <td><h1 class="display-1">Display 1</h1></td>
</tr>
<tr>
- <td><h1 class="display-3">Display 3</h1></td>
+ <td><h1 class="display-2">Display 2</h1></td>
</tr>
<tr>
- <td><h1 class="display-2">Display 2</h1></td>
+ <td><h1 class="display-3">Display 3</h1></td>
</tr>
<tr>
- <td><h1 class="display-1">Display 1</h1></td>
+ <td><h1 class="display-4">Display 4</h1></td>
</tr>
</tbody>
</table>
</div>
{% highlight html %}
-<h1 class="display-4">Display 4</h1>
-<h1 class="display-3">Display 3</h1>
-<h1 class="display-2">Display 2</h1>
<h1 class="display-1">Display 1</h1>
+<h1 class="display-2">Display 2</h1>
+<h1 class="display-3">Display 3</h1>
+<h1 class="display-4">Display 4</h1>
{% endhighlight %}
## Lead
@@ -235,3 +235,33 @@ Align terms and descriptions horizontally by using our grid system's predefined
<dd class="col-sm-9">Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</dd>
</dl>
{% endexample %}
+
+## Responsive typography
+
+*Responsive typography* refers to scaling text and components by simply adjusting the root element's `font-size` within a series of media queries. Bootstrap doesn't do this for you, but it's fairly easy to add if you need it.
+
+Here's an example of it in practice. Choose whatever `font-size`s and media queries you wish.
+
+{% highlight scss %}
+html {
+ font-size: 14px;
+}
+
+@include media-breakpoint-up(sm) {
+ html {
+ font-size: 16px;
+ }
+}
+
+@include media-breakpoint-up(md) {
+ html {
+ font-size: 20px;
+ }
+}
+
+@include media-breakpoint-up(lg) {
+ html {
+ font-size: 28px;
+ }
+}
+{% endhighlight %}