diff options
| author | Mark Otto <[email protected]> | 2013-08-18 20:10:14 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-08-18 20:10:14 -0700 |
| commit | 2e9184366129139bb9b64b679a0e75a3c556465e (patch) | |
| tree | df224538a837a3701f088d1283caa0afaf10c074 /components.html | |
| parent | 93887f4bd001005e75ef636ef7600c6bcc9a61f4 (diff) | |
| parent | e6ff75bcea01a75306e7a747103b0647bec909af (diff) | |
| download | bootstrap-2e9184366129139bb9b64b679a0e75a3c556465e.tar.xz bootstrap-2e9184366129139bb9b64b679a0e75a3c556465e.zip | |
Merge pull request #9818 from twbs/bs3_alert_base_class
BS3: Refactor alerts to require a modifier class
Diffstat (limited to 'components.html')
| -rw-r--r-- | components.html | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/components.html b/components.html index 7475fa108..a78033772 100644 --- a/components.html +++ b/components.html @@ -2206,22 +2206,14 @@ body { padding-bottom: 70px; } </div> <p class="lead">Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages. For inline dismissal, use the <a href="../javascript/#js-alerts">alerts jQuery plugin</a>.</p> - <h2 id="alerts-default">Default alert</h2> - <p>Wrap any text and an optional dismiss button in <code>.alert</code> for a basic warning alert message.</p> + <h2 id="alerts-examples">Examples</h2> + <p>Wrap any text and an optional dismiss button in <code>.alert</code> and one of the four contextual classes (e.g., <code>.alert-success</code>) for basic alert messages.</p> - <div class="bs-example"> - <div class="alert"> - <strong>Warning!</strong> Best check yo self, you're not looking too good. - </div> + <div class="bs-callout bs-callout-info"> + <h4>No default class</h4> + <p>Alerts don't have default classes, only base and modifier classes. A default gray alert doesn't make too much sense, so you're required to specify a type via contextual class. Choose from success, info, warning, or danger.</p> </div> -{% highlight html %} -<div class="alert"> - <strong>Warning!</strong> Best check yo self, you're not looking too good. -</div> -{% endhighlight %} - <h2 id="alerts-alternatives">Contextual alternatives</h2> - <p>Add optional classes to change an alert's connotation.</p> <div class="bs-example"> <div class="alert alert-success"> <strong>Well done!</strong> You successfully read this important alert message. @@ -2229,6 +2221,9 @@ body { padding-bottom: 70px; } <div class="alert alert-info"> <strong>Heads up!</strong> This alert needs your attention, but it's not super important. </div> + <div class="alert alert-warning"> + <strong>Warning!</strong> Best check yo self, you're not looking too good. + </div> <div class="alert alert-danger"> <strong>Oh snap!</strong> Change a few things up and try submitting again. </div> @@ -2236,6 +2231,7 @@ body { padding-bottom: 70px; } {% highlight html %} <div class="alert alert-success">...</div> <div class="alert alert-info">...</div> +<div class="alert alert-warning">...</div> <div class="alert alert-danger">...</div> {% endhighlight %} |
