mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
7e2707d979
Previously, the diff hilighter was a bit odd in that it would just search for elements with a diff and highlight those. While useful in theory, this wasn't used at all. We change it to receive the diff to hilight, which makes the code somewhat simpler.
62 lines
785 B
CSS
62 lines
785 B
CSS
body {
|
|
margin: 0;
|
|
margin-top: 5px;
|
|
width: 100%;
|
|
}
|
|
|
|
.fileHeader {
|
|
margin-top: 0px;
|
|
padding-top: 2px;
|
|
padding-bottom: 1px;
|
|
border-top:0.1em solid #999999;
|
|
}
|
|
|
|
.delline, .oldfile {
|
|
background-color: #FEE;
|
|
color: #B00;
|
|
}
|
|
|
|
.addline, .newfile {
|
|
background-color: #DFD;
|
|
color: #080;
|
|
}
|
|
.fileline {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.hunkheader {
|
|
background-color: #f7f7f7;
|
|
color: #bbb;
|
|
}
|
|
|
|
pre {
|
|
width: 100%;
|
|
}
|
|
|
|
pre code {
|
|
width: 100%;
|
|
}
|
|
|
|
#CurrentHunk {
|
|
border-left: 5px solid black;
|
|
}
|
|
|
|
.whitespace {
|
|
background-color: rgba(255,0,0,0.5);
|
|
}
|
|
|
|
|
|
table.diff {
|
|
margin-top: 15px;
|
|
margin-left: 5px;
|
|
margin-right: 5px;
|
|
border-spacing: 0;
|
|
}
|
|
.lineno {
|
|
padding-left: 2px;
|
|
padding-right: 2px;
|
|
background-color: #ECECEC;
|
|
color: #A9A9A9;
|
|
border: 1px solid #DDDDDD;
|
|
text-align: right;
|
|
} |