Commit | Line | Data |
---|---|---|
b8eab696 | 1 | .error, |
45433290 | 2 | .info, |
ed8c9052 AE |
3 | .success, |
4 | .warning { | |
5 | border-left: 5px solid transparent; | |
9d029724 AE |
6 | |
7 | &:not(:first-child) { | |
8 | margin-top: 20px; | |
9 | } | |
c3d0938e | 10 | |
f216765b | 11 | @include screen-md-up { |
c3d0938e AE |
12 | padding: 10px 20px; |
13 | } | |
14 | ||
f216765b | 15 | @include screen-sm-down { |
c3d0938e AE |
16 | padding: 10px; |
17 | } | |
b8eab696 AE |
18 | } |
19 | ||
20 | .error { | |
ed8c9052 AE |
21 | background-color: $wcfStatusErrorBackground; |
22 | border-color: $wcfStatusErrorBorder; | |
23 | color: $wcfStatusErrorText; | |
b8eab696 AE |
24 | } |
25 | ||
26 | .info { | |
ed8c9052 AE |
27 | background-color: $wcfStatusInfoBackground; |
28 | border-color: $wcfStatusInfoBorder; | |
29 | color: $wcfStatusInfoText; | |
45433290 AE |
30 | } |
31 | ||
32 | .success { | |
ed8c9052 AE |
33 | background-color: $wcfStatusSuccessBackground; |
34 | border-color: $wcfStatusSuccessBorder; | |
35 | color: $wcfStatusSuccessText; | |
36 | } | |
37 | ||
38 | .warning { | |
39 | background-color: $wcfStatusWarningBackground; | |
40 | border-color: $wcfStatusWarningBorder; | |
41 | color: $wcfStatusWarningText; | |
45433290 AE |
42 | } |
43 | ||
59ab4d0f MS |
44 | .innerError, |
45 | .innerInfo { | |
45433290 AE |
46 | display: table; |
47 | line-height: 1.5; | |
48 | margin-top: 8px; | |
49 | padding: 5px 10px; | |
50 | position: relative; | |
59ab4d0f | 51 | |
45433290 AE |
52 | /* pointer */ |
53 | &::before { | |
54 | border: 6px solid transparent; | |
45433290 AE |
55 | border-top-width: 0; |
56 | content: ""; | |
57 | display: inline-block; | |
58 | left: 10px; | |
59 | position: absolute; | |
60 | top: -6px; | |
61 | z-index: 101; | |
62 | } | |
63 | } | |
59ab4d0f MS |
64 | |
65 | /* inline errors */ | |
66 | .innerError { | |
67 | background-color: rgb(242, 222, 222); | |
68 | color: rgb(169, 68, 66); | |
69 | ||
70 | &::before { | |
71 | border-bottom-color: rgb(242, 222, 222); | |
72 | } | |
73 | } | |
74 | ||
75 | /* inline infos */ | |
76 | /* TODO: use other colors */ | |
77 | .innerInfo { | |
78 | background-color: $wcfStatusInfoBackground; | |
79 | color: $wcfStatusInfoText; | |
80 | ||
81 | &::before { | |
82 | border-bottom-color: $wcfStatusInfoBorder; | |
83 | } | |
84 | } |