mediawiki-skins-MinervaNeue/resources/skins.minerva.base.styles/content/lists.less
Jon Robson 003d9fea5b dd elements should have no margin
In 1.42.0-wmf.17 these had margin 0 in Minerva.
I incorrectly assumed we had defined an explicit margin in content
and for talk pages but apparently none exists, so I have restored
this rule to the list.less file.

Follow up to I6331d88e5b7301fd13249414350a539738cfae53

Bug: T357742
Change-Id: Ib3062bfbffe35415f479bae46ecf02e8a094958b
2024-02-16 16:56:26 +00:00

58 lines
977 B
Plaintext

.content {
ol {
padding-left: 2.25em;
}
ul {
list-style-type: disc;
padding-left: 1em;
& > li > ul {
list-style-type: circle;
& > li > ul {
list-style-type: square;
}
}
}
/* stylelint-disable no-descending-specificity */
ol,
ul {
ol,
ul {
margin-left: 1em;
}
}
li {
margin-bottom: 10px;
&:last-child {
margin-bottom: inherit;
}
}
/* stylelint-enable no-descending-specificity */
}
/* As in Vector, indenting of definition lists, and bolding of definition terms is generically useful */
dl {
margin-top: 0.2em;
margin-bottom: 0.5em;
margin-left: 1em;
dt {
font-weight: bold;
}
/*
* Historically Minerva used a CSS reset to reset the margin of dd elements to 0.
* The main use case here is talk pages which can have significant intendation levels.
* This should likely be reconsidered for appropriate semantic use of dd elements and
* scoped to talk pages at a later date.
*/
dd {
margin: 0;
}
}