Debian Codegraph @

extensions/Echo/modules/styles/mw.echo.ui.CrossWikiNotificationItemWidget.less

raw
1 @import 'mediawiki.skin.variables.less';
2 @import 'mediawiki.mixins.less';
3 @import '../echo.variables.less';
4
5 .mw-echo-ui-crossWikiNotificationItemWidget,
6 .mw-echo-ui-bundleNotificationItemWidget {
7 // Remove the padding that ItemWidget puts in
8 padding-left: 0;
9 padding-right: 0;
10 padding-bottom: 0;
11
12 // This is an abbreviation for the pieces that make up
13 // the face of the cross-wiki notification item
14 // without the inner group items
15 .mw-echo-ui-notificationItemWidget {
16 // Compensate for the 1em of left/right padding and 0.5em of bottom padding that we removed
17 &-icon {
18 margin-left: 1em;
19 }
20
21 &-content {
22 // The icon is 30px
23 margin-left: 30px;
24 padding-bottom: 0.5em;
25 // 0.8em from ItemWidget, plus 0.8em
26 padding-left: 1.6em;
27 padding-right: 0.8em;
28
29 .mw-echo-ui-notificationItemWidget-markAsReadButton {
30 margin-right: -0.8em;
31 }
32 }
33
34 &-icon,
35 &-content {
36 // There's no link but there is a click action, so change the cursor to indicate that (T138913)
37 cursor: pointer;
38 }
39 }
40
41 &-group {
42 cursor: default;
43 padding: @bundle-group-padding;
44 background-color: @background-color-neutral-subtle;
45 box-shadow: inset 0 2px 0 0 rgba( 0, 0, 0, 0.05 );
46 }
47
48 .mw-echo-ui-subGroupListWidget-header {
49 margin-bottom: @bundle-group-padding;
50
51 &-row-title {
52 // Override OOUI's line height for labels
53 line-height: 1em !important;
54 font-weight: bold;
55 color: @color-subtle;
56 }
57 }
58 }