2014-08-29 21:23:24 +00:00
|
|
|
/*
|
|
|
|
|
*
|
2014-09-06 01:39:36 +00:00
|
|
|
* Diff to HTML (diff2html.css)
|
2014-08-30 02:54:52 +00:00
|
|
|
* Author: rtfpessoa
|
2014-08-29 21:23:24 +00:00
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
2014-09-08 17:15:51 +00:00
|
|
|
.d2h-wrapper {
|
2014-09-06 16:27:18 +00:00
|
|
|
display: block;
|
|
|
|
|
margin: 0 auto;
|
2014-08-30 22:16:38 +00:00
|
|
|
text-align: left;
|
2014-09-08 17:15:51 +00:00
|
|
|
width: 100%;
|
2014-08-29 21:23:24 +00:00
|
|
|
}
|
|
|
|
|
|
2014-09-06 01:39:36 +00:00
|
|
|
.d2h-file-wrapper {
|
2014-08-30 22:16:38 +00:00
|
|
|
border: 1px solid #ddd;
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
margin-bottom: 1em;
|
2014-08-30 02:54:52 +00:00
|
|
|
}
|
|
|
|
|
|
2014-09-06 01:39:36 +00:00
|
|
|
.d2h-file-header {
|
2014-08-30 22:16:38 +00:00
|
|
|
padding: 5px 10px;
|
|
|
|
|
border-bottom: 1px solid #d8d8d8;
|
|
|
|
|
background-color: #f7f7f7;
|
2014-09-06 16:27:18 +00:00
|
|
|
font: 13px Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
|
2014-08-30 02:54:52 +00:00
|
|
|
}
|
|
|
|
|
|
2014-09-06 01:39:36 +00:00
|
|
|
.d2h-file-stats {
|
2014-09-08 17:15:51 +00:00
|
|
|
display: inline;
|
2014-08-30 22:16:38 +00:00
|
|
|
font-size: 12px;
|
2014-09-06 16:27:18 +00:00
|
|
|
text-align: center;
|
2014-09-08 17:15:51 +00:00
|
|
|
max-width: 15%;
|
2014-08-30 13:16:13 +00:00
|
|
|
}
|
|
|
|
|
|
2014-09-06 01:39:36 +00:00
|
|
|
.d2h-lines-added {
|
2015-10-28 18:54:16 +00:00
|
|
|
text-align: right;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.d2h-lines-added > * {
|
2014-08-30 22:16:38 +00:00
|
|
|
background-color: #ceffce;
|
|
|
|
|
border: 1px solid #b4e2b4;
|
|
|
|
|
color: #399839;
|
|
|
|
|
border-radius: 5px 0 0 5px;
|
2014-09-06 16:27:18 +00:00
|
|
|
padding: 2px;
|
2014-08-30 13:16:13 +00:00
|
|
|
}
|
|
|
|
|
|
2014-09-06 01:39:36 +00:00
|
|
|
.d2h-lines-deleted {
|
2015-10-28 18:54:16 +00:00
|
|
|
text-align: left;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.d2h-lines-deleted > * {
|
2014-08-30 22:16:38 +00:00
|
|
|
background-color: #f7c8c8;
|
|
|
|
|
border: 1px solid #e9aeae;
|
|
|
|
|
color: #c33;
|
|
|
|
|
border-radius: 0 5px 5px 0;
|
2014-09-06 16:27:18 +00:00
|
|
|
padding: 2px;
|
2014-08-30 13:16:13 +00:00
|
|
|
}
|
|
|
|
|
|
2014-09-06 01:39:36 +00:00
|
|
|
.d2h-file-name {
|
2014-09-08 17:15:51 +00:00
|
|
|
display: inline;
|
2014-09-06 01:39:36 +00:00
|
|
|
line-height: 33px;
|
2014-09-08 17:15:51 +00:00
|
|
|
max-width: 80%;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
overflow: hidden;
|
2014-08-29 21:23:24 +00:00
|
|
|
}
|
|
|
|
|
|
2014-09-06 01:39:36 +00:00
|
|
|
.d2h-diff-table {
|
2014-08-30 22:16:38 +00:00
|
|
|
border-collapse: collapse;
|
2014-09-06 01:39:36 +00:00
|
|
|
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
|
|
font-size: 12px;
|
2014-09-08 17:15:51 +00:00
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
2016-02-21 14:45:50 +00:00
|
|
|
.d2h-diff-tbody > tr > td > div {
|
|
|
|
|
height: 16px;
|
|
|
|
|
line-height: 16px;
|
|
|
|
|
}
|
|
|
|
|
|
2014-09-14 19:50:17 +00:00
|
|
|
.d2h-files-diff {
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
2014-09-08 17:15:51 +00:00
|
|
|
.d2h-file-diff {
|
|
|
|
|
overflow-x: scroll;
|
2015-07-18 22:22:36 +00:00
|
|
|
overflow-y: hidden;
|
2014-08-30 02:54:52 +00:00
|
|
|
}
|
|
|
|
|
|
2014-09-14 19:50:17 +00:00
|
|
|
.d2h-file-side-diff {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
overflow-x: scroll;
|
2015-07-18 22:22:36 +00:00
|
|
|
overflow-y: hidden;
|
2014-09-14 19:50:17 +00:00
|
|
|
width: 50%;
|
|
|
|
|
margin-right: -4px;
|
|
|
|
|
}
|
|
|
|
|
|
2015-01-30 15:16:49 +00:00
|
|
|
.d2h-code-line {
|
2015-01-25 00:03:09 +00:00
|
|
|
display: block;
|
|
|
|
|
padding: 0 10px;
|
2014-09-06 16:27:18 +00:00
|
|
|
height: 18px;
|
2016-02-21 16:40:22 +00:00
|
|
|
white-space: nowrap;
|
2014-09-06 16:27:18 +00:00
|
|
|
line-height: 18px;
|
2014-09-08 17:15:51 +00:00
|
|
|
margin-left: 80px;
|
2015-01-25 00:03:09 +00:00
|
|
|
/* Override HighlightJS */
|
|
|
|
|
color: inherit;
|
|
|
|
|
overflow-x: inherit;
|
|
|
|
|
background: none;
|
|
|
|
|
/* ******************** */
|
2014-08-30 02:54:52 +00:00
|
|
|
}
|
|
|
|
|
|
2015-05-31 22:07:23 +00:00
|
|
|
.d2h-code-side-line {
|
2015-01-25 00:03:09 +00:00
|
|
|
display: block;
|
2014-09-14 19:50:17 +00:00
|
|
|
white-space: pre;
|
2015-01-25 00:03:09 +00:00
|
|
|
padding: 0 10px;
|
2014-09-14 19:50:17 +00:00
|
|
|
height: 18px;
|
|
|
|
|
line-height: 18px;
|
|
|
|
|
margin-left: 50px;
|
2015-01-25 00:03:09 +00:00
|
|
|
/* Override HighlightJS */
|
|
|
|
|
color: inherit;
|
|
|
|
|
overflow-x: inherit;
|
|
|
|
|
background: none;
|
|
|
|
|
/* ******************** */
|
2014-09-14 19:50:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.d2h-code-line del,
|
|
|
|
|
.d2h-code-side-line del {
|
2014-09-06 01:39:36 +00:00
|
|
|
display: inline-block;
|
|
|
|
|
margin-top: -1px;
|
|
|
|
|
text-decoration: none;
|
2014-09-27 00:29:32 +00:00
|
|
|
background-color: #ffb6ba;
|
2014-09-06 16:27:18 +00:00
|
|
|
border-radius: 0.2em;
|
2014-08-30 22:16:38 +00:00
|
|
|
}
|
|
|
|
|
|
2014-09-14 19:50:17 +00:00
|
|
|
.d2h-code-line ins,
|
|
|
|
|
.d2h-code-side-line ins {
|
2014-09-06 01:39:36 +00:00
|
|
|
display: inline-block;
|
|
|
|
|
margin-top: -1px;
|
|
|
|
|
text-decoration: none;
|
2014-09-27 00:29:32 +00:00
|
|
|
background-color: #97f295;
|
2014-09-06 16:27:18 +00:00
|
|
|
border-radius: 0.2em;
|
2014-08-30 02:54:52 +00:00
|
|
|
}
|
|
|
|
|
|
2015-05-31 22:07:23 +00:00
|
|
|
.d2h-code-line-prefix {
|
|
|
|
|
float: left;
|
|
|
|
|
background: none;
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.d2h-code-line-ctn {
|
|
|
|
|
background: none;
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
|
2014-09-08 17:15:51 +00:00
|
|
|
.line-num1 {
|
2015-12-20 23:38:16 +00:00
|
|
|
box-sizing: border-box;
|
2014-09-08 17:15:51 +00:00
|
|
|
float: left;
|
2015-12-20 23:38:16 +00:00
|
|
|
width: 32px;
|
2014-09-14 19:50:17 +00:00
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
2015-12-20 23:38:16 +00:00
|
|
|
padding-left: 3px;
|
2014-09-08 17:15:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.line-num2 {
|
2015-12-20 23:38:16 +00:00
|
|
|
box-sizing: border-box;
|
2014-09-08 17:15:51 +00:00
|
|
|
float: right;
|
2015-12-20 23:38:16 +00:00
|
|
|
width: 32px;
|
2014-09-14 19:50:17 +00:00
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
2015-12-20 23:38:16 +00:00
|
|
|
padding-left: 3px;
|
2014-09-08 17:15:51 +00:00
|
|
|
}
|
|
|
|
|
|
2014-09-06 01:39:36 +00:00
|
|
|
.d2h-code-linenumber {
|
2015-12-20 23:38:16 +00:00
|
|
|
box-sizing: border-box;
|
2014-09-08 17:15:51 +00:00
|
|
|
position: absolute;
|
2015-12-20 23:38:16 +00:00
|
|
|
width: 82px;
|
2014-09-06 16:27:18 +00:00
|
|
|
height: 18px;
|
2015-12-20 23:38:16 +00:00
|
|
|
padding-left: 2px;
|
|
|
|
|
padding-right: 2px;
|
2014-09-06 16:27:18 +00:00
|
|
|
line-height: 18px;
|
2014-09-08 17:15:51 +00:00
|
|
|
background-color: #fff;
|
2014-08-30 22:16:38 +00:00
|
|
|
color: rgba(0, 0, 0, 0.3);
|
|
|
|
|
text-align: right;
|
|
|
|
|
border: solid #eeeeee;
|
2014-09-14 19:50:17 +00:00
|
|
|
border-width: 0 1px 0 1px;
|
2014-08-30 22:16:38 +00:00
|
|
|
cursor: pointer;
|
2014-08-30 02:54:52 +00:00
|
|
|
}
|
|
|
|
|
|
2014-09-14 19:50:17 +00:00
|
|
|
.d2h-code-side-linenumber {
|
2015-12-20 23:38:16 +00:00
|
|
|
box-sizing: border-box;
|
2014-09-14 19:50:17 +00:00
|
|
|
position: absolute;
|
2015-12-20 23:38:16 +00:00
|
|
|
width: 52px;
|
2014-09-14 19:50:17 +00:00
|
|
|
padding-left: 10px;
|
|
|
|
|
padding-right: 10px;
|
|
|
|
|
height: 18px;
|
|
|
|
|
line-height: 18px;
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
color: rgba(0, 0, 0, 0.3);
|
|
|
|
|
text-align: right;
|
|
|
|
|
border: solid #eeeeee;
|
2014-09-08 17:15:51 +00:00
|
|
|
border-width: 0 1px 0 1px;
|
2014-09-14 19:50:17 +00:00
|
|
|
cursor: pointer;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
2014-09-08 17:15:51 +00:00
|
|
|
}
|
|
|
|
|
|
2014-09-06 16:27:18 +00:00
|
|
|
.d2h-del {
|
2014-09-27 00:29:32 +00:00
|
|
|
background-color: #fee8e9;
|
2014-08-30 22:16:38 +00:00
|
|
|
border-color: #e9aeae;
|
2014-08-29 21:23:24 +00:00
|
|
|
}
|
|
|
|
|
|
2014-09-06 16:27:18 +00:00
|
|
|
.d2h-ins {
|
2014-09-27 00:29:32 +00:00
|
|
|
background-color: #dfd;
|
2014-08-30 22:16:38 +00:00
|
|
|
border-color: #b4e2b4;
|
2014-08-29 21:23:24 +00:00
|
|
|
}
|
|
|
|
|
|
2014-09-06 01:39:36 +00:00
|
|
|
.d2h-info {
|
2014-08-30 22:16:38 +00:00
|
|
|
background-color: #f8fafd;
|
|
|
|
|
color: rgba(0, 0, 0, 0.3);
|
|
|
|
|
border-color: #d5e4f2;
|
2014-08-29 21:23:24 +00:00
|
|
|
}
|
2015-10-19 11:47:49 +00:00
|
|
|
|
|
|
|
|
.d2h-file-list-wrapper {
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
padding: 0 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.d2h-file-list-wrapper a {
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
color: #3572b0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.d2h-file-list-wrapper a:visited {
|
|
|
|
|
color: #3572b0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.d2h-file-list-header {
|
|
|
|
|
font-weight: bold;
|
2015-12-20 22:49:50 +00:00
|
|
|
float: left;
|
2015-10-19 11:47:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.d2h-file-list-line {
|
|
|
|
|
text-align: left;
|
|
|
|
|
font: 13px Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
|
|
|
|
|
}
|
|
|
|
|
|
2015-12-20 22:49:50 +00:00
|
|
|
.d2h-file-list-line .d2h-file-name {
|
2015-10-19 11:47:49 +00:00
|
|
|
line-height: 21px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.d2h-file-list {
|
2016-02-21 14:45:50 +00:00
|
|
|
display: block;
|
2015-10-19 11:47:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.d2h-clear {
|
2015-12-20 22:49:50 +00:00
|
|
|
display: block;
|
2015-10-19 11:47:49 +00:00
|
|
|
clear: both;
|
|
|
|
|
}
|
|
|
|
|
|
2015-12-19 21:09:31 +00:00
|
|
|
.d2h-del.d2h-change, .d2h-ins.d2h-change {
|
|
|
|
|
background-color: #ffc;
|
|
|
|
|
}
|
2015-12-20 22:49:50 +00:00
|
|
|
|
2015-12-19 21:09:31 +00:00
|
|
|
ins.d2h-change, del.d2h-change {
|
|
|
|
|
background-color: #fad771;
|
|
|
|
|
}
|
2015-12-20 22:49:50 +00:00
|
|
|
|
2015-12-19 21:09:31 +00:00
|
|
|
.d2h-file-diff .d2h-del.d2h-change {
|
|
|
|
|
background-color: #fae1af;
|
|
|
|
|
}
|
2015-12-20 22:49:50 +00:00
|
|
|
|
2015-12-19 21:09:31 +00:00
|
|
|
.d2h-file-diff .d2h-ins.d2h-change {
|
|
|
|
|
background-color: #ded;
|
|
|
|
|
}
|
|
|
|
|
|
2016-02-21 14:45:50 +00:00
|
|
|
.d2h-file-switch {
|
2015-10-19 11:47:49 +00:00
|
|
|
display: none;
|
2015-12-20 22:49:50 +00:00
|
|
|
float: left;
|
2016-02-21 14:45:50 +00:00
|
|
|
font-size: 10px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
margin-top: 3px;
|
2015-10-19 11:47:49 +00:00
|
|
|
}
|