diff --git a/.stylelintrc.json b/.stylelintrc.json index cdb8adf..d621e6d 100644 --- a/.stylelintrc.json +++ b/.stylelintrc.json @@ -2,9 +2,6 @@ "extends": "stylelint-config-wikimedia", "rules": { "declaration-no-important": null, - "property-blacklist": [ - "background-size" - ], "selector-list-comma-newline-after": null, "selector-max-id": null, "value-keyword-case": null diff --git a/resources/skins.minerva.base.styles/ui.less b/resources/skins.minerva.base.styles/ui.less index 2353c97..85aab6c 100644 --- a/resources/skins.minerva.base.styles/ui.less +++ b/resources/skins.minerva.base.styles/ui.less @@ -152,7 +152,7 @@ main { background-color: #fff; // Support Fennec, Opera Mini: Remove default background, see T38490. background-position: left @searchIconGutter center; background-repeat: no-repeat; - .background-size( @searchIconSize, @searchIconSize ); + background-size: @searchIconSize; // Support Safari: Get rid of rounded corners. -webkit-appearance: none; width: 100%; diff --git a/resources/skins.minerva.content.styles/links.less b/resources/skins.minerva.content.styles/links.less index 09119b4..6eadb64 100644 --- a/resources/skins.minerva.content.styles/links.less +++ b/resources/skins.minerva.content.styles/links.less @@ -45,7 +45,7 @@ a { &.external { // background-image is specified by ResourceLoader. // Force the image size to be 10px. - .background-size( 10px, 10px ); + background-size: 10px; background-repeat: no-repeat; background-position: center right; padding-right: 13px; diff --git a/resources/skins.minerva.content.styles/templates/ambox.less b/resources/skins.minerva.content.styles/templates/ambox.less index ffe6b58..bde0780 100644 --- a/resources/skins.minerva.content.styles/templates/ambox.less +++ b/resources/skins.minerva.content.styles/templates/ambox.less @@ -104,7 +104,7 @@ table.ambox { } .mw-ui-icon:before { - .background-size(75%, auto); + background-size: 75%; } .ambox-learn-more { diff --git a/skinStyles/mobile.startup/toast.less b/skinStyles/mobile.startup/toast.less index ce0648a..588aea3 100644 --- a/skinStyles/mobile.startup/toast.less +++ b/skinStyles/mobile.startup/toast.less @@ -70,7 +70,7 @@ // allows extensions ot use mw.notify( msg, 'error' ) and have those styled as errors. // see https://github.com/search?l=JavaScript&q=org%3Awikimedia+mw.notify&type=Code .background-image( 'images/error.svg' ); - .background-size( 24px, 24px ); + background-size: 24px; background-position: 16px 50%; background-repeat: no-repeat; padding-left: 5%;