Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .styelintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
vendor/**/*.css
node_modules/**/*.css
vendor/**
node_modules/**
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"scripts": {
"test": "prettier --check .",
"fix": "prettier --write .",
"lint": "stylelint \"**/**.css\" --fix"
"lint": "stylelint \"**/**.less\" --fix"
},
"devDependencies": {
"browserslist": "^4.28.1",
Expand Down
29 changes: 20 additions & 9 deletions resources/screen.css → resources/screen.less
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/* These styles for lists are here as replacement for the i18n-all-lists-margins feature formerly provided by MediaWiki core. */
@import "mediawiki.mixins.less";

ul {
margin-top: 0.3em;
.margin-inline( 1.6em, 0 );
padding: 0.5em 0;
}

ol {
margin-top: 0.3em;
.margin-inline( 3.2em, 0 );
padding: 0.5em 0;
list-style: decimal inside;
}

dd {
.margin-inline( 1.6em, 0 );
}

/* Begin reset */

/*! modern-normalize v1.0.0 | MIT License | https://github.com/sindresorhus/modern-normalize */
Expand Down Expand Up @@ -293,15 +313,6 @@ p {
line-height: 1.2em;
}

ul,
ol {
padding: 0.5em 0;
}

ol {
list-style: decimal inside;
}

h2 {
font-size: 1.5em;
margin: 1em 0 0.5em;
Expand Down
6 changes: 2 additions & 4 deletions skin.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,18 +72,16 @@
"class": "MediaWiki\\ResourceLoader\\SkinModule",
"features": {
"content-media": true,
"content-parser-output": true,
"content-body": true,
"content-tables": true,
"content-links": true,
"i18n-ordered-lists": true,
"i18n-all-lists-margins": true,
"i18n-headings": true,
"interface-category": true,
"interface-message-box": true,
"normalize": false
},
"styles": {
"resources/screen.css": {
"resources/screen.less": {
"media": "screen"
}
}
Expand Down
Loading