Use prettier for SCSS (#3895)
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / style / ui / alert.scss
CommitLineData
b8eab696 1.error,
45433290 2.info,
ed8c9052
AE
3.success,
4.warning {
5 border-left: 5px solid transparent;
45550c73 6 margin-top: 20px;
8a52619a 7
f216765b 8 @include screen-md-up {
c3d0938e
AE
9 padding: 10px 20px;
10 }
8a52619a 11
f216765b 12 @include screen-sm-down {
c3d0938e
AE
13 padding: 10px;
14 }
8a52619a 15
0c163e25
MW
16 a {
17 @include wcfFontBold;
8a52619a 18
0c163e25
MW
19 &:hover {
20 text-decoration: underline;
21 }
22 }
b8eab696
AE
23}
24
25.error {
ed8c9052
AE
26 background-color: $wcfStatusErrorBackground;
27 border-color: $wcfStatusErrorBorder;
28 color: $wcfStatusErrorText;
8a52619a 29
21af3b32
MW
30 a {
31 color: $wcfStatusErrorLink;
8a52619a 32
21af3b32
MW
33 &:hover {
34 color: $wcfStatusErrorLinkActive;
35 }
36 }
b8eab696
AE
37}
38
39.info {
ed8c9052
AE
40 background-color: $wcfStatusInfoBackground;
41 border-color: $wcfStatusInfoBorder;
42 color: $wcfStatusInfoText;
8a52619a 43
21af3b32
MW
44 a {
45 color: $wcfStatusInfoLink;
8a52619a 46
21af3b32
MW
47 &:hover {
48 color: $wcfStatusInfoLinkActive;
49 }
50 }
45433290
AE
51}
52
53.success {
ed8c9052
AE
54 background-color: $wcfStatusSuccessBackground;
55 border-color: $wcfStatusSuccessBorder;
56 color: $wcfStatusSuccessText;
8a52619a 57
21af3b32
MW
58 a {
59 color: $wcfStatusSuccessLink;
8a52619a 60
21af3b32
MW
61 &:hover {
62 color: $wcfStatusSuccessLinkActive;
63 }
64 }
ed8c9052
AE
65}
66
67.warning {
68 background-color: $wcfStatusWarningBackground;
69 border-color: $wcfStatusWarningBorder;
70 color: $wcfStatusWarningText;
8a52619a 71
21af3b32
MW
72 a {
73 color: $wcfStatusWarningLink;
8a52619a 74
21af3b32
MW
75 &:hover {
76 color: $wcfStatusWarningLinkActive;
77 }
78 }
45433290
AE
79}
80
59ab4d0f 81.innerError,
95fc303c
AE
82.innerInfo,
83.innerSuccess,
8a52619a 84.innerWarning {
45433290
AE
85 display: table;
86 line-height: 1.5;
87 margin-top: 8px;
88 padding: 5px 10px;
89 position: relative;
59ab4d0f 90
45433290
AE
91 /* pointer */
92 &::before {
93 border: 6px solid transparent;
45433290
AE
94 border-top-width: 0;
95 content: "";
96 display: inline-block;
97 left: 10px;
98 position: absolute;
99 top: -6px;
6c503428 100 z-index: 99;
45433290
AE
101 }
102}
59ab4d0f 103
95fc303c 104/* inline messages */
59ab4d0f
MS
105.innerError {
106 background-color: rgb(242, 222, 222);
107 color: rgb(169, 68, 66);
108
109 &::before {
110 border-bottom-color: rgb(242, 222, 222);
111 }
8a52619a 112
21af3b32
MW
113 a {
114 color: $wcfStatusErrorLink;
8a52619a 115
21af3b32
MW
116 &:hover {
117 color: $wcfStatusErrorLinkActive;
118 }
119 }
59ab4d0f 120}
95fc303c
AE
121.innerSuccess {
122 background-color: $wcfStatusSuccessBackground;
123 color: $wcfStatusSuccessText;
8a52619a 124
95fc303c
AE
125 &::before {
126 border-bottom-color: $wcfStatusSuccessBackground;
127 }
8a52619a 128
95fc303c
AE
129 a {
130 color: $wcfStatusSuccessLink;
8a52619a 131
95fc303c
AE
132 &:hover {
133 color: $wcfStatusSuccessLinkActive;
134 }
135 }
136}
137.innerWarning {
138 background-color: $wcfStatusWarningBackground;
139 color: $wcfStatusWarningText;
8a52619a 140
95fc303c
AE
141 &::before {
142 border-bottom-color: $wcfStatusWarningBackground;
143 }
8a52619a 144
95fc303c
AE
145 a {
146 color: $wcfStatusWarningLink;
8a52619a 147
95fc303c
AE
148 &:hover {
149 color: $wcfStatusWarningLinkActive;
150 }
151 }
152}
59ab4d0f 153
ab008a95
MW
154/* sticky footer notices */
155.pageFooterStickyNotice {
5bbcc306 156 bottom: 0;
5bbcc306 157 left: 0;
5bbcc306 158 right: 0;
ab008a95 159 position: fixed;
d5d76f67 160 z-index: 600;
8a52619a 161
ab008a95
MW
162 .error,
163 .info,
164 .success,
165 .warning {
166 border-left-width: 0;
167 border-top-width: 1px;
168 border-top-style: solid;
169 margin-top: 0;
6444e726 170 padding: 10px 0;
8a52619a 171
6444e726
MW
172 @include screen-sm-down {
173 @include wcfFontSmall;
174 }
175 }
8a52619a 176
6444e726
MW
177 .cookiePolicyNotice {
178 .layoutBoundary {
179 display: flex;
180 align-items: center;
8a52619a 181
6444e726
MW
182 @include screen-sm-down {
183 flex-wrap: wrap;
184 }
185 }
8a52619a 186
6444e726
MW
187 .cookiePolicyNoticeText {
188 flex: 1 1 auto;
8a52619a 189
6444e726
MW
190 @include screen-sm-down {
191 flex-basis: 100%;
192 margin-bottom: 5px;
193 }
194 }
8a52619a 195
6444e726
MW
196 .cookiePolicyNoticeMoreInformation,
197 .cookiePolicyNoticeDismiss {
198 flex: 0 0 auto;
199 }
8a52619a 200
6444e726
MW
201 .cookiePolicyNoticeDismiss {
202 margin-left: 5px;
203 }
c5dd767e 204 }
5bbcc306
AE
205}
206
59ab4d0f 207/* inline infos */
59ab4d0f
MS
208.innerInfo {
209 background-color: $wcfStatusInfoBackground;
210 color: $wcfStatusInfoText;
8a52619a 211
59ab4d0f 212 &::before {
174a0b52 213 border-bottom-color: $wcfStatusInfoBackground;
59ab4d0f 214 }
8a52619a 215
21af3b32
MW
216 a {
217 color: $wcfStatusInfoLink;
8a52619a 218
21af3b32
MW
219 &:hover {
220 color: $wcfStatusInfoLinkActive;
221 }
222 }
59ab4d0f 223}
c80b0269
MW
224
225/* dismiss icon */
226.noticeDismissible > .jsDismissNoticeButton {
227 float: right;
8a52619a 228
c80b0269
MW
229 @include screen-md-down {
230 font-size: 18px;
231 height: 24px;
232 line-height: 24px;
233 width: 24px;
234 }
235}
70c4c8e5
MW
236
237.userExceptionMessage {
238 align-self: center;
239}