mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-27 15:40:15 +00:00
Add yellow talk page message warning to non-main namespace pages
Bug: T284642 Change-Id: I2895975efe1d09d228f80aff74381e88034a0137
This commit is contained in:
parent
2a60efef79
commit
b4fd1498bc
|
@ -50,6 +50,10 @@
|
|||
<div class="banner-container">
|
||||
{{>banners}}
|
||||
</div>
|
||||
<div class="minerva-anon-talk-message warningbox">
|
||||
<span class="mw-ui-icon mw-ui-icon-wikimedia-userTalk-warning"> </span>
|
||||
{{{html-user-message}}}
|
||||
</div>
|
||||
<div class="pre-content heading-holder">
|
||||
<div class="page-heading">
|
||||
{{{headinghtml}}}
|
||||
|
|
18
resources/skins.minerva.base.styles/anonTalkMessage.less
Normal file
18
resources/skins.minerva.base.styles/anonTalkMessage.less
Normal file
|
@ -0,0 +1,18 @@
|
|||
.minerva-anon-talk-message.warningbox {
|
||||
display: none;
|
||||
margin-top: 16px;
|
||||
margin-bottom: 0;
|
||||
|
||||
.mw-ui-icon {
|
||||
color: #fc3;
|
||||
}
|
||||
|
||||
.usermessage {
|
||||
display: inline;
|
||||
margin-left: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
.ns-special .minerva-anon-talk-message {
|
||||
display: block;
|
||||
}
|
|
@ -32,6 +32,7 @@ A file for css that optimises the Minerva skin on larger devices.
|
|||
// FIXME: Have a class that identifies all of these selectors
|
||||
.pre-content,
|
||||
/* Form only pages e.g. Special:MobileOptions */
|
||||
.minerva-anon-talk-message,
|
||||
#mw-content-text > form,
|
||||
.content,
|
||||
.content-unstyled,
|
||||
|
@ -94,6 +95,7 @@ A file for css that optimises the Minerva skin on larger devices.
|
|||
@media screen and ( min-width: @width-breakpoint-desktop ) {
|
||||
// stylelint-disable-next-line selector-max-id
|
||||
.banner-container,
|
||||
.minerva-anon-talk-message,
|
||||
.minerva-header,
|
||||
.page-header-bar,
|
||||
.overlay-header,
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
@import 'ui.less';
|
||||
@import 'pageactions.less';
|
||||
@import 'userMenu.less';
|
||||
@import 'anonTalkMessage.less';
|
||||
@import 'common.less';
|
||||
@import 'footer.less';
|
||||
@import 'print/styles.less';
|
||||
|
|
|
@ -251,6 +251,7 @@ input.search {
|
|||
|
||||
.talk-overlay .comment .comment-content,
|
||||
.image-list,
|
||||
.minerva-anon-talk-message,
|
||||
.pre-content,
|
||||
/* Form only pages e.g Special:MobileOptions */
|
||||
#mw-content-text > form > .oo-ui-fieldLayout > .oo-ui-fieldLayout-body,
|
||||
|
|
|
@ -351,6 +351,12 @@
|
|||
"selectorWithoutVariant": ".mw-ui-icon-wikimedia-{name}-base20:before, .mw-ui-background-icon-{name}",
|
||||
"useDataURI": false,
|
||||
"defaultColor": "#54595d",
|
||||
"variants": {
|
||||
"warning": {
|
||||
"color": "#fc3",
|
||||
"global": true
|
||||
}
|
||||
},
|
||||
"class": "ResourceLoaderOOUIIconPackModule",
|
||||
"icons": [
|
||||
"edit",
|
||||
|
@ -360,6 +366,7 @@
|
|||
"menu",
|
||||
"search",
|
||||
"userAvatar",
|
||||
"userTalk",
|
||||
"star",
|
||||
"halfStar",
|
||||
"unStar"
|
||||
|
|
Loading…
Reference in a new issue