0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-10 22:24:19 +01:00

#1732: make examples of alerts in docs components page dismissable

This commit is contained in:
Mark Otto 2012-02-04 22:31:09 -08:00
parent 468688638d
commit b297a61f82
3 changed files with 14 additions and 14 deletions

Binary file not shown.

View File

@ -1294,24 +1294,24 @@
<h3>Example alerts</h3> <h3>Example alerts</h3>
<p>Wrap your message and an optional close icon in a div with simple class.</p> <p>Wrap your message and an optional close icon in a div with simple class.</p>
<div class="alert"> <div class="alert">
<a class="close">&times;</a> <a class="close" data-dismiss="alert">&times;</a>
<strong>Warning!</strong> Best check yo self, you're not looking too good. <strong>Warning!</strong> Best check yo self, you're not looking too good.
</div> </div>
<pre class="prettyprint linenums"> <pre class="prettyprint linenums">
&lt;div class="alert"&gt; &lt;div class="alert"&gt;
&lt;a class="close"&gt;&times;&lt;/a&gt; &lt;a class="close data-dismiss="alert"gt;&times;&lt;/a&gt;
&lt;strong&gt;Warning!&lt;/strong&gt; Best check yo self, you're not looking too good. &lt;strong&gt;Warning!&lt;/strong&gt; Best check yo self, you're not looking too good.
&lt;/div&gt; &lt;/div&gt;
</pre> </pre>
<p>Easily extend the standard alert message with two optional classes: <code>.alert-block</code> for more padding and text controls and <code>.alert-heading</code> for a matching heading.</p> <p>Easily extend the standard alert message with two optional classes: <code>.alert-block</code> for more padding and text controls and <code>.alert-heading</code> for a matching heading.</p>
<div class="alert alert-block"> <div class="alert alert-block">
<a class="close">&times;</a> <a class="close" data-dismiss="alert">&times;</a>
<h4 class="alert-heading">Warning!</h4> <h4 class="alert-heading">Warning!</h4>
<p>Best check yo self, you're not looking too good. Nulla vitae elit libero, a pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.</p> <p>Best check yo self, you're not looking too good. Nulla vitae elit libero, a pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.</p>
</div> </div>
<pre class="prettyprint linenums"> <pre class="prettyprint linenums">
&lt;div class="alert alert-block"&gt; &lt;div class="alert alert-block"&gt;
&lt;a class="close"&gt;&times;&lt;/a&gt; &lt;a class="close" data-dismiss="alert"&gt;&times;&lt;/a&gt;
&lt;h4 class="alert-heading"&gt;Warning!&lt;/h4&gt; &lt;h4 class="alert-heading"&gt;Warning!&lt;/h4&gt;
Best check yo self, you're not... Best check yo self, you're not...
&lt;/div&gt; &lt;/div&gt;
@ -1324,7 +1324,7 @@
<div class="span4"> <div class="span4">
<h3>Error or danger</h3> <h3>Error or danger</h3>
<div class="alert alert-error"> <div class="alert alert-error">
<a class="close">&times;</a> <a class="close" data-dismiss="alert">&times;</a>
<strong>Oh snap!</strong> Change a few things up and try submitting again. <strong>Oh snap!</strong> Change a few things up and try submitting again.
</div> </div>
<pre class="prettyprint linenums"> <pre class="prettyprint linenums">
@ -1336,7 +1336,7 @@
<div class="span4"> <div class="span4">
<h3>Success</h3> <h3>Success</h3>
<div class="alert alert-success"> <div class="alert alert-success">
<a class="close">&times;</a> <a class="close" data-dismiss="alert">&times;</a>
<strong>Well done!</strong> You successfully read this important alert message. <strong>Well done!</strong> You successfully read this important alert message.
</div> </div>
<pre class="prettyprint linenums"> <pre class="prettyprint linenums">
@ -1348,7 +1348,7 @@
<div class="span4"> <div class="span4">
<h3>Information</h3> <h3>Information</h3>
<div class="alert alert-info"> <div class="alert alert-info">
<a class="close">&times;</a> <a class="close" data-dismiss="alert">&times;</a>
<strong>Heads up!</strong> This alert needs your attention, but it's not super important. <strong>Heads up!</strong> This alert needs your attention, but it's not super important.
</div> </div>
<pre class="prettyprint linenums"> <pre class="prettyprint linenums">

View File

