bootstrap-source/bootstrap-3.0.3/less Kopie/alerts.less
author stetrabby <info@trabucchi.de>
Fri, 20 Dec 2013 22:49:16 +0100
changeset 54 0ded9d7748b7
permissions -rwxr-xr-x
initial less based on the pymove3d.css
info@54
     1
//
info@54
     2
// Alerts
info@54
     3
// --------------------------------------------------
info@54
     4
info@54
     5
info@54
     6
// Base styles
info@54
     7
// -------------------------
info@54
     8
info@54
     9
.alert {
info@54
    10
  padding: @alert-padding;
info@54
    11
  margin-bottom: @line-height-computed;
info@54
    12
  border: 1px solid transparent;
info@54
    13
  border-radius: @alert-border-radius;
info@54
    14
info@54
    15
  // Headings for larger alerts
info@54
    16
  h4 {
info@54
    17
    margin-top: 0;
info@54
    18
    // Specified for the h4 to prevent conflicts of changing @headings-color
info@54
    19
    color: inherit;
info@54
    20
  }
info@54
    21
  // Provide class for links that match alerts
info@54
    22
  .alert-link {
info@54
    23
    font-weight: @alert-link-font-weight;
info@54
    24
  }
info@54
    25
info@54
    26
  // Improve alignment and spacing of inner content
info@54
    27
  > p,
info@54
    28
  > ul {
info@54
    29
    margin-bottom: 0;
info@54
    30
  }
info@54
    31
  > p + p {
info@54
    32
    margin-top: 5px;
info@54
    33
  }
info@54
    34
}
info@54
    35
info@54
    36
// Dismissable alerts
info@54
    37
//
info@54
    38
// Expand the right padding and account for the close button's positioning.
info@54
    39
info@54
    40
.alert-dismissable {
info@54
    41
 padding-right: (@alert-padding + 20);
info@54
    42
info@54
    43
  // Adjust close link position
info@54
    44
  .close {
info@54
    45
    position: relative;
info@54
    46
    top: -2px;
info@54
    47
    right: -21px;
info@54
    48
    color: inherit;
info@54
    49
  }
info@54
    50
}
info@54
    51
info@54
    52
// Alternate styles
info@54
    53
//
info@54
    54
// Generate contextual modifier classes for colorizing the alert.
info@54
    55
info@54
    56
.alert-success {
info@54
    57
  .alert-variant(@alert-success-bg; @alert-success-border; @alert-success-text);
info@54
    58
}
info@54
    59
.alert-info {
info@54
    60
  .alert-variant(@alert-info-bg; @alert-info-border; @alert-info-text);
info@54
    61
}
info@54
    62
.alert-warning {
info@54
    63
  .alert-variant(@alert-warning-bg; @alert-warning-border; @alert-warning-text);
info@54
    64
}
info@54
    65
.alert-danger {
info@54
    66
  .alert-variant(@alert-danger-bg; @alert-danger-border; @alert-danger-text);
info@54
    67
}
Impressum Datenschutzerklärung