From 07474841881f25b2686d50070902f341370b9d4c Mon Sep 17 00:00:00 2001 From: Ryan Burnett Date: Thu, 12 May 2016 09:40:23 -0400 Subject: Alphabetized carousel options & added "ride" to it --- docs/components/carousel.md | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'docs/components') diff --git a/docs/components/carousel.md b/docs/components/carousel.md index 76278281e..e825fcaac 100644 --- a/docs/components/carousel.md +++ b/docs/components/carousel.md @@ -156,6 +156,12 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap 5000 The amount of time to delay between automatically cycling an item. If false, carousel will not automatically cycle. + + keyboard + boolean + true + Whether the carousel should react to keyboard events. + pause string @@ -163,16 +169,16 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap Pauses the cycling of the carousel on mouseenter and resumes the cycling of the carousel on mouseleave. - wrap - boolean - true - Whether the carousel should cycle continuously or have hard stops. + ride + string + false + Autoplays the carousel after the user manually cycles the first item. If "carousel", autoplays the carousel on load. - keyboard + wrap boolean true - Whether the carousel should react to keyboard events. + Whether the carousel should cycle continuously or have hard stops. -- cgit v1.2.3 From 083271ae48d0ce1ff5b869413449f5ecf777b6e9 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 12 May 2016 11:24:43 -0700 Subject: Update collapsible navbar docs - Add .text-muted for text color control over .bg-inverse in the examples - Add a dark navbar collapse example --- docs/components/navbar.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'docs/components') diff --git a/docs/components/navbar.md b/docs/components/navbar.md index 98e48fa77..d106795a8 100644 --- a/docs/components/navbar.md +++ b/docs/components/navbar.md @@ -245,7 +245,21 @@ Our collapse plugin allows you to use a `
-
+
+

Collapsed content

+ Toggleable via the navbar brand. +
+
+ +{% endexample %} + +{% example html %} +
{% endexample %} +You may also utilize dropdowns in your navbar nav. Dropdown menus require a wrapping element for positioning, so be sure to use separate and nested elements for `.nav-item` and `.nav-link` as shown below. + +{% example html %} + +{% endexample %} + ## Color schemes -- cgit v1.2.3 From f98f9c91553b0c44c48b1a561411ff4e8714817a Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 14 May 2016 12:41:26 -0700 Subject: add docs note to clear up #18599--active states for navbars can be on anchors or parents --- docs/components/navbar.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docs/components') diff --git a/docs/components/navbar.md b/docs/components/navbar.md index 5f7f36634..3387374f3 100644 --- a/docs/components/navbar.md +++ b/docs/components/navbar.md @@ -75,6 +75,8 @@ The `.navbar-brand` can be applied to most elements, but an anchor works best as Navbar navigation is similar to our regular nav options—use the `.nav` base class with a modifier to achieve a particular look. In this case you'll want `.nav.navbar-nav`. +Active states—with `.active`—to indicate the current page can be applied directly to `.nav-link`s or their immediate parent `.nav-item`s. + {% example html %} {% endexample %} +### Text + +Navbars may contain bits of text with the help of `.navbar-text`. This class adjusts vertical alignment and horizontal spacing for strings of text. + +{% example html %} + +{% endexample %} + +Using our utility classes, you can change the alignment of your navbar text. + +{% example html %} + +{% endexample %} + ## Color schemes -- cgit v1.2.3 From d4457b33032d2540a4a3b7fa600f22055ce2000d Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 15 May 2016 12:37:47 -0700 Subject: improve docs examples for .navbar-text --- docs/components/navbar.md | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'docs/components') diff --git a/docs/components/navbar.md b/docs/components/navbar.md index 086d49bcb..a82f881a2 100644 --- a/docs/components/navbar.md +++ b/docs/components/navbar.md @@ -142,18 +142,32 @@ Navbars may contain bits of text with the help of `.navbar-text`. This class adj {% example html %} {% endexample %} -Using our utility classes, you can change the alignment of your navbar text. +Using our utility classes, you can change the alignment and appearance of your navbar text. {% example html %} {% endexample %} +Similarly, you can use utility classes to align navbar text to other navbar elements like the brand and navigation (which are automatically floated already). + +{% example html %} + +{% endexample %} ## Color schemes -- cgit v1.2.3 From d11c93341f392d654b2cb5cbefd399bbf1d81f00 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 15 Sep 2016 13:32:09 -0700 Subject: fix that navbar toggler example in docs --- docs/components/navbar.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'docs/components') diff --git a/docs/components/navbar.md b/docs/components/navbar.md index bb390a55c..d3747a87f 100644 --- a/docs/components/navbar.md +++ b/docs/components/navbar.md @@ -316,9 +316,7 @@ Our collapse plugin allows you to use a ` +

Collapsed content

-- cgit v1.2.3 From 750a9d7d80119a03cd2d8f178429b2e021551356 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 9 Oct 2016 15:08:34 -0700 Subject: fix bad merge --- docs/components/navbar.md | 1 - 1 file changed, 1 deletion(-) (limited to 'docs/components') diff --git a/docs/components/navbar.md b/docs/components/navbar.md index 4f791daf5..e26097da9 100644 --- a/docs/components/navbar.md +++ b/docs/components/navbar.md @@ -307,7 +307,6 @@ Our collapse plugin allows you to use a `
-

Collapsed content

Toggleable via the navbar brand. -- cgit v1.2.3 From 9b86a6b41d4017d8a71c7d1698fb2a56d8fe136d Mon Sep 17 00:00:00 2001 From: Bardi Harborow Date: Thu, 13 Oct 2016 11:08:15 +1100 Subject: Update scrollspy navbar example. --- docs/components/scrollspy.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/components') diff --git a/docs/components/scrollspy.md b/docs/components/scrollspy.md index 52b7c29cd..74829267e 100644 --- a/docs/components/scrollspy.md +++ b/docs/components/scrollspy.md @@ -15,8 +15,8 @@ group: components The ScrollSpy plugin is for automatically updating nav targets based on scroll position. Scroll the area below the navbar and watch the active class change. The dropdown sub items will be highlighted as well.
-
-- cgit v1.2.3 From 19d6092364e10ec90720290a1875734329b04088 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 16 Oct 2016 20:45:12 -0700 Subject: drop data-target so the dropdown link works --- docs/components/navbar.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/components') diff --git a/docs/components/navbar.md b/docs/components/navbar.md index e26097da9..3fc1c38ef 100644 --- a/docs/components/navbar.md +++ b/docs/components/navbar.md @@ -124,7 +124,7 @@ You may also utilize dropdowns in your navbar nav. Dropdown menus require a wrap Pricing -
@@ -153,7 +158,7 @@ Using our utility classes, you can change the alignment and appearance of your n {% example html %} @@ -164,7 +169,7 @@ Similarly, you can use utility classes to align navbar text to other navbar elem {% example html %} @@ -319,23 +324,32 @@ For more complex navbar patterns, like those used in Bootstrap v3, use the `.nav {% example html %}
{% endexample %} -- cgit v1.2.3 From 87689833fb1813091fee5b35c18af3fe8f307487 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 17 Oct 2016 22:16:28 -0700 Subject: docs copy --- docs/components/navbar.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/components') diff --git a/docs/components/navbar.md b/docs/components/navbar.md index e312428da..20a70a42e 100644 --- a/docs/components/navbar.md +++ b/docs/components/navbar.md @@ -29,7 +29,7 @@ Navbars come with built-in support for a handful of sub-components. Mix and matc - `.navbar-nav` for a full-height and lightweight navigation (including support for dropdowns) - `.navbar-toggler` for use with our collapse plugin and other [navigation toggling](#collapsible-content) behaviors. -Here's an example of all the sub-components included in a responsive, "light" themed navbar. +Here's an example of all the sub-components included in a default, non-responsive light themed navbar. [See the responsive examples](#collapsible-content) for collapsing nav support. {% example html %} {% endexample %} +### Forms + +Place various form controls and components within a navbar with `.form-inline`. Align them with `.float-` utilities as needed. + +{% example html %} + +{% endexample %} + +Input groups work, too: + +{% example html %} + +{% endexample %} + +Various buttons are supported as part of these navbar forms, too. This is also a great reminder that vertical alignment utilites can be used to align different sized elements. + +{% example html %} + +{% endexample %} + ### Text Navbars may contain bits of text with the help of `.navbar-text`. This class adjusts vertical alignment and horizontal spacing for strings of text. -- cgit v1.2.3 From f8e4a531cf89ffcc602863a367f35cfd307e28fb Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 19 Oct 2016 00:30:59 -0700 Subject: alt attributes --- docs/components/navbar.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/components') diff --git a/docs/components/navbar.md b/docs/components/navbar.md index ee028d2c6..bb819ff9e 100644 --- a/docs/components/navbar.md +++ b/docs/components/navbar.md @@ -84,7 +84,7 @@ Adding images to the `.navbar-brand` will likely always require custom styles or {% endexample %} @@ -93,7 +93,7 @@ Adding images to the `.navbar-brand` will likely always require custom styles or -- cgit v1.2.3 From 9d129a43d6c24d9e60cc8fc7cfbddaaa4c586fdf Mon Sep 17 00:00:00 2001 From: Johann-S Date: Mon, 24 Oct 2016 10:57:32 +0200 Subject: Use a single class name for opened/expanded/shown state of widgets --- docs/components/alerts.md | 4 ++-- docs/components/collapse.md | 8 ++++---- docs/components/dropdowns.md | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) (limited to 'docs/components') diff --git a/docs/components/alerts.md b/docs/components/alerts.md index 7ab6df8f4..b1ac0d845 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 ` diff --git a/docs/components/collapse.md b/docs/components/collapse.md index e98fae276..0ece9e453 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.in` shows content +- `.collapse.active` 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.in` shows the content +- `.collapse.active` 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 `in`. +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`. 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 68c388f21..621b666f1 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 %} - +
+
{% highlight html %} @@ -72,87 +70,65 @@ A rendered modal with header, body, and set of actions in the footer. - +
-
- - + + + {% endhighlight %} ### Live demo -Toggle a modal via JavaScript by clicking the button below. It will slide down and fade in from the top of the page. +Toggle a working modal demo by clicking the button below. It will slide down and fade in from the top of the page. - -
-
{% highlight html %} - -