_system-help.scss 4.63 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
    @extend %t-strong;
12 13 14
  }

  .copy {
15
    @extend %t-copy-sub1;
16 17 18
  }

  strong {
19
    @extend %t-strong;
20 21 22 23 24 25 26
  }

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

    .copy {
27
      @include float(left);
28
      width: flex-grid(8,12);
29
      @include margin-right(flex-gutter());
30 31 32
    }

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

      .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
    @extend %t-strong;
60
    margin-bottom: ($baseline/2);
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
  }

  strong {
75
    @extend %t-strong;
76
  }
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
}
214 215 216 217 218 219 220 221 222

// ====================

// informational bits (rename once UI pattern is further defined)
.bit {
  @extend %t-copy-sub1;
  margin: 0 0 $baseline 0;
  border-bottom: 1px solid $gray-l4;
  padding: 0 0 $baseline 0;
223
  color: $gray-d1;
224 225 226 227 228 229 230 231 232

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

  h3, .title {
    @extend %t-title7;
233
    @extend %t-strong;
234 235 236 237 238 239 240 241 242 243 244 245
    margin: 0 0 ($baseline/4) 0;
    color: $gray-d2;
  }

  p, .copy {
    margin: 0 0 $baseline 0;

    &:last-child {
      margin-bottom: 0;
    }
  }

246 247
  // learn more (aka external help button)
  .external-help-button {
248
    display: inline-block;
249 250 251 252
    @extend %ui-btn-flat-outline;
    @extend %sizing;
  }

253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283
  // actions
  .list-actions {
    @extend %cont-no-list;

    .action-item {
      @extend %wipe-last-child;
      margin-bottom: ($baseline/4);
      border-bottom: 1px dotted $gray-l4;
      padding-bottom: ($baseline/4);
    }
  }

  // details
  .list-details {
    @extend %cont-no-list;

    .item-detail {
      @extend %wipe-last-child;
      margin-bottom: ($baseline/4);
      border-bottom: 1px dotted $gray-l4;
      padding-bottom: ($baseline/4);
    }
  }

  // navigation
  .nav-related, .nav-page {
    @extend %cont-no-list;

    .nav-item {
      @extend %wipe-last-child;
      margin-bottom: ($baseline/4);
Chris Rodriguez committed
284
      border-bottom: 1px dotted $gray-l5;
285 286 287 288
      padding-bottom: ($baseline/4);
    }
  }
}