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 | |
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')
-rwxr-xr-x | public/css/gogs.css | 17 | ||||
-rw-r--r-- | public/less/_base.less | 18 |
2 files changed, 26 insertions, 9 deletions
diff --git a/public/css/gogs.css b/public/css/gogs.css index 583297afef..56a64cfd8e 100755 --- a/public/css/gogs.css +++ b/public/css/gogs.css @@ -895,13 +895,22 @@ pre.raw { .ui .warning.segment { border-color: #F0C36D; } -.ui .info.header { - background-color: #d9edf7 !important; - border-color: #85c5e5; -} .ui .info.segment { border-color: #85c5e5; } +.ui .info.segment.top { + background-color: #d9edf7 !important; +} +.ui .info.segment.top h3, +.ui .info.segment.top h4 { + margin-top: 0; +} +.ui .info.segment.top h3:last-child { + margin-top: 4px; +} +.ui .info.segment.top > :last-child { + margin-bottom: 0; +} .ui .normal.header { font-weight: normal; } 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; + } + } } } |