377 lines
19 KiB
CSS
377 lines
19 KiB
CSS
|
/*
|
||
|
*
|
||
|
* Diff to HTML (diff2html.css)
|
||
|
* Author: rtfpessoa
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
.d2h-wrapper {
|
||
|
text-align: left;
|
||
|
}
|
||
|
|
||
|
.d2h-file-header {
|
||
|
padding: 5px 10px;
|
||
|
border-bottom: 1px solid #d8d8d8;
|
||
|
background-color: #f7f7f7;
|
||
|
}
|
||
|
|
||
|
.d2h-file-stats {
|
||
|
display: -webkit-box;
|
||
|
display: -ms-flexbox;
|
||
|
display: flex;
|
||
|
margin-left: auto;
|
||
|
font-size: 14px;
|
||
|
}
|
||
|
|
||
|
.d2h-lines-added {
|
||
|
text-align: right;
|
||
|
border: 1px solid #b4e2b4;
|
||
|
border-radius: 5px 0 0 5px;
|
||
|
color: #399839;
|
||
|
padding: 2px;
|
||
|
vertical-align: middle;
|
||
|
}
|
||
|
|
||
|
.d2h-lines-deleted {
|
||
|
text-align: left;
|
||
|
border: 1px solid #e9aeae;
|
||
|
border-radius: 0 5px 5px 0;
|
||
|
color: #c33;
|
||
|
padding: 2px;
|
||
|
vertical-align: middle;
|
||
|
margin-left: 1px;
|
||
|
}
|
||
|
|
||
|
.d2h-file-name-wrapper {
|
||
|
display: -webkit-box;
|
||
|
display: -ms-flexbox;
|
||
|
display: flex;
|
||
|
-webkit-box-align: center;
|
||
|
-ms-flex-align: center;
|
||
|
align-items: center;
|
||
|
width: 100%;
|
||
|
font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||
|
font-size: 15px;
|
||
|
}
|
||
|
|
||
|
.d2h-file-name {
|
||
|
white-space: nowrap;
|
||
|
text-overflow: ellipsis;
|
||
|
overflow-x: hidden;
|
||
|
line-height: 21px;
|
||
|
}
|
||
|
|
||
|
.d2h-file-wrapper {
|
||
|
border: 1px solid #ddd;
|
||
|
border-radius: 3px;
|
||
|
margin-bottom: 1em;
|
||
|
}
|
||
|
|
||
|
.d2h-diff-table {
|
||
|
width: 100%;
|
||
|
border-collapse: collapse;
|
||
|
font-family: "Menlo", "Consolas", monospace;
|
||
|
font-size: 13px;
|
||
|
}
|
||
|
|
||
|
.d2h-diff-tbody > tr > td {
|
||
|
height: 20px;
|
||
|
line-height: 20px;
|
||
|
}
|
||
|
|
||
|
.d2h-files-diff {
|
||
|
display: block;
|
||
|
width: 100%;
|
||
|
height: 100%;
|
||
|
}
|
||
|
|
||
|
.d2h-file-diff {
|
||
|
overflow-x: scroll;
|
||
|
overflow-y: hidden;
|
||
|
}
|
||
|
|
||
|
.d2h-file-side-diff {
|
||
|
display: inline-block;
|
||
|
overflow-x: scroll;
|
||
|
overflow-y: hidden;
|
||
|
width: 50%;
|
||
|
margin-right: -4px;
|
||
|
margin-bottom: -8px;
|
||
|
}
|
||
|
|
||
|
.d2h-code-line {
|
||
|
display: inline-block;
|
||
|
white-space: nowrap;
|
||
|
padding: 0 10px;
|
||
|
margin-left: 80px;
|
||
|
}
|
||
|
|
||
|
.d2h-code-side-line {
|
||
|
display: inline-block;
|
||
|
white-space: nowrap;
|
||
|
padding: 0 10px;
|
||
|
margin-left: 50px;
|
||
|
}
|
||
|
|
||
|
.d2h-code-line del,
|
||
|
.d2h-code-side-line del {
|
||
|
display: inline-block;
|
||
|
margin-top: -1px;
|
||
|
text-decoration: none;
|
||
|
background-color: #ffb6ba;
|
||
|
border-radius: 0.2em;
|
||
|
}
|
||
|
|
||
|
.d2h-code-line ins,
|
||
|
.d2h-code-side-line ins {
|
||
|
display: inline-block;
|
||
|
margin-top: -1px;
|
||
|
text-decoration: none;
|
||
|
background-color: #97f295;
|
||
|
border-radius: 0.2em;
|
||
|
text-align: left;
|
||
|
}
|
||
|
|
||
|
.d2h-code-line-prefix {
|
||
|
display: inline;
|
||
|
background: none;
|
||
|
padding: 0;
|
||
|
word-wrap: normal;
|
||
|
white-space: pre;
|
||
|
}
|
||
|
|
||
|
.d2h-code-line-ctn {
|
||
|
display: inline;
|
||
|
background: none;
|
||
|
padding: 0;
|
||
|
word-wrap: normal;
|
||
|
white-space: pre;
|
||
|
}
|
||
|
|
||
|
.line-num1 {
|
||
|
-webkit-box-sizing: border-box;
|
||
|
box-sizing: border-box;
|
||
|
float: left;
|
||
|
width: 40px;
|
||
|
overflow: hidden;
|
||
|
text-overflow: ellipsis;
|
||
|
padding-left: 3px;
|
||
|
}
|
||
|
|
||
|
.line-num2 {
|
||
|
-webkit-box-sizing: border-box;
|
||
|
box-sizing: border-box;
|
||
|
float: right;
|
||
|
width: 40px;
|
||
|
overflow: hidden;
|
||
|
text-overflow: ellipsis;
|
||
|
padding-left: 3px;
|
||
|
}
|
||
|
|
||
|
.d2h-code-linenumber {
|
||
|
-webkit-box-sizing: border-box;
|
||
|
box-sizing: border-box;
|
||
|
position: absolute;
|
||
|
width: 86px;
|
||
|
padding-left: 2px;
|
||
|
padding-right: 2px;
|
||
|
background-color: #fff;
|
||
|
color: rgba(0, 0, 0, 0.3);
|
||
|
text-align: right;
|
||
|
border: solid #eeeeee;
|
||
|
border-width: 0 1px 0 1px;
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
|
||
|
.d2h-code-side-linenumber {
|
||
|
-webkit-box-sizing: border-box;
|
||
|
box-sizing: border-box;
|
||
|
position: absolute;
|
||
|
width: 56px;
|
||
|
padding-left: 5px;
|
||
|
padding-right: 5px;
|
||
|
background-color: #fff;
|
||
|
color: rgba(0, 0, 0, 0.3);
|
||
|
text-align: right;
|
||
|
border: solid #eeeeee;
|
||
|
border-width: 0 1px 0 1px;
|
||
|
cursor: pointer;
|
||
|
overflow: hidden;
|
||
|
text-overflow: ellipsis;
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
* Changes Highlight
|
||
|
*/
|
||
|
|
||
|
.d2h-del {
|
||
|
background-color: #fee8e9;
|
||
|
border-color: #e9aeae;
|
||
|
}
|
||
|
|
||
|
.d2h-ins {
|
||
|
background-color: #dfd;
|
||
|
border-color: #b4e2b4;
|
||
|
}
|
||
|
|
||
|
.d2h-info {
|
||
|
background-color: #f8fafd;
|
||
|
color: rgba(0, 0, 0, 0.3);
|
||
|
border-color: #d5e4f2;
|
||
|
}
|
||
|
|
||
|
.d2h-file-diff .d2h-del.d2h-change {
|
||
|
background-color: #fdf2d0;
|
||
|
}
|
||
|
|
||
|
.d2h-file-diff .d2h-ins.d2h-change {
|
||
|
background-color: #ded;
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
* File Summary List
|
||
|
*/
|
||
|
|
||
|
.d2h-file-list-wrapper {
|
||
|
margin-bottom: 10px;
|
||
|
}
|
||
|
|
||
|
.d2h-file-list-wrapper a {
|
||
|
text-decoration: none;
|
||
|
color: #3572b0;
|
||
|
}
|
||
|
|
||
|
.d2h-file-list-wrapper a:visited {
|
||
|
color: #3572b0;
|
||
|
}
|
||
|
|
||
|
.d2h-file-list-header {
|
||
|
text-align: left;
|
||
|
}
|
||
|
|
||
|
.d2h-file-list-title {
|
||
|
font-weight: bold;
|
||
|
}
|
||
|
|
||
|
.d2h-file-list-line {
|
||
|
display: -webkit-box;
|
||
|
display: -ms-flexbox;
|
||
|
display: flex;
|
||
|
text-align: left;
|
||
|
}
|
||
|
|
||
|
.d2h-file-list {
|
||
|
display: block;
|
||
|
list-style: none;
|
||
|
padding: 0;
|
||
|
margin: 0;
|
||
|
}
|
||
|
|
||
|
.d2h-file-list > li {
|
||
|
border-bottom: #ddd solid 1px;
|
||
|
padding: 5px 10px;
|
||
|
margin: 0;
|
||
|
}
|
||
|
|
||
|
.d2h-file-list > li:last-child {
|
||
|
border-bottom: none;
|
||
|
}
|
||
|
|
||
|
.d2h-file-switch {
|
||
|
display: none;
|
||
|
font-size: 10px;
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
|
||
|
.d2h-icon-wrapper {
|
||
|
line-height: 31px;
|
||
|
}
|
||
|
|
||
|
.d2h-icon {
|
||
|
vertical-align: middle;
|
||
|
margin-right: 10px;
|
||
|
fill: currentColor;
|
||
|
}
|
||
|
|
||
|
.d2h-deleted {
|
||
|
color: #c33;
|
||
|
}
|
||
|
|
||
|
.d2h-added {
|
||
|
color: #399839;
|
||
|
}
|
||
|
|
||
|
.d2h-changed {
|
||
|
color: #d0b44c;
|
||
|
}
|
||
|
|
||
|
.d2h-moved {
|
||
|
color: #3572b0;
|
||
|
}
|
||
|
|
||
|
.d2h-tag {
|
||
|
display: -webkit-box;
|
||
|
display: -ms-flexbox;
|
||
|
display: flex;
|
||
|
font-size: 10px;
|
||
|
margin-left: 5px;
|
||
|
padding: 0 2px;
|
||
|
background-color: #fff;
|
||
|
}
|
||
|
|
||
|
.d2h-deleted-tag {
|
||
|
border: #c33 1px solid;
|
||
|
}
|
||
|
|
||
|
.d2h-added-tag {
|
||
|
border: #399839 1px solid;
|
||
|
}
|
||
|
|
||
|
.d2h-changed-tag {
|
||
|
border: #d0b44c 1px solid;
|
||
|
}
|
||
|
|
||
|
.d2h-moved-tag {
|
||
|
border: #3572b0 1px solid;
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
* Selection util.
|
||
|
*/
|
||
|
|
||
|
.selecting-left .d2h-code-line,
|
||
|
.selecting-left .d2h-code-line *,
|
||
|
.selecting-right td.d2h-code-linenumber,
|
||
|
.selecting-right td.d2h-code-linenumber *,
|
||
|
.selecting-left .d2h-code-side-line,
|
||
|
.selecting-left .d2h-code-side-line *,
|
||
|
.selecting-right td.d2h-code-side-linenumber,
|
||
|
.selecting-right td.d2h-code-side-linenumber * {
|
||
|
-webkit-touch-callout: none;
|
||
|
-webkit-user-select: none;
|
||
|
-moz-user-select: none;
|
||
|
-ms-user-select: none;
|
||
|
user-select: none;
|
||
|
}
|
||
|
|
||
|
.selecting-left .d2h-code-line::-moz-selection,
|
||
|
.selecting-left .d2h-code-line *::-moz-selection,
|
||
|
.selecting-right td.d2h-code-linenumber::-moz-selection,
|
||
|
.selecting-left .d2h-code-side-line::-moz-selection,
|
||
|
.selecting-left .d2h-code-side-line *::-moz-selection,
|
||
|
.selecting-right td.d2h-code-side-linenumber::-moz-selection,
|
||
|
.selecting-right td.d2h-code-side-linenumber *::-moz-selection {
|
||
|
background: transparent;
|
||
|
}
|
||
|
|
||
|
.selecting-left .d2h-code-line::selection,
|
||
|
.selecting-left .d2h-code-line *::selection,
|
||
|
.selecting-right td.d2h-code-linenumber::selection,
|
||
|
.selecting-left .d2h-code-side-line::selection,
|
||
|
.selecting-left .d2h-code-side-line *::selection,
|
||
|
.selecting-right td.d2h-code-side-linenumber::selection,
|
||
|
.selecting-right td.d2h-code-side-linenumber *::selection {
|
||
|
background: transparent;
|
||
|
}
|
||
|
|
||
|
/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy91aS9jc3MvZGlmZjJodG1sLmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7R0FLRzs7QUFFSDtFQUNFLGlCQUFpQjtDQUNsQjs7QUFFRDtFQUNFLGtCQUFrQjtFQUNsQixpQ0FBaUM7RUFDakMsMEJBQTBCO0NBQzNCOztBQUVEO0VBQ0UscUJBQXFCO0VBQ3JCLHFCQUFxQjtFQUNyQixjQUFjO0VBQ2Qsa0JBQWtCO0VBQ2xCLGdCQUFnQjtDQUNqQjs7QUFFRDtFQUNFLGtCQUFrQjtFQUNsQiwwQkFBMEI7RUFDMUIsMkJBQTJCO0VBQzNCLGVBQWU7RUFDZixhQUFhO0VBQ2IsdUJBQXVCO0NBQ3hCOztBQUVEO0VBQ0UsaUJBQWlCO0VBQ2pCLDBCQUEwQjtFQUMxQiwyQkFBMkI7RUFDM0IsWUFBWTtFQUNaLGFBQWE7RUFDYix1QkFBdUI7RUFDdkIsaUJBQWlCO0NBQ2xCOztBQUVEO0VBQ0UscUJBQXFCO0VBQ3JCLHFCQUFxQjtFQUNyQixjQUFjO0VBQ2QsMEJBQTBCO0VBQzFCLHVCQUF1QjtFQUN2QixvQkFBb0I7RUFDcEIsWUFBWTtFQUNaLCtFQUEr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