Skip to content

Commit

Permalink
[FIX] doc: extra underline for document titles when document has no i…
Browse files Browse the repository at this point in the history
…ntroductory blurb
  • Loading branch information
xmo-odoo committed Apr 22, 2015
1 parent 2b90e05 commit bbe1845
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
5 changes: 4 additions & 1 deletion doc/_themes/odoodoc/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
11 changes: 9 additions & 2 deletions doc/_themes/odoodoc/static/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit bbe1845

Please sign in to comment.