diff options
author | 6543 <24977596+6543@users.noreply.github.com> | 2019-10-21 09:51:24 +0200 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2019-10-21 08:51:24 +0100 |
commit | b1c1e1549b50bbd5929e2c4dd72a1dbf4b511b50 (patch) | |
tree | 0becb52e0b3cd3649faf9f5304828bd7d00a40b8 /public/less | |
parent | b539a6e6e34c62c606a3d1fc5b2786f4cfd91a3d (diff) | |
download | gitea-b1c1e1549b50bbd5929e2c4dd72a1dbf4b511b50.tar.gz gitea-b1c1e1549b50bbd5929e2c4dd72a1dbf4b511b50.zip |
Ensure that diff stats can scroll independently of the diff (#8581)
This PR ensures that once opened the diff stats detail box can be scrolled independently of the diff on the compare page.
Fixes #5532
Details:
* make diff-detail-box the main container
* move file diff at the same level as diff-stats
* make diff-view options sticy again
* make diff-stats scroll if to mouch
* rm useless css info
* less: mv diff-stats to own class
* use new css class
* cleanup less file
* diff-counter: margin-right: 15px;
* make CI work
* make numbers colorful
* add sign (-/+) to numbers
Diffstat (limited to 'public/less')
-rw-r--r-- | public/less/_repository.less | 43 |
1 files changed, 28 insertions, 15 deletions
diff --git a/public/less/_repository.less b/public/less/_repository.less index 3586eeccf0..33ee5761c4 100644 --- a/public/less/_repository.less +++ b/public/less/_repository.less @@ -1246,21 +1246,6 @@ display: block; } - ol { - clear: both; - padding-left: 0; - margin-top: 5px; - margin-bottom: 28px; - - li { - list-style: none; - padding-bottom: 4px; - margin-bottom: 4px; - border-bottom: 1px dashed #dddddd; - padding-left: 6px; - } - } - span.status { display: inline-block; width: 12px; @@ -1475,6 +1460,34 @@ } } + .diff-stats { + + clear: both; + margin-bottom: 5px; + max-height: 400px; + overflow: auto; + padding-left: 0; + + li { + list-style: none; + padding-bottom: 4px; + margin-bottom: 4px; + border-bottom: 1px dashed #dddddd; + padding-left: 6px; + } + + .diff-counter { + margin-right: 15px; + + .del { + color: red; + } + .add { + color: green; + } + } + } + .repo-search-result { padding-top: 10px; padding-bottom: 10px; |