static/less/alerts.less
changeset 53 3416f82943ea
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/static/less/alerts.less	Fri Dec 20 22:30:44 2013 +0100
     1.3 @@ -0,0 +1,67 @@
     1.4 +//
     1.5 +// Alerts
     1.6 +// --------------------------------------------------
     1.7 +
     1.8 +
     1.9 +// Base styles
    1.10 +// -------------------------
    1.11 +
    1.12 +.alert {
    1.13 +  padding: @alert-padding;
    1.14 +  margin-bottom: @line-height-computed;
    1.15 +  border: 1px solid transparent;
    1.16 +  border-radius: @alert-border-radius;
    1.17 +
    1.18 +  // Headings for larger alerts
    1.19 +  h4 {
    1.20 +    margin-top: 0;
    1.21 +    // Specified for the h4 to prevent conflicts of changing @headings-color
    1.22 +    color: inherit;
    1.23 +  }
    1.24 +  // Provide class for links that match alerts
    1.25 +  .alert-link {
    1.26 +    font-weight: @alert-link-font-weight;
    1.27 +  }
    1.28 +
    1.29 +  // Improve alignment and spacing of inner content
    1.30 +  > p,
    1.31 +  > ul {
    1.32 +    margin-bottom: 0;
    1.33 +  }
    1.34 +  > p + p {
    1.35 +    margin-top: 5px;
    1.36 +  }
    1.37 +}
    1.38 +
    1.39 +// Dismissable alerts
    1.40 +//
    1.41 +// Expand the right padding and account for the close button's positioning.
    1.42 +
    1.43 +.alert-dismissable {
    1.44 + padding-right: (@alert-padding + 20);
    1.45 +
    1.46 +  // Adjust close link position
    1.47 +  .close {
    1.48 +    position: relative;
    1.49 +    top: -2px;
    1.50 +    right: -21px;
    1.51 +    color: inherit;
    1.52 +  }
    1.53 +}
    1.54 +
    1.55 +// Alternate styles
    1.56 +//
    1.57 +// Generate contextual modifier classes for colorizing the alert.
    1.58 +
    1.59 +.alert-success {
    1.60 +  .alert-variant(@alert-success-bg; @alert-success-border; @alert-success-text);
    1.61 +}
    1.62 +.alert-info {
    1.63 +  .alert-variant(@alert-info-bg; @alert-info-border; @alert-info-text);
    1.64 +}
    1.65 +.alert-warning {
    1.66 +  .alert-variant(@alert-warning-bg; @alert-warning-border; @alert-warning-text);
    1.67 +}
    1.68 +.alert-danger {
    1.69 +  .alert-variant(@alert-danger-bg; @alert-danger-border; @alert-danger-text);
    1.70 +}
Impressum Datenschutzerklärung