summaryrefslogtreecommitdiff
blob: 183edf91f6838dd28c923be8cc609b0d5407e33a (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
@import 'mediawiki.mixins';
@import '../echo.variables';

.mw-echo-ui-notificationBadgeButtonPopupWidget {
	position: relative;

	> .oo-ui-popupWidget {
		// #p-personal li has a font-size of 0.75em, but we want the
		// font size here to be exactly 0.875em, so we must override
		// the parent em sizing by dividing.
		font-size: 0.875em / 0.75em;

		> .oo-ui-popupWidget-popup {
			> .oo-ui-popupWidget-head {
				height: 3.5em;
				border-bottom: 1px solid #ddd;

				> .oo-ui-iconWidget {
					/* ( 3.5 - 1.875 ) / 2 = 0.8125 */
					margin: 0.8125em 0 0.8125em 1em;
					float: left;
					opacity: @opacity-mid;
				}

				> .oo-ui-labelElement-label {
					font-size: 1.2em;
					padding: 0.3em;
					margin-left: 0;
					font-weight: bold;
				}

				.mw-echo-ui-notificationsWidget-markAllReadButton {
					margin-right: 1em;
				}
			}

			> .oo-ui-popupWidget-body {
				// Work around scrollbar rendering bug in Chrome
				overflow-y: visible;
				// ...but make sure we don't actually overflow in the Y direction,
				// to avoid breaking ClippableElement
				overflow-x: auto;

				> .mw-echo-ui-notificationsListWidget > .mw-echo-ui-notificationItemWidget {
					// The popup body itself has a border. We need to override the notification
					// item widget styles so that the edge borders of the items are not duplicated
					border-left: 0;
					border-right: 0;
					&:last-child {
						border-bottom: 0;
					}
				}
			}

			> .oo-ui-popupWidget-footer {
				border-top: 1px solid #ddd;
				width: 100%;

				// Override the margins that OOUI suddenly added to popup footers (T171302)
				margin: 0;

				> .oo-ui-buttonGroupWidget {
					display: block;
				}

				.mw-echo-ui-notificationBadgeButtonPopupWidget-footer-buttons {
					display: table-row;

					.oo-ui-buttonElement {
						display: table-cell;
						white-space: normal;
						font-weight: bold;
						width: @notification-popup-width / 2;
						.box-sizing( border-box );

						&:last-child {
							border-left: 1px solid #ddd;
						}

						> .oo-ui-buttonElement-button {
							display: block;
							line-height: 2.6em;
							margin: 0;
							border: 0;
							padding: 0.5em;
						}
					}
				}
			}
		}
	}
}