callout.scss 1019 字节
Newer Older
D
Dmitriy Zaporozhets 已提交
1 2 3 4 5 6 7 8 9
/*
 * Callouts from Bootstrap3 docs
 *
 * Not quite alerts, but custom and helpful notes for folks reading the docs.
 * Requires a base and modifier class.
 */

/* Common styles for all types */
.bs-callout {
10 11
  margin: $gl-padding 0;
  padding: $gl-padding;
12 13
  border-left: 3px solid $border-color;
  color: $text-color;
A
Annabel Dunstone Gray 已提交
14
  background: $gray-light;
D
Dmitriy Zaporozhets 已提交
15
}
16

D
Dmitriy Zaporozhets 已提交
17 18 19 20
.bs-callout h4 {
  margin-top: 0;
  margin-bottom: 5px;
}
21

D
Dmitriy Zaporozhets 已提交
22 23 24 25 26 27
.bs-callout p:last-child {
  margin-bottom: 0;
}

/* Variations */
.bs-callout-danger {
S
Sam Rose 已提交
28 29 30
  background-color: $callout-danger-bg;
  border-color: $callout-danger-border;
  color: $callout-danger-color;
D
Dmitriy Zaporozhets 已提交
31
}
32

D
Dmitriy Zaporozhets 已提交
33
.bs-callout-warning {
S
Sam Rose 已提交
34 35 36
  background-color: $callout-warning-bg;
  border-color: $callout-warning-border;
  color: $callout-warning-color;
D
Dmitriy Zaporozhets 已提交
37
}
38

D
Dmitriy Zaporozhets 已提交
39
.bs-callout-info {
S
Sam Rose 已提交
40 41 42
  background-color: $callout-info-bg;
  border-color: $callout-info-border;
  color: $callout-info-color;
D
Dmitriy Zaporozhets 已提交
43
}
44

D
Dmitriy Zaporozhets 已提交
45
.bs-callout-success {
S
Sam Rose 已提交
46 47 48
  background-color: $callout-success-bg;
  border-color: $callout-success-border;
  color: $callout-success-color;
D
Dmitriy Zaporozhets 已提交
49
}