Skip to content

Commit

Permalink
feat(alerts): add example of full width dismissable alerts
Browse files Browse the repository at this point in the history
[Finishes #83811300]
  • Loading branch information
bebepeng committed Dec 3, 2014
1 parent 70e5378 commit 4880b8e
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/pivotal-ui/components/alerts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,33 @@ By adding `.alert-dismissable` and a button, you can also make alerts dismissabl
</div>
```
If a full-width dissmissable alert is desired, but the content needs to be aligned with
other content inside a container on the page (of a width 500px for this example), you might consider doing the following:
```html_example
<div class="pane bg-accent-5">
<div class="container pan" style="width:500px">
<div class="alert alert-info mtn">
<button class="close" data-dismiss="alert">
<i class="fa fa-times"></i>
</button>
<div class="media mtn">
<div class="media-left">
<i class="fa fa-info-circle"></i>
</div>
<div class="media-body em-high">
3 new files available for Pivotal CF.
<a class="type-sm alert-link" href="http://bit.ly/1DFns8H">Mark all as viewed.</a>
</div>
</div>
</div>
</div>
</div>
```
*/

.alert {
Expand Down

0 comments on commit 4880b8e

Please sign in to comment.