From ea9f846e0f3f192fded759c8ba40ceee96cb66c9 Mon Sep 17 00:00:00 2001 From: Starsam80 Date: Sun, 4 Dec 2016 17:46:57 -0700 Subject: Remove `.float-left` from card header nav (#21292) --- docs/components/card.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/components') diff --git a/docs/components/card.md b/docs/components/card.md index 7d350708c..efce231ce 100644 --- a/docs/components/card.md +++ b/docs/components/card.md @@ -226,12 +226,12 @@ Card headers can be styled by adding `.card-header` to `` elements. ## Header nav -Use Bootstrap's nav pills or tabs within a card header. Be sure to always include a `.float-*-*` utility class for proper alignment. +Use Bootstrap's nav pills or tabs within a card header. {% example html %}
-
- + Previous - + Next @@ -92,11 +92,11 @@ You can also add the indicators to the carousel, alongside the controls, too. Third slide - + Previous - + Next -- cgit v1.2.3 From bf39bb3ac3d2aef4687b3cd4762015d5f218e2bc Mon Sep 17 00:00:00 2001 From: Starsam80 Date: Thu, 27 Oct 2016 16:13:17 -0600 Subject: Rename `.active` to `.show` --- docs/components/alerts.md | 6 +++--- docs/components/collapse.md | 8 ++++---- docs/components/dropdowns.md | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-) (limited to 'docs/components') diff --git a/docs/components/alerts.md b/docs/components/alerts.md index b1ac0d845..da72e322e 100644 --- a/docs/components/alerts.md +++ b/docs/components/alerts.md @@ -73,12 +73,12 @@ Using the alert JavaScript plugin, it's possible to dismiss any alert inline. He - Be sure you've loaded the alert plugin, or the compiled Bootstrap JavaScript. - Add a dismiss button and the `.alert-dismissible` class, which adds extra padding to the right of the alert and positions the `.close` button. - On the dismiss button, add the `data-dismiss="alert"` attribute, which triggers the JavaScript functionality. Be sure to use the ` @@ -111,7 +111,7 @@ Note that closing an alert will remove it from the DOM. | Method | Description | | --- | --- | | `$().alert()` | Makes an alert listen for click events on descendant elements which have the `data-dismiss="alert"` attribute. (Not necessary when using the data-api's auto-initialization.) | -| `$().alert('close')` | Closes an alert by removing it from the DOM. If the `.fade` and `.in` classes are present on the element, the alert will fade out before it is removed. | +| `$().alert('close')` | Closes an alert by removing it from the DOM. If the `.fade` and `.show` classes are present on the element, the alert will fade out before it is removed. | {% highlight js %}$(".alert").alert('close'){% endhighlight %} diff --git a/docs/components/collapse.md b/docs/components/collapse.md index 0ece9e453..5b3430118 100644 --- a/docs/components/collapse.md +++ b/docs/components/collapse.md @@ -18,7 +18,7 @@ Click the buttons below to show and hide another element via class changes: - `.collapse` hides content - `.collapsing` is applied during transitions -- `.collapse.active` shows content +- `.collapse.show` shows content You can use a link with the `href` attribute, or a button with the `data-target` attribute. In both cases, the `data-toggle="collapse"` is required. @@ -53,7 +53,7 @@ Extend the default collapse behavior to create an accordion. -
+
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
@@ -101,14 +101,14 @@ Additionally, if your control element is targeting a single collapsible element The collapse plugin utilizes a few classes to handle the heavy lifting: - `.collapse` hides the content -- `.collapse.active` shows the content +- `.collapse.show` shows the content - `.collapsing` is added when the transition starts, and removed when it finishes These classes can be found in `_animation.scss`. ### Via data attributes -Just add `data-toggle="collapse"` and a `data-target` to the element to automatically assign control of a collapsible element. The `data-target` attribute accepts a CSS selector to apply the collapse to. Be sure to add the class `collapse` to the collapsible element. If you'd like it to default open, add the additional class `active`. +Just add `data-toggle="collapse"` and a `data-target` to the element to automatically assign control of a collapsible element. The `data-target` attribute accepts a CSS selector to apply the collapse to. Be sure to add the class `collapse` to the collapsible element. If you'd like it to default open, add the additional class `show`. To add accordion-like group management to a collapsible control, add the data attribute `data-parent="#selector"`. Refer to the demo to see this in action. diff --git a/docs/components/dropdowns.md b/docs/components/dropdowns.md index 3e9948b3d..d26de6eef 100644 --- a/docs/components/dropdowns.md +++ b/docs/components/dropdowns.md @@ -21,7 +21,7 @@ Wrap the dropdown's toggle (your button or link) and the dropdown menu within `. Any single `.btn` can be turned into a dropdown toggle with some markup changes. Here's how you can put them to work with either ` @@ -36,7 +36,7 @@ Any single `.btn` can be turned into a dropdown toggle with some markup changes. And with `` elements: {% example html %} - @@ -356,8 +356,8 @@ Theming the navbar has never been easier thanks to the combination of theming cl
- - + +
@@ -449,9 +449,9 @@ With no `.navbar-brand` shown in lowest breakpoint: Disabled -
- - + + +
@@ -478,9 +478,9 @@ With a brand name shown on the left and toggler on the right: Disabled -
- - + + +
-- cgit v1.2.3 From 9fd339bdc82b5426b43f02b80e7921dcd9e862eb Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 22 Dec 2016 23:05:31 -0800 Subject: better/more form spacing in navbars --- docs/components/navbar.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/components') diff --git a/docs/components/navbar.md b/docs/components/navbar.md index 5fa6a1fd5..57e0bad7a 100644 --- a/docs/components/navbar.md +++ b/docs/components/navbar.md @@ -57,7 +57,7 @@ Here's an example of all the sub-components included in a responsive light-theme Disabled -
+
@@ -449,7 +449,7 @@ With no `.navbar-brand` shown in lowest breakpoint: Disabled -
+
@@ -478,7 +478,7 @@ With a brand name shown on the left and toggler on the right: Disabled -
+
-- cgit v1.2.3 From 9979827cd367050bab29fa10642bf4ca517cf896 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 23 Dec 2016 11:02:14 -0800 Subject: Revamp navs docs - Reorganize things, leading with the base nav first instead of an accessibility note, and then moving the rest to a new available styles section. - Add horizontal alignment options thanks to new flex utils (these new utils will be documented later in another commit). - Dropped `.nav-stacked` for a flex util and added additional alignment options, so document those, too. --- docs/components/navs.md | 167 ++++++++++++++++++++++-------------------------- 1 file changed, 75 insertions(+), 92 deletions(-) (limited to 'docs/components') diff --git a/docs/components/navs.md b/docs/components/navs.md index 3b4b697a6..fed519e8e 100644 --- a/docs/components/navs.md +++ b/docs/components/navs.md @@ -12,15 +12,9 @@ Navigation available in Bootstrap share general markup and styles, from the base * Will be replaced with the ToC, excluding the "Contents" header {:toc} -## Regarding accessibility - -If you are using navs to provide a navigation bar, be sure to add a `role="navigation"` to the most logical parent container of the `
    `, or wrap a `