mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-24 06:13:54 +00:00
Merge "Diff styles for moving paragraphs and empty lines"
This commit is contained in:
commit
471fea5208
|
@ -159,6 +159,9 @@
|
|||
},
|
||||
"ResourceModuleSkinStyles": {
|
||||
"minerva": {
|
||||
"mediawiki.diff.styles": [
|
||||
"skinStyles/mediawiki.diff.styles.less"
|
||||
],
|
||||
"mediawiki.searchSuggest": [
|
||||
"skinStyles/mediawiki.searchSuggest/index.less"
|
||||
],
|
||||
|
@ -221,9 +224,6 @@
|
|||
"mediawiki.action.edit.styles": [
|
||||
"skinStyles/mediawiki.action.edit.styles/minerva.less"
|
||||
],
|
||||
"mobile.special.mobilediff.styles": [
|
||||
"skinStyles/mobile.special.mobilediff.styles/minerva.less"
|
||||
],
|
||||
"mobile.special.mobilemenu.styles": [
|
||||
"skinStyles/mobile.special.mobilemenu.styles/minerva.less"
|
||||
],
|
||||
|
|
28
skinStyles/mediawiki.diff.styles.less
Normal file
28
skinStyles/mediawiki.diff.styles.less
Normal file
|
@ -0,0 +1,28 @@
|
|||
// stylelint-disable selector-max-id
|
||||
@import 'mediawiki.ui/variables';
|
||||
|
||||
// Override MobileFrontend styles (can be weakened/removed when MobileDiff no longer exists)
|
||||
#mw-mf-diffview .mw-diff-empty-line {
|
||||
del,
|
||||
ins {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
// By default a pseudo element is used for skins like Vector. We don't want this on Minerva.
|
||||
.mw-diff-movedpara-right,
|
||||
.mw-diff-movedpara-left,
|
||||
.rtl .mw-diff-movedpara-left,
|
||||
.rtl .mw-diff-movedpara-right {
|
||||
&:after {
|
||||
content: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media all and ( max-width: @width-breakpoint-tablet ) {
|
||||
// T233151: Remove post-content margin on mobile diff page drawer
|
||||
// .post-content margin
|
||||
#mw-mf-userinfo .post-content {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
@import 'mediawiki.ui/variables';
|
||||
|
||||
@media all and ( max-width: @width-breakpoint-tablet ) {
|
||||
// T233151: Remove post-content margin on mobile diff page drawer
|
||||
// .post-content margin
|
||||
#mw-mf-userinfo .post-content { // stylelint-disable-line selector-max-id
|
||||
margin: 0;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue