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