Skip to content

Commit

Permalink
feat(dropdown-notification): add notifications with alert icon
Browse files Browse the repository at this point in the history
[Finishes #87556108]

Signed-off-by: Nicole Sullivan <nsullivan@pivotal.io>
  • Loading branch information
bebepeng authored and stubbornella committed Feb 4, 2015
1 parent d4c10b2 commit ce756c2
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions src/pivotal-ui/components/dropdowns.scss
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,46 @@ This is a notification dropdown with notifications.
</div>
```
This is a notification dropdown with alerts.
```html_example
<div class="dropdown btn-group">
<a data-toggle="dropdown" class="dropdown-toggle btn btn-link" type="button">
<i class="fa fa-bell type-neutral-6 h2 mvn"></i>
<i class="fa fa-exclamation-triangle h4 type-warn-2 dropdown-notifications-alert"></i>
</a>
<ul class="dropdown-menu dropdown-notifications-list" role="menu">
<li role="presentation">
<a role="menuitem" href="https://twitter.com/fat">
<div class="media man pan">
<div class="media-left media-middle">
<i class="fa fa-exclamation-triangle type-warn-2 h4 mrm"></i>
</div>
<div class="media-body media-middle">
<h5 class="media-heading mbn type-dark-1">Product One</h5>
<p class="type-sm type-neutral-5 mvn">1 alert</p>
</div>
</div>
</a>
</li>
<li role="presentation">
<a role="menuitem" href="https://twitter.com/fat">
<div class="media man pan">
<div class="media-left media-middle">
<i class="fa fa-exclamation-triangle type-warn-2 h4 mrm"></i>
</div>
<div class="media-body media-middle">
<h5 class="media-heading mbn type-dark-1">Product Two</h5>
<p class="type-sm type-neutral-5 mvn">2 alerts</p>
</div>
</div>
</a>
</li>
</ul>
</div>
```
*/

.dropdown-notifications-none {
Expand All @@ -269,6 +309,11 @@ This is a notification dropdown with notifications.
top: 6px;
right: 9px;
}
.dropdown-notifications-alert {
position: absolute;
top: -6px;
right: 6px;
}

.dropdown-notifications-list {
li {
Expand Down

0 comments on commit ce756c2

Please sign in to comment.