diff2html/src/ui/css/diff2html.css

506 lines
8.5 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
}
2023-09-16 16:13:46 +00:00
.d2h-dark-color-scheme .d2h-files-diff,
2023-09-16 17:05:16 +00:00
.d2h-dark-color-scheme .d2h-files-diff .d2h-emptyplaceholder {
2023-09-16 16:13:46 +00:00
background-color: #272822;
color: #d0d0d0;
}
.d2h-dark-color-scheme .d2h-wrapper {
color: #d0d0d0;
background-color: #272822;
}
.d2h-file-header {
2021-01-23 15:07:14 +00:00
display: flex;
2018-11-18 15:38:46 +00:00
height: 35px;
2016-05-07 14:14:05 +00:00
padding: 5px 10px;
border-bottom: 1px solid #d8d8d8;
background-color: #f7f7f7;
2021-01-23 22:18:03 +00:00
font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
2014-08-30 02:54:52 +00:00
}
2023-09-16 16:13:46 +00:00
.d2h-dark-color-scheme .d2h-file-header {
color: #d0d0d0;
background-color: #272822;
2023-09-16 17:05:16 +00:00
border-bottom: #494b40;
2023-09-16 16:13:46 +00:00
}
.d2h-file-header.d2h-sticky-header {
position: sticky;
top: 0;
z-index: 1;
}
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-size: 15px;
}
.d2h-file-name {
2016-05-07 14:14:05 +00:00
white-space: nowrap;
text-overflow: ellipsis;
overflow-x: 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;
}
2023-09-16 16:13:46 +00:00
.d2h-dark-color-scheme .d2h-file-wrapper {
2023-09-16 17:05:16 +00:00
border: 1px solid #494b40;
2023-09-16 16:13:46 +00:00
}
2021-01-23 15:07:14 +00:00
.d2h-file-collapse {
justify-content: flex-end;
display: none;
2021-01-23 15:07:14 +00:00
cursor: pointer;
font-size: 12px;
align-items: center;
border-radius: 3px;
border: 1px solid #ddd;
padding: 4px 8px;
}
2023-09-16 16:13:46 +00:00
.d2h-dark-color-scheme .d2h-file-collapse {
border: 1px solid #272822;
}
2021-01-23 22:32:50 +00:00
.d2h-file-collapse.d2h-selected {
background-color: #c8e1ff;
}
2023-09-16 16:13:46 +00:00
.d2h-dark-color-scheme .d2h-file-collapse.d2h-selected {
background-color: #272822;
}
2021-01-23 15:07:14 +00:00
.d2h-file-collapse-input {
margin: 0 4px 0 0;
}
.d2h-diff-table {
2016-05-07 14:14:05 +00:00
width: 100%;
2016-05-07 14:15:29 +00:00
border-collapse: collapse;
2019-12-29 22:31:32 +00:00
font-family: 'Menlo', 'Consolas', monospace;
2016-05-07 14:15:29 +00:00
font-size: 13px;
2014-09-08 17:15:51 +00:00
}
2014-09-14 19:50:17 +00:00
.d2h-files-diff {
2023-01-20 22:27:44 +00:00
display: flex;
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-y: hidden;
2014-08-30 02:54:52 +00:00
}
2022-08-25 19:51:21 +00:00
.d2h-files-diff.d2h-d-none,
.d2h-file-diff.d2h-d-none {
display: none;
}
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%;
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;
2020-10-29 08:57:31 +00:00
user-select: none;
width: calc(100% - 16em);
2019-05-01 12:17:03 +00:00
/* Compensate for the absolute positioning of the line numbers */
padding: 0 8em;
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;
user-select: none;
width: calc(100% - 9em);
2020-10-29 08:57:31 +00:00
/* Compensate for the absolute positioning of the line numbers */
padding: 0 4.5em;
}
.d2h-code-line-ctn {
display: inline-block;
2020-10-29 08:57:31 +00:00
background: none;
padding: 0;
word-wrap: normal;
white-space: pre;
user-select: text;
width: 100%;
2020-10-29 08:57:31 +00:00
vertical-align: middle;
}
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
}
2023-09-16 16:13:46 +00:00
.d2h-dark-color-scheme .d2h-code-line del,
.d2h-dark-color-scheme .d2h-code-side-line del {
2023-09-16 17:05:16 +00:00
background-color: #604243;
2023-09-16 16:13:46 +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
}
2023-09-16 16:13:46 +00:00
.d2h-dark-color-scheme .d2h-code-line ins,
.d2h-dark-color-scheme .d2h-code-side-line ins {
2023-09-16 17:05:16 +00:00
background-color: #195219;
2023-09-16 16:13:46 +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
}
2014-09-08 17:15:51 +00:00
.line-num1 {
2016-05-07 14:14:05 +00:00
box-sizing: border-box;
float: left;
2019-05-01 12:17:03 +00:00
width: 3.5em;
2016-05-07 14:14:05 +00:00
overflow: hidden;
text-overflow: ellipsis;
2019-05-01 12:17:03 +00:00
padding: 0 0.5em 0 0.5em;
2014-09-08 17:15:51 +00:00
}
.line-num2 {
2016-05-07 14:14:05 +00:00
box-sizing: border-box;
float: right;
2019-05-01 12:17:03 +00:00
width: 3.5em;
2016-05-07 14:14:05 +00:00
overflow: hidden;
text-overflow: ellipsis;
2019-05-01 12:17:03 +00:00
padding: 0 0.5em 0 0.5em;
2014-09-08 17:15:51 +00:00
}
.d2h-code-linenumber {
2016-05-07 14:14:05 +00:00
box-sizing: border-box;
2019-05-01 12:17:03 +00:00
width: 7.5em;
/* Keep the numbers fixed on line contents scroll */
position: absolute;
display: inline-block;
2016-05-07 14:14:05 +00:00
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
}
2023-09-16 16:13:46 +00:00
.d2h-dark-color-scheme .d2h-code-linenumber {
background-color: #272822;
color: #d0d0d0;
border-color: #272822;
}
2019-05-01 12:17:03 +00:00
.d2h-code-linenumber:after {
content: '\200b';
}
2014-09-14 19:50:17 +00:00
.d2h-code-side-linenumber {
2019-05-01 12:17:03 +00:00
/* Keep the numbers fixed on line contents scroll */
position: absolute;
display: inline-block;
2016-05-07 14:14:05 +00:00
box-sizing: border-box;
2019-05-01 12:17:03 +00:00
width: 4em;
2016-05-07 14:14:05 +00:00
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;
padding: 0 0.5em 0 0.5em;
2014-09-08 17:15:51 +00:00
}
2023-09-16 16:13:46 +00:00
.d2h-dark-color-scheme .d2h-code-side-linenumber {
background-color: #272822;
color: #d0d0d0;
2023-09-16 17:05:16 +00:00
border-color: #494b40;
2023-09-16 16:13:46 +00:00
}
2019-05-01 12:17:03 +00:00
.d2h-code-side-linenumber:after {
content: '\200b';
}
.d2h-code-side-emptyplaceholder,
.d2h-emptyplaceholder {
background-color: #f1f1f1;
border-color: #e1e1e1;
}
2023-09-16 17:05:16 +00:00
.d2h-dark-color-scheme .d2h-files-diff .d2h-code-side-emptyplaceholder,
.d2h-dark-color-scheme .d2h-files-diff .d2h-emptyplaceholder {
background-color: #494b40;
border-color: #66695a;
2023-09-16 16:13:46 +00:00
}
.d2h-code-linenumber,
.d2h-code-side-linenumber,
.d2h-code-line-prefix,
.d2h-emptyplaceholder {
user-select: none;
}
.d2h-code-linenumber,
.d2h-code-side-linenumber {
direction: rtl;
}
/*
* 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
}
2023-09-16 16:13:46 +00:00
.d2h-dark-color-scheme .d2h-del {
2023-09-16 17:05:16 +00:00
background-color: #905a5c;
2023-09-16 16:13:46 +00:00
border-color: #a07c7e;
}
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
}
2023-09-16 16:13:46 +00:00
.d2h-dark-color-scheme .d2h-ins {
background-color: #177016;
2023-09-16 17:05:16 +00:00
border-color: #219f1f;
2023-09-16 16:13:46 +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
}
2023-09-16 16:13:46 +00:00
.d2h-dark-color-scheme .d2h-info {
2023-09-16 17:05:16 +00:00
background-color: #32342c;
color: #929292;
2023-09-16 16:13:46 +00:00
border-color: #272822;
}
.d2h-file-diff .d2h-del.d2h-change {
background-color: #fdf2d0;
}
2023-09-16 16:13:46 +00:00
.d2h-dark-color-scheme .d2h-file-diff .d2h-del.d2h-change {
background-color: #d0b44c;
}
.d2h-file-diff .d2h-ins.d2h-change {
2016-05-07 14:14:05 +00:00
background-color: #ded;
}
2023-09-16 16:13:46 +00:00
.d2h-dark-color-scheme .d2h-file-diff .d2h-ins.d2h-change {
background-color: #d0b44c;
}
/*
* 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;
}
2023-09-16 16:13:46 +00:00
.d2h-dark-color-scheme .d2h-file-list-wrapper a {
color: #3572b0;
}
.d2h-file-list-wrapper a:visited {
2016-05-07 14:14:05 +00:00
color: #3572b0;
}
2023-09-16 16:13:46 +00:00
.d2h-dark-color-scheme .d2h-file-list-wrapper a:visited {
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;
}
.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;
}
2023-09-16 16:13:46 +00:00
.d2h-dark-color-scheme .d2h-file-list > li {
border-bottom: #272822 solid 1px;
}
2016-05-09 18:38:55 +00:00
.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 {
vertical-align: middle;
margin-right: 10px;
fill: currentColor;
}
.d2h-deleted {
color: #c33;
}
.d2h-added {
color: #399839;
}
.d2h-changed {
color: #d0b44c;
}
2023-09-16 16:13:46 +00:00
.d2h-dark-color-scheme .d2h-changed {
color: #d0b44c;
}
.d2h-moved {
color: #3572b0;
}
2023-09-16 16:13:46 +00:00
.d2h-dark-color-scheme .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;
}
2023-09-16 16:13:46 +00:00
.d2h-dark-color-scheme .d2h-tag {
background-color: #272822;
}
2023-09-16 16:13:46 +00:00
.d2h-deleted-tag {
border: #c33 1px solid;
}
2023-09-16 16:13:46 +00:00
.d2h-dark-color-scheme .d2h-deleted-tag {
border: #a07c7e 1px solid;
2016-05-09 18:38:55 +00:00
}
2023-09-12 03:28:12 +00:00
2023-09-16 16:13:46 +00:00
.d2h-added-tag {
border: #399839 1px solid;
2023-09-12 03:28:12 +00:00
}
2023-09-16 16:13:46 +00:00
.d2h-dark-color-scheme .d2h-added-tag {
border: #177016 1px solid;
2023-09-12 03:28:12 +00:00
}
2023-09-16 16:13:46 +00:00
.d2h-changed-tag {
border: #d0b44c 1px solid;
2023-09-12 03:28:12 +00:00
}
2023-09-16 16:13:46 +00:00
.d2h-dark-color-scheme .d2h-changed-tag {
border: #d0b44c 1px solid;
2023-09-12 03:28:12 +00:00
}
2023-09-16 16:13:46 +00:00
.d2h-moved-tag {
border: #3572b0 1px solid;
2023-09-12 03:28:12 +00:00
}
2023-09-16 16:13:46 +00:00
.d2h-dark-color-scheme .d2h-moved-tag {
border: #3572b0 1px solid;
2023-09-12 03:28:12 +00:00
}