Improved validation of the cookie-prefix
[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;
c3d0938e 7
f216765b 8 @include screen-md-up {
c3d0938e
AE
9 padding: 10px 20px;
10 }
11
f216765b 12 @include screen-sm-down {
c3d0938e
AE
13 padding: 10px;
14 }
0c163e25
MW
15
16 a {
17 @include wcfFontBold;
18
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;
21af3b32
MW
29
30 a {
31 color: $wcfStatusErrorLink;
32
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;
21af3b32
MW
43
44 a {
45 color: $wcfStatusInfoLink;
46
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;
21af3b32
MW
57
58 a {
59 color: $wcfStatusSuccessLink;
60
61 &:hover {
62 color: $wcfStatusSuccessLinkActive;
63 }
64 }
ed8c9052
AE
65}
66
67.warning {
68 background-color: $wcfStatusWarningBackground;
69 border-color: $wcfStatusWarningBorder;
70 color: $wcfStatusWarningText;
21af3b32
MW
71
72 a {
73 color: $wcfStatusWarningLink;
74
75 &:hover {
76 color: $wcfStatusWarningLinkActive;
77 }
78 }
45433290
AE
79}
80
59ab4d0f
MS
81.innerError,
82.innerInfo {
45433290
AE
83 display: table;
84 line-height: 1.5;
85 margin-top: 8px;
86 padding: 5px 10px;
87 position: relative;
59ab4d0f 88
45433290
AE
89 /* pointer */
90 &::before {
91 border: 6px solid transparent;
45433290
AE
92 border-top-width: 0;
93 content: "";
94 display: inline-block;
95 left: 10px;
96 position: absolute;
97 top: -6px;
98 z-index: 101;
99 }
100}
59ab4d0f
MS
101
102/* inline errors */
103.innerError {
104 background-color: rgb(242, 222, 222);
105 color: rgb(169, 68, 66);
106
107 &::before {
108 border-bottom-color: rgb(242, 222, 222);
109 }
21af3b32
MW
110
111 a {
112 color: $wcfStatusErrorLink;
113
114 &:hover {
115 color: $wcfStatusErrorLinkActive;
116 }
117 }
59ab4d0f
MS
118}
119
ab008a95
MW
120/* sticky footer notices */
121.pageFooterStickyNotice {
5bbcc306 122 bottom: 0;
5bbcc306 123 left: 0;
5bbcc306 124 right: 0;
ab008a95 125 position: fixed;
d5d76f67 126 z-index: 600;
ab008a95
MW
127
128 .error,
129 .info,
130 .success,
131 .warning {
132 border-left-width: 0;
133 border-top-width: 1px;
134 border-top-style: solid;
135 margin-top: 0;
6444e726
MW
136 padding: 10px 0;
137
138 @include screen-sm-down {
139 @include wcfFontSmall;
140 }
141 }
142
143 .cookiePolicyNotice {
144 .layoutBoundary {
145 display: flex;
146 align-items: center;
147
148 @include screen-sm-down {
149 flex-wrap: wrap;
150 }
151 }
152
153 .cookiePolicyNoticeText {
154 flex: 1 1 auto;
155
156 @include screen-sm-down {
157 flex-basis: 100%;
158 margin-bottom: 5px;
159 }
160 }
161
162 .cookiePolicyNoticeMoreInformation,
163 .cookiePolicyNoticeDismiss {
164 flex: 0 0 auto;
165 }
166
167 .cookiePolicyNoticeDismiss {
168 margin-left: 5px;
169 }
c5dd767e 170 }
5bbcc306
AE
171}
172
59ab4d0f 173/* inline infos */
59ab4d0f
MS
174.innerInfo {
175 background-color: $wcfStatusInfoBackground;
176 color: $wcfStatusInfoText;
174a0b52 177
59ab4d0f 178 &::before {
174a0b52 179 border-bottom-color: $wcfStatusInfoBackground;
59ab4d0f 180 }
21af3b32
MW
181
182 a {
183 color: $wcfStatusInfoLink;
184
185 &:hover {
186 color: $wcfStatusInfoLinkActive;
187 }
188 }
59ab4d0f 189}
c80b0269
MW
190
191/* dismiss icon */
192.noticeDismissible > .jsDismissNoticeButton {
193 float: right;
194
195 @include screen-md-down {
196 font-size: 18px;
197 height: 24px;
198 line-height: 24px;
199 width: 24px;
200 }
201}