@ -1218,24 +1218,24 @@
<h3>{{_i}}Example alerts{{/i}}</h3> <h3>{{_i}}Example alerts{{/i}}</h3>
<p>{{_i}}Wrap your message and an optional close icon in a div with simple class.{{/i}}</p> <p>{{_i}}Wrap your message and an optional close icon in a div with simple class.{{/i}}</p>
<div class="alert"> <div class="alert">
<a class="close">&times;</a> <a class="close" data-dismiss="alert">&times;</a>
<strong>{{_i}}Warning!{{/i}}</strong> {{_i}}Best check yo self, you're not looking too good.{{/i}} <strong>{{_i}}Warning!{{/i}}</strong> {{_i}}Best check yo self, you're not looking too good.{{/i}}
</div> </div>
<pre class="prettyprint linenums"> <pre class="prettyprint linenums">
&lt;div class="alert"&gt; &lt;div class="alert"&gt;
&lt;a class="close"&gt;&times;&lt;/a&gt; &lt;a class="close data-dismiss="alert"gt;&times;&lt;/a&gt;
&lt;strong&gt;{{_i}}Warning!{{/i}}&lt;/strong&gt; {{_i}}Best check yo self, you're not looking too good.{{/i}} &lt;strong&gt;{{_i}}Warning!{{/i}}&lt;/strong&gt; {{_i}}Best check yo self, you're not looking too good.{{/i}}
&lt;/div&gt; &lt;/div&gt;
</pre> </pre>
<p>{{_i}}Easily extend the standard alert message with two optional classes: <code>.alert-block</code> for more padding and text controls and <code>.alert-heading</code> for a matching heading.{{/i}}</p> <p>{{_i}}Easily extend the standard alert message with two optional classes: <code>.alert-block</code> for more padding and text controls and <code>.alert-heading</code> for a matching heading.{{/i}}</p>
<div class="alert alert-block"> <div class="alert alert-block">
<a class="close">&times;</a> <a class="close" data-dismiss="alert">&times;</a>
<h4 class="alert-heading">{{_i}}Warning!{{/i}}</h4> <h4 class="alert-heading">{{_i}}Warning!{{/i}}</h4>
<p>{{_i}}Best check yo self, you're not looking too good.{{/i}} Nulla vitae elit libero, a pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.</p> <p>{{_i}}Best check yo self, you're not looking too good.{{/i}} Nulla vitae elit libero, a pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.</p>
</div> </div>
<pre class="prettyprint linenums"> <pre class="prettyprint linenums">
&lt;div class="alert alert-block"&gt; &lt;div class="alert alert-block"&gt;
&lt;a class="close"&gt;&times;&lt;/a&gt; &lt;a class="close" data-dismiss="alert"&gt;&times;&lt;/a&gt;
&lt;h4 class="alert-heading"&gt;{{_i}}Warning!{{/i}}&lt;/h4&gt; &lt;h4 class="alert-heading"&gt;{{_i}}Warning!{{/i}}&lt;/h4&gt;
{{_i}}Best check yo self, you're not...{{/i}} {{_i}}Best check yo self, you're not...{{/i}}
&lt;/div&gt; &lt;/div&gt;
@ -1248,7 +1248,7 @@
<div class="span4"> <div class="span4">
<h3>{{_i}}Error or danger{{/i}}</h3> <h3>{{_i}}Error or danger{{/i}}</h3>
<div class="alert alert-error"> <div class="alert alert-error">
<a class="close">&times;</a> <a class="close" data-dismiss="alert">&times;</a>
<strong>{{_i}}Oh snap!{{/i}}</strong> {{_i}}Change a few things up and try submitting again.{{/i}} <strong>{{_i}}Oh snap!{{/i}}</strong> {{_i}}Change a few things up and try submitting again.{{/i}}
</div> </div>
<pre class="prettyprint linenums"> <pre class="prettyprint linenums">
@ -1260,7 +1260,7 @@
<div class="span4"> <div class="span4">
<h3>{{_i}}Success{{/i}}</h3> <h3>{{_i}}Success{{/i}}</h3>
<div class="alert alert-success"> <div class="alert alert-success">
<a class="close">&times;</a> <a class="close" data-dismiss="alert">&times;</a>
<strong>{{_i}}Well done!{{/i}}</strong> {{_i}}You successfully read this important alert message.{{/i}} <strong>{{_i}}Well done!{{/i}}</strong> {{_i}}You successfully read this important alert message.{{/i}}
</div> </div>
<pre class="prettyprint linenums"> <pre class="prettyprint linenums">
@ -1272,7 +1272,7 @@
<div class="span4"> <div class="span4">
<h3>{{_i}}Information{{/i}}</h3> <h3>{{_i}}Information{{/i}}</h3>
<div class="alert alert-info"> <div class="alert alert-info">
<a class="close">&times;</a> <a class="close" data-dismiss="alert">&times;</a>
<strong>{{_i}}Heads up!{{/i}}</strong> {{_i}}This alert needs your attention, but it's not super important.{{/i}} <strong>{{_i}}Heads up!{{/i}}</strong> {{_i}}This alert needs your attention, but it's not super important.{{/i}}
</div> </div>
<pre class="prettyprint linenums"> <pre class="prettyprint linenums">