mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-09-25 03:09:37 +00:00
cc9e667c49
* Use `margin: A` with `padding: B` rather than `padding: calc(A + B)`. * Remove a `display: inline-block` which necessitated `width: 100%`. I think this results in the same rendering, but please test carefully, as I didn't check it for all the possible notifications. (There is one more calc() in mw.echo.badge.less that can't be avoided.) Bug: T135936 Change-Id: Ic01f16c8469c3b9d45d2885108ec6260e967731a
55 lines
1.3 KiB
Plaintext
55 lines
1.3 KiB
Plaintext
@import '../echo.variables';
|
|
|
|
.mw-echo-ui-crossWikiNotificationItemWidget {
|
|
// Remove the padding that ItemWidget puts in
|
|
padding-left: 0;
|
|
padding-right: 0;
|
|
padding-bottom: 0;
|
|
|
|
> .mw-echo-ui-notificationItemWidget {
|
|
// Compensate for the 0.8em of left/right padding and 0.5em of bottom padding that we removed
|
|
&-icon {
|
|
margin-left: 0.8em;
|
|
}
|
|
|
|
&-content {
|
|
margin-bottom: 1em;
|
|
// The icon is 30px
|
|
margin-left: 30px;
|
|
// 0.8em from ItemWidget, plus 0.8em
|
|
padding-left: 1.6em;
|
|
padding-right: 0.8em;
|
|
}
|
|
}
|
|
|
|
&-separator {
|
|
display: block;
|
|
position: absolute;
|
|
bottom: 0.4em;
|
|
width: 100%;
|
|
border-bottom: 1px #eeeeee solid;
|
|
}
|
|
|
|
&-group {
|
|
cursor: default;
|
|
padding: @bundle-group-padding;
|
|
background-color: #f8f8f8;
|
|
-webkit-box-shadow: inset 0px -2px 0px 0px rgba(0,0,0,0.05), inset 0px 2px 0px 0px rgba(0,0,0,0.05);
|
|
-moz-box-shadow: inset 0px -2px 0px 0px rgba(0,0,0,0.05), inset 0px 2px 0px 0px rgba(0,0,0,0.05);
|
|
box-shadow: inset 0px -2px 0px 0px rgba(0,0,0,0.05), inset 0px 2px 0px 0px rgba(0,0,0,0.05);
|
|
border-bottom: 1px #dddddd solid;
|
|
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: #666666;
|
|
}
|
|
}
|
|
}
|