diff2html/src/ui/css/diff2html.css

382 lines
6.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
2014-08-29 21:23:24 +00:00
*
*/
2014-09-08 17:15:51 +00:00
.d2h-wrapper {
2016-05-07 14:14:05 +00:00
text-align: left;
2014-08-30 02:54:52 +00:00
}
.d2h-file-header {
2016-05-07 14:14:05 +00:00
padding: 5px 10px;
border-bottom: 1px solid #d8d8d8;
background-color: #f7f7f7;
2014-08-30 02:54:52 +00:00
}
.d2h-file-stats {
2016-05-26 15:33:27 +00:00
display: -webkit-box;
display: -ms-flexbox;
display: flex;
margin-left: auto;
2016-05-09 18:38:55 +00:00
font-size: 14px;
2014-08-30 13:16:13 +00:00
}
.d2h-lines-added {
2016-05-07 14:14:05 +00:00
text-align: right;
border: 1px solid #b4e2b4;
border-radius: 5px 0 0 5px;
2016-05-09 18:38:55 +00:00
color: #399839;
2016-05-07 14:14:05 +00:00
padding: 2px;
2016-05-09 18:38:55 +00:00
vertical-align: middle;
2014-08-30 13:16:13 +00:00
}
.d2h-lines-deleted {
2016-05-07 14:14:05 +00:00
text-align: left;
border: 1px solid #e9aeae;
border-radius: 0 5px 5px 0;
2016-05-09 18:38:55 +00:00
color: #c33;
2016-05-07 14:14:05 +00:00
padding: 2px;
2016-05-09 18:38:55 +00:00
vertical-align: middle;
margin-left: 1px;
2014-08-30 13:16:13 +00:00
}
.d2h-file-name-wrapper {
2016-05-26 15:33:27 +00:00
display: -webkit-box;
display: -ms-flexbox;
display: flex;
2016-05-26 15:33:27 +00:00
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
2016-05-20 23:33:22 +00:00
width: 100%;
2016-05-07 14:15:29 +00:00
font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 15px;
line-height: 15px;
}
.d2h-file-name {
2016-05-07 14:14:05 +00:00
line-height: 33px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
2014-08-29 21:23:24 +00:00
}
.d2h-file-wrapper {
2016-05-07 14:14:05 +00:00
border: 1px solid #ddd;
border-radius: 3px;
margin-bottom: 1em;
}
.d2h-diff-table {
2016-05-07 14:14:05 +00:00
width: 100%;
2016-05-07 14:15:29 +00:00
border-collapse: collapse;
font-family: "Menlo", "Consolas", monospace;
font-size: 13px;
2014-09-08 17:15:51 +00:00
}
2016-02-21 14:45:50 +00:00
.d2h-diff-tbody > tr > td > div {
2016-05-07 14:14:05 +00:00
height: 16px;
line-height: 16px;
2016-02-21 14:45:50 +00:00
}
2014-09-14 19:50:17 +00:00
.d2h-files-diff {
2016-05-07 14:14:05 +00:00
width: 100%;
2014-09-14 19:50:17 +00:00
}
2014-09-08 17:15:51 +00:00
.d2h-file-diff {
2016-05-07 14:14:05 +00:00
overflow-x: scroll;
overflow-y: hidden;
2014-08-30 02:54:52 +00:00
}
2014-09-14 19:50:17 +00:00
.d2h-file-side-diff {
2016-05-07 14:14:05 +00:00
display: inline-block;
overflow-x: scroll;
overflow-y: hidden;
width: 50%;
margin-right: -4px;
2014-09-14 19:50:17 +00:00
}
2015-01-30 15:16:49 +00:00
.d2h-code-line {
display: inline-block;
2016-05-07 14:14:05 +00:00
white-space: nowrap;
padding: 0 10px;
margin-left: 80px;
height: 20px;
line-height: 20px;
2014-08-30 02:54:52 +00:00
}
2015-05-31 22:07:23 +00:00
.d2h-code-side-line {
display: inline-block;
2016-05-20 23:33:22 +00:00
white-space: nowrap;
2016-05-07 14:14:05 +00:00
padding: 0 10px;
height: 20px;
line-height: 20px;
2016-05-07 14:14:05 +00:00
margin-left: 50px;
2014-09-14 19:50:17 +00:00
}
.d2h-code-line del,
.d2h-code-side-line del {
2016-05-07 14:14:05 +00:00
display: inline-block;
margin-top: -1px;
text-decoration: none;
background-color: #ffb6ba;
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 {
2016-05-07 14:14:05 +00:00
display: inline-block;
margin-top: -1px;
text-decoration: none;
background-color: #97f295;
border-radius: 0.2em;
text-align: left;
2014-08-30 02:54:52 +00:00
}
2015-05-31 22:07:23 +00:00
.d2h-code-line-prefix {
display: inline;
2016-05-07 14:14:05 +00:00
background: none;
padding: 0;
word-wrap: normal;
white-space: pre;
2015-05-31 22:07:23 +00:00
}
.d2h-code-line-ctn {
display: inline;
2016-05-07 14:14:05 +00:00
background: none;
padding: 0;
word-wrap: normal;
white-space: pre;
2015-05-31 22:07:23 +00:00
}
2014-09-08 17:15:51 +00:00
.line-num1 {
2016-05-07 14:14:05 +00:00
box-sizing: border-box;
float: left;
width: 40px;
overflow: hidden;
text-overflow: ellipsis;
padding-left: 3px;
2014-09-08 17:15:51 +00:00
}
.line-num2 {
2016-05-07 14:14:05 +00:00
box-sizing: border-box;
float: right;
width: 40px;
overflow: hidden;
text-overflow: ellipsis;
padding-left: 3px;
2014-09-08 17:15:51 +00:00
}
.d2h-code-linenumber {
2016-05-07 14:14:05 +00:00
box-sizing: border-box;
position: absolute;
width: 86px;
height: 18px;
padding-left: 2px;
padding-right: 2px;
line-height: 18px;
background-color: #fff;
color: rgba(0, 0, 0, 0.3);
text-align: right;
border: solid #eeeeee;
border-width: 0 1px 0 1px;
cursor: pointer;
2014-08-30 02:54:52 +00:00
}
2014-09-14 19:50:17 +00:00
.d2h-code-side-linenumber {
2016-05-07 14:14:05 +00:00
box-sizing: border-box;
position: absolute;
width: 56px;
padding-left: 5px;
padding-right: 5px;
height: 18px;
line-height: 18px;
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;
2014-09-08 17:15:51 +00:00
}
/*
* Changes Highlight
*/
2014-09-06 16:27:18 +00:00
.d2h-del {
2016-05-07 14:14:05 +00:00
background-color: #fee8e9;
border-color: #e9aeae;
2014-08-29 21:23:24 +00:00
}
2014-09-06 16:27:18 +00:00
.d2h-ins {
2016-05-07 14:14:05 +00:00
background-color: #dfd;
border-color: #b4e2b4;
2014-08-29 21:23:24 +00:00
}
.d2h-info {
2016-05-07 14:14:05 +00:00
background-color: #f8fafd;
color: rgba(0, 0, 0, 0.3);
border-color: #d5e4f2;
2014-08-29 21:23:24 +00:00
}
.d2h-file-diff .d2h-del.d2h-change {
background-color: #fdf2d0;
}
.d2h-file-diff .d2h-ins.d2h-change {
2016-05-07 14:14:05 +00:00
background-color: #ded;
}
/*
* File Summary List
*/
.d2h-file-list-wrapper {
2016-05-07 14:14:05 +00:00
margin-bottom: 10px;
}
.d2h-file-list-wrapper a {
2016-05-07 14:14:05 +00:00
text-decoration: none;
color: #3572b0;
}
.d2h-file-list-wrapper a:visited {
2016-05-07 14:14:05 +00:00
color: #3572b0;
}
.d2h-file-list-header {
2016-05-07 14:14:05 +00:00
text-align: left;
}
.d2h-file-list-title {
2016-05-07 14:14:05 +00:00
font-weight: bold;
}
.d2h-file-list-line {
2016-05-26 15:33:27 +00:00
display: -webkit-box;
display: -ms-flexbox;
display: flex;
2016-05-07 14:14:05 +00:00
text-align: left;
}
2015-12-20 22:49:50 +00:00
.d2h-file-list-line .d2h-file-name {
2016-05-07 14:14:05 +00:00
line-height: 21px;
}
.d2h-file-list {
2016-05-07 14:14:05 +00:00
display: block;
2016-05-09 18:38:55 +00:00
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 {
2016-05-07 14:14:05 +00:00
display: none;
font-size: 10px;
cursor: pointer;
}
2016-05-09 18:38:55 +00:00
.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 {
2016-05-26 15:33:27 +00:00
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;
2016-05-09 18:38:55 +00:00
}
/*
* 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,
2016-05-07 14:14:05 +00:00
.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;
}
2016-05-26 15:33:27 +00:00
.selecting-left .d2h-code-line::-moz-selection,
2016-09-10 12:30:49 +00:00
.selecting-left .d2h-code-line *::-moz-selection,
2016-05-26 15:33:27 +00:00
.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,
2016-09-10 12:30:49 +00:00
.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;
}