diff options
author | Unknwon <u@gogs.io> | 2017-02-20 16:16:32 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-02-20 16:16:32 -0500 |
commit | 934734a85a1e4cb68d8c1aa68c518b511c7be190 (patch) | |
tree | 775db872acad5e2ff4ef9ed837870907d8864455 /public/less | |
parent | 491934784fd99c10a4d2cb37eabb94d3c4ef1903 (diff) |
diff: able to highlight line with hashtag URL
Diffstat (limited to 'public/less')
-rw-r--r-- | public/less/_repository.less | 38 |
1 files changed, 21 insertions, 17 deletions
diff --git a/public/less/_repository.less b/public/less/_repository.less index a39d2f75..f80f9d56 100644 --- a/public/less/_repository.less +++ b/public/less/_repository.less @@ -1005,12 +1005,19 @@ .lines-num { border-right: 1px solid #d4d4d5; padding: 0 5px; + + &.lines-num-old, &.lines-num-new { + cursor: pointer; + &:hover { + color: #383636; + } + } } tbody { tr { &.tag-code { - td, pre { + td { background-color: #F0F0F0 !important; border-color: #D2CECE!important; padding-top: 4px; @@ -1019,15 +1026,12 @@ td.halfwidth { width: 50%; } - // td.selected-line, td.selected-line pre { - // background-color: #ffffdd !important; - // } } - // &.same-code { - // td.selected-line, td.selected-line pre { - // background-color: #ffffdd !important; - // } - // } + &.same-code { + td.active { + background-color: #ffffdd !important; + } + } &.del-code { // Duplicate here to enforce add code color. td.add-code { @@ -1039,29 +1043,29 @@ } } - td, pre { + td { background-color: #ffecec !important; border-color: #f1c0c0 !important; } + td.active { + background-color: #ffffdd !important; + } td.halfwidth { width: 50%; } - // td.selected-line, td.selected-line pre { - // background-color: #ffffdd !important; - // } } &.add-code { - td, pre { + td { background-color: #eaffea !important; border-color: #c1e9c1 !important; } td.halfwidth { width: 50%; } - // td.selected-line, td.selected-line pre { - // background-color: #ffffdd !important; - // } + td.active { + background-color: #ffffdd !important; + } } .removed-code { |