[ADD] doc: new documentation, with training tutorials, and new scaffolding
[odoo/odoo.git] / doc / _themes / odoodoc / static / 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   border: 1px solid transparent;
13   border-radius: @alert-border-radius;
14
15   // Headings for larger alerts
16   h4 {
17     margin-top: 0;
18     // Specified for the h4 to prevent conflicts of changing @headings-color
19     color: inherit;
20   }
21   // Provide class for links that match alerts
22   .alert-link {
23     font-weight: @alert-link-font-weight;
24   }
25
26   // Improve alignment and spacing of inner content
27   > p,
28   > ul {
29     margin-bottom: 0;
30   }
31   > p + p {
32     margin-top: 5px;
33   }
34 }
35
36 // Dismissible alerts
37 //
38 // Expand the right padding and account for the close button's positioning.
39
40 .alert-dismissable, // The misspelled .alert-dismissable was deprecated in 3.2.0.
41 .alert-dismissible {
42   padding-right: (@alert-padding + 20);
43
44   // Adjust close link position
45   .close {
46     position: relative;
47     top: -2px;
48     right: -21px;
49     color: inherit;
50   }
51 }
52
53 // Alternate styles
54 //
55 // Generate contextual modifier classes for colorizing the alert.
56
57 .alert-success {
58   .alert-variant(@alert-success-bg; @alert-success-border; @alert-success-text);
59 }
60 .alert-info {
61   .alert-variant(@alert-info-bg; @alert-info-border; @alert-info-text);
62 }
63 .alert-warning {
64   .alert-variant(@alert-warning-bg; @alert-warning-border; @alert-warning-text);
65 }
66 .alert-danger {
67   .alert-variant(@alert-danger-bg; @alert-danger-border; @alert-danger-text);
68 }