diff --git a/resources/skins.minerva.base.styles/common.less b/resources/skins.minerva.base.styles/common.less index 4b7795be1..f841add44 100644 --- a/resources/skins.minerva.base.styles/common.less +++ b/resources/skins.minerva.base.styles/common.less @@ -15,7 +15,7 @@ } /* TODO: Fix specificity */ -/* stylelint-disable no-descending-specificity */ +/* stylelint-disable-next-line no-descending-specificity */ .client-js .jsonly { display: inherit; } diff --git a/resources/skins.minerva.base.styles/ui.less b/resources/skins.minerva.base.styles/ui.less index affbc35b2..87bfaa524 100644 --- a/resources/skins.minerva.base.styles/ui.less +++ b/resources/skins.minerva.base.styles/ui.less @@ -309,3 +309,4 @@ input.search { padding-right: @contentPaddingTablet; } } +/* stylelint-enable no-descending-specificity */ diff --git a/resources/skins.minerva.content.styles/links.less b/resources/skins.minerva.content.styles/links.less index c30c55043..46e2e47a5 100644 --- a/resources/skins.minerva.content.styles/links.less +++ b/resources/skins.minerva.content.styles/links.less @@ -8,7 +8,6 @@ * links can be differentiated from other links. Thus we only apply the linkColor to links with href * attributes. */ -/* stylelint-disable no-descending-specificity */ a:not( [ href ] ) { color: @colorGray2; @@ -16,6 +15,7 @@ a:not( [ href ] ) { cursor: pointer; } +/* stylelint-disable-next-line no-descending-specificity */ a { text-decoration: none; color: @linkColor; diff --git a/resources/skins.minerva.loggedin.styles/styles.less b/resources/skins.minerva.loggedin.styles/styles.less index b9bc279c5..db72f1d84 100644 --- a/resources/skins.minerva.loggedin.styles/styles.less +++ b/resources/skins.minerva.loggedin.styles/styles.less @@ -39,6 +39,7 @@ align-items: center; -webkit-box-pack: center; justify-content: center; + /* stylelint-enable declaration-block-no-duplicate-properties */ span { font-weight: bold; diff --git a/resources/skins.minerva.mainMenu.styles/MainMenu.less b/resources/skins.minerva.mainMenu.styles/MainMenu.less index a1b1b7e87..5d52282aa 100644 --- a/resources/skins.minerva.mainMenu.styles/MainMenu.less +++ b/resources/skins.minerva.mainMenu.styles/MainMenu.less @@ -90,3 +90,4 @@ .transform( none ); } } +// stylelint-enable no-descending-specificity, selector-max-id diff --git a/resources/skins.minerva.mainMenu.styles/NotificationsOverlay.less b/resources/skins.minerva.mainMenu.styles/NotificationsOverlay.less index 613896f4f..1eaa39a95 100644 --- a/resources/skins.minerva.mainMenu.styles/NotificationsOverlay.less +++ b/resources/skins.minerva.mainMenu.styles/NotificationsOverlay.less @@ -1,8 +1,6 @@ @import '../../minerva.less/minerva.variables.less'; @import '../../minerva.less/minerva.mixins.less'; -/* stylelint-disable no-descending-specificity */ - .notifications-overlay { visibility: visible; } diff --git a/skinStyles/mediawiki.action.history.styles.less b/skinStyles/mediawiki.action.history.styles.less index 50df17e37..70846e47e 100644 --- a/skinStyles/mediawiki.action.history.styles.less +++ b/skinStyles/mediawiki.action.history.styles.less @@ -4,7 +4,8 @@ @import 'mediawiki.ui/mixins.buttons.less'; .action-history { - #mw-content-text > form { // stylelint-disable-line selector-max-id + // stylelint-disable-next-line selector-max-id + #mw-content-text > form { margin: 0; } @@ -14,7 +15,8 @@ // form element wrapping history page content. Overrides #mw-content-text > form // for tablet widths. - #mw-history-compare { // stylelint-disable-line selector-max-id + // stylelint-disable-next-line selector-max-id + #mw-history-compare { width: 100%; max-width: 100%; } @@ -68,74 +70,7 @@ margin-bottom: 1em; } - // (cur|prev) links - .mw-history-histlinks { - float: right; - } - - // Date - .mw-changeslist-date { - float: left; - font-weight: bold; - clear: none; - } - - // User name - .history-user { - float: left; - // margin separates the entire username (talk | contrib) block - // from the (cur|prev) links on the right. Approximates a   - margin-right: 0.5em; - - .mw-userlink { - // margin separates the username - // from the (talk | contrib) links. Approximates a   - margin-right: 0.5em; - // Word-break overlong usernames, see T237230. - .hyphens( auto ); - } - } - - // Container for rollback, undo buttons - .mw-changeslist-links:not( .mw-usertoollinks ):not( .mw-history-histlinks ) { - // removing parentheses around undo button - & > span:before { - content: ''; - } - - & > span:after { - content: ''; - } - } - - // edit summary - .comment { - // meant to give space for the undo button to the right of - // the revision description. - width: 65%; - } - - // edit summary, +/- bytes changed, tags - .comment, - .updatedmarker, - .mw-diff-bytes, - .mw-tag-markers { - float: left; - clear: left; - } - - // add left margin to create a faux column after the radio buttons - .history-user, - .comment, - .updatedmarker, - .mw-diff-bytes, - .mw-history-tools, - .mw-tag-markers { - margin-left: @revision-selectors-width; - } - // stylelint-disable selector-max-id - // `#pagehistory` needs to come last due to id specificity best-practice. #pagehistory { margin-bottom: 24px; padding: 0; diff --git a/skinStyles/mediawiki.diff.styles.less b/skinStyles/mediawiki.diff.styles.less index 19a6a8047..00cca9761 100644 --- a/skinStyles/mediawiki.diff.styles.less +++ b/skinStyles/mediawiki.diff.styles.less @@ -26,3 +26,4 @@ margin: 0; } } +// stylelint-enable selector-max-id