Merge "Reduce CSS size & specificity for headings"

This commit is contained in:
jenkins-bot 2023-11-27 20:28:09 +00:00 committed by Gerrit Code Review
commit 6d196bb4fe
2 changed files with 16 additions and 21 deletions

View file

@ -1,7 +1,7 @@
[ [
{ {
"resourceModule": "skins.minerva.base.styles", "resourceModule": "skins.minerva.base.styles",
"maxSize": "7.4KB" "maxSize": "7.3KB"
}, },
{ {
"resourceModule": "skins.minerva.content.styles.images", "resourceModule": "skins.minerva.content.styles.images",

View file

@ -154,30 +154,25 @@ main {
} }
.mw-parser-output { .mw-parser-output {
h1, h1, h2, h3, h4, h5, h6 {
h2,
h3,
h4,
h5,
h6 {
display: flex; display: flex;
}
.mw-headline { .mw-headline {
flex-grow: 1; flex-grow: 1;
flex-basis: 0; flex-basis: 0;
margin-left: 0; margin-left: 0;
} }
.mw-editsection { .mw-editsection {
align-self: center; align-self: center;
// Negative margins to prevent the edit icon from affecting the height of the heading // Negative margins to prevent the edit icon from affecting the height of the heading
margin-top: -1em; margin-top: -1em;
margin-bottom: -1em; margin-bottom: -1em;
.cdx-mixin-button-layout-flush( 'end', true, 'large' ); .cdx-mixin-button-layout-flush( 'end', true, 'large' );
.cdx-button { .cdx-button {
font-size: 1rem; // stylelint-disable-line unit-disallowed-list font-size: 1rem; // stylelint-disable-line unit-disallowed-list
}
} }
} }
} }