summaryrefslogtreecommitdiff
path: root/www/wiki/resources/src/mediawiki/mediawiki.notification.css
blob: a56be760861476abac69094159c213d649c7514e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
.mw-notification-area {
	top: 0;
	right: 0;
	/* Padding on all sides so drop shadows aren't cut by overflow: hidden */
	padding: 1em;
	width: 20em;
	line-height: 1.35;
	z-index: 10000;
	/* Avoid horizontal scrollbar on fade in and on fade out */
	overflow: hidden;
}

.mw-notification {
	padding: 0.75em 1.5em;
	margin-bottom: 0.5em;
	border: solid 1px #ddd;
	background-color: #fff;
	/* Click handler in mediawiki.notification.js */
	cursor: pointer;

	opacity: 0;
	-webkit-transform: translateX( 35px );
	transform: translateX( 35px );
	-webkit-transition: opacity 0.35s ease-in-out, -webkit-transform 0.35s ease-in-out;
	transition: opacity 0.35s ease-in-out, transform 0.35s ease-in-out;
}

.mw-notification-visible {
	opacity: 1;
	-webkit-transform: translateX( 0 );
	transform: translateX( 0 );
}

.mw-notification-replaced {
	opacity: 0;
	-webkit-transform: translateY( -35px );
	transform: translateY( -35px );
	pointer-events: none;
}

.mw-notification-title {
	font-weight: bold;
}

.mw-notification.mw-notification-type-warn {
	border-color: #f5be00; /* yellow */
	background-color: #ffffe8;
}

.mw-notification.mw-notification-type-error {
	border-color: #eb3941; /* red */
	background-color: #fff8f8;
}