|
| 1 | +* { |
| 2 | + box-sizing: border-box; |
| 3 | +} |
| 4 | + |
| 5 | +[data-theme="light"] .diff-style-root { |
| 6 | + --diff-border--: #dedede; |
| 7 | + --diff-add-content--: #e6ffec; |
| 8 | + --diff-del-content--: #ffebe9; |
| 9 | + --diff-add-lineNumber--: #ccffd8; |
| 10 | + --diff-del-lineNumber--: #ffd7d5; |
| 11 | + --diff-plain-content--: #ffffff; |
| 12 | + --diff-expand-content--: #fafafa; |
| 13 | + --diff-plain-lineNumber--: #fafafa; |
| 14 | + --diff-plain-lineNumber-color--: #555555; |
| 15 | + --diff-hunk-content--: #ddf4ff; |
| 16 | + --diff-hunk-lineNumber--: #c7ecff; |
| 17 | + --diff-hunk-lineNumber-hover--: #0969da; |
| 18 | + --diff-add-content-highlight--: #abf2bc; |
| 19 | + --diff-del-content-highlight--: #ffb3ad; |
| 20 | + --diff-add-widget--: #0969d2; |
| 21 | + --diff-add-widget-color--: #ffffff; |
| 22 | + --diff-empty-content--: #fafafa; |
| 23 | + --diff-hunk-content-color--: #777777; |
| 24 | + |
| 25 | + color: black; |
| 26 | +} |
| 27 | + |
| 28 | +.diff-style-root .diff-line-syntax-raw *, |
| 29 | +[data-theme="light"] .diff-line-syntax-raw * { |
| 30 | + color: var(--diff-view-light, inherit); |
| 31 | + font-weight: var(--diff-view-light-font-weight, inherit); |
| 32 | +} |
| 33 | + |
| 34 | +[data-theme="dark"] .diff-style-root { |
| 35 | + --diff-border--: #3d444d; |
| 36 | + --diff-add-content--: #14261f; |
| 37 | + --diff-del-content--: #311b1f; |
| 38 | + --diff-add-lineNumber--: #1f4429; |
| 39 | + --diff-del-lineNumber--: #552527; |
| 40 | + --diff-plain-content--: #0d1117; |
| 41 | + --diff-expand-content--: #161b22; |
| 42 | + --diff-plain-lineNumber--: #161b22; |
| 43 | + --diff-plain-lineNumber-color--: #a0aaab; |
| 44 | + --diff-hunk-content--: #131d2e; |
| 45 | + --diff-hunk-lineNumber--: #204274; |
| 46 | + --diff-hunk-lineNumber-hover--: #1f6feb; |
| 47 | + --diff-add-content-highlight--: #1f572d; |
| 48 | + --diff-del-content-highlight--: #80312f; |
| 49 | + --diff-add-widget--: #0969d2; |
| 50 | + --diff-add-widget-color--: #ffffff; |
| 51 | + --diff-empty-content--: #161b22; |
| 52 | + --diff-hunk-content-color--: #9298a0; |
| 53 | + |
| 54 | + color: white; |
| 55 | +} |
| 56 | + |
| 57 | +[data-theme="dark"] .diff-line-syntax-raw * { |
| 58 | + color: var(--diff-view-dark, inherit); |
| 59 | + font-weight: var(--diff-view-dark-font-weight, inherit); |
| 60 | +} |
| 61 | + |
| 62 | +table, |
| 63 | +tr, |
| 64 | +td { |
| 65 | + border-color: transparent; |
| 66 | + border-width: 0px; |
| 67 | + text-align: left; |
| 68 | +} |
| 69 | + |
| 70 | +.diff-line-old-num, |
| 71 | +.diff-line-new-num, |
| 72 | +.diff-line-num { |
| 73 | + text-align: right; |
| 74 | +} |
| 75 | + |
| 76 | +.diff-style-root tr { |
| 77 | + content-visibility: auto; |
| 78 | +} |
| 79 | + |
| 80 | +.diff-add-widget-wrapper { |
| 81 | + transform-origin: center; |
| 82 | + transform: translateX(-50%) !important; |
| 83 | +} |
| 84 | + |
| 85 | +.diff-line-old-content .diff-add-widget-wrapper, |
| 86 | +.diff-line-new-content .diff-add-widget-wrapper { |
| 87 | + transform: translateX(50%) !important; |
| 88 | +} |
| 89 | + |
| 90 | +.diff-add-widget-wrapper:hover { |
| 91 | + transform: translateX(-50%) scale(1.1) !important; |
| 92 | +} |
| 93 | + |
| 94 | +.diff-line-old-content .diff-add-widget-wrapper:hover, |
| 95 | +.diff-line-new-content .diff-add-widget-wrapper:hover { |
| 96 | + transform: translateX(50%) scale(1.1) !important; |
| 97 | +} |
| 98 | + |
| 99 | +.diff-widget-tooltip { |
| 100 | + position: relative; |
| 101 | +} |
| 102 | + |
| 103 | +.diff-add-widget, |
| 104 | +.diff-widget-tooltip { |
| 105 | + font-family: inherit; |
| 106 | + font-feature-settings: inherit; |
| 107 | + font-variation-settings: inherit; |
| 108 | + font-size: 100%; |
| 109 | + font-weight: inherit; |
| 110 | + line-height: inherit; |
| 111 | + letter-spacing: inherit; |
| 112 | + color: inherit; |
| 113 | + margin: 0; |
| 114 | + text-transform: none; |
| 115 | + border-width: 0px; |
| 116 | + background-color: transparent; |
| 117 | + background-image: none; |
| 118 | +} |
| 119 | + |
| 120 | +.diff-widget-tooltip::after { |
| 121 | + display: none; |
| 122 | + box-sizing: border-box; |
| 123 | + background-color: #555555; |
| 124 | + position: absolute; |
| 125 | + content: attr(data-title); |
| 126 | + font-size: 11px; |
| 127 | + padding: 1px 2px; |
| 128 | + border-radius: 4px; |
| 129 | + overflow: hidden; |
| 130 | + top: 50%; |
| 131 | + white-space: nowrap; |
| 132 | + transform: translateY(-50%); |
| 133 | + left: calc(100% + 8px); |
| 134 | + color: #ffffff; |
| 135 | +} |
| 136 | + |
| 137 | +.diff-widget-tooltip::before { |
| 138 | + display: none; |
| 139 | + box-sizing: border-box; |
| 140 | + content: ""; |
| 141 | + position: absolute; |
| 142 | + top: 50%; |
| 143 | + left: calc(100% - 2px); |
| 144 | + transform: translateY(-50%); |
| 145 | + border: 6px solid transparent; |
| 146 | + border-right-color: #555555; |
| 147 | +} |
| 148 | + |
| 149 | +.diff-widget-tooltip:hover { |
| 150 | + background-color: var(--diff-hunk-lineNumber-hover--); |
| 151 | + color: white; |
| 152 | +} |
| 153 | + |
| 154 | +.diff-widget-tooltip:hover::before { |
| 155 | + display: block; |
| 156 | +} |
| 157 | + |
| 158 | +.diff-widget-tooltip:hover::after { |
| 159 | + display: block; |
| 160 | +} |
| 161 | + |
| 162 | +.diff-line-extend-wrapper * { |
| 163 | + color: initial; |
| 164 | +} |
| 165 | + |
| 166 | +.diff-line-widget-wrapper * { |
| 167 | + color: initial; |
| 168 | +} |
0 commit comments