From 3e76d6565603fafa2c85ad81d7b6345c4e279c72 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 28 May 2017 22:50:57 -0700 Subject: Rearrange all the docs to allow for a docs/major.minor/ setup --- docs/content/code.md | 50 ---- docs/content/figures.md | 26 -- docs/content/images.md | 71 ----- docs/content/reboot.md | 359 ---------------------- docs/content/tables.md | 730 --------------------------------------------- docs/content/typography.md | 311 ------------------- 6 files changed, 1547 deletions(-) delete mode 100644 docs/content/code.md delete mode 100644 docs/content/figures.md delete mode 100644 docs/content/images.md delete mode 100644 docs/content/reboot.md delete mode 100644 docs/content/tables.md delete mode 100644 docs/content/typography.md (limited to 'docs/content') diff --git a/docs/content/code.md b/docs/content/code.md deleted file mode 100644 index ddd7b9031..000000000 --- a/docs/content/code.md +++ /dev/null @@ -1,50 +0,0 @@ ---- -layout: docs -title: Code -description: Documentation and examples for displaying inline and multiline blocks of code with Bootstrap. -group: content -toc: true ---- - -## Inline code - -Wrap inline snippets of code with ``. Be sure to escape HTML angle brackets. - -{% example html %} -For example, <section> should be wrapped as inline. -{% endexample %} - -## Code blocks - -Use `
`s for multiple lines of code. Once again, be sure to escape any angle brackets in the code for proper rendering. You may optionally add the `.pre-scrollable` class, which will set a max-height of 350px and provide a y-axis scrollbar.
-
-{% example html %}
-
<p>Sample text here...</p>
-<p>And another line of sample text here...</p>
-
-{% endexample %} - -## Variables - -For indicating variables use the `` tag. - -{% example html %} -y = mx + b -{% endexample %} - -## User input - -Use the `` to indicate input that is typically entered via keyboard. - -{% example html %} -To switch directories, type cd followed by the name of the directory.
-To edit settings, press ctrl + , -{% endexample %} - -## Sample output - -For indicating sample output from a program use the `` tag. - -{% example html %} -This text is meant to be treated as sample output from a computer program. -{% endexample %} diff --git a/docs/content/figures.md b/docs/content/figures.md deleted file mode 100644 index 4f90018c9..000000000 --- a/docs/content/figures.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -layout: docs -title: Figures -description: Documentation and examples for displaying related images and text with the figure component in Bootstrap. -group: content ---- - -Anytime you need to display a piece of content—like an image with an optional caption, consider using a `
`. - -Use the included `.figure` , `.figure-img` and `.figure-caption` classes to provide some baseline styles for the HTML5 `
` and `
` elements. Images in figures have no explicit size, so be sure to add the `.img-fluid` class to your `` to make it responsive. - -{% example html %} -
- A generic square placeholder image with rounded corners in a figure. -
A caption for the above image.
-
-{% endexample %} - -Aligning the figure's caption is easy with our [text utilities]({{ site.baseurl }}/utilities/typography/#text-alignment). - -{% example html %} -
- A generic square placeholder image with rounded corners in a figure. -
A caption for the above image.
-
-{% endexample %} diff --git a/docs/content/images.md b/docs/content/images.md deleted file mode 100644 index dc4ce9a9a..000000000 --- a/docs/content/images.md +++ /dev/null @@ -1,71 +0,0 @@ ---- -layout: docs -title: Images -description: Documentation and examples for opting images into responsive behavior (so they never become larger than their parent elements) and add lightweight styles to them—all via classes. -group: content -toc: true ---- - -## Responsive images - -Images in Bootstrap are made responsive with `.img-fluid`. `max-width: 100%;` and `height: auto;` are applied to the image so that it scales with the parent element. - -
- Generic responsive image -
- -{% highlight html %} -Responsive image -{% endhighlight %} - -{% callout warning %} -#### SVG images and IE 10 - -In Internet Explorer 10, SVG images with `.img-fluid` are disproportionately sized. To fix this, add `width: 100% \9;` where necessary. This fix improperly sizes other image formats, so Bootstrap doesn't apply it automatically. -{% endcallout %} - -## Image thumbnails - -In addition to our [border-radius utilities]({{ site.baseurl }}/utilities/borders/), you can use `.img-thumbnail` to give an image a rounded 1px border appearance. - -
- A generic square placeholder image with a white border around it, making it resemble a photograph taken with an old instant camera -
- -{% highlight html %} -... -{% endhighlight %} - -## Aligning images - -Align images with the [helper float classes]({{ site.baseurl }}/utilities/responsive-helpers/#responsive-floats) or [text alignment classes]({{ site.baseurl }}/utilities/typography/#text-alignment). `block`-level images can be centered using [the `.mx-auto` margin utility class]({{ site.baseurl }}/utilities/spacing/#horizontal-centering). - -
- A generic square placeholder image with rounded corners - A generic square placeholder image with rounded corners -
- -{% highlight html %} -... -... -{% endhighlight %} - -
- A generic square placeholder image with rounded corners -
- -{% highlight html %} -... -{% endhighlight %} - -
-
- A generic square placeholder image with rounded corners -
-
- -{% highlight html %} -
- ... -
-{% endhighlight %} diff --git a/docs/content/reboot.md b/docs/content/reboot.md deleted file mode 100644 index a9dd6a6d0..000000000 --- a/docs/content/reboot.md +++ /dev/null @@ -1,359 +0,0 @@ ---- -layout: docs -title: Reboot -description: Reboot, a collection of element-specific CSS changes in a single file, kickstart Bootstrap to provide an elegant, consistent, and simple baseline to build upon. -group: content -redirect_from: "/content/" -toc: true ---- - -## Approach - -Reboot builds upon Normalize, providing many HTML elements with somewhat opinionated styles using only element selectors. Additional styling is done only with classes. For example, we reboot some `` styles for a simpler baseline and later provide `.table`, `.table-bordered`, and more. - -Here are our guidelines and reasons for choosing what to override in Reboot: - -- Update some browser default values to use `rem`s instead of `em`s for scalable component spacing. -- Avoid `margin-top`. Vertical margins can collapse, yielding unexpected results. More importantly though, a single direction of `margin` is a simpler mental model. -- For easier scaling across device sizes, block elements should use `rem`s for `margin`s. -- Keep declarations of `font`-related properties to a minimum, using `inherit` whenever possible. - -## Page defaults - -The `` and `` elements are updated to provide better page-wide defaults. More specifically: - -- The `box-sizing` is globally set on every element—including `*:before` and `*:after`, to `border-box`. This ensures that the declared width of element is never exceeded due to padding or border. - - No base `font-size` is declared on the ``, but `16px` is assumed (the browser default). `font-size: 1rem` is applied on the `` for easy responsive type-scaling via media queries while respecting user preferences and ensuring a more accessible approach. -- The `` also sets a global `font-family` and `line-height`. This is inherited later by some form elements to prevent font inconsistencies. -- For safety, the `` has a declared `background-color`, defaulting to `#fff`. - -## Native font stack - -The default web fonts (Helvetica Neue, Helvetica, and Arial) have been dropped in Bootstrap 4 and replaced with a "native font stack" for optimum text rendering on every device and OS. Read more about [native font stacks in this *Smashing Magazine* article](https://www.smashingmagazine.com/2015/11/using-system-ui-fonts-practical-guide/). - -{% highlight sass %} -$font-family-sans-serif: - // Safari for OS X and iOS (San Francisco) - -apple-system, - // Chrome >= 56 for OS X (San Francisco), Windows, Linux and Android - system-ui, - // Chrome < 56 for OS X (San Francisco) - BlinkMacSystemFont, - // Windows - "Segoe UI", - // Android - "Roboto", - // Basic web fallback - "Helvetica Neue", Arial, sans-serif !default; -{% endhighlight %} - -This `font-family` is applied to the `` and automatically inherited globally throughout Bootstrap. To switch the global `font-family`, update `$font-family-base` and recompile Bootstrap. - -## Headings and paragraphs - -All heading elements—e.g., `

