Skip to content
Snippets Groups Projects
Commit 8bc4183f authored by Kevin Paxman's avatar Kevin Paxman
Browse files

Switch to negative top margin for headers instead of line height for alignment

parent 098e26ce
No related branches found
No related tags found
1 merge request!70ISTWCMS-5898: section-spacing-seperator and column-seperator css
......@@ -17,8 +17,7 @@
& > {
h2:first-child,
.uw-admin-label + h2 {
line-height: 1em; /* using EMs because we want it to be the height of the text, regardless of what the font size is */
margin: 0 0 var(--size-2);
margin-top: -0.25em; /* Using ems so it adjusts to font size. */
padding-top: 0;
}
}
......@@ -29,8 +28,7 @@
.uw-admin-label + .contextual + .uw-copy-text,
.uw-copy-text:first-child {
.uw-copy-text__wrapper > :where(h2, h3, h4, h5, h6):first-child {
line-height: 1em; /* using EMs because we want it to be the height of the text, regardless of what the font size is */
margin: 0 0 var(--size-2);
margin-top: -0.25em; /* Using ems so it adjusts to font size. */
padding-top: 0;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment