_system-help.scss 3.21 KB
Newer Older
Brian Talbot committed
1 2
// studio - elements - system help
// ====================
3

4 5 6 7 8 9
// view introductions - common greeting/starting points for the UI
.content .introduction {
  @include box-sizing(border-box);
  margin-bottom: $baseline;

  .title {
10
    @extend %t-title4;
11 12 13 14
    font-weight: 600;
  }

  .copy {
15
    @extend %t-copy-sub1;
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
  }

  strong {
    font-weight: 600;
  }

  // CASE: has links alongside
  &.has-links {
    @include clearfix();

    .copy {
      float: left;
      width: flex-grid(8,12);
      margin-right: flex-gutter();
    }

    .nav-introduction-supplementary {
33
      @extend %t-copy-sub2;
34 35 36 37 38 39
      float: right;
      width: flex-grid(4,12);
      display: block;
      text-align: right;

      .icon {
40
        @extend %t-action3;
41 42 43 44 45 46 47 48
        display: inline-block;
        vertical-align: middle;
        margin-right: ($baseline/4);
      }
    }
  }
}

49 50
// notices - in-context: to be used as notices to users within the context of a form/action
.notice-incontext {
51
  @extend %ui-well;
52
  border-radius: ($baseline/10);
53 54 55
  position: relative;
  overflow: hidden;
  margin-bottom: $baseline;
56 57

  .title {
58
    @extend %t-title6;
59
    margin-bottom: ($baseline/2);
60
    font-weight: 700;
61 62 63
  }

  .copy {
64
    @extend %t-copy-sub1;
65
    @include transition(opacity $tmg-f2 ease-in-out 0s);
66
    opacity: 0.75;
67 68 69 70 71
    margin-bottom: $baseline;

    &:last-child {
      margin-bottom: 0;
    }
72 73 74 75 76
  }

  strong {
    font-weight: 600;
  }
77

78
  &.has-status {
79

80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
    .status-indicator {
      position: absolute;
      top: 0;
      left: 0;
      display: block;
      width: 100%;
      height: ($baseline/4);
      opacity: 0.40;
    }
  }

  // CASE: notice has actions {
  &.has-actions {

    .list-actions {
      margin-top: ($baseline*0.75);

      .action-item {

      }

      .action-primary {
102 103
        @extend %btn-primary-blue;
        @extend %t-action3;
104
      }
105 106
    }
  }
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122

  // list of notices all in one
  &.list-notices {

    .notice-item {
      margin-bottom: $baseline;
      border-bottom: 1px solid $gray-l3;
      padding-bottom: $baseline;

      &:last-child {
        margin-bottom: 0;
        border: none;
        padding-bottom: 0;
      }
    }
  }
123 124
}

125
// particular notice - warnings around a workflow for something
126 127 128
.notice-workflow {
  background: $yellow-l5;

129 130 131 132 133 134 135 136
  .status-indicator {
    background: $yellow;
  }

  title {
    color: $gray-d1;
  }

137
  .copy {
138 139 140 141 142 143 144 145 146
    color: $gray;
  }
}

// particular notice - instructional
.notice-instruction {
  background-color: $gray-l4;

  .title {
147
    color: $gray-d2;
148
  }
149 150

  .copy {
151
    color: $gray-d2;
152 153 154 155 156 157 158 159 160 161 162
  }

  &.has-actions {

    .list-actions {

      .action-item {

      }

      .action-primary {
163 164
        @extend %btn-primary-blue;
        @extend %t-action3;
165 166 167 168 169
      }
    }
  }
}

170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190
// particular notice - create
.notice-create {
  background-color: $gray-l4;

  .title {
    color: $gray-d2;
  }

  .copy {
    color: $gray-d2;
  }

  &.has-actions {

    .list-actions {

      .action-item {

      }

      .action-primary {
191 192
        @extend %btn-primary-green;
        @extend %t-action3;
193 194 195 196 197
      }
    }
  }
}

198 199 200 201 202 203 204 205 206 207 208 209 210 211 212
// particular notice - confirmation
.notice-confirmation {
  background-color: $green-l5;

  .status-indicator {
    background: $green-s1;
  }

  .title {
    color: $green;
  }

  .copy {
    color: $gray;
  }
213
}