summaryrefslogtreecommitdiff
blob: 569aa32790e553993c0f7873f1a2885d3b90d469 (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
@import 'mediawiki.mixins';
@import '../echo.variables';

.mw-echo-ui-crossWikiNotificationItemWidget,
.mw-echo-ui-bundleNotificationItemWidget {
	// Remove the padding that ItemWidget puts in
	padding-left: 0;
	padding-right: 0;
	padding-bottom: 0;

	// This is an abbreviation for the pieces that make up
	// the face of the cross-wiki notification item
	// without the inner group items
	.mw-echo-ui-notificationItemWidget {
		// Compensate for the 1em of left/right padding and 0.5em of bottom padding that we removed
		&-icon {
			margin-left: 1em;
		}

		&-content {
			// The icon is 30px
			margin-left: 30px;

			padding-bottom: 1em;
			// 0.8em from ItemWidget, plus 0.8em
			padding-left: 1.6em;
			padding-right: 0.8em;

			.mw-echo-ui-notificationItemWidget-markAsReadButton {
				margin-right: -0.8em;
			}
		}

		&-icon,
		&-content {
			// There's no link but there is a click action, so change the cursor to indicate that (T138913)
			cursor: pointer;
		}
	}

	&-separator {
		display: block;
		position: absolute;
		bottom: 0.4em;
		width: 100%;
		border-bottom: 1px solid #eaecf0;

		.mw-echo-ui-crossWikiNotificationItemWidget-expanded &,
		.mw-echo-ui-bundleNotificationItemWidget-expanded & {
			display: none;
		}
	}

	&-group {
		cursor: default;
		padding: @bundle-group-padding;
		background-color: #f8f9fa;
		.box-shadow( inset 0 -2px 0 0 rgba( 0, 0, 0, 0.05 ), inset 0 2px 0 0 rgba( 0, 0, 0, 0.05 ); );
		margin-bottom: 0.4em;
	}

	.mw-echo-ui-subGroupListWidget-header {
		margin-bottom: @bundle-group-padding;

		&-row-title {
			// Override OOUI's line height for labels
			line-height: 1em !important;
			font-weight: bold;
			color: @grey-medium;
		}
	}
}