update bootstrap to 3.0.0-rc2
[bootswatch] / bower_components / bootstrap / less / alerts.less
1 //
2 // Alerts
3 // --------------------------------------------------
4
5
6 // Base styles
7 // -------------------------
8
9 .alert {
10   padding: @alert-padding;
11   margin-bottom: @line-height-computed;
12   color: @alert-text;
13   background-color: @alert-bg;
14   border: 1px solid @alert-border;
15   border-radius: @alert-border-radius;
16
17   // Headings for larger alerts
18   h4 {
19     margin-top: 0;
20     // Specified for the h4 to prevent conflicts of changing @headingsColor
21     color: inherit;
22   }
23   // Match the hr to the border of the alert
24   hr {
25     border-top-color: darken(@alert-border, 5%);
26   }
27   // Provide class for links that match alerts
28   .alert-link {
29     font-weight: @alert-link-font-weight;
30     color: darken(@alert-text, 10%);
31   }
32
33   // Improve alignment and spacing of inner content
34   > p,
35   > ul {
36     margin-bottom: 0;
37   }
38   > p + p {
39     margin-top: 5px;
40   }
41 }
42
43 // Dismissable alerts
44 //
45 // Expand the right padding and account for the close button's positioning.
46
47 .alert-dismissable {
48  padding-right: (@alert-padding + 20);
49
50   // Adjust close link position
51   .close {
52     position: relative;
53     top: -2px;
54     right: -21px;
55     color: inherit;
56   }
57 }
58
59 // Alternate styles
60 //
61 // Generate contextual modifier classes for colorizing the alert.
62
63 .alert-success {
64   .alert-variant(@alert-success-bg; @alert-success-border; @alert-success-text);
65 }
66 .alert-danger {
67   .alert-variant(@alert-danger-bg; @alert-danger-border; @alert-danger-text);
68 }
69 .alert-info {
70   .alert-variant(@alert-info-bg; @alert-info-border; @alert-info-text);
71 }