diff2html/diff2html.css

136 lines
2.4 KiB
CSS
Raw Normal View History

2014-08-29 21:23:24 +00:00
/*
*
* Diff to HTML (diff2html.css)
2014-08-30 02:54:52 +00:00
* Author: rtfpessoa
* Date: Friday 29 August 2014
* Last Update: Friday 6 September 2014
2014-08-29 21:23:24 +00:00
*
*/
body {
2014-08-30 22:16:38 +00:00
text-align: center;
2014-08-29 21:23:24 +00:00
}
#d2h-wrapper {
2014-08-30 22:16:38 +00:00
display: inline-block;
text-align: left;
width: 920px;
2014-08-29 21:23:24 +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
}
.d2h-file-header {
2014-08-30 22:16:38 +00:00
padding: 5px 10px;
border-bottom: 1px solid #d8d8d8;
background-color: #f7f7f7;
2014-08-30 02:54:52 +00:00
}
.d2h-file-stats {
2014-08-30 22:16:38 +00:00
display: inline-block;
font-family: monospace, monospace;
font-size: 12px;
2014-08-30 13:16:13 +00:00
}
.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;
padding: 5px;
2014-08-30 13:16:13 +00:00
}
.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;
padding: 5px;
2014-08-30 13:16:13 +00:00
}
.d2h-file-name {
display: inline-block;
font: 13px Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
height: 33px;
line-height: 33px;
2014-08-29 21:23:24 +00:00
}
.d2h-file-diff {
overflow: auto;
2014-08-29 21:23:24 +00:00
}
.d2h-file-diff > div {
width: 100%;
2014-08-29 21:23:24 +00:00
}
.d2h-code-wrapper {
2014-08-30 22:16:38 +00:00
overflow-x: auto;
overflow-y: hidden;
2014-08-30 02:54:52 +00:00
}
.d2h-diff-table {
2014-08-30 22:16:38 +00:00
border-collapse: collapse;
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
font-size: 12px;
height: 18px;
line-height: 18px;
2014-08-30 02:54:52 +00:00
}
.d2h-code-line {
overflow: scroll;
white-space: pre;
padding-left: 10px;
padding-right: 10px;
2014-08-30 02:54:52 +00:00
}
.d2h-code-line del {
display: inline-block;
margin-top: -1px;
text-decoration: none;
background-color: #ffb6ba;
font-weight: 700;
2014-08-30 22:16:38 +00:00
}
.d2h-code-line ins {
display: inline-block;
margin-top: -1px;
text-decoration: none;
background-color: #97f295;
font-weight: 700;
2014-08-30 02:54:52 +00:00
}
.d2h-code-linenumber {
2014-08-30 22:16:38 +00:00
width: 1%;
min-width: 25px;
padding-left: 10px;
padding-right: 10px;
color: rgba(0, 0, 0, 0.3);
text-align: right;
border: solid #eeeeee;
border-width: 0 1px 0 0;
cursor: pointer;
2014-08-30 02:54:52 +00:00
}
2014-08-29 21:23:24 +00:00
.d2h-delete {
2014-08-30 22:16:38 +00:00
vertical-align: middle;
background-color: #f7c8c8;
border-color: #e9aeae;
2014-08-29 21:23:24 +00:00
}
.d2h-insert {
2014-08-30 22:16:38 +00:00
vertical-align: middle;
background-color: #ceffce;
border-color: #b4e2b4;
2014-08-29 21:23:24 +00:00
}
.d2h-info {
2014-08-30 22:16:38 +00:00
background-color: #f8fafd;
vertical-align: middle;
color: rgba(0, 0, 0, 0.3);
border-color: #d5e4f2;
2014-08-29 21:23:24 +00:00
}