aboutsummaryrefslogtreecommitdiff
path: root/docs/css.html
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-06-27 18:49:05 -0700
committerMark Otto <[email protected]>2013-06-27 18:49:05 -0700
commit62f76ad33f5a70c21f91e729963e049547ffc391 (patch)
tree3e611f99d09a7f658dc1e529a820aa87f7c4c557 /docs/css.html
parentf64fe29003159669404f8f5a7a20551fec263904 (diff)
parentcb483b67589df7ac3ece33303b8ce944b3ac4b0e (diff)
downloadbootstrap-62f76ad33f5a70c21f91e729963e049547ffc391.tar.xz
bootstrap-62f76ad33f5a70c21f91e729963e049547ffc391.zip
Merge branch '3.0.0-wip' into bs3_remove_icons
Conflicts: docs/components.html
Diffstat (limited to 'docs/css.html')
-rw-r--r--docs/css.html37
1 files changed, 13 insertions, 24 deletions
diff --git a/docs/css.html b/docs/css.html
index d4e7f77d2..9c85d35f6 100644
--- a/docs/css.html
+++ b/docs/css.html
@@ -43,7 +43,7 @@ lead: "Fundamental HTML elements styled and enhanced with extensible classes."
</ul>
<p>These styles can be found within <strong>scaffolding.less</strong>.</p>
- <h3 id="overview-reset">Normalize reset</h3>
+ <h3 id="overview-normalize">Normalize reset</h3>
<p>For improved cross-browser rendering, we use <a href="http://necolas.github.com/normalize.css/" target="_blank">Normalize</a>, a project by <a href="http://twitter.com/necolas" target="_blank">Nicolas Gallagher</a> and <a href="http://twitter.com/jon_neal" target="_blank">Jonathan Neal</a>.</p>
<h3 id="overview-container">Centering with container</h3>
@@ -247,7 +247,7 @@ lead: "Fundamental HTML elements styled and enhanced with extensible classes."
<div class="bs-callout">
<h4>Need more examples?</h4>
- <p>We dive into more grid layouts in a separte page, free of chrome and documentation to better show you the power of the grid.</p>
+ <p>We dive into more grid layouts in a separate page, free of chrome and documentation to better show you the power of the grid.</p>
<p><a class="btn btn-danger" target="_blank" href="../examples/grid/">More grid examples</a></p>
</div>
@@ -1382,21 +1382,6 @@ For example, <code>&lt;section&gt;</code> should be wrapped as inline.
<input id="focusedInput" type="text" value="This is focused...">
{% endhighlight %}
- <h3 id="forms-invalid-inputs">Invalid inputs</h3>
- <p>Style inputs via default browser functionality. Specify a <code>type</code>, add the <code>required</code> attribute if the field is not optional, and (if applicable) specify a <code>pattern</code>.</p>
-
- <div class="bs-callout">
- <h4>Cross-browser compatibility</h4>
- <p>Invalid inputs are styled via the <code>:invalid</code> CSS selector, which is not supported by Internet Explorer 9 and below.</p>
- </div>
-
- <form class="bs-example">
- <input type="email" placeholder="[email protected]" required>
- </form>
-{% highlight html %}
-<input type="email" placeholder="[email protected]" required>
-{% endhighlight %}
-
<h3 id="forms-disabled-inputs">Disabled inputs</h3>
<p>Add the <code>disabled</code> attribute on an input to prevent user input and trigger a slightly different look.</p>
<form class="bs-example">
@@ -1509,12 +1494,16 @@ For example, <code>&lt;section&gt;</code> should be wrapped as inline.
<p>Adding on top of existing browser controls, Bootstrap includes other useful form components.</p>
<h3 id="forms-input-groups">Input groups</h3>
- <p>Add text or buttons before, after, or on both sides of any text-based input. Use <code>.input-group</code> with a <code>.add-on</code> to prepend or append elements to an <code>&lt;input&gt;</code>.</p>
+ <p>Add text or buttons before, after, or on both sides of any text-based input. Use <code>.input-group</code> with an <code>.add-on</code> to prepend or append elements to an <code>&lt;input&gt;</code>.</p>
<div class="bs-callout">
<h4>Cross-browser compatibility</h4>
<p>Avoid using <code>&lt;select&gt;</code> elements here as they cannot be fully styled in WebKit browsers.</p>
</div>
+ <div class="bs-callout">
+ <h4>Tooltips &amp; popovers in input groups require special setting</h4>
+ <p>When using tooltips or popovers on elements within an <code>.input-group</code>, you'll have to specify the option <code>container: 'body'</code> to avoid unwanted side effects (such as the element growing wider and/or losing its rounded corners when the tooltip or popover is triggered).</p>
+ </div>
<form class="bs-example bs-example-form">
<div class="input-group col-lg-9">
@@ -1757,26 +1746,26 @@ For example, <code>&lt;section&gt;</code> should be wrapped as inline.
<form class="bs-example" style="padding-bottom: 15px;">
<div class="row">
<div class="col-lg-2">
- <input type="text" placeholder="col-large-2">
+ <input type="text" placeholder=".col-lg-2">
</div>
<div class="col-lg-3">
- <input type="text" placeholder="col-large-3">
+ <input type="text" placeholder=".col-lg-3">
</div>
<div class="col-lg-4">
- <input type="text" placeholder="col-large-4">
+ <input type="text" placeholder=".col-lg-4">
</div>
</div>
</form>
{% highlight html %}
<div class="row">
<div class="col-lg-2">
- <input type="text" placeholder="col-large-2">
+ <input type="text" placeholder=".col-lg-2">
</div>
<div class="col-lg-3">
- <input type="text" placeholder="col-large-3">
+ <input type="text" placeholder=".col-lg-3">
</div>
<div class="col-lg-4">
- <input type="text" placeholder="col-large-4">
+ <input type="text" placeholder=".col-lg-4">
</div>
</div>
{% endhighlight %}