Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Adjust diff colors in all skins. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | diff-color-enhancements |
| Files: | files | file ages | folders |
| SHA3-256: |
3910360677f8a474f3398cd099a4cec8 |
| User & Date: | drh 2021-09-03 11:51:23.960 |
Context
|
2021-09-03
| ||
| 12:23 | Merge recent trunk enhancements into the diff-color-enhancement branch. ... (check-in: 17dde4c75b user: drh tags: diff-color-enhancements) | |
| 11:51 | Adjust diff colors in all skins. ... (check-in: 3910360677 user: drh tags: diff-color-enhancements) | |
|
2021-09-02
| ||
| 23:43 | Delete a bunch of obsolete side-by-side diff code. ... (check-in: 9f3d89612a user: drh tags: diff-color-enhancements) | |
Changes
Changes to skins/ardoise/css.txt.
| ︙ | ︙ | |||
81 82 83 84 85 86 87 |
a {
background-color: transparent;
color: #ff8000;
text-decoration: unset
}
a:active,
a:hover,
| < < < < | 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
a {
background-color: transparent;
color: #ff8000;
text-decoration: unset
}
a:active,
a:hover,
abbr[title] {
border-bottom: 1px dotted
}
b,
optgroup,
strong,
td.usetupEditLabel {
|
| ︙ | ︙ | |||
1117 1118 1119 1120 1121 1122 1123 |
.tl-line.warp {
background: #600000
}
table.login_out .login_out_label {
font-weight: 700;
text-align: right
}
| < | | < | < | > | | < | | | > | | | > | > > > > | > | < | > | < | | > < < | | 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 |
.tl-line.warp {
background: #600000
}
table.login_out .login_out_label {
font-weight: 700;
text-align: right
}
table.diff {
width: 100%;
overflow: auto;
padding: 0 5px;
font-size: 1rem;
background: #000;
border-radius: 5px;
}
table.diff pre {
font-size: 1.15rem;
scrollbar-color: black #999;
}
table.udiff pre {
padding: 10px 0
}
td.difftxt {
width: 52rem;
}
td.diffln ins {
background-color: #559855;
color: #000;
text-decoration: none;
}
td.diffln del {
background-color: #c55;
color: #000;
text-decoration: none;
}
td.difftxt del {
background-color: inherit;
text-decoration: none;
}
td.difftxt del > del {
background-color: #c55;
color: #000;
text-decoration: none;
}
td.difftxt ins {
background-color: inherit;
text-decoration: none;
}
td.difftxt ins > ins {
background-color: #559855;
color: #000;
text-decoration: none;
}
table.report {
width: 100%;
cursor: auto;
margin: 0 0 1em;
color: #000
}
table.report thead {
|
| ︙ | ︙ |
Changes to skins/blitz/css.txt.
| ︙ | ︙ | |||
1129 1130 1131 1132 1133 1134 1135 |
table.login_out td {
border: 0;
}
/* Diff displays
––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
| | | | 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 |
table.login_out td {
border: 0;
}
/* Diff displays
––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
table.diff {
width: 100%;
overflow: auto;
border: 1px solid #ccc;
padding: 5px;
font-size: 1rem;
}
table.diff:focus {
outline: none;
}
/* Ticket Reports
––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
table.report {
|
| ︙ | ︙ |
Changes to skins/darkmode/css.txt.
| ︙ | ︙ | |||
449 450 451 452 453 454 455 | border-left: 1px dashed #bbb; background: rgba(255,255,255,0); } /************************************************************************ diffs... ************************************************************************/ | | | | > | | | > | > > > > | > | | > | > | > < < | | 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 |
border-left: 1px dashed #bbb;
background: rgba(255,255,255,0);
}
/************************************************************************
diffs...
************************************************************************/
td.diffln ins {
background-color: #559855;
color: #000;
text-decoration: none;
}
td.diffln del {
background-color: #c55;
color: #000;
text-decoration: none;
}
td.difftxt del {
background-color: inherit;
text-decoration: none;
}
td.difftxt del > del {
background-color: #c55;
color: #000;
text-decoration: none;
}
td.difftxt ins {
background-color: inherit;
text-decoration: none;
}
td.difftxt ins > ins {
background-color: #559855;
color: #000;
text-decoration: none;
}
/************************************************************************
************************************************************************/
body.wikiedit #fossil-status-bar,
body.fileedit #fossil-status-bar{
border-radius: 0.25em 0.25em 0 0;
}
|
| ︙ | ︙ | |||
545 546 547 548 549 550 551 |
}
body.forum .forumPostBody > div blockquote {
border: 1px inset;
padding: 0 0.5em;
}
| < < < < | 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 |
}
body.forum .forumPostBody > div blockquote {
border: 1px inset;
padding: 0 0.5em;
}
body.report table.report tr td { color: black }
body.report table.report a { color: blue }
body.tkt td.tktDspValue { color: black }
body.tkt td.tktDspValue a { color: blue }
body.branch .brlist > table > tbody > tr:hover:not(.selected),
body.branch .brlist > table > tbody > tr.selected {
background-color: #442800;
}
|
Changes to skins/default/css.txt.
| ︙ | ︙ | |||
156 157 158 159 160 161 162 |
.footer {
border-top: 1px solid #ccc;
padding: 10px;
font-size: 0.7em;
margin-top: 10px;
color: #ccc;
}
| < < < < < < < < < < < | 156 157 158 159 160 161 162 163 164 165 166 167 168 169 |
.footer {
border-top: 1px solid #ccc;
padding: 10px;
font-size: 0.7em;
margin-top: 10px;
color: #ccc;
}
/* Forum */
.forum a:visited {
color: #6A7F94;
}
|
| ︙ | ︙ |
Changes to skins/eagle/css.txt.
| ︙ | ︙ | |||
255 256 257 258 259 260 261 | border-top: 0px dashed #fff; border-left: 1px dashed #fff; background: rgba(255,255,255,0); } /* Side-by-side diff */ | | | 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 |
border-top: 0px dashed #fff;
border-left: 1px dashed #fff;
background: rgba(255,255,255,0);
}
/* Side-by-side diff */
table.splitdiff {
background-color: #485D7B;
font-family: fixed, Dejavu Sans Mono, Monaco, Lucida Console, monospace;
font-size: 8pt;
border-collapse:collapse;
white-space: pre;
width: 98%;
border: 1px #000 dashed;
|
| ︙ | ︙ | |||
318 319 320 321 322 323 324 |
/* List of files in a timeline */
ul.filelist {
margin-top: 3px;
line-height: 100%;
}
/* side-by-side diff display */
| | | | | | | < < | | < < | < < < < < < < | | 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 |
/* List of files in a timeline */
ul.filelist {
margin-top: 3px;
line-height: 100%;
}
/* side-by-side diff display */
div.splitdiff {
font-family: monospace;
font-size: smaller;
white-space: pre;
}
/* context diff display */
table.udiff {
font-family: monospace;
white-space: pre;
}
/* added code in a diff */
td.difftxt ins > ins, td.diffln ins {
background-color: rgb(100, 200, 100);
}
td.difftxt ins {
background-color: inherit;
}
/* deleted in a diff */
td.difftxt del > del, td.diffln del {
background-color: rgb(230, 110, 110);
}
td.difftxt del {
background-color: inherit;
}
.fileage tr:hover {
background-color: #7EA2D9;
}
span.modpending {
|
| ︙ | ︙ | |||
417 418 419 420 421 422 423 |
background-color: #7EA2D9;
}
.timelineModernCell[id], .timelineColumnarCell[id], .timelineDetailCell[id] {
background-color: #455978;
}
| < < < < < | 406 407 408 409 410 411 412 413 414 415 416 417 418 419 |
background-color: #7EA2D9;
}
.timelineModernCell[id], .timelineColumnarCell[id], .timelineDetailCell[id] {
background-color: #455978;
}
.capsumOff {
background-color: #bbbbbb;
}
.capsumRead {
background-color: #006d00;
}
.capsumWrite {
|
| ︙ | ︙ |
Changes to skins/xekri/css.txt.
| ︙ | ︙ | |||
263 264 265 266 267 268 269 | /************************************** * Diffs */ /* Code Added */ | | > | < < | < | > > > > | | | | | | < < < < < | < | | < < < < < < | 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 |
/**************************************
* Diffs
*/
/* Code Added */
td.diffln ins,
td.difftxt ins > ins {
background-color: #7f7;
color: #000;
}
td.difftxt ins {
background-color: inherit;
}
/* Code Deleted */
td.diffln del,
td.difftxt del > del {
background-color: #f77;
color: #000;
}
td.difftxt del {
background-color: inherit;
}
/**************************************
* Diffs : Side-By-Side
*/
/* display (column-based) */
table.splitdiff {
border-spacing: 0;
font-size: 0.85rem;
width: 90%;
}
table.splitdiff pre {
border: 0;
margin: 0 0.5em;
padding: 0;
}
table.splitdiff td {
padding: 0;
vertical-align: top;
}
/* line number column */
td.diffln {
color: #ee0;
padding-right: 0.75em;
text-align: right;
}
/* diff text column */
td.difftxt {
background-color: #111;
overflow-x: auto;
width: 45em;
}
/* diff marker column */
td.diffsep {
padding: 0 0.5em;
}
/**************************************
* Diffs : Unified
*/
table.udiff pre {
background-color: #111;
}
/**************************************
* File List : Flat
*/
table.browser {
width: 100%;
|
| ︙ | ︙ |
Changes to src/default.css.
| ︙ | ︙ | |||
571 572 573 574 575 576 577 |
text-decoration: none;
}
td.difftxt del > del {
background-color: #ffc0c0;
text-decoration: none;
font-weight: bold;
}
| < < < < < < < < < < | 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 |
text-decoration: none;
}
td.difftxt del > del {
background-color: #ffc0c0;
text-decoration: none;
font-weight: bold;
}
td.difftxt ins {
background-color: #dafbe1;
text-decoration: none;
}
td.difftxt ins > ins {
background-color: #a0e4b2;
text-decoration: none;
font-weight: bold;
}
span.modpending {
color: #b03800;
font-style: italic;
}
pre.th1result {
|
| ︙ | ︙ |
Changes to src/diff.js.
| ︙ | ︙ | |||
14 15 16 17 18 19 20 |
var txtPres = diff.querySelectorAll('td.difftxt pre');
var width = Math.max(txtPres[0].scrollWidth, txtPres[1].scrollWidth);
var i;
for(i=0; i<txtCols.length; i++){
txtCols[i].style.width = width + 'px';
txtPres[i].style.maxWidth = width + 'px';
txtPres[i].style.width = width + 'px';
| | | | 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
var txtPres = diff.querySelectorAll('td.difftxt pre');
var width = Math.max(txtPres[0].scrollWidth, txtPres[1].scrollWidth);
var i;
for(i=0; i<txtCols.length; i++){
txtCols[i].style.width = width + 'px';
txtPres[i].style.maxWidth = width + 'px';
txtPres[i].style.width = width + 'px';
txtPres[i].onscroll = function(e){
txtPres[0].scrollLeft = txtPres[1].scrollLeft = this.scrollLeft;
};
}
diff.tabIndex = 0;
diff.onkeydown = function(e){
e = e || event;
var len = {37: -SCROLL_LEN, 39: SCROLL_LEN}[e.keyCode];
if( !len ) return;
|
| ︙ | ︙ |