`—and `

` are reset to have their `margin-top` removed. Headings have `margin-bottom: .5rem` added and paragraphs `margin-bottom: 1rem` for easy spacing. - -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
HeadingExample
- {% markdown %}`

`{% endmarkdown %} -
h1. Bootstrap heading
- {% markdown %}`

`{% endmarkdown %} -
h2. Bootstrap heading
- {% markdown %}`

`{% endmarkdown %} -
h3. Bootstrap heading
- {% markdown %}`

`{% endmarkdown %} -
h4. Bootstrap heading
- {% markdown %}`
`{% endmarkdown %} -
h5. Bootstrap heading
- {% markdown %}`
`{% endmarkdown %} -
h6. Bootstrap heading
- -## Lists - -All lists—`
    `, `
      `, and `
      `—have their `margin-top` removed and a `margin-bottom: 1rem`. Nested lists have no `margin-bottom`. - -
      -{% markdown %} -* Lorem ipsum dolor sit amet -* Consectetur adipiscing elit -* Integer molestie lorem at massa -* Facilisis in pretium nisl aliquet -* Nulla volutpat aliquam velit - * Phasellus iaculis neque - * Purus sodales ultricies - * Vestibulum laoreet porttitor sem - * Ac tristique libero volutpat at -* Faucibus porta lacus fringilla vel -* Aenean sit amet erat nunc -* Eget porttitor lorem - -1. Lorem ipsum dolor sit amet -2. Consectetur adipiscing elit -3. Integer molestie lorem at massa -4. Facilisis in pretium nisl aliquet -5. Nulla volutpat aliquam velit -6. Faucibus porta lacus fringilla vel -7. Aenean sit amet erat nunc -8. Eget porttitor lorem -{% endmarkdown %} -
      - -For simpler styling, clear hierarchy, and better spacing, description lists have updated `margin`s. `
      `s reset `margin-left` to `0` and add `margin-bottom: .5rem`. `
      `s are **bolded**. - -
      -{% markdown %} -
      -
      Description lists
      -
      A description list is perfect for defining terms.
      -
      Euismod
      -
      Vestibulum id ligula porta felis euismod semper eget lacinia odio sem.
      -
      Donec id elit non mi porta gravida at eget metus.
      -
      Malesuada porta
      -
      Etiam porta sem malesuada magna mollis euismod.
      -
      -{% endmarkdown %} -
      - -## Preformatted text - -The `
      ` element is reset to remove its `margin-top` and use `rem` units for its `margin-bottom`.
      -
      -
      -{% markdown %} -
      -.example-element {
      -  margin-bottom: 1rem;
      -}
      -
      -{% endmarkdown %} -
      - -## Tables - -Tables are slightly adjusted to style ``s, collapse borders, and ensure consistent `text-align` throughout. Additional changes for borders, padding, and more come with [the `.table` class]({{ site.baseurl }}/content/tables/). - -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      - This is an example table, and this is its caption to describe the contents. -
      Table headingTable headingTable headingTable heading
      Table cellTable cellTable cellTable cell
      Table cellTable cellTable cellTable cell
      Table cellTable cellTable cellTable cell
      -
      - -## Forms - -Various form elements have been rebooted for simpler base styles. Here are some of the most notable changes: - -- `
      `s have no borders, padding, or margin so they can be easily used as wrappers for individual inputs or groups of inputs. -- ``s, like fieldsets, have also been restyled to be displayed as a heading of sorts. -- `
      - - -## Misc elements - -### Address - -The `
      ` element is updated to reset the browser default `font-style` from `italic` to `normal`. `line-height` is also now inherited, and `margin-bottom: 1rem` has been added. `
      `s are for presenting contact information for the nearest ancestor (or an entire body of work). Preserve formatting by ending lines with `
      `. - -
      -
      - Twitter, Inc.
      - 1355 Market St, Suite 900
      - San Francisco, CA 94103
      - P: (123) 456-7890 -
      - -
      - Full Name
      - first.last@example.com -
      -
      - -### Blockquote - -The default `margin` on blockquotes is `1em 40px`, so we reset that to `0 0 1rem` for something more consistent with other elements. - -
      -
      -

      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

      -
      Someone famous in Source Title
      -
      -
      - -### Inline elements - -The `` element receives basic styling to make it stand out amongst paragraph text. - -
      - Nulla attr vitae elit libero, a pharetra augue. -
      - -## HTML5 `[hidden]` attribute - -HTML5 adds [a new global attribute named `[hidden]`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/hidden), which is styled as `display: none` by default. Borrowing an idea from [PureCSS](https://purecss.io), we improve upon this default by making `[hidden] { display: none !important; }` to help prevent its `display` from getting accidentally overridden. While `[hidden]` isn't natively supported by IE10, the explicit declaration in our CSS gets around that problem. - -{% highlight html %} - -{% endhighlight %} - -{% callout warning %} -#### jQuery incompatibility - -`[hidden]` is not compatible with jQuery's `$(...).hide()` and `$(...).show()` methods. This could potentially change in jQuery 3, but we're not holding our breath. Therefore, we don't currently especially endorse `[hidden]` over other techniques for managing the `display` of elements. -{% endcallout %} - -To merely toggle the visibility of an element, meaning its `display` is not modified and the element can still affect the flow of the document, use [the `.invisible` class]({{ site.baseurl }}/utilities/invisible-content/) instead. - -## Click delay optimization for touch - -Traditionally, browsers on touchscreen devices have a delay of approximately 300ms between the end of a "tap" – the moment when a finger/stylus is lifted from screen – and the [`click` event](https://developer.mozilla.org/en-US/docs/Web/Events/click) being fired. This delay is necessary for these browsers to correctly handle "double-tap to zoom" gestures without prematurely triggering actions or links after the first "tap", but it can make your site feel slightly sluggish and unresponsive. - -Most mobile browsers automatically optimize away this 300ms delay for sites that use the `width=device-width` property as part of their [responsive meta tag]({{ site.baseurl }}/getting-started/introduction/#responsive-meta-tag) (as well as for sites that disable zooming, for instance with `user-scalable=no`, though this practice is strongly discouraged for accessibility and usability reasons). The biggest exceptions here are IE11 on Windows Phone 8.1, and iOS Safari (and any other iOS WebView-based browser) [prior to iOS 9.3](https://webkit.org/blog/5610/more-responsive-tapping-on-ios/). - -On touch-enabled laptop/desktop devices, IE11 and Microsoft Edge are currently the only browsers with "double-tap to zoom" functionality. As the [responsive meta tag]({{ site.baseurl }}/getting-started/introduction/#responsive-meta-tag) is ignored by all desktop browsers, using `width=device-width` will have no effect on the 300ms delay here. - -To address this problem in IE11 and Microsoft Edge on desktop, as well as IE11 on Windows Phone 8.1, Bootstrap explicitly uses the [`touch-action:manipulation` CSS property](https://developer.mozilla.org/en-US/docs/Web/CSS/touch-action) on all interactive elements (such as buttons and links). This property essentially disables double-tap functionality on those elements, eliminating the 300ms delay. - -In the case of old iOS versions (prior to 9.3), the suggested approach is to use additional scripts such as [FastClick](https://github.com/ftlabs/fastclick) to explicitly work around the delay. - -For further details, see the compatibility table for [suppressing 300ms delay for touchscreen interactions](https://patrickhlauke.github.io/touch/tests/results/#suppressing-300ms-delay). diff --git a/docs/content/tables.md b/docs/content/tables.md deleted file mode 100644 index c7523b839..000000000 --- a/docs/content/tables.md +++ /dev/null @@ -1,730 +0,0 @@ ---- -layout: docs -title: Tables -description: Documentation and examples for opt-in styling of tables (given their prevelant use in JavaScript plugins) with Bootstrap. -group: content -toc: true ---- - -## Examples - -Due to the widespread use of tables across third-party widgets like calendars and date pickers, we've designed our tables to be **opt-in**. Just add the base class `.table` to any ``, then extend with custom styles or our various included modifier classes. - -Using the most basic table markup, here's how `.table`-based tables look in Bootstrap. **All table styles are inherited in Bootstrap 4**, meaning any nested tables will be styled in the same manner as the parent. - -{% example html %} -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      #First NameLast NameUsername
      1MarkOtto@mdo
      2JacobThornton@fat
      3Larrythe Bird@twitter
      -{% endexample %} - -You can also invert the colors—with light text on dark backgrounds—with `.table-inverse`. - -{% example html %} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      #First NameLast NameUsername
      1MarkOtto@mdo
      2JacobThornton@fat
      3Larrythe Bird@twitter
      -{% endexample %} - -## Table head options - -Similar to default and inverse tables, use one of two modifier classes to make ``s appear light or dark gray. - -{% example html %} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      #First NameLast NameUsername
      1MarkOtto@mdo
      2JacobThornton@fat
      3Larrythe Bird@twitter
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      #First NameLast NameUsername
      1MarkOtto@mdo
      2JacobThornton@fat
      3Larrythe Bird@twitter
      -{% endexample %} - -## Striped rows - -Use `.table-striped` to add zebra-striping to any table row within the ``. - -{% example html %} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      #First NameLast NameUsername
      1MarkOtto@mdo
      2JacobThornton@fat
      3Larrythe Bird@twitter
      -{% endexample %} - -{% example html %} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      #First NameLast NameUsername
      1MarkOtto@mdo
      2JacobThornton@fat
      3Larrythe Bird@twitter
      -{% endexample %} - -## Bordered table - -Add `.table-bordered` for borders on all sides of the table and cells. - -{% example html %} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      #First NameLast NameUsername
      1MarkOtto@mdo
      2MarkOtto@TwBootstrap
      3JacobThornton@fat
      4Larry the Bird@twitter
      -{% endexample %} - -{% example html %} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      #First NameLast NameUsername
      1MarkOtto@mdo
      2MarkOtto@TwBootstrap
      3JacobThornton@fat
      4Larry the Bird@twitter
      -{% endexample %} - -## Hoverable rows - -Add `.table-hover` to enable a hover state on table rows within a ``. - -{% example html %} - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      #First NameLast NameUsername
      1MarkOtto@mdo
      2JacobThornton@fat
      3Larry the Bird@twitter
      -{% endexample %} - -{% example html %} - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      #First NameLast NameUsername
      1MarkOtto@mdo
      2JacobThornton@fat
      3Larry the Bird@twitter
      -{% endexample %} - -## Small table - -Add `.table-sm` to make tables more compact by cutting cell padding in half. - -{% example html %} - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      #First NameLast NameUsername
      1MarkOtto@mdo
      2JacobThornton@fat
      3Larry the Bird@twitter
      -{% endexample %} - -{% example html %} - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      #First NameLast NameUsername
      1MarkOtto@mdo
      2JacobThornton@fat
      3Larry the Bird@twitter
      -{% endexample %} - -## Contextual classes - -Use contextual classes to color table rows or individual cells. - -| Class | Description | -| --- | --- | -| `.table-active` | Applies the hover color to a particular row or cell | -| `.table-success` | Indicates a successful or positive action | -| `.table-info` | Indicates a neutral informative change or action | -| `.table-warning` | Indicates a warning that might need attention | -| `.table-danger` | Indicates a dangerous or potentially negative action | - -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      #Column headingColumn headingColumn heading
      1Column contentColumn contentColumn content
      2Column contentColumn contentColumn content
      3Column contentColumn contentColumn content
      4Column contentColumn contentColumn content
      5Column contentColumn contentColumn content
      6Column contentColumn contentColumn content
      7Column contentColumn contentColumn content
      8Column contentColumn contentColumn content
      9Column contentColumn contentColumn content
      -
      - -{% highlight html %} - -... -... -... -... -... - - - - ... - ... - ... - ... - ... - -{% endhighlight %} - -Regular table background variants are not available with the inverse table, however, you may use [text or background utilities]({{ site.baseurl }}/utilities/colors/) to achieve similar styles. - -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      #Column headingColumn headingColumn heading
      1Column contentColumn contentColumn content
      2Column contentColumn contentColumn content
      3Column contentColumn contentColumn content
      4Column contentColumn contentColumn content
      5Column contentColumn contentColumn content
      6Column contentColumn contentColumn content
      7Column contentColumn contentColumn content
      8Column contentColumn contentColumn content
      9Column contentColumn contentColumn content
      -
      - -{% highlight html %} - -... -... -... -... -... - - - - ... - ... - ... - ... - ... - -{% endhighlight %} - -{% capture callout-include %}{% include callout-warning-color-assistive-technologies.md %}{% endcapture %} -{{ callout-include | markdownify }} - -## Responsive tables - -Create responsive tables by adding `.table-responsive` to any `.table` to make them scroll horizontally on small devices (under 768px). When viewing on anything larger than 768px wide, you will not see any difference in these tables. - -{% callout warning %} -#### Vertical clipping/truncation - -Responsive tables make use of `overflow-y: hidden`, which clips off any content that goes beyond the bottom or top edges of the table. In particular, this can clip off dropdown menus and other third-party widgets. -{% endcallout %} - -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      #Table headingTable headingTable headingTable headingTable headingTable heading
      1Table cellTable cellTable cellTable cellTable cellTable cell
      2Table cellTable cellTable cellTable cellTable cellTable cell
      3Table cellTable cellTable cellTable cellTable cellTable cell
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      #Table headingTable headingTable headingTable headingTable headingTable heading
      1Table cellTable cellTable cellTable cellTable cellTable cell
      2Table cellTable cellTable cellTable cellTable cellTable cell
      3Table cellTable cellTable cellTable cellTable cellTable cell
      -
      - -{% highlight html %} - - ... -
      -{% endhighlight %} diff --git a/docs/content/typography.md b/docs/content/typography.md deleted file mode 100644 index 754b0ac1b..000000000 --- a/docs/content/typography.md +++ /dev/null @@ -1,311 +0,0 @@ ---- -layout: docs -title: Typography -description: Documentation and examples for Bootstrap typography, including global settings, headings, body text, lists, and more. -group: content -toc: true ---- - -## Global settings - -Bootstrap sets basic global display, typography, and link styles. When more control is needed, check out the [textual utility classes]({{ site.baseurl }}/utilities/typography/). - -- Use a [native font stack]({{ site.baseurl }}/content/reboot/#native-font-stack) that selects the best `font-family` for each OS and device. -- For a more inclusive and accessible type scale, we assume the browser default root `font-size` (typically 16px) so visitors can customize their browser defaults as needed. -- Use the `$font-family-base`, `$font-size-base`, and `$line-height-base` attributes as our typographic base applied to the ``. -- Set the global link color via `$link-color` and apply link underlines only on `:hover`. -- Use `$body-bg` to set a `background-color` on the `` (`#fff` by default). - -These styles can be found within `_reboot.scss`, and the global variables are defined in `_variables.scss`. - -## Headings - -All HTML headings, `

      ` through `

      `, are available. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      HeadingExample
      - {% markdown %}`

      `{% endmarkdown %} -
      h1. Bootstrap heading
      - {% markdown %}`

      `{% endmarkdown %} -
      h2. Bootstrap heading
      - {% markdown %}`

      `{% endmarkdown %} -
      h3. Bootstrap heading
      - {% markdown %}`

      `{% endmarkdown %} -
      h4. Bootstrap heading
      - {% markdown %}`
      `{% endmarkdown %} -
      h5. Bootstrap heading
      - {% markdown %}`
      `{% endmarkdown %} -
      h6. Bootstrap heading
      - -{% highlight html %} -

      h1. Bootstrap heading

      -

      h2. Bootstrap heading

      -

      h3. Bootstrap heading

      -

      h4. Bootstrap heading

      -
      h5. Bootstrap heading
      -
      h6. Bootstrap heading
      -{% endhighlight %} - -`.h1` through `.h6` classes are also available, for when you want to match the font styling of a heading but cannot use the associated HTML element. - -{% example html %} -

      h1. Bootstrap heading

      -

      h2. Bootstrap heading

      -

      h3. Bootstrap heading

      -

      h4. Bootstrap heading

      -

      h5. Bootstrap heading

      -

      h6. Bootstrap heading

      -{% endexample %} - -### Customizing headings - -Use the included utility classes to recreate the small secondary heading text from Bootstrap 3. - -
      - - Fancy display heading - With faded secondary text - -
      - -{% highlight html %} -

      - Fancy display heading - With faded secondary text -

      -{% endhighlight %} - -## Display headings - -Traditional heading elements are designed to work best in the meat of your page content. When you need a heading to stand out, consider using a **display heading**—a larger, slightly more opinionated heading style. - -
      - - - - - - - - - - - - - - - -
      Display 1
      Display 2
      Display 3
      Display 4
      -
      - -{% highlight html %} -

      Display 1

      -

      Display 2

      -

      Display 3

      -

      Display 4

      -{% endhighlight %} - -## Lead - -Make a paragraph stand out by adding `.lead`. - -{% example html %} -

      - Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus. -

      -{% endexample %} - -## Inline text elements - -Styling for common inline HTML5 elements. - -{% example html %} -

      You can use the mark tag to highlight text.

      -

      This line of text is meant to be treated as deleted text.

      -

      This line of text is meant to be treated as no longer accurate.

      -

      This line of text is meant to be treated as an addition to the document.

      -

      This line of text will render as underlined

      -

      This line of text is meant to be treated as fine print.

      -

      This line rendered as bold text.

      -

      This line rendered as italicized text.

      -{% endexample %} - -`.mark` and `.small` classes are also available to apply the same styles as `` and `` while avoiding any unwanted semantic implications that the tags would bring. - -While not shown above, feel free to use `` and `` in HTML5. `` is meant to highlight words or phrases without conveying additional importance while `` is mostly for voice, technical terms, etc. - -## Text utilities - -Change text alignment, transform, style, weight, and color with our [text utilities]({{ site.baseurl }}/utilities/typography/#text-alignment). - -## Abbreviations - -Stylized implementation of HTML's `` element for abbreviations and acronyms to show the expanded version on hover. Abbreviations have a default underline and gain a help cursor to provide additional context on hover and to users of assistive technologies. - -Add `.initialism` to an abbreviation for a slightly smaller font-size. - -{% example html %} -

      attr

      -

      HTML

      -{% endexample %} - -## Blockquotes - -For quoting blocks of content from another source within your document. Wrap `
      ` around any HTML as the quote. - -{% example html %} -
      -

      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

      -
      -{% endexample %} - -### Naming a source - -Add a `