[FIX] double underlining of some document titles
h2/second-level sections are overlined to separate them from one another. However if the document has no introductory paragraph (text between the h1/document title and the first subsection) the h1 has an underline and the section's overline, which isn't great. Fix CSS so a 2nd-level section which immediately follows an h1 does not get the overline.
This commit is contained in:
parent
7bd32342c6
commit
f10a033619
@ -7226,9 +7226,12 @@ td.field-body > ul {
|
||||
.stripe .section:not(.force-right) > [class*=highlight-] .highlight .il {
|
||||
color: #2aa198;
|
||||
}
|
||||
.stripe .body > .section > .section {
|
||||
.stripe .body > .section .section {
|
||||
border-top: 1px solid #eeeeee;
|
||||
}
|
||||
.stripe .body > .section h1 + .section {
|
||||
border-top: none;
|
||||
}
|
||||
.stripe .section:not(.force-right) > h1,
|
||||
.stripe .section:not(.force-right) > h2,
|
||||
.stripe .section:not(.force-right) > h3,
|
||||
|
@ -738,8 +738,15 @@ td.field-body {
|
||||
}
|
||||
}
|
||||
// separator above H2
|
||||
.body > .section > .section {
|
||||
border-top: 1px solid @color-right;
|
||||
.body > .section > {
|
||||
.section {
|
||||
border-top: 1px solid @color-right;
|
||||
}
|
||||
// but not if subsection directly follows an h1 (no introductory
|
||||
// document paragraph)
|
||||
h1 + .section {
|
||||
border-top: none;
|
||||
}
|
||||
}
|
||||
.section:not(.force-right) > h1, .section:not(.force-right) > h2,
|
||||
.section:not(.force-right) > h3, .section:not(.force-right) > h4,
|
||||
|
Loading…
Reference in New Issue
Block a user