Notification

Example

Update available
New content available, please refresh your page.
Success
Your item was successfully created.
Warning
Please save all your data before refresh the page.
Unexpected behavior
Somethign goes wrong, please try again later.
<div class="notification">
  <div class="notification__icon">
    <svg width="20" height="20" viewBox="0 0 20 20">
      <use xlink:href="#some-icon"></use>
    </svg>
  </div>
  <div class="notification__content">
    <div class="notification__title">Update available</div>
    <div class="notification__message">New content available, please refresh your page.</div>
  </div>
  <div class="notification__close">
    <button class="button button--size-1 button--subtle">
      <svg width="16" height="16">
        <use xlink:href="#cross-icon"></use>
      </svg>
    </button>
  </div>
</div>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

Container

Put your notifications inside <div class="notification-container">...</div> container to place them on the page.

<!--top left-->
<div class="notification-container notification-container--top-left">
  <!--your notification here-->
</div>
<!--top right-->
<div class="notification-container notification-container--top-right">
  <!--your notification here-->
</div>
<!--bottom left-->
<div class="notification-container notification-container--bottom-left">
  <!--your notification here-->
</div>
<!--bottom right-->
<div class="notification-container notification-container--bottom-right">
  <!--your notification here-->
</div>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Last Updated: 4/2/2019, 5:40:47 PM