aboutsummaryrefslogtreecommitdiffstats
path: root/public/less/_repository.less
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-21 00:18:30 +0800
committerUnknwon <u@gogs.io>2015-08-21 00:18:30 +0800
commit4275b3720a04ccbca99907e800a55ab9df9fdcf6 (patch)
tree34e79fcd8e4ca061dd3e6a36a21ab7533f37659a /public/less/_repository.less
parentaa65761d81d3f33bdfee578c14bb2b0c7a6ca639 (diff)
downloadgitea-4275b3720a04ccbca99907e800a55ab9df9fdcf6.tar.gz
gitea-4275b3720a04ccbca99907e800a55ab9df9fdcf6.zip
finsih diff and compare
Diffstat (limited to 'public/less/_repository.less')
-rw-r--r--public/less/_repository.less146
1 files changed, 138 insertions, 8 deletions
diff --git a/public/less/_repository.less b/public/less/_repository.less
index 485bb3c152..49bcd405f3 100644
--- a/public/less/_repository.less
+++ b/public/less/_repository.less
@@ -455,14 +455,6 @@
.author {
min-width: 180px;
}
- .sha {
- a {
- font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace;
- font-size: 14px;
- padding: 6px 10px 4px 10px;
- font-weight: normal;
- }
- }
.message span {
max-width: 500px;
}
@@ -470,6 +462,144 @@
width: 120px;
}
}
+ .sha.label {
+ font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace;
+ font-size: 14px;
+ padding: 6px 10px 4px 10px;
+ font-weight: normal;
+ }
+
+ .diff-detail-box {
+ margin: 15px 0;
+ line-height: 30px;
+ 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 #DDD;
+ padding-left: 6px;
+ }
+ }
+ span.status{
+ display: inline-block;
+ width: 12px;
+ height: 12px;
+ margin-right: 8px;
+ vertical-align: middle;
+ &.modify {
+ background-color: #f0db88;
+ }
+ &.add {
+ background-color: #b4e2b4;
+ }
+ &.del {
+ background-color: #e9aeae;
+ }
+ &.rename {
+ background-color: #dad8ff;
+ }
+ }
+ }
+ .diff-box {
+ .count {
+ margin-right: 12px;
+ .bar {
+ background-color: #e75316;
+ height: 12px;
+ width: 40px;
+ display: inline-block;
+ margin: 2px 4px 0 4px;
+ vertical-align: text-top;
+ .add {
+ background-color: #77c64a;
+ height: 12px;
+ }
+ }
+ }
+ .file {
+ color: #888;
+ }
+ }
+ .diff-file-box {
+ .header {
+ border-bottom: 1px solid #d4d4d5!important;
+ }
+ .file-body.file-code {
+ .lines-num {
+ text-align: right;
+ color: #999;
+ background: #fafafa;
+ width: 1%;
+ }
+ .lines-num-old {
+ border-right: 1px solid #DDD;
+ }
+ }
+ .code-diff {
+ font-size: 13px;
+ td {
+ padding: 0;
+ border-top: none;
+ }
+ pre {
+ margin: 0;
+ }
+ .lines-num {
+ border-right: 1px solid #d4d4d5;
+ padding: 0 5px;
+ }
+ tbody {
+ tr {
+ &.tag-code {
+ td, pre {
+ background-color: #E0E0E0 !important;
+ border-color: #ADADAD!important;
+ }
+ // td.selected-line, td.selected-line pre {
+ // background-color: #ffffdd !important;
+ // }
+ }
+ // &.same-code {
+ // td.selected-line, td.selected-line pre {
+ // background-color: #ffffdd !important;
+ // }
+ // }
+ &.del-code {
+ td, pre {
+ background-color: #ffe2dd !important;
+ border-color: #e9aeae !important;
+ }
+ // td.selected-line, td.selected-line pre {
+ // background-color: #ffffdd !important;
+ // }
+ }
+ &.add-code {
+ td, pre {
+ background-color: #d1ffd6 !important;
+ border-color: #b4e2b4 !important;
+ }
+ // td.selected-line, td.selected-line pre {
+ // background-color: #ffffdd !important;
+ // }
+ }
+ &:hover {
+ td {
+ background-color: #FFF8D2 !important;
+ border-color: #F0DB88 !important;
+ }
+ pre {
+ background-color: transparent !important;
+ }
+ }
+ }
+ }
+ }
+ }
}
.ui.comments {