From 44447eeefe61dbb16cab59900c3c061d9f207fbc Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Mon, 24 Nov 2014 17:09:32 -0800 Subject: Give all embedded live docs examples data-example-id attrs Refs #11410 --- docs/_includes/css/buttons.html | 16 ++++++------- docs/_includes/css/code.html | 10 ++++---- docs/_includes/css/forms.html | 48 ++++++++++++++++++------------------- docs/_includes/css/helpers.html | 8 +++---- docs/_includes/css/images.html | 2 +- docs/_includes/css/tables.html | 14 +++++------ docs/_includes/css/type.html | 52 ++++++++++++++++++++--------------------- 7 files changed, 75 insertions(+), 75 deletions(-) (limited to 'docs/_includes/css') diff --git a/docs/_includes/css/buttons.html b/docs/_includes/css/buttons.html index c4aee5972..78cd56487 100644 --- a/docs/_includes/css/buttons.html +++ b/docs/_includes/css/buttons.html @@ -3,7 +3,7 @@

Button tags

Use the button classes on an <a>, <button>, or <input> element.

-
+ Link @@ -34,7 +34,7 @@

Options

Use any of the available button classes to quickly create a styled button.

-
+
@@ -73,7 +73,7 @@

Sizes

Fancy larger or smaller buttons? Add .btn-lg, .btn-sm, or .btn-xs for additional sizes.

-
+

@@ -111,7 +111,7 @@ {% endhighlight %}

Create block level buttons—those that span the full width of a parent— by adding .btn-block.

-
+
@@ -128,7 +128,7 @@

Button element

No need to add :active as it's a pseudo-class, but if you need to force the same appearance, go ahead and add .active.

-

+

@@ -139,7 +139,7 @@

Anchor element

Add the .active class to <a> buttons.

-

+

Primary link Link

@@ -154,7 +154,7 @@

Button element

Add the disabled attribute to <button> buttons.

-

+

@@ -170,7 +170,7 @@

Anchor element

Add the .disabled class to <a> buttons.

-

+

Primary link Link

diff --git a/docs/_includes/css/code.html b/docs/_includes/css/code.html index ba2edc151..02acb1238 100644 --- a/docs/_includes/css/code.html +++ b/docs/_includes/css/code.html @@ -3,7 +3,7 @@

Inline

Wrap inline snippets of code with <code>.

-
+
For example, <section> should be wrapped as inline.
{% highlight html %} @@ -12,7 +12,7 @@ For example, <section> should be wrapped as inline.

User input

Use the <kbd> to indicate input that is typically entered via keyboard.

-
+
To switch directories, type cd followed by the name of the directory.
To edit settings, press ctrl + ,
@@ -23,7 +23,7 @@ To edit settings, press ctrl + ,

Basic block

Use <pre> for multiple lines of code. Be sure to escape any angle brackets in the code for proper rendering.

-
+
<p>Sample text here...</p>
{% highlight html %} @@ -33,7 +33,7 @@ To edit settings, press ctrl + ,

You may optionally add the .pre-scrollable class, which will set a max-height of 350px and provide a y-axis scrollbar.

Variables

For indicating variables use the <var> tag.

-
+

y = mx + b

@@ -43,7 +43,7 @@ To edit settings, press ctrl + ,

Sample output

For indicating blocks sample output from a program use the <samp> tag.

-
+

This text is meant to be treated as sample output from a computer program.

{% highlight html %} diff --git a/docs/_includes/css/forms.html b/docs/_includes/css/forms.html index a2e096937..3ab202f7c 100644 --- a/docs/_includes/css/forms.html +++ b/docs/_includes/css/forms.html @@ -3,7 +3,7 @@

Basic example

Individual form controls automatically receive some global styling. All textual <input>, <textarea>, and <select> elements with .form-control are set to width: 100%; by default. Wrap labels and controls in .form-group for optimum spacing.

-
+
@@ -65,7 +65,7 @@

Always add labels

Screen readers will have trouble with your forms if you don't include a label for every input. For these inline forms, you can hide the labels using the .sr-only class. There are further alternative methods of providing a label for assistive technologies, such as the aria-label, aria-labelledby or title attribute. If none of these is present, screen readers may resort to using the placeholder attribute, if present, but note that use of placeholder as a replacement for other labelling methods is not advised.

-
+
@@ -102,7 +102,7 @@ {% endhighlight %} -
+
@@ -131,7 +131,7 @@

Horizontal form

Use Bootstrap's predefined grid classes to align labels and groups of form controls in a horizontal layout by adding .form-horizontal to the form. Doing so changes .form-groups to behave as grid rows, so no need for .row.

-
+
@@ -202,7 +202,7 @@

Type declaration required

Inputs will only be fully styled if their type is properly declared.

-
+
@@ -217,7 +217,7 @@

Textarea

Form control which supports multiple lines of text. Change rows attribute as necessary.

-
+
@@ -230,7 +230,7 @@

Checkboxes are for selecting one or several options in a list, while radios are for selecting one option from many.

A checkbox or radio with the disabled attribute will be styled appropriately. To have the <label> for the checkbox or radio also display a "not-allowed" cursor when the user hovers over the label, add the .disabled class to your .radio, .radio-inline, .checkbox, .checkbox-inline, or <fieldset>.

Default (stacked)

-
+