mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
23bb1658d9
This wraps each changed file in its own rounded box, making the diff display easier to the eye :)
52 lines
891 B
CSS
52 lines
891 B
CSS
.diff .file {
|
|
margin: 10px;
|
|
padding: 10px;
|
|
-webkit-border-radius: 10px;
|
|
border: 1px solid gray;
|
|
-webkit-box-shadow: 1px 1px 3px #888;
|
|
}
|
|
|
|
.diff .file .fileHeader {
|
|
margin-top: -5px;
|
|
padding-bottom: 1px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.diff .file .diffContent {
|
|
white-space: pre;
|
|
font-family: Monaco;
|
|
}
|
|
|
|
.diff .file .diffcontent .lineno {
|
|
float: left;
|
|
padding-left: 2px;
|
|
padding-right: 2px;
|
|
background-color: #ECECEC;
|
|
color: #A9A9A9;
|
|
border: 1px solid #DDDDDD;
|
|
text-align: right;
|
|
}
|
|
|
|
.diff .file .diffContent .lines .hunkheader {
|
|
background-color: #f7f7f7;
|
|
color: #bbb;
|
|
}
|
|
|
|
|
|
.diff .file .diffcontent .lines .delline {
|
|
background-color: #FEE;
|
|
color: #B00;
|
|
}
|
|
|
|
.diff .file .diffcontent .lines .addline {
|
|
background-color: #DFD;
|
|
color: #080;
|
|
}
|
|
|
|
.diff .file .diffcontent .lines .whitespace {
|
|
background-color: rgba(255,0,0,0.5);
|
|
}
|
|
|
|
#CurrentHunk {
|
|
border-left: 5px solid black;
|
|
} |