From bbe1845727f42e9b4504e1695a258e751eb9ba89 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Tue, 21 Apr 2015 10:31:56 +0200 Subject: [PATCH] [FIX] doc: extra underline for document titles when document has no introductory blurb --- doc/_themes/odoodoc/static/style.css | 5 ++++- doc/_themes/odoodoc/static/style.less | 11 +++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/doc/_themes/odoodoc/static/style.css b/doc/_themes/odoodoc/static/style.css index 079d7a3b4b1..36b50ffa2d5 100644 --- a/doc/_themes/odoodoc/static/style.css +++ b/doc/_themes/odoodoc/static/style.css @@ -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, diff --git a/doc/_themes/odoodoc/static/style.less b/doc/_themes/odoodoc/static/style.less index 376b422006a..9d693d5624a 100644 --- a/doc/_themes/odoodoc/static/style.less +++ b/doc/_themes/odoodoc/static/style.less @@ -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,