aboutsummaryrefslogtreecommitdiff
path: root/docs/components.html
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-05-16 20:53:59 -0700
committerMark Otto <[email protected]>2013-05-16 20:53:59 -0700
commit9762f95bde0fc251aa42d2e843cf5885f264cca3 (patch)
tree94d30c84a0ff06316a89b3b6b18f9ef2276cf18c /docs/components.html
parent0f4b4acce1df7f2cdfc6e0ad6dca59480868bd8d (diff)
downloadbootstrap-9762f95bde0fc251aa42d2e843cf5885f264cca3.tar.xz
bootstrap-9762f95bde0fc251aa42d2e843cf5885f264cca3.zip
Change up link alerts
* No more children selectors to set all links in alerts as a special color because buttons and more wrongly inherited color * Adds .alert-link for easy styling in any alert
Diffstat (limited to 'docs/components.html')
-rw-r--r--docs/components.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/docs/components.html b/docs/components.html
index ea87a7e22..20fdd70dd 100644
--- a/docs/components.html
+++ b/docs/components.html
@@ -1906,6 +1906,34 @@ body { padding-bottom: 70px; }
<div class="alert alert-success">...</div>
<div class="alert alert-info">...</div>
{% endhighlight %}
+
+ <h3 id="alerts-links">Links in alerts</h3>
+ <p>Use the <code>.alert-link</code> utility class to quickly provide matching colored links within any alert.</p>
+ <div class="bs-example">
+ <div class="alert alert-danger">
+ <button type="button" class="close" data-dismiss="alert">&times;</button>
+ <strong>Oh snap!</strong> <a href="#" class="alert-link">Change a few things up</a> and try submitting again.
+ </div>
+ <div class="alert alert-success">
+ <button type="button" class="close" data-dismiss="alert">&times;</button>
+ <strong>Well done!</strong> You successfully read <a href="#" class="alert-link">this important alert message</a>.
+ </div>
+ <div class="alert alert-info">
+ <button type="button" class="close" data-dismiss="alert">&times;</button>
+ <strong>Heads up!</strong> This <a href="#" class="alert-link">alert needs your attention</a>, but it's not super important.
+ </div>
+ </div>
+{% highlight html %}
+<div class="alert alert-danger">
+ <a href="#" class="alert-link">...</a>
+</div>
+<div class="alert alert-success">
+ <a href="#" class="alert-link">...</a>
+</div>
+<div class="alert alert-info">
+ <a href="#" class="alert-link">...</a>
+</div>
+{% endhighlight %}
</div>