|
| 1 | +/* |
| 2 | + * |
| 3 | + * Diff to HTML (diff2html.css) |
| 4 | + * Author: rtfpessoa |
| 5 | + * |
| 6 | + */ |
| 7 | + |
| 8 | +.d2h-wrapper { |
| 9 | + display: block; |
| 10 | + margin: 0 auto; |
| 11 | + text-align: left; |
| 12 | + width: 100%; |
| 13 | +} |
| 14 | + |
| 15 | +.d2h-file-wrapper { |
| 16 | + border: 1px solid #ddd; |
| 17 | + border-radius: 3px; |
| 18 | + margin-bottom: 1em; |
| 19 | +} |
| 20 | + |
| 21 | +.d2h-file-header { |
| 22 | + padding: 5px 10px; |
| 23 | + border-bottom: 1px solid #d8d8d8; |
| 24 | + background-color: #f7f7f7; |
| 25 | + font: 13px Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol"; |
| 26 | +} |
| 27 | + |
| 28 | +.d2h-file-stats { |
| 29 | + display: inline; |
| 30 | + font-size: 12px; |
| 31 | + text-align: center; |
| 32 | + max-width: 15%; |
| 33 | +} |
| 34 | + |
| 35 | +.d2h-lines-added { |
| 36 | + background-color: #ceffce; |
| 37 | + border: 1px solid #b4e2b4; |
| 38 | + color: #399839; |
| 39 | + border-radius: 5px 0 0 5px; |
| 40 | + padding: 2px; |
| 41 | + width: 25px; |
| 42 | +} |
| 43 | + |
| 44 | +.d2h-lines-deleted { |
| 45 | + background-color: #f7c8c8; |
| 46 | + border: 1px solid #e9aeae; |
| 47 | + color: #c33; |
| 48 | + border-radius: 0 5px 5px 0; |
| 49 | + padding: 2px; |
| 50 | + width: 25px; |
| 51 | +} |
| 52 | + |
| 53 | +.d2h-file-name { |
| 54 | + display: inline; |
| 55 | + height: 33px; |
| 56 | + line-height: 33px; |
| 57 | + max-width: 80%; |
| 58 | + white-space: nowrap; |
| 59 | + text-overflow: ellipsis; |
| 60 | + overflow: hidden; |
| 61 | +} |
| 62 | + |
| 63 | +.d2h-diff-table { |
| 64 | + border-collapse: collapse; |
| 65 | + font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; |
| 66 | + font-size: 12px; |
| 67 | + height: 18px; |
| 68 | + line-height: 18px; |
| 69 | + width: 100%; |
| 70 | +} |
| 71 | + |
| 72 | +.d2h-files-diff { |
| 73 | + width: 100%; |
| 74 | +} |
| 75 | + |
| 76 | +.d2h-file-diff { |
| 77 | + overflow-x: scroll; |
| 78 | +} |
| 79 | + |
| 80 | +.d2h-file-side-diff { |
| 81 | + display: inline-block; |
| 82 | + overflow-x: scroll; |
| 83 | + width: 50%; |
| 84 | + margin-right: -4px; |
| 85 | +} |
| 86 | + |
| 87 | +.d2h-code-line { |
| 88 | + display: block; |
| 89 | + white-space: pre; |
| 90 | + padding: 0 10px; |
| 91 | + height: 18px; |
| 92 | + line-height: 18px; |
| 93 | + margin-left: 80px; |
| 94 | + /* Override HighlightJS */ |
| 95 | + color: inherit; |
| 96 | + overflow-x: inherit; |
| 97 | + background: none; |
| 98 | + /* ******************** */ |
| 99 | +} |
| 100 | + |
| 101 | +.d2h-code-side-line.hljs { |
| 102 | + display: block; |
| 103 | + white-space: pre; |
| 104 | + padding: 0 10px; |
| 105 | + height: 18px; |
| 106 | + line-height: 18px; |
| 107 | + margin-left: 50px; |
| 108 | + /* Override HighlightJS */ |
| 109 | + color: inherit; |
| 110 | + overflow-x: inherit; |
| 111 | + background: none; |
| 112 | + /* ******************** */ |
| 113 | +} |
| 114 | + |
| 115 | +.d2h-code-line del, |
| 116 | +.d2h-code-side-line del { |
| 117 | + display: inline-block; |
| 118 | + margin-top: -1px; |
| 119 | + text-decoration: none; |
| 120 | + background-color: #ffb6ba; |
| 121 | + border-radius: 0.2em; |
| 122 | +} |
| 123 | + |
| 124 | +.d2h-code-line ins, |
| 125 | +.d2h-code-side-line ins { |
| 126 | + display: inline-block; |
| 127 | + margin-top: -1px; |
| 128 | + text-decoration: none; |
| 129 | + background-color: #97f295; |
| 130 | + border-radius: 0.2em; |
| 131 | +} |
| 132 | + |
| 133 | +.line-num1 { |
| 134 | + display: inline-block; |
| 135 | + float: left; |
| 136 | + width: 30px; |
| 137 | + overflow: hidden; |
| 138 | + text-overflow: ellipsis; |
| 139 | +} |
| 140 | + |
| 141 | +.line-num2 { |
| 142 | + display: inline-block; |
| 143 | + float: right; |
| 144 | + width: 30px; |
| 145 | + overflow: hidden; |
| 146 | + text-overflow: ellipsis; |
| 147 | +} |
| 148 | + |
| 149 | +.d2h-code-linenumber { |
| 150 | + position: absolute; |
| 151 | + width: 2%; |
| 152 | + min-width: 65px; |
| 153 | + padding-left: 10px; |
| 154 | + padding-right: 10px; |
| 155 | + height: 18px; |
| 156 | + line-height: 18px; |
| 157 | + background-color: #fff; |
| 158 | + color: rgba(0, 0, 0, 0.3); |
| 159 | + text-align: right; |
| 160 | + border: solid #eeeeee; |
| 161 | + border-width: 0 1px 0 1px; |
| 162 | + cursor: pointer; |
| 163 | +} |
| 164 | + |
| 165 | +.d2h-code-side-linenumber { |
| 166 | + position: absolute; |
| 167 | + width: 35px; |
| 168 | + padding-left: 10px; |
| 169 | + padding-right: 10px; |
| 170 | + height: 18px; |
| 171 | + line-height: 18px; |
| 172 | + background-color: #fff; |
| 173 | + color: rgba(0, 0, 0, 0.3); |
| 174 | + text-align: right; |
| 175 | + border: solid #eeeeee; |
| 176 | + border-width: 0 1px 0 1px; |
| 177 | + cursor: pointer; |
| 178 | + overflow: hidden; |
| 179 | + text-overflow: ellipsis; |
| 180 | +} |
| 181 | + |
| 182 | +.d2h-del { |
| 183 | + background-color: #fee8e9; |
| 184 | + border-color: #e9aeae; |
| 185 | +} |
| 186 | + |
| 187 | +.d2h-ins { |
| 188 | + background-color: #dfd; |
| 189 | + border-color: #b4e2b4; |
| 190 | +} |
| 191 | + |
| 192 | +.d2h-info { |
| 193 | + background-color: #f8fafd; |
| 194 | + color: rgba(0, 0, 0, 0.3); |
| 195 | + border-color: #d5e4f2; |
| 196 | +} |
0 commit comments