_system-feedback.scss 2.2 KB
Newer Older
1 2 3 4 5 6 7
// lms - elements - system feedback
// ====================

// messages

// UI : message
.wrapper-msg {
8
  display: block;
9
  margin-bottom: ($baseline/4);
10 11
  box-shadow: 0 0 5px $shadow-d1 inset;
  background: $notify-banner-bg-1;
12
  padding: $baseline ($baseline*1.5);
13 14 15 16

  &.is-hidden {
    display: none;
  }
17

18
  // basic object
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
  .msg {
    @include clearfix();
    max-width: grid-width(12);
    min-width: 760px;
    width: flex-grid(12);
    margin: 0 auto;
  }

  .msg-content,
  .msg-icon {
    display: inline-block;
    vertical-align: middle;
  }

  .msg-content {

    .title {
      @extend %t-title5;
      @extend %t-weight4;
      margin-bottom: ($baseline/4);
39
      color: inherit;
40 41 42 43 44 45
      text-transform: none;
      letter-spacing: 0;
    }

    .copy {
      @extend %t-copy-sub1;
46
      color: inherit;
47 48 49

      p { // nasty reset
        @extend %t-copy-sub1;
50
        color: inherit;
51 52 53 54 55 56 57 58 59 60 61 62 63 64
      }
    }
  }

  .has-actions {

    .msg-content {
      width: flex-grid(10,12);
    }

    .nav-actions {
      width: flex-grid(2,12);
      display: inline-block;
      vertical-align: middle;
65
      text-align: right;
66 67 68 69 70 71 72

      .action-primary {
        @extend %btn-primary-green;
      }
    }
  }

73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
  .is-dismissable {

    .msg-content {
      width: flex-grid(11,12);
    }

    .action-dismiss {
      width: flex-grid(1,12);
      display: inline-block;
      vertical-align: top;
      text-align: right;

      .button-dismiss {  //ugly reset on button element
        @extend %t-icon4;
        background: none;
        box-shadow: none;
        border: none;
        text-shadow: none;
        color: inherit;
92 93 94 95

        &:hover {
          color: $action-primary-bg;
        }
96 97 98 99 100 101
      }
    }
  }

  // object variations
  &.urgency-high {
102
    background: $notify-banner-bg-1;
103 104 105 106 107

    .msg {
      color: $white;
    }
  }
108

109
  &.urgency-mid {
110
    background: $notify-banner-bg-2;
111 112 113 114 115 116 117

    .msg {
      color: $white;
    }
  }

  &.urgency-low {
118
    background: $notify-banner-bg-3;
119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135

    .msg {
      color: $black;
    }
  }

  &.alert {
    border-top: 3px solid $alert-color;
  }

  &.warning {
    border-top: 3px solid $warning-color;
  }

  &.success {
    border-top: 3px solid $success-color;
  }
136 137
}

138

139 140 141 142 143
// prompts

// notifications

// alerts