diff options
author | Adam Strzelecki <ono@java.pl> | 2015-12-07 00:18:12 +0100 |
---|---|---|
committer | Adam Strzelecki <ono@java.pl> | 2015-12-07 01:50:45 +0100 |
commit | e2ca53029e0c4c28c0796d3d55bfecf28c132d2e (patch) | |
tree | f3815745e988911a34edb7524b69048ee4f9c17c /public/less | |
parent | b5f6206a659eaa76382774675f2e3f2664d0f501 (diff) | |
download | gitea-e2ca53029e0c4c28c0796d3d55bfecf28c132d2e.tar.gz gitea-e2ca53029e0c4c28c0796d3d55bfecf28c132d2e.zip |
Render commit msg as header + verbatim description
Most commit in Git are expected to follow standard of single header line,
followed by description paragraphs, separated by empty line from previous block.
Previously Gogs were treating everything as single header. Now we are trying to
render only first line as header, but following lines (description chunks) as a
verbatim.
Diffstat (limited to 'public/less')
-rw-r--r-- | public/less/_base.less | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/public/less/_base.less b/public/less/_base.less index bd51f2303f..e359363423 100644 --- a/public/less/_base.less +++ b/public/less/_base.less @@ -196,12 +196,20 @@ pre { } } .info { - &.header { - background-color: #d9edf7 !important; - border-color: #85c5e5; - } &.segment { - border-color: #85c5e5; + border-color: #85c5e5; + &.top { + background-color: #d9edf7 !important; + h3, h4 { + margin-top: 0; + } + h3:last-child { + margin-top: 4px; + } + > :last-child { + margin-bottom: 0; + } + } } } |