denkGroot/Spina

View on GitHub
app/assets/stylesheets/spina/_notifications.sass

Summary

Maintainability
Test Coverage
// Notifications

aside#notifications
  bottom: 0
  padding: 16px
  position: fixed
  right: 0
  z-index: 100

.notification
  animation-duration: .4s
  align-items: center
  background: $primary-color
  border-radius: 3px
  color: #fff
  display: flex
  font-size: 16px
  line-height: 24px
  margin-top: 16px
  padding: 16px 0
  position: relative
  width: 400px

  .notification-message
    flex: 1
    overflow: hidden

  .icon
    text-align: center
    min-width: 50px
    width: 50px

  a
    color: #000
    display: block
    font-size: 11px
    opacity: .2
    text-align: center
    width: 50px

    &:hover
      color: #000
      opacity: .4

  strong
    font-weight: 600

  small
    display: block
    font-size: 13px
    font-weight: normal
    line-height: 20px
    opacity: .6

  &.notification-error
    background: $error-color

  &.notification-danger
    background: $danger-color

  &.notification-success
    background: $success-color