Debian Codegraph @

vendor/jfcherng/php-diff/example/diff-table.css

raw
1 .diff-wrapper.diff {
2 --tab-size: 4;
3 background: repeating-linear-gradient(-45deg, whitesmoke, whitesmoke 0.5em, #e8e8e8 0.5em, #e8e8e8 1em);
4 border-collapse: collapse;
5 border-spacing: 0;
6 border: 1px solid black;
7 color: black;
8 empty-cells: show;
9 font-family: monospace;
10 font-size: 13px;
11 width: 100%;
12 word-break: break-all;
13 }
14 .diff-wrapper.diff th {
15 font-weight: 700;
16 cursor: default;
17 -webkit-user-select: none;
18 user-select: none;
19 }
20 .diff-wrapper.diff td {
21 vertical-align: baseline;
22 }
23 .diff-wrapper.diff td,
24 .diff-wrapper.diff th {
25 border-collapse: separate;
26 border: none;
27 padding: 1px 2px;
28 background: #fff;
29 }
30 .diff-wrapper.diff td:empty:after,
31 .diff-wrapper.diff th:empty:after {
32 content: " ";
33 visibility: hidden;
34 }
35 .diff-wrapper.diff td a,
36 .diff-wrapper.diff th a {
37 color: #000;
38 cursor: inherit;
39 pointer-events: none;
40 }
41 .diff-wrapper.diff thead th {
42 background: #a6a6a6;
43 border-bottom: 1px solid black;
44 padding: 4px;
45 text-align: left;
46 }
47 .diff-wrapper.diff tbody.skipped {
48 border-top: 1px solid black;
49 }
50 .diff-wrapper.diff tbody.skipped td,
51 .diff-wrapper.diff tbody.skipped th {
52 display: none;
53 }
54 .diff-wrapper.diff tbody th {
55 background: #cccccc;
56 border-right: 1px solid black;
57 text-align: right;
58 vertical-align: top;
59 width: 4em;
60 }
61 .diff-wrapper.diff tbody th.sign {
62 background: #fff;
63 border-right: none;
64 padding: 1px 0;
65 text-align: center;
66 width: 1em;
67 }
68 .diff-wrapper.diff tbody th.sign.del {
69 background: #fbe1e1;
70 }
71 .diff-wrapper.diff tbody th.sign.ins {
72 background: #e1fbe1;
73 }
74 .diff-wrapper.diff.diff-html {
75 white-space: pre-wrap;
76 tab-size: var(--tab-size);
77 }
78 .diff-wrapper.diff.diff-html .ch {
79 line-height: 1em;
80 background-clip: border-box;
81 background-repeat: repeat-x;
82 background-position: left center;
83 }
84 .diff-wrapper.diff.diff-html .ch.sp {
85 background-image: url('data:image/svg+xml,%3Csvg preserveAspectRatio="xMinYMid meet" viewBox="0 0 12 24" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M4.5 11C4.5 10.1716 5.17157 9.5 6 9.5C6.82843 9.5 7.5 10.1716 7.5 11C7.5 11.8284 6.82843 12.5 6 12.5C5.17157 12.5 4.5 11.8284 4.5 11Z" fill="rgba%2860, 60, 60, 50%25%29"/%3E%3C/svg%3E');
86 background-size: 1ch 1.25em;
87 }
88 .diff-wrapper.diff.diff-html .ch.tab {
89 background-image: url('data:image/svg+xml,%3Csvg preserveAspectRatio="xMinYMid meet" viewBox="0 0 12 24" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M9.5 10.44L6.62 8.12L7.32 7.26L12.04 11V11.44L7.28 14.9L6.62 13.9L9.48 11.78H0V10.44H9.5Z" fill="rgba%2860, 60, 60, 50%25%29"/%3E%3C/svg%3E');
90 background-size: calc(var(--tab-size) * 1ch) 1.25em;
91 background-position: 2px center;
92 }
93 .diff-wrapper.diff.diff-html .change.change-eq .old,
94 .diff-wrapper.diff.diff-html .change.change-eq .new {
95 background: #fff;
96 }
97 .diff-wrapper.diff.diff-html .change .old {
98 background: #fbe1e1;
99 }
100 .diff-wrapper.diff.diff-html .change .new {
101 background: #e1fbe1;
102 }
103 .diff-wrapper.diff.diff-html .change .rep {
104 background: #fef6d9;
105 }
106 .diff-wrapper.diff.diff-html .change .old.none,
107 .diff-wrapper.diff.diff-html .change .new.none,
108 .diff-wrapper.diff.diff-html .change .rep.none {
109 background: transparent;
110 cursor: not-allowed;
111 }
112 .diff-wrapper.diff.diff-html .change ins,
113 .diff-wrapper.diff.diff-html .change del {
114 font-weight: bold;
115 text-decoration: none;
116 }
117 .diff-wrapper.diff.diff-html .change ins {
118 background: #94f094;
119 }
120 .diff-wrapper.diff.diff-html .change del {
121 background: #f09494;
122